User Tools

Site Tools


raspberry_pi_emulator

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
raspberry_pi_emulator [2016/06/03 21:48]
sgripon
raspberry_pi_emulator [2016/06/03 22:11] (current)
sgripon [ssh]
Line 4: Line 4:
  
 I use raspberry pi emulator to build owncloud. See https://​sourceforge.net/​projects/​raspberrypiemulator/​ for installation. This is to avoid too much writing on SD card and breaking it too quickly. I use raspberry pi emulator to build owncloud. See https://​sourceforge.net/​projects/​raspberrypiemulator/​ for installation. This is to avoid too much writing on SD card and breaking it too quickly.
 +
 +===== ssh =====
 +
 +You can connect through ssh to the emulator using the port redirection. The emulator redirects port 2222 to ssh standard port 22(using qemu parameter -redir tcp:​2222::​22) so to connect:
 +
 +  ssh -p 2222 pi@localhost
 +
 +===== Increase root partition size =====
  
 The image provided is too small, so I enlarged the disk and the root partition for the build. On your PC, add additionnal space by resizing the image file: The image provided is too small, so I enlarged the disk and the root partition for the build. On your PC, add additionnal space by resizing the image file:
Line 19: Line 27:
   sudo kpartx -d "​raspberry-pi-emulator-1.6/​LINUX/​Raspberry Pi Emulator/​SharedSupport/​2016-02-26-raspbian-jessie.img"​   sudo kpartx -d "​raspberry-pi-emulator-1.6/​LINUX/​Raspberry Pi Emulator/​SharedSupport/​2016-02-26-raspbian-jessie.img"​
  
-Then, just restart the emulator: ​the root partition ​is increased.+Then, just restart the emulator: ​you can check new partition ​size using df command: 
 + 
 +  df -h 
 +   
 +  Filesystem ​     Size  Used Avail Use% Mounted on 
 +  /​dev/​root ​      ​9.5G ​ 3.3G  5.8G  36% / 
 +  devtmpfs ​       125M     ​0 ​ 125M   0% /dev 
 +  tmpfs           ​125M ​    ​0 ​ 125M   0% /dev/shm 
 +  tmpfs           ​125M ​ 4.5M  121M   4% /run 
 +  tmpfs           ​5.0M ​    ​0 ​ 5.0M   0% /run/lock 
 +  tmpfs           ​125M ​    ​0 ​ 125M   0% /​sys/​fs/​cgroup 
 +  tmpfs            25M     ​0 ​  ​25M ​  0% /​run/​user/​1000
  
 **Share this page:** **Share this page:**
 ~~socialite~~ ~~socialite~~
raspberry_pi_emulator.1464983284.txt.gz · Last modified: 2016/06/03 21:48 by sgripon