Install necessary software
Submitted by Vlad on Thu, 06/24/2010 - 10:53In order to configure your network adapter with the static ip provided, you have to modify the following file:
vi /etc/network/interfaces
And add/modify the following lines:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address YOUR.EXTENAL.IP.ADDRESS
netmask 255.255.255.0
gateway YOUR.GATEWAYSetup you host name:
vi /etc/hosts
Sould contain:
Secure your Ubuntu 10.04 server
Submitted by Vlad on Thu, 06/24/2010 - 10:40Login with putty or any other ssh client as root with your assigned password
ssh root@173.203.206.78
You can change your root password if you need to with the following command:
passwdAdd your own user:
adduser jdoe
If you want that sudo su command not to ask for a password:
visudo
Add the following line at the end of the file
Ubuntu 10.04 and RSysLog kernel messages
Submitted by Vlad on Tue, 06/22/2010 - 14:33Ubuntu 10.04 comes with a modification in the way rsyslog processes kernel messages on certain kernels like Linode's latest Paravirt. You will se the following error in your kern.log file everytime the machine is rebooted or you restart the rsyslogd daemon:
kernel: imklog: Cannot read proc file system, 1.
This bug is described here: https://bugs.launchpad.net/ubuntu/lucid/+source/rsyslog/+bug/523610.
Also , because of the fact that kernel messages are not logged you won't be able to use iptables logging and programs like psad which are looking for those messages in order to block malicious traffic.
For the moment you can get rid of this error by doing the following trick:
Installing the firewall
Submitted by Vlad on Tue, 06/22/2010 - 14:17There are many ways of establishing iptables rules in Linux, but my favorite one is to create my own bash script in which I can use things like conditional filtering. So for that we will avoid using iptables-save(restore) and we'll create the following script:
Ubuntu 10.04 Optimized Virtual Private Server
Submitted by Vlad on Tue, 06/22/2010 - 13:49A virtual private server (VPS) is a physical server that has been divided (using software) into several virtual machines, each acting as an independent dedicated server. The physical resources such as RAM, CPU and disk space are still shared, but each VPS acts independently of the others. Each VPS can have a different operating system and can be configured in any way possible.



