Notice!
This blog is moved to Samiux’s Blog.
Filed under: General, Linux, Security, Ubuntu, debian | Leave a Comment »
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 [...]
Filed under: General, Linux, Security, Ubuntu, debian, fedora | Leave a Comment »
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 [...]
Filed under: General, Linux, Ubuntu, debian, fedora | Leave a Comment »
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 [...]
Filed under: General, Linux, Ubuntu, debian, fedora | Leave a Comment »
There is a bug in quota package when filesystem is ext4 in Ubuntu 9.04 Server. You cannot activate quota function under ext4 on Ubuntu 9.04. However, we can use Ubuntu 9.10’s package instead. It is in alpha stage at the moment.
Step 1 :
Download the package at here and the current version is [...]
Filed under: General, Linux, Ubuntu | Leave a Comment »
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 [...]
Filed under: General, Linux, Ubuntu, debian, fedora | 1 Comment »
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
Filed under: General, Linux, Ubuntu, debian | Leave a Comment »
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 [...]
Filed under: General, Linux, Security, Ubuntu, debian, fedora | 2 Comments »
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 [...]
Filed under: Linux, Ubuntu, debian, fedora | 3 Comments »
Step 1 :
Edit postgresql.conf.
sudo nano /etc/postgresql/8.3/main/postgresql.conf
Step 2 :
The performance tuning setting is as the following :
(1) shared_buffers
Recommended : 0.25 * Available Memory
(2) work_mem
Recommended : Available Memory / max_connections
(If your queries tend to be more complicated, then divide that by 2. If you typically run very close to max_connections connections, then consider dividing by 2 [...]
Filed under: FreeBSD, Linux, Ubuntu, debian, fedora | 5 Comments »