Snippets

develephant QEMU-Debootstrap

Updated by develephant

File qemu-raspbian.md Modified

  • Ignore whitespace
  • Hide word diff
 ## Install
 
 ```bash
-sudo apt-get install -y debootstrap qemu-debootstrap
+apt-get install -y debootstrap qemu qemu-user-static binfmt-support
 ```
 
 ## Build
Updated by develephant

File qemu-raspbian.md Modified

  • Ignore whitespace
  • Hide word diff
 ## Electron
 
 ```bash
-mkdir -p /home/pi/electron \
-cd /home/pi/electron \
-wget https://github.com/atom/electron/releases/download/v0.36.2/electron-v0.36.2-linux-arm.zip \
-unzip electron-v0.36.2-linux-arm.zip \
+mkdir -p /home/pi/electron &&
+cd /home/pi/electron &&
+wget https://github.com/atom/electron/releases/download/v0.36.2/electron-v0.36.2-linux-arm.zip &&
+unzip electron-v0.36.2-linux-arm.zip &&
 rm electron-v0.36.2-linux-arm.zip
 ```
 
Updated by develephant

File qemu-raspbian.md Modified

  • Ignore whitespace
  • Hide word diff
 ## Electron
 
 ```bash
-mkdir -p /home/pi/electron
-cd /home/pi/electron
-wget https://github.com/atom/electron/releases/download/v0.36.2/electron-v0.36.2-linux-arm.zip
-unzip electron-v0.36.2-linux-arm.zip
+mkdir -p /home/pi/electron \
+cd /home/pi/electron \
+wget https://github.com/atom/electron/releases/download/v0.36.2/electron-v0.36.2-linux-arm.zip \
+unzip electron-v0.36.2-linux-arm.zip \
 rm electron-v0.36.2-linux-arm.zip
 ```
 
Updated by develephant

File qemu-raspbian.md Modified

  • Ignore whitespace
  • Hide word diff
 ## Full Build
 
 ```bash
-sudo qemu-debootstrap --no-check-gpg --variant=minbase --include=nano,mlocate,wget,libnotify4,libnss3,libgconf-2-4,libgtk2.0-0,xserver-xorg-core --arch=armhf jessie jessie-root http://archive.raspbian.org/raspbian
-```
+sudo qemu-debootstrap \
+	--no-check-gpg \
+	--variant=minbase \
+	--include=nano,mlocate,wget,libnotify4,libnss3,libgconf-2-4,libgtk2.0-0,xserver-xorg-core,unzip \
+	--arch=armhf jessie jessie-root http://archive.raspbian.org/raspbian
+```
+
+# chroot
+
+## Login
+
+```bash
+cd ~/jessie-root
+sudo chroot . /bin/bash
+```
+
+## Electron
+
+```bash
+mkdir -p /home/pi/electron
+cd /home/pi/electron
+wget https://github.com/atom/electron/releases/download/v0.36.2/electron-v0.36.2-linux-arm.zip
+unzip electron-v0.36.2-linux-arm.zip
+rm electron-v0.36.2-linux-arm.zip
+```
+
Created by develephant

File qemu-raspbian.md Added

  • Ignore whitespace
  • Hide word diff
+## Install
+
+```bash
+sudo apt-get install -y debootstrap qemu-debootstrap
+```
+
+## Build
+
+```bash
+sudo qemu-debootstrap --no-check-gpg --arch=armhf jessie jessie-root http://archive.raspbian.org/raspbian
+```
+
+## Full Build
+
+```bash
+sudo qemu-debootstrap --no-check-gpg --variant=minbase --include=nano,mlocate,wget,libnotify4,libnss3,libgconf-2-4,libgtk2.0-0,xserver-xorg-core --arch=armhf jessie jessie-root http://archive.raspbian.org/raspbian
+```
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.