My blog is moved!

Notice!
This blog is moved to Samiux’s Blog.

HOWTO : Hiawatha 6.16 web server on Ubuntu 9.04 Server

Hiawatha is a web server which is developed by Hugo Leisink who is in a great interest in IT security. It is designed with security in mind. It comes with Cross-site Scripting (XSS) prevention, Cross-site Request Forgery (CSRF) prevention, DoS/flooding protection, and SQL injection prevention.
It works with PHP and MySQL. Therefore, the [...]

HOWTO : Build deb from source on Ubuntu 9.04

Download checkinstall
sudo apt-get install checkinstall
Download the source file, such as foo.tar.gz and extract it.
wget http://www.foo.com/downloads/foo.tar.gz
tar -xzvf foo.tar.gz
cd foo
./configure
make
sudo checkinstall
After that, the package will be installed automatically and a deb is also generated. You can uninstall package as usual.
For checkinstall usage, please man it.

HOWTO : Clean up all log archives after a period of time

If I understand fully and correctly, logrotate just compress log files and the number of compressed log files will be growing up after a period of time. It will not delete those outdated compressed log files automatically.
Therefore, I write the following shell script for the captioned purpose which will delete all the files at [...]

HOWTO : Passive mode for Pure-FTPd on Ubuntu Server 9.04

I used to use vsFTPd. However, I recently need to test ISPConfig 3 which requires to install Pure-FTPd. My testing server is behind NAT and FTP should be running in passive mode. How to do it on Pure-FTPd?
Assumed that your server IP is 192.168.50.100 and you want to specify a port range [...]

HOWTO : Torrentflux-b4rt with Cherokee on Ubuntu 9.04 Server

I am going to build a Bittorrent server with Cherokee web server instead of Apache. I call it as LCMP – Linux, Cherokee, MySQL and PHP. It may be the fastest web server in the world so far. You are not require to edit the config files. All settings are completed [...]

HOWTO : Regenerate SSL certificate and Reset MySQL root password on Ubuntu 9.04

When your SSL certificate is expired or need to regenerate for some reason, you can issue the following command under Ubuntu 9.04.
sudo make-ssl-cert generate -default-snakeoil –force-overwrite
When you forgot the root password of MySQL, you can reset it by issue the following command under Ubuntu 9.04.
sudo dpkg-reconfigure mysql-server-5.0

My Perfect Home Network 2009 (Version 4.0)

The following is the setting of “My Perfect Home Network 2009 (Version 4.0)”. Virtualization technology can reduce the number of servers you owned. It saves room, electricity and money as well as manpower to manage. Therefore, it has one more term – Green Computing.
Configuration of KVM Server
2 x Intel Xeon E5420 Quad-Core [...]

HOWTO : Add or rename network interface on Debian 5.0

When you insert a new network interface to a already setup server, it will not recognized your new added network interface correctly. However, we can edit it manually.
Step 1 :
sudo nano /etc/udev/rules.d/70-persistent-net.rules
Edit the MAC address and/or name of the interface when necessary.
Step 2 :
sudo nano /etc/network/interfaces
Add a new entry for the new interface accordingly.
auto [...]

HOWTO : Godaddy.com’s Relay Mail Server with Postfix on Ubuntu Server

Your Internet Services Provider (ISP) may block SMTP port (Port 25) if you are not using a business plan (like in Hong Kong). However, you can still send email with reverse lookup of your domain name when your domain registrar is Godaddy.com.
Step 1 :
Create and enable your free email account at Godaddy.com when you [...]