Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # DEBUG [OFF]
- #DEBUG_N1="> /dev/null"
- #DEBUG_N2="&> /dev/null"
- #SHOWCOMMAND=""
- # DEBUG [ON]
- DEBUG_N1=""
- DEBUG_N2=""
- SHOWCOMMAND="set -x"
- $SHOWCOMMAND
- echo "Generating en_US.UTF-8 locale..."
- locale-gen en_US.UTF-8 $DEBUG_N1
- echo "LC_ALL=en_US.UTF-8" >> /etc/default/locale # Solve (Hopefully) error messages when accessing the server through SSH
- echo "Done!!!"
- sleep 1
- echo "Updating package tree..."
- sed -i 's/# deb/deb/' /etc/apt/sources.list # Edit the sources.list file to enable all repositories
- apt-get update $DEBUG_N1
- echo "Done!!!"
- sleep 1
- echo "Installing Kernel..."
- 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
- # This command also install grub-pc, which is goood!!!
- echo "Done!!!"
- sleep 1
- echo "Installing btrfs-tools..."
- apt-get -y install btrfs-tools # The -y stands for "awnser YES to all questions"
- echo "Done!!!"
- sleep 1
- echo "Creating administrator user..."
- echo -n "Name: "
- read NAME
- adduser $NAME
- addgroup $NAME adm $DEBUG_N1
- addgroup $NAME sudo $DEBUG_N1
- echo "Done!!!"
- sleep 1
- echo "Enabling DHCP on eth0..."
- echo "auto eth0" >> /etc/network/interfaces
- echo "iface eth0 inet dhcp" >> /etc/network/interfaces
- echo "" >> /etc/network/interfaces
- echo "Done!!!"
- sleep 1
- echo "Installing some other packages..."
- apt-get -y install nano htop
- sleep 1
- echo "Done!!!"
- sleep 1
- echo "If no critical erros were shown, the installation is successfully finished!"
- sleep 1
- echo "Exiting chroot enviroment..."
- sleep 1
- exit
- echo "Done!!!"
- # TO DO (as of 11/26/2014)
- # Create a host file
- # Change time zone
- # Change keyboard
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement