Advertisement
Guest User

OLPC Debian Jessie installation instructions

a guest
May 3rd, 2015
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.44 KB | None | 0 0
  1. -----Debian Jessie for OLPC XO-1-----
  2. I used a VM, so I made a folder called "debroot" instead of mounting a drive because VirtualBox is a POS.
  3.  
  4. mkdir ~/debroot
  5.  
  6. debootstrap --arch i386 jessie debroot http://http.us.debian.org/debian/
  7.  
  8. mount -o bind /dev debroot/dev
  9. mount -o bind /proc debroot/proc
  10. mount -o bind /sys debroot/sys
  11. mount -o bind /tmp debroot/tmp
  12. cp /etc/resolv.conf debroot/etc/resolv.conf
  13. chroot ${MP}
  14. Replace your sourcelist with this (edit the mirrors if you don't live in the US):
  15. deb http://ftp.us.debian.org/debian jessie main contrib non-free
  16. deb-src http://ftp.us.debian.org/debian jessie main contrib non-free
  17.  
  18. deb http://ftp.debian.org/debian/ jessie-updates main contrib non-free
  19. deb-src http://ftp.debian.org/debian/ jessie-updates main contrib non-free
  20.  
  21. deb http://security.debian.org/ jessie/updates main contrib non-free
  22. deb-src http://security.debian.org/ jessie/updates main contrib non-free
  23. apt-get update
  24. echo "(your hostname)" > /etc/hostname
  25. put the same hostname into /etc/hosts (add it next to where it says "localhost")
  26. dpkg-reconfigure locales, select your locale
  27.  
  28. apt-get install wpasupplicant rpm2cpio wget acpid acpi olpc-kbdshim olpc-powerd olpc-xo1-hw
  29.  
  30. adduser olpc
  31.  
  32. apt-get install xserver-xorg lxde Choose a desktop environment. I used Openbox, rather than a DE, but that's a more advanced choice.
  33.  
  34. xserver-xorg and lxde bring in 137 mb of download! includes chromium-browser
  35.  
  36. wget http://dev.laptop.org/~kernels/public_rpms/f20-xo1/kernel-3.10.0_xo1-20130716.1755.olpc.c06da27.i686.rpm
  37.  
  38. cd /
  39. rpm2cpio kernel*.rpm | cpio -idmv
  40.  
  41. cd /boot
  42. mv initrd-3.10.0_xo1-20130716.1755.olpc.c06da27.img initrd.img-3.10.0_xo1-20130716.1755.olpc.c06da27
  43. update-initramfs -c -u -k 3.10.0_xo1-20130716.1755.olpc.c06da27
  44. (cd /boot ; ln -s initrd.img-3.10.0_xo1-20130716.1755.olpc.c06da27 initrd.img)
  45. (cd /boot ; ln -s vmlinuz-3.10.0_xo1-20130716.1755.olpc.c06da27 vmlinuz )
  46. rm kernel-3.10.0_xo1-20130716.1755.olpc.c06da27.i686.rpm
  47.  
  48. mkdir /lib/firmware
  49. cd /lib/firmware
  50. wget -O usb8388.bin http://dev.laptop.org/pub/firmware/libertas/usb8388-5.110.22.p22.bin
  51.  
  52. create a file /boot/olpc.fth with these lines:
  53.  
  54. \ Debian Jessie for XO
  55. visible
  56. " ext:\boot\initrd.img" to ramdisk
  57. " ext:\boot\vmlinuz" to boot-device
  58. " console=tty0 fbcon=font:SUN12x22 root=/dev/mmcblk0p1" to boot-file
  59. boot
  60.  
  61. make a swapfile
  62. dd if=/dev/zero of=/swapfile BS=1M count=512
  63. mkswap /swapfile
  64.  
  65. replace the contents of /etc/fstab with this:
  66.  
  67. /dev/mmcblk0p1 / ext4 defaults,noatime,errors=remount-ro 0 0
  68. /swapfile none swap sw 0 0
  69. devpts /dev/pts devpts gid=5,mode=620 0 0
  70. tmpfs /dev/shm tmpfs defaults,size=50m 0 0
  71. proc /proc proc defaults 0 0
  72. sysfs /sys sysfs defaults 0 0
  73. /tmp /tmp tmpfs rw,size=50m 0 0
  74. vartmp /var/tmp tmpfs rw,size=50m 0 0
  75. varlog /var/log tmpfs rw,size=20m 0 0
  76.  
  77. Add vm.swappiness=5 to the end of /etc/sysctl.conf, to limit wear on the sd card
  78. exit the chroot
  79.  
  80. Restart your computer (or VM), and copy the folder onto an SD card (or just tar it up, put it on Dropbox, and wget it onto the SD card from the XO). Delete the SD card's /etc/modprobe.d folder and copy the one from your internal OLPC OS installation onto the SD card.
  81.  
  82. If you use Conky, my OLPC friendly conkyrc file can be found at http://www.pastebin.com/FujXW6ya
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement