Advertisement
Guest User

Untitled

a guest
Mar 21st, 2014
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.33 KB | None | 0 0
  1. #!/bin/sh
  2. # N900 PwnPhone V3 Installation Script 2012 (Script 4/4)
  3. foo=`whoami`
  4. if [[ $foo != "root" ]];then
  5. echo "YOU MUST BE ROOT TO EXECUTE THIS SCRIPT"
  6. sleep 1
  7. exit
  8. fi
  9.  
  10. echo "Beginning step 4"
  11. ## Prevent known updates that break things
  12. echo pymaemo-optify hold | dpkg --set-selections
  13. echo libapr1 hold | dpkg --set-selections
  14. echo libaprutil1 hold | dpkg --set-selections
  15. echo nmap hold | dpkg --set-selections
  16. echo subversion hold | dpkg --set-selections
  17. echo backupmenu hold | dpkg --set-selections
  18. echo ettercap hold | dpkg --set-selections
  19. echo ettercap-common hold | dpkg --set-selections
  20. echo bootmenu hold | dpkg --set-selections
  21. echo i2c-tools hold | dpkg --set-selections
  22. echo libacl1 hold | dpkg --set-selections
  23. echo libattr1 hold | dpkg --set-selections
  24. echo liblzo2-2 hold | dpkg --set-selections
  25. echo mtd-utils hold | dpkg --set-selections
  26. echo openssh-client hold | dpkg --set-selections
  27. echo openssh-common hold | dpkg --set-selections
  28. echo openssh-server hold | dpkg --set-selections
  29. echo openssh-tar-gnu hold | dpkg --set-selections
  30. echo busybox-power hold | dpkg --set-selections
  31. echo hildon-initscripts hold | dpkg --set-selections
  32. echo kernel-power hold | dpkg --set-selections
  33. echo kernel-power-flasher hold | dpkg --set-selections
  34. echo kernel-power-headers hold | dpkg --set-selections
  35. echo kernel-power-modules hold | dpkg --set-selections
  36. echo libstdc++6 hold | dpkg --set-selections
  37. echo ssh-status hold | dpkg --set-selections
  38.  
  39. ## Fix wireshark icon issues
  40. mv /opt/maemo/usr/share/pixmaps/wireshark.png /opt/usr/share/pixmaps
  41. mv /opt/maemo/usr/share/applications/hildon/wireshark.desktop /usr/share/applications/hildon
  42.  
  43. ## Fix .bashrc
  44. echo "#" > /home/user/.bashrc
  45.  
  46. ## Fix x11vnc
  47. echo "[Desktop Entry]
  48. Encoding=UTF-8
  49. Version=0.93
  50. Type=Application
  51. Name=x11vnc
  52. Exec=osso-xterm -e /usr/bin/x11vnc
  53. Icon=x11vnc
  54. X-Window-Icon=x11vnc
  55. X-Window-Icon-Dimmed=x11vnc" > /usr/share/applications/hildon/x11vnc.desktop
  56.  
  57.  
  58. ## Add configitnow.com GPG key for apt purposes
  59. apt-key add /media/mmc1/pwnimage/sys_files/cinss.pub
  60.  
  61. ## Create the finalized PwnPhone Environment
  62. gconftool-2 --load /media/mmc1/pwnimage/sys_files/gconf-settings.xml
  63. clear
  64. echo "Script 4 is complete"
  65. echo ""
  66. echo "To continue, press enter and then CLOSE keyboard"
  67. echo "System will reboot"
  68. read x
  69. reboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement