Category Archives: Linux How to

How to backup MySQL Database to a Text File

We will use the mysqldump utility included with mysql to dump the contents of the database to a text file that can be easily re-imported. SYNTAX: mysqldump -h localhost -u root -pmypassword databasename > dumpfile.sql EXAMPLE: mysqldump -h localhost -u … Continue reading

Share
Posted in Linux How to | Leave a comment

How to configure IPTables Firewall

This script is about to build a firewall in Linux OS by using iptables, the user only needs to follow and answer the simple and easy steps and the script will generate the user specified iptables rule in its original … Continue reading

Share
Posted in Linux How to | Leave a comment

How to install Lighttpd with PHP5 and MySQL on OpenSUSE 11.3

Lighttpd is a secure, fast, standards-compliant web server designed for speed-critical environments. This tutorial shows how you can install Lighttpd on an OpenSUSE 11.3 server with PHP5 support (through FastCGI) and MySQL support. I do not issue any guarantee that … Continue reading

Share
Posted in Linux How to | Leave a comment

How to change SSH Banner in Ubantu

Every time I connect to my Ubuntu development server through my ssh client, I receive the same message and I’m getting tired of seeing it, so I decided to change the message to something else. Here’s the message that I … Continue reading

Share
Posted in Linux How to | Leave a comment

How to genrate Random Password from Commandline

One of the great things about Linux is that you can do the same thing hundreds of different ways—even something as simple as generating a random password can be accomplished with dozens of different commands. Here’s 10 ways you can … Continue reading

Share
Posted in Linux How to | Leave a comment

How to disable ProFTP in Linux

First, look in your /etc/xinetd.d/ directory and see if there’s a file named psa_ftp in there. If not, you might have to make this change in your /etc/xinetd.conf file. Open up the file as root, and look for the following … Continue reading

Share
Posted in Linux How to | Leave a comment

How to Install Nginx with PHP5 and MySQL on CentOS 5.5

Nginx (pronounced “engine x”) is a free, open-source, high-performance HTTP server. Nginx is known for its stability, rich feature set, simple configuration, and low resource consumption. This tutorial shows how you can install Nginx on a CentOS 5.5 server with … Continue reading

Share
Posted in Linux How to | Leave a comment

How to Crop Multiple images in the same manner

Sometimes you’ll want to crop the same area from multiple images (think of taking the contents of the same window from a load of screenshots). Of course, you could fire up your favourite image editor to select and crop over … Continue reading

Share
Posted in Linux How to | Leave a comment

BOFH Scripts

After not writing for a little while (I call it writers block, you can call it lazy) I decided to do what any Linux Geek would do. I searched two different distributions software repositories for excuses. Fedora and Debian had … Continue reading

Share
Posted in Linux How to | Leave a comment

BOFH Scripts

After not writing for a little while (I call it writers block, you can call it lazy) I decided to do what any Linux Geek would do. I searched two different distributions software repositories for excuses. Fedora and Debian had … Continue reading

Share
Posted in Linux How to | Leave a comment