FDIV-Bug

Ubuntu Core Maker (INSIDE) - Alpha 5

Dec 2nd, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.92 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. echo "LC_ALL=en_US.UTF-8" >> /etc/default/locale # Solve (Hopefully) error messages when accessing the server through SSH
  18.  
  19. echo "Done!!!"
  20. sleep 1
  21.  
  22. echo "Updating package tree..."
  23. sed -i 's/# deb/deb/' /etc/apt/sources.list # Edit the sources.list file to enable all repositories
  24. apt-get update $DEBUG_N1
  25.  
  26. echo "Done!!!"
  27. sleep 1
  28.  
  29. echo "Installing Kernel..."
  30. apt-get install linux-image-extra-3.13.0-39-generic # This "extra" kernel brings far more modules (aka device drivers) than the "non-extra" version
  31.                                                     # This command also install grub-pc, which is goood!!!
  32. echo "Done!!!"
  33. sleep 1
  34.  
  35. echo "Installing btrfs-tools..."
  36. apt-get -y install btrfs-tools # The -y stands for "awnser YES to all questions"
  37.  
  38. echo "Done!!!"
  39. sleep 1
  40.  
  41. echo "Creating administrator user..."
  42. echo -n "Name: "
  43. read NAME
  44. adduser $NAME
  45. addgroup $NAME adm $DEBUG_N1
  46. addgroup $NAME sudo $DEBUG_N1
  47.  
  48. echo "Done!!!"
  49. sleep 1
  50.  
  51. echo -n "Enter a hostname: "
  52. read HOSTNAME
  53. echo "127.0.0.1 $HOSTNAME.localdomain   $HOSTNAME" > /etc/hosts
  54. echo "$HOSTNAME.localdomain" > /etc/hostname
  55.  
  56. echo "Done!!!"
  57. sleep 1
  58.  
  59. echo "Enabling DHCP on eth0..."
  60. echo "auto eth0" >> /etc/network/interfaces
  61. echo "iface eth0 inet dhcp" >> /etc/network/interfaces
  62. echo "" >> /etc/network/interfaces
  63.  
  64. echo "Done!!!"
  65. sleep 1
  66.  
  67. echo "DON'T FORGET: You must run the POSTINSTALL.sh script located at /INSTALL!!!"
  68. sleep 1
  69.  
  70. echo "If no critical erros were shown, the installation is successfully finished!"
  71. sleep 1
  72.  
  73. echo "Exiting chroot enviroment..."
  74. sleep 1
  75. exit
  76.  
  77. echo "Done!!!"
  78.  
  79. # TO DO (as of 11/26/2014)
  80.  
  81. # Create a host file
  82. # Change time zone
  83. # Change keyboard
Advertisement
Add Comment
Please, Sign In to add comment