Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo "Initializing Keyboard configuration tool..."
- dpkg-reconfigure keyboard-configuration
- echo "Done!!!"
- sleep 1
- echo "Initializing Time Zone configuration tool..."
- dpkg-reconfigure tzdata
- echo "Done!!!"
- sleep 1
- echo "Initializing Console configuration tool..."
- dpkg-reconfigure console-setup
- # Follow the following settings to make it looks like the usual Ubuntu Console
- # UTF-8
- # Latin1 and Latin5...
- # VGA
- # 16
- echo "Done!!!"
- sleep 1
- echo "Installing Server tools... (1/2)"
- apt-get install dnsmasq ntp openssh-server iptables-persistent
- sync
- echo "Done!!!"
- sleep 1
- echo "Cleaning it up..."
- apt-get clean
- sync
- echo "Installing Server tools... (1/2)"
- apt-get install samba libpam-smbpass
- sync
- echo "Done!!!"
- sleep 1
- echo "Cleaning it up..."
- apt-get clean
- sync
- echo "Done!!!"
- sleep 1
- echo "Installing some other usefull tools..."
- apt-get install htop nano
- echo "Done!!!"
- sleep 1
- echo "Configuring iptables..."
- chmod +x iptables.sh
- sh iptables.sh
- cp iptables.sh /root/
- echo "Done!!!"
- sleep 1
- echo "Creating simbolic link for (dnsmasq needs this)"
- dpkg-reconfigure resolvconf
- echo "Done!!!"
- sleep 1
- echo "Configuring Server services..."
- cat dnsmasq.conf > /etc/dnsmasq.conf
- cat smb.conf > /etc/samba/smb.conf
- cat ntp.conf > /etc/ntp.conf
- echo "Done!!!"
- sleep 1
- echo "Enabling IP forwarding..."
- echo "net.ipv4.ip_forward=1" > /etc/sysctl.conf
- echo "Done!!!"
- sleep 1
- echo "Cleaning it up..."
- cd /
- apt-get clean
- rm -rf INSTALL
- sync
- echo "Done!!!"
- sleep 1
- echo "Rebooting in 3... (Press CTRL-C to cancel)"
- sleep 1
- echo "Rebooting in 2... (Press CTRL-C to cancel)"
- sleep 1
- echo "Rebooting in 1... (Press CTRL-C to cancel)"
- sleep 1
- reboot
Advertisement
Add Comment
Please, Sign In to add comment