Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export ORIGDIR=$PWD
- clicfs -m 120 ./kiwi-ltsp-0.8.5-clicfs.img /mnt/
- cp /mnt/fsdata.ext3 /tmp
- umount /mnt/
- resize2fs /tmp/fsdata.ext3 1G
- mount -o loop /tmp/fsdata.ext3 /mnt/
- # ADD: edit /mnt/etc/shadow and paste in root password
- cp shadow /mnt/etc/shadow
- chown root:shadow /mnt/etc/shadow
- chmod 0640 /mnt/etc/shadow
- # Copy monitor config - for some reason it doesn't detect properly.
- cp 50-monitor.conf /mnt/etc/X11/xorg.conf.d/
- # VIA Drivers
- tar xzf via/5.75.32.87a-u1004-55689.tar.gz
- cd 5.75.32.87a-u1004-55689
- mkdir /mnt/lib/modules/2.6.34.7-0.2-default/kernel/drivers/gpu/drm/via_chrome9/
- cp bin/via_chrome9.ko /mnt/lib/modules/2.6.34.7-0.2-default/kernel/drivers/gpu/drm/via_chrome9/
- cp bin/{via_chrome9_dri.so,via_drv.so} /mnt/usr/lib/xorg/modules/drivers
- cd $ORIGDIR
- #x11vnc
- cp /usr/lib/libjpeg.so.62 /mnt/usr/lib/
- #cp x11vnc /mnt/usr/bin/
- cp x11vnc-script /mnt/etc/init.d/x11vnc
- # these lines appear to have no affect
- cd /mnt/etc/init.d/rc2.d/
- ln -s ../x11vnc S06x11vnc
- cd /mnt/etc/init.d/rc3.d/
- ln -s ../x11vnc S06x11vnc
- ##
- cd $ORIGDIR
- ## this has been altered to load x11vnc
- cp ltsp-client.init /mnt/etc/init.d
- echo 'AgA1mz!' > /mnt/etc/x11vncpassword
- cp start-stop-daemon /mnt/sbin
- #try copying the binary AFTER the config files to fix corruption
- cp x11vnc /mnt/usr/bin/
- #try writing a bunch of 50m files
- #for j in `seq 1 100`
- #do
- # for i in `seq 1 100`
- # do
- dd if=/dev/zero of=/mnt/corruption$i bs=1M count=5
- #3 done
- #3 for i in `seq 1 100`
- # do
- # rm /mnt/corruption$i
- # done
- #done
- umount /mnt
- #check required for resize
- e2fsck -f /tmp/fsdata.ext3
- # -M - minimise filesystem
- resize2fs /tmp/fsdata.ext3 -M
- mkclicfs /tmp/fsdata.ext3 ./kiwi-ltsp-ag-0.8.5-clicfs.i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement