{"id":16898600,"url":"https://github.com/afbjorklund/raspbian-proot","last_synced_at":"2025-08-22T12:35:02.640Z","repository":{"id":92836182,"uuid":"150480607","full_name":"afbjorklund/raspbian-proot","owner":"afbjorklund","description":"Running Raspbian in PRoot","archived":false,"fork":false,"pushed_at":"2020-06-14T11:44:41.000Z","size":67,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-20T01:51:07.176Z","etag":null,"topics":["raspberry-pi"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/afbjorklund.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-26T19:38:13.000Z","updated_at":"2023-06-04T06:10:30.000Z","dependencies_parsed_at":"2023-03-09T14:00:29.574Z","dependency_job_id":null,"html_url":"https://github.com/afbjorklund/raspbian-proot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/afbjorklund/raspbian-proot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afbjorklund%2Fraspbian-proot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afbjorklund%2Fraspbian-proot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afbjorklund%2Fraspbian-proot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afbjorklund%2Fraspbian-proot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afbjorklund","download_url":"https://codeload.github.com/afbjorklund/raspbian-proot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afbjorklund%2Fraspbian-proot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271638718,"owners_count":24794749,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["raspberry-pi"],"created_at":"2024-10-13T17:44:31.167Z","updated_at":"2025-08-22T12:35:02.620Z","avatar_url":"https://github.com/afbjorklund.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Raspbian and Proot\n\nThis about running Raspbian GNU/Linux (arm), in a PRoot environment (amd64).\n\n* Debian \u003chttps://www.debian.org\u003e\n* Raspbian \u003chttps://www.raspbian.org\u003e\n\nDownload:\n\nhttps://www.raspberrypi.org/downloads/raspbian/\n\n* PRoot \u003chttps://proot-me.github.io/\u003e\n* Qemu \u003chttps://www.qemu.org/\u003e\n\nInstall:\n\n`sudo apt install proot qemu-user`\n\n\nYou will need a Raspbian image, which can be downloaded zipped at around 350M:\n\n``` console\n$ wget http://director.downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2018-06-29/2018-06-27-raspbian-stretch-lite.zip\n$ unzip 2018-06-27-raspbian-stretch-lite.zip\n```\n\nWe can list the partitions on the standard offical Raspbian image, using `fdisk`:\n\n``` console\n$ LANG=C fdisk -l 2018-06-27-raspbian-stretch-lite.img\nDisk 2018-06-27-raspbian-stretch-lite.img: 1.8 GiB, 1862270976 bytes, 3637248 sectors\nUnits: sectors of 1 * 512 = 512 bytes\nSector size (logical/physical): 512 bytes / 512 bytes\nI/O size (minimum/optimal): 512 bytes / 512 bytes\nDisklabel type: dos\nDisk identifier: 0x4d3ee428\n\nDevice                                Boot Start     End Sectors  Size Id Type\n2018-06-27-raspbian-stretch-lite.img1       8192   96663   88472 43.2M  c W95 FAT32 (LBA)\n2018-06-27-raspbian-stretch-lite.img2      98304 3637247 3538944  1.7G 83 Linux\n```\n\nMultiply the sectors by 512, to get a suitable offset for mounting the partions:\n\n``` console\nsudo mkdir -p /mnt/img/one\nsudo mount -o ro -t vfat -o offset=4194304 2018-06-27-raspbian-stretch-lite.img /mnt/img/one\nsudo mkdir -p /mnt/img/two\nsudo mount -o ro -t ext4 -o offset=50331648 2018-06-27-raspbian-stretch-lite.img /mnt/img/two\n```\n\nThen we can start an interactive shell in the mounted partition, with `proot`:\n\n``` console\nproot -R /mnt/img/two -q qemu-arm\n```\n\nClean up by exiting the shell started, and unmounting the disk images again:\n\n``` console\nsudo umount /mnt/img/one\nsudo umount /mnt/img/two\n```\n\n## Lightning Talk\n\nHere is a short presentation that I held at [FOSS Gbg](http://foss-gbg.se/):\n\n* [RaspianProot.pdf](RaspianProot.pdf) ([source](RaspianProot.odp))\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafbjorklund%2Fraspbian-proot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafbjorklund%2Fraspbian-proot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafbjorklund%2Fraspbian-proot/lists"}