Advertisement
FDIV-Bug

Ubuntu Core Maker (INSIDE) - Alpha 4

Nov 26th, 2014
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.75 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 "Enabling DHCP on eth0..."
  52. echo "auto eth0" >> /etc/network/interfaces
  53. echo "iface eth0 inet dhcp" >> /etc/network/interfaces
  54. echo "" >> /etc/network/interfaces
  55.  
  56. echo "Done!!!"
  57. sleep 1
  58.  
  59. echo "Installing some other packages..."
  60. apt-get -y install nano htop
  61. sleep 1
  62.  
  63. echo "Done!!!"
  64. sleep 1
  65.  
  66. echo "If no critical erros were shown, the installation is successfully finished!"
  67. sleep 1
  68.  
  69. echo "Exiting chroot enviroment..."
  70. sleep 1
  71. exit
  72.  
  73. echo "Done!!!"
  74.  
  75. # TO DO (as of 11/26/2014)
  76.  
  77. # Create a host file
  78. # Change time zone
  79. # Change keyboard
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement