FDIV-Bug

Ubuntu Core Maker (INSIDE) - Alpha 8

Jan 22nd, 2015
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.77 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 -y install linux-image-extra-3.13.0-44-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 "Installing Linux Firmwares..."
  45. apt-get -y install linux-firmware
  46.  
  47. echo "Cleaning it up..."
  48. apt-get clean
  49. sync
  50.  
  51. echo "Done!!!"
  52. sleep 1
  53.  
  54. echo -n "Enter a hostname: "
  55. read HOSTNAME
  56. echo "127.0.0.1 localhost" > /etc/hosts
  57. echo "127.0.0.1 $HOSTNAME" >> /etc/hosts
  58. echo "$HOSTNAME" > /etc/hostname
  59.  
  60. echo "Done!!!"
  61. sleep 1
  62.  
  63. echo "Creating administrator user..."
  64. echo -n "Name: "
  65. read NAME
  66. adduser $NAME
  67. addgroup $NAME adm $DEBUG_N1
  68. addgroup $NAME cdrom $DEBUG_N1
  69. addgroup $NAME sudo $DEBUG_N1
  70. addgroup $NAME dip $DEBUG_N1
  71. addgroup $NAME plugdev $DEBUG_N1
  72.  
  73. echo "Done!!!"
  74. sleep 1
  75.  
  76. echo "Enabling the loopback interface..."
  77. echo "auto lo" >> /etc/network/interfaces
  78. echo "iface lo inet loopback" >> /etc/network/interfaces
  79. echo "" >> /etc/network/interfaces
  80.  
  81. echo "Done!!!"
  82. sleep 1
  83.  
  84. echo "Enabling DHCP on eth0..."
  85. echo "auto eth0" >> /etc/network/interfaces
  86. echo "iface eth0 inet dhcp" >> /etc/network/interfaces
  87. echo "" >> /etc/network/interfaces
  88.  
  89. echo "Done!!!"
  90. sleep 1
  91.  
  92. echo "Enabling static address on eth1..."
  93. echo "auto eth1" >> /etc/network/interfaces
  94. echo "iface eth1 inet static" >> /etc/network/interfaces
  95. echo "address 192.168.1.1" >> /etc/network/interfaces
  96. echo "netmask 255.255.255.0" >> /etc/network/interfaces
  97. echo "" >> /etc/network/interfaces
  98.  
  99. echo "Done!!!"
  100. sleep 1
  101.  
  102. echo "DON'T FORGET: You must run the POSTINSTALL.sh script located at /INSTALL!!!"
  103. sleep 1
  104.  
  105. echo "If no critical erros were shown, the installation is successfully finished!"
  106. sleep 1
  107.  
  108. exit
  109.  
  110. # TO DO (as of 13/01/2015)
  111. # 1. Due space savings concerns, we should change to a "non-extra" kernel.
Advertisement
Add Comment
Please, Sign In to add comment