FDIV-Bug

Ubuntu Core Maker (INSIDE) - Alpha 7

Dec 11th, 2014
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.55 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # DEBUG [OFF]
  4. #DEBUG_N1="> /dev/null"
  5. #DEBUG_N2="&> /dev/null"
  6. SHOWCOMMAND=""
  7.  
  8. # DEBUG [ON]
  9. DEBUG_N1=""
  10. DEBUG_N2=""
  11. #SHOWCOMMAND="set -x"
  12.  
  13. $SHOWCOMMAND
  14.  
  15. echo "Generating en_US.UTF-8 locale..."
  16. locale-gen en_US.UTF-8 $DEBUG_N1
  17. touch /etc/default/locale
  18. echo "LANG=\"en_US.UTF-8\"" > /etc/default/locale
  19. echo "LANGUAGE=\"en_US:en\"" >> /etc/default/locale
  20. echo "LC_ALL=en_US.UTF-8" >> /etc/default/locale # Solve (Hopefully) error messages when accessing the server through SSH
  21.  
  22. echo "Done!!!"
  23. sleep 1
  24.  
  25. echo "Updating package tree..."
  26. sed -i 's/# deb/deb/' /etc/apt/sources.list # Edit the sources.list file to enable all repositories
  27. apt-get update $DEBUG_N1
  28.  
  29. echo "Done!!!"
  30. sleep 1
  31.  
  32. echo "Installing Kernel..."
  33. apt-get install linux-image-extra-3.13.0-43-generic # This "extra" kernel brings far more modules (aka device drivers) than the "non-extra" version
  34.                                                     # This command also install grub-pc, which is goood!!!
  35. echo "Done!!!"
  36. sleep 1
  37.  
  38. echo "Installing btrfs-tools..."
  39. apt-get -y install btrfs-tools # The -y stands for "awnser YES to all questions"
  40.  
  41. echo "Done!!!"
  42. sleep 1
  43.  
  44. echo -n "Enter a hostname: "
  45. read HOSTNAME
  46. echo "127.0.0.1 localhost" > /etc/hosts
  47. echo "127.0.0.1 $HOSTNAME" >> /etc/hosts
  48. echo "$HOSTNAME" > /etc/hostname
  49.  
  50. echo "Done!!!"
  51. sleep 1
  52.  
  53. echo "Creating administrator user..."
  54. echo -n "Name: "
  55. read NAME
  56. adduser $NAME
  57. addgroup $NAME adm $DEBUG_N1
  58. addgroup $NAME cdrom $DEBUG_N1
  59. addgroup $NAME sudo $DEBUG_N1
  60. addgroup $NAME dip $DEBUG_N1
  61. addgroup $NAME plugdev $DEBUG_N1
  62.  
  63. echo "Done!!!"
  64. sleep 1
  65.  
  66. echo "Enabling the loopback interface..."
  67. echo "auto lo" >> /etc/network/interfaces
  68. echo "iface lo inet loopback" >> /etc/network/interfaces
  69. echo "" >> /etc/network/interfaces
  70.  
  71. echo "Done!!!"
  72. sleep 1
  73.  
  74. echo "Enabling DHCP on eth0..."
  75. echo "auto eth0" >> /etc/network/interfaces
  76. echo "iface eth0 inet dhcp" >> /etc/network/interfaces
  77. echo "" >> /etc/network/interfaces
  78.  
  79. echo "Done!!!"
  80. sleep 1
  81.  
  82. echo "Enabling static address on eth1..."
  83. echo "auto eth1" >> /etc/network/interfaces
  84. echo "iface eth1 inet static" >> /etc/network/interfaces
  85. echo "address 192.168.1.1" >> /etc/network/interfaces
  86. echo "netmask 255.255.255.0" >> /etc/network/interfaces
  87. echo "" >> /etc/network/interfaces
  88.  
  89. echo "Done!!!"
  90. sleep 1
  91.  
  92. echo "DON'T FORGET: You must run the POSTINSTALL.sh script located at /INSTALL!!!"
  93. sleep 1
  94.  
  95. echo "If no critical erros were shown, the installation is successfully finished!"
  96. sleep 1
  97.  
  98. exit
  99.  
  100. # TO DO (as of 12/02/2014)
  101. # none
Advertisement
Add Comment
Please, Sign In to add comment