FDIV-Bug

Ubuntu Core Maker (POSTINSTALL) - Alpha 4

Jan 22nd, 2015
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.73 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. echo "Initializing Keyboard configuration tool..."
  4. dpkg-reconfigure keyboard-configuration
  5.  
  6. echo "Done!!!"
  7. sleep 1
  8.  
  9. echo "Initializing Time Zone configuration tool..."
  10. dpkg-reconfigure tzdata
  11.  
  12. echo "Done!!!"
  13. sleep 1
  14.  
  15. echo "Initializing Console configuration tool..."
  16. dpkg-reconfigure console-setup
  17. # Follow the following settings to make it looks like the usual Ubuntu Console
  18. # UTF-8
  19. # Latin1 and Latin5...
  20. # VGA
  21. # 16
  22.  
  23. echo "Done!!!"
  24. sleep 1
  25.  
  26. echo "Installing Server tools... (1/2)"
  27. apt-get install dnsmasq ntp openssh-server iptables-persistent
  28. sync
  29.  
  30. echo "Done!!!"
  31. sleep 1
  32.  
  33. echo "Cleaning it up..."
  34. apt-get clean
  35. sync
  36.  
  37. echo "Installing Server tools... (1/2)"
  38. apt-get install samba libpam-smbpass
  39. sync
  40.  
  41. echo "Done!!!"
  42. sleep 1
  43.  
  44. echo "Cleaning it up..."
  45. apt-get clean
  46. sync
  47.  
  48. echo "Done!!!"
  49. sleep 1
  50.  
  51. echo "Installing some other usefull tools..."
  52. apt-get install htop nano
  53.  
  54. echo "Done!!!"
  55. sleep 1
  56.  
  57. echo "Configuring iptables..."
  58. chmod +x iptables.sh
  59. sh iptables.sh
  60. cp iptables.sh /root/
  61.  
  62. echo "Done!!!"
  63. sleep 1
  64.  
  65. echo "Creating simbolic link for (dnsmasq needs this)"
  66. dpkg-reconfigure resolvconf
  67.  
  68. echo "Done!!!"
  69. sleep 1
  70.  
  71. echo "Configuring Server services..."
  72. cat dnsmasq.conf > /etc/dnsmasq.conf
  73. cat smb.conf > /etc/samba/smb.conf
  74. cat ntp.conf > /etc/ntp.conf
  75.  
  76. echo "Done!!!"
  77. sleep 1
  78.  
  79. echo "Enabling IP forwarding..."
  80. echo "net.ipv4.ip_forward=1" > /etc/sysctl.conf
  81.  
  82. echo "Done!!!"
  83. sleep 1
  84.  
  85. echo "Cleaning it up..."
  86. cd /
  87. apt-get clean
  88. rm -rf INSTALL
  89. sync
  90.  
  91. echo "Done!!!"
  92. sleep 1
  93.  
  94. echo "Rebooting in 3... (Press CTRL-C to cancel)"
  95. sleep 1
  96. echo "Rebooting in 2... (Press CTRL-C to cancel)"
  97. sleep 1
  98. echo "Rebooting in 1... (Press CTRL-C to cancel)"
  99. sleep 1
  100.  
  101. reboot
Advertisement
Add Comment
Please, Sign In to add comment