Install necessary software

Categories: Ubuntu; Tags: dash, bash, aliases;

In 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.GATEWAY

Setup you host name:

vi /etc/hosts

Sould contain:

Secure your Ubuntu 10.04 server

Categories: Ubuntu; Tags: SSH, ubuntu;

Login 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:

passwd

Add 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

Categories: Ubuntu; Tags: ubuntu, rsyslog, log, kernel;

Ubuntu 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

Categories: Ubuntu; Tags: firewall, iptables, init.d script;

There 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

Categories: Ubuntu; Tags: VPS, optimization, Linode;

A 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.

Books

NginX HTTP Server

The book includes detailed instructions for each of the processes it describes: downloading and installing the application, configuring and using modules, and much more. It provides a step-by-step tutorial to replace your existing web server with Nginx. With commented configuration sections and in-depth module descriptions, you will be able to make the most of the performance potential offered by Nginx.

Source: Packt Publishing

Google AdSense

Affiliates