CentOS

Install LAMP on CentOS 5

Install LAMP (Linux Apache MySQL and PHP)

yum install httpd php php-mysql mysql mysql-server
chkconfig httpd on
chkconfig mysqld on
/etc/init.d/httpd restart
/etc/init.d/mysqld restart

set MySQL root password


[ Read the rest ... ]

By admin on April 21, 2009 | Posts | A comment?
Tags: , , ,

Shortcut keys for the bash shell

Key Description
Ctrl + A Go to the beginning current line

[ Read the rest ... ]

By admin on April 12, 2009 | Posts | A comment?
Tags: , ,

Additional Repositories for Centos 5

Here we add a few additional repositories to Centos 5.

install yum priorities

First, install the Yum Priority package, which protect the base Centos 5 components from being overwritten.


[ Read the rest ... ]

By admin on March 22, 2009 | Posts | A comment?
Tags: , , , ,

ssh using keys (avoid password)

use public keys to authenticate 2 servers Server1 and Server2

on Server1

generate keys

  • do not input a password
  • this will generate 2 files: id_rsa (p[rivate key)

[ Read the rest ... ]

By admin on March 16, 2009 | Posts | A comment?
Tags: ,

Setup Putty for Linux

Software used:

Here is how I setup Putty to connect to CentOS, fix the problem of full screen tools (such as system-admin-network).…

[ Read the rest ... ]

By admin on March 8, 2009 | Posts | A comment?
Tags: , , ,

Install FreeNX on Centos 5.2

Software Used

Server:

  • CentOS 5.2 i386

Client:

  • NoMachine NX Client for Windows 3.2.0-13

On the linux box, install X Windows and Gnome first (if not installed yet)…

[ Read the rest ... ]

By admin on February 21, 2009 | Posts | A comment?
Tags: , , , ,

Linux filesystem hierarchy

As a Linux beginner, it is always hard to understand what all these directory names means. Here is a list of the directory hierarchy of CentOS 5.

[ Read the rest ... ]

By admin on October 11, 2008 | Posts | A comment?
Tags: , ,

Linux commands – chmod

chmod is used to change permissions on files and directories on a linux system.

An example file listing

ls -l
-rw-r--r-- 1 derek managers    0 Oct 10 19:11 myfile
drwxr-xr-x

[ Read the rest ... ]

By admin on October 9, 2008 | Posts | A comment?
Tags: ,

Install Webmin on Centos 5

Webmin is a powerful and popular web-based interface for system administration for Unix/Linux/BSD. Using any web browser, you can setup user accounts, Apache, DNS, file sharing and much more. Webmin…

[ Read the rest ... ]

By admin on September 13, 2008 | Posts | A comment?
Tags: , ,

Install NoMachine NX Server on CentOS 5

NX is a quick way to remote administrate my Linux servers (speed comparable to RDP or ARD).

The NoMachine NX Free Edition only allow 2 concurrent sessions (enough for administration…

[ Read the rest ... ]

By admin on September 11, 2008 | Posts | A comment?
Tags: , , , , ,