HOWTO : NTop on Ubuntu 9.04 Server

Install NTop to monitor all the traffic of your machines in your network.
Step 1 :
sudo apt-get install ntop rrdtool
Step 2 :
Set the admin password.
sudo ntop -A
Step 3 :
sudo ntop -d -L
You can add to the /etc/rc.local to make it execute when boot up automatically.
Step 4 :
Access ntop at http://ip_address_ntop:3000
Enjoy!

HOWTO : WebDAV on Ubuntu 9.04 Server

WebDAV is a file manager that running on web server. You can access it like on your desktop. Easy and enjoyable.
Install Ubuntu 9.04 server as usual and select LAMP and OpenSSH when asked for choice. You can also install vsFTPd if you want to but it is optional.
Step 1 :
sudo a2enmod dav_fs
sudo [...]

HOWTO : Cacti on Ubuntu 9.04 server

*** THIS HOWTO IS INVALID AND PENDING FOR UPDATE ***
Cacti is a graphical network traffic analysis system based on Apache, PHP, MySQL, SNMP and RRDTool. It can monitor the machines in your network.
To install Cacti on Ubuntu 9.04 is very easy and straight forward.
Step 1 :
Install Ubuntu 9.04 server as Cacti server. Select [...]

HOWTO : Install Proxmox VE 1.3 on debian 5.01 (Lenny) AMD64

Since disk image of Proxmox VE 1.3 cannot install to my RAID 5EE or 6 hard drive space that larger than 2TB. I have a 3.6TB RAID 5EE hard storage. Therefore, I install it by packages on debian Lenny AMD64.
Installation of debian
Download the netinstall disk image of debian 5.01 (Lenny) AMD64 (should be AMD64, [...]

HOWTO : IPython for Python programming on Ubuntu

The current IPython is for Python 2.5 at this writing.
Install IPython as your Python programming environment.
sudo apt-get update
sudo apt-get install python-setuptools
sudo easy_install IPython
Once IPython is installed, you can run it as the following :
ipython
Type quit() to quit.

HOWTO : Security enhanced your Ubuntu 9.04 LAMP server with AppArmor

Step 1 :
Check if AppArmor is enabled or not. And make sure MySQL profile is enabled too.
sudo apparmor_status
Step 2 :
Create a profile of Apache2.
sudo aa-genprof apache2
sudo nano /etc/apparmor.d/usr.sbin.apache2
Add the following lines within ^DEFAULT_URI bracket.
/usr/sbin/suexec2 rix,
/usr/share/apache2/** r,
/var/log/apache2/** rwl,
/var/xoops/** r,
/var/www/xoops/** r,
Step 3 :
Put the profile in complain mode.
sudo aa-complain /etc/apparmor.d/usr.sbin.apache2
sudo /etc/init.d/apache2 restart
Step 4 :
After running the [...]

HOWTO : Make your Apache to use SSL

Step 1 :
sudo a2enmod ssl
Copy the default-ssl to the name as your current XOOPS domain, e.g. samiux.com.
sudo cp /etc/apache2/sites-available/default-ssl /etc/apache2/sites-available/samiux.com-ssl
sudo nano /etc/apache2/sites-available/samiux.com-ssl
Do not change anything inside but except the following :
DocumentRoot /var/www/xoops
ServerName www.samiux.com # add this line under DocumentRoot
<Directory /var/www/xoops>
Step 2 :
sudo nano /etc/apache2/sites-available/samiux.com
Make sure you enabled rewrite module as at previous HOWTO. [...]

HOWTO : SSH to use RSA key for login

ssh-keygen -t rsa -b 2048
or
ssh-keygen -t rsa -b 4096
“Enter file in which to save the key (/home/samiux/.ssh/id_rsa): (Hit Enter)”
Press “Enter”
“Enter passphrase (empty for no passphrase):”
Enter your password twice.
nano /home/samiux/.ssh/id_rsa.pub
Copy the content.
SSH to your server. At the username directory.
sudo mkdir .ssh
sudo nano /home/username/.ssh/authorized_keys
Then pasted the previous copied key onto the authorized_keys file. Save [...]

HOWTO : Almost a perfect and secure Ubuntu 9.04 LAMP server

If you want to build a production LAMP server with Ubuntu 9.04 and hosting a Content Management System (CMS) such as XOOPS, you can follow the following steps to make your server almost perfect and secure. You are recommended to install a commercial or DIY Unified Threat Management System (UTM) for your network or [...]

HOWTO : secure your Ubuntu 9.04 server in a passive way

Root account access warning
Add the following to the top of the file /root/.bashrc and you will be informed by email when the root account is being accessed.
echo -e “Root Shell Access on `tty` \n `w`” | \ mail -s “Alert: Root Access” samiux@gmail.com
Hardening SSH
The official port of SSH is 22. You can change it [...]