sudo nano /etc/network/interfaces
2. If there is no line auto eth0 add it after the lo interface definition
iface eth0 inet dhcp
It should become:
auto eth0 ##Note, this line may have to be added.
iface eth0 inet static
address XXX.XXX.XXX.XXX
netmask XXX.XXX.XXX.XXX
gateway XXX.XXX.XXX.XXX
4. If there is another network interface, add a new line auto eth1, and copy the settings above substituting eth1 for eth0, and the IP address.
sudo /etc/init.d/networking restart
8. Test the network by pinging another server (preferably outside of the LAN)
9. ping -c2 google.com
nameserver XXX.XXX.XXX.XXX
nameserver XXX.XXX.XXX.XXX
nameserver XXX.XXX.XXX.XXX
2. sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install build-essentials linux-headers-`uname -r`
Note that the backtick “`” is used, not the apostrophe ”'“
sudo mount /dev/cdrom /cdrom
6. Copy the gzipped tar file to /tmp (replacing the “x.y.z-aaaa” with the numbers of the actual filename.)
sudo cp /cdrom/VMwareTools-x.y.z-aaaaa.tar.gz /tmp/
7. Untar the tarball
sudo tar -xf VMwareTools-x.y.z-aaaa.tar.gz
8. Run the installer
9. cd vmware-tools-distrib
sudo ./vmware-install.pl
2. sudo apt-get install ntpdate
sudo crontab -e
3. Add the following line to the end of the file:
30 * * * * ntpdate ntp.ubuntu.com >/dev/null 2>&1
sudo apt-get install smbfs
2. Install NFS_COMMON to connect to Linux Filesystems:
sudo apt-get install nfs-common
3. Install and configure SSH
sudo apt-get install openssh-server
II. Open the /etc/ssh/sshd_config file, and change
PermitRootLogin yes
PermitRootLogin no
III. If this is not a public server, then change the
Port 22
to an alternative port number (9009 is a good choice).
sudo /etc/init.d/ssh restart
Sudo apt-get install ufw
Open ports in the software firwwall by running.
• Allow 80
• Allow 9009
sudo apt-get install fail2ban
The default configuration will work fine.
sudo shutdown -r now
Have a question about something in this article? You can receive help directly from the article author. Sign up for a free trial to get started.
Comments (0)