Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----Debian Jessie for OLPC XO-1-----
- I used a VM, so I made a folder called "debroot" instead of mounting a drive because VirtualBox is a POS.
- mkdir ~/debroot
- debootstrap --arch i386 jessie debroot http://http.us.debian.org/debian/
- mount -o bind /dev debroot/dev
- mount -o bind /proc debroot/proc
- mount -o bind /sys debroot/sys
- mount -o bind /tmp debroot/tmp
- cp /etc/resolv.conf debroot/etc/resolv.conf
- chroot ${MP}
- Replace your sourcelist with this (edit the mirrors if you don't live in the US):
- deb http://ftp.us.debian.org/debian jessie main contrib non-free
- deb-src http://ftp.us.debian.org/debian jessie main contrib non-free
- deb http://ftp.debian.org/debian/ jessie-updates main contrib non-free
- deb-src http://ftp.debian.org/debian/ jessie-updates main contrib non-free
- deb http://security.debian.org/ jessie/updates main contrib non-free
- deb-src http://security.debian.org/ jessie/updates main contrib non-free
- apt-get update
- echo "(your hostname)" > /etc/hostname
- put the same hostname into /etc/hosts (add it next to where it says "localhost")
- dpkg-reconfigure locales, select your locale
- apt-get install wpasupplicant rpm2cpio wget acpid acpi olpc-kbdshim olpc-powerd olpc-xo1-hw
- adduser olpc
- apt-get install xserver-xorg lxde Choose a desktop environment. I used Openbox, rather than a DE, but that's a more advanced choice.
- xserver-xorg and lxde bring in 137 mb of download! includes chromium-browser
- wget http://dev.laptop.org/~kernels/public_rpms/f20-xo1/kernel-3.10.0_xo1-20130716.1755.olpc.c06da27.i686.rpm
- cd /
- rpm2cpio kernel*.rpm | cpio -idmv
- cd /boot
- mv initrd-3.10.0_xo1-20130716.1755.olpc.c06da27.img initrd.img-3.10.0_xo1-20130716.1755.olpc.c06da27
- update-initramfs -c -u -k 3.10.0_xo1-20130716.1755.olpc.c06da27
- (cd /boot ; ln -s initrd.img-3.10.0_xo1-20130716.1755.olpc.c06da27 initrd.img)
- (cd /boot ; ln -s vmlinuz-3.10.0_xo1-20130716.1755.olpc.c06da27 vmlinuz )
- rm kernel-3.10.0_xo1-20130716.1755.olpc.c06da27.i686.rpm
- mkdir /lib/firmware
- cd /lib/firmware
- wget -O usb8388.bin http://dev.laptop.org/pub/firmware/libertas/usb8388-5.110.22.p22.bin
- create a file /boot/olpc.fth with these lines:
- \ Debian Jessie for XO
- visible
- " ext:\boot\initrd.img" to ramdisk
- " ext:\boot\vmlinuz" to boot-device
- " console=tty0 fbcon=font:SUN12x22 root=/dev/mmcblk0p1" to boot-file
- boot
- make a swapfile
- dd if=/dev/zero of=/swapfile BS=1M count=512
- mkswap /swapfile
- replace the contents of /etc/fstab with this:
- /dev/mmcblk0p1 / ext4 defaults,noatime,errors=remount-ro 0 0
- /swapfile none swap sw 0 0
- devpts /dev/pts devpts gid=5,mode=620 0 0
- tmpfs /dev/shm tmpfs defaults,size=50m 0 0
- proc /proc proc defaults 0 0
- sysfs /sys sysfs defaults 0 0
- /tmp /tmp tmpfs rw,size=50m 0 0
- vartmp /var/tmp tmpfs rw,size=50m 0 0
- varlog /var/log tmpfs rw,size=20m 0 0
- Add vm.swappiness=5 to the end of /etc/sysctl.conf, to limit wear on the sd card
- exit the chroot
- 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.
- 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