Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo "Generating en_US.UTF-8 locale..."
- locale-gen en_US.UTF-8 > /dev/null
- echo "Done!!!"
- sleep 1
- echo "Installing Kernel..."
- dpkg -i INSTALL/linux-image-* &> /dev/null
- echo "Done!!!"
- sleep 1
- echo "Creating administrator user..."
- echo -n "Name: "
- read NAME
- adduser $NAME
- addgroup $NAME adm > /dev/null
- addgroup $NAME sudo > /dev/null
- echo "Done!!!"
- sleep 1
- echo "Updating package tree..."
- apt-get update > /dev/null
- echo "Done!!!"
- sleep 1
- echo "Installing GRUB2..."
- apt-get -y install grub-pc
- #echo -n "Device: "
- #read DEVICE
- #grub-install /dev/$DEVICE
- #grub-mkconfig -o /boot/grub/grub.conf
- 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 "Setting static address for eth1..."
- echo "auto eth1" >> /etc/network/interfaces
- echo "iface eth1 inet static" >> /etc/network/interfaces
- echo "address 10.0.0.30" >> /etc/network/interfaces
- echo "netmask 255.255.224" >> /etc/network/interfaces
- echo "gateway 10.0.0.30" >> /etc/network/interfaces
- echo "" >> /etc/network/interfaces
- echo "Done!!!"
- sleep 1
- echo "Installing some other packages..."
- apt-get -y install nano
- sleep 1
- echo "Done!!!"
- sleep 1
Advertisement
Add Comment
Please, Sign In to add comment