Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.72 KB | None | 0 0
  1. export ORIGDIR=$PWD
  2. clicfs -m 120 ./kiwi-ltsp-0.8.5-clicfs.img /mnt/
  3. cp /mnt/fsdata.ext3 /tmp
  4. umount /mnt/
  5. resize2fs /tmp/fsdata.ext3 1G
  6. mount -o loop /tmp/fsdata.ext3 /mnt/
  7.  
  8. # ADD: edit /mnt/etc/shadow and paste in root password
  9. cp shadow /mnt/etc/shadow
  10. chown root:shadow /mnt/etc/shadow
  11. chmod 0640  /mnt/etc/shadow
  12.  
  13. # Copy monitor config - for some reason it doesn't detect properly.
  14. cp 50-monitor.conf /mnt/etc/X11/xorg.conf.d/
  15.  
  16. # VIA Drivers
  17. tar xzf via/5.75.32.87a-u1004-55689.tar.gz
  18. cd 5.75.32.87a-u1004-55689
  19. mkdir /mnt/lib/modules/2.6.34.7-0.2-default/kernel/drivers/gpu/drm/via_chrome9/
  20. cp bin/via_chrome9.ko /mnt/lib/modules/2.6.34.7-0.2-default/kernel/drivers/gpu/drm/via_chrome9/
  21. cp bin/{via_chrome9_dri.so,via_drv.so} /mnt/usr/lib/xorg/modules/drivers
  22. cd $ORIGDIR
  23.  
  24. #x11vnc
  25. cp /usr/lib/libjpeg.so.62 /mnt/usr/lib/
  26. #cp x11vnc /mnt/usr/bin/
  27. cp x11vnc-script /mnt/etc/init.d/x11vnc
  28. # these lines appear to have no affect
  29. cd /mnt/etc/init.d/rc2.d/
  30. ln -s ../x11vnc S06x11vnc
  31. cd /mnt/etc/init.d/rc3.d/
  32. ln -s ../x11vnc S06x11vnc
  33. ##
  34. cd $ORIGDIR
  35. ## this has been altered to load x11vnc
  36. cp ltsp-client.init /mnt/etc/init.d
  37. echo 'AgA1mz!' > /mnt/etc/x11vncpassword
  38. cp start-stop-daemon /mnt/sbin
  39.  
  40.  
  41.  
  42. #try copying the binary AFTER the config files to fix corruption
  43. cp x11vnc /mnt/usr/bin/
  44.  
  45. #try writing a bunch of 50m files
  46. #for j in `seq 1 100`
  47. #do
  48. #  for i in `seq 1 100`
  49. #  do
  50.     dd if=/dev/zero of=/mnt/corruption$i bs=1M count=5
  51. #3  done
  52. #3  for i in `seq 1 100`
  53. #  do
  54. #    rm /mnt/corruption$i
  55. #  done
  56. #done
  57.  
  58. umount /mnt
  59.  
  60. #check required for resize
  61. e2fsck -f /tmp/fsdata.ext3
  62.  
  63. # -M  - minimise filesystem
  64. resize2fs /tmp/fsdata.ext3 -M
  65.  
  66. mkclicfs /tmp/fsdata.ext3 ./kiwi-ltsp-ag-0.8.5-clicfs.i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement