Archive for the ‘Unix’ Category

How to add Group on Ubuntu

May 15th, 2009 by @HKw@! | No Comments | Filed in Ubuntu, Unix

You can add a group and add user to a group using unix command.

In this example, i use linux ubuntu to do it

Add a Group

sudo groupadd samba

Add user to Group

sudo adduser johnson samba

To check what Group user belong to

group [username]

eg:

root@ubuntu:/# groups test
test users

Add a existing user to existing group

usermod -g [group name] [username]

eg:

root@ubuntu:/# usermod -g it techkaki
Share

How to set time and date using unix command

May 8th, 2009 by @HKw@! | No Comments | Filed in Unix

date
Date displays the date and time of the system, used by root it can also be used to change the date and time of the system.

If you just enter:

date

You will get the date of the system, like this;

Fri May 18 19:36:53 MYT 2009

You can set the date by using root user:

Usage:

date nnddhhmm[[cc]yy][.ss]

(more…)

Share

How to install AMP (Apache, PHP and MySQL)in centos

April 27th, 2009 by @HKw@! | 1 Comment | Filed in centos, Unix

I just learn to setup AMP on centos. Below are the steps

  • Download a copy of CentOS Linux and install it
  • Once your CentOS is installed. type yum install httpd to install apache web server
  • type yum install php to install PHP
  • Once PHP installed successfully, type yum install mysql-server mysql
  • Once everything finish, type service httpd start to start your apache web server, screen will show you if web server service successfully started
  • type service mysqld start to start your mysql server
  • Once both services is running, you can point your browser to http://localhost and you should see a welcome page from CentOS
  • To test php is running properly, go to /var/www/html and create an index.php file with the content below
Share
BlogCatalog