Monday 31 October 2011

Using sudo in Linux


Using sudo

If a server needs to be administered by a number of people it is normally not a good idea for them all to use the root account.

Secure Remote Logins and File Copying

Introduction

One of the most popular file transfer and remote login Linux applications is OpenSSH, which provides a number of ways to create encrypted remote terminal and file transfer connections between clients and servers.

Linux Boot Process


Introduction

Learning how Linux boots up is critical. When you have this information you can use it to alter the type of login screen you get as well as which programs start up. Read on for the details.

To add new user in to the system using text base command

The 'useradd' and 'adduser' command can be use to create new user account in Linux Fedora Core system.  Please note that the 'adduser' command is a sybolic link to 'useradd' command so that these two command actually is the same command that link together.

Saturday 29 October 2011

How to install Asterisk 1.4 from RPM and FreePBX 2.7 on Centos OS 5


How to install Asterisk 1.4 from RPM and FreePBX 2.7 on Centos OS 5

This is a very detailed comprehensive step by step tutorial on how to install Asterisk 1.4 from the digium website rpm repository followed by installing FreePBX 2.7 version on CentOS 5.
[toc maxlevel:5]

Note

How to redirect a URL or website in PHP


Create a file called index.php and add the following code in it

How to create Unix files with the date and time appended to the filename


touch filename-`date '+%Y-%m-%d'`  creates a file: filename-2009-05-06
touch filename-`date +"%Y%m%d%H%M%S"` creates a file:  filename-20090506142053
touch filename- `date +"%Y%m%d%H%M%S"` creates a file: filename-2009-05-06-152446
touch filename-`date +"%Y-%m-%d-%H:%M:%S"`  creates a file: filename-2009-05-06-15:36:36

How to Install BackupPC on CentOS 5


1. Introduction


BackupPC is an excellent enterprise level backup solution. I've been using BackupPC for a few months now and I decided to write an "How To" on installing and configuring BackupPC on CentOS 5 Linux.

How to install KDE and VNC server on CentOS 5


You have a CentOS 5 machine and you would like to install KDE (K Desktop Environment) and a VNC server using yum utility. Follow the steps below.

Dokuwiki templates and plugins for additional functionality


Below is a list of Dokuwiki plugins and templates that can be used to provide additional functionality in Dokuwiki.

1. Dokuwiki Templates:

How to move a Dokuwiki install from an existing server to a new server


A current working install of Dokuwiki can be moved from the existing server to a new server by following the steps below:

How to check the CPU and Memory Load on a Linux machine


yum install sysstat
sar -A 
  1. Install sysstat package on CentOS using yum:
  2. Execute the sar command:
  3. You can use KSar Java applet to visually see the output of sar

How to create a simple backup script with current date and time


Below is a Linux Shell script to create a backup directories with the current date and time stamps

How to install a standalone mysql database server on CentOS 5.6


For small web applications using MySQL database it might be okay to have both the web application and MySQL database on the same server. But as your database size grows, in order get the best performance, it's better to separate the database server from the web application server. In other words, you run the MySQL server on one server and the web application on a different server.
Let's say we have the following scenario:

How to resize a partition and filesystem to use unallocated sectors

If you cloned a CentOS disk using clonezilla and if your source disk is smaller than the destination disk, it's possible that there will be unallocated sectors at the end. To fix it you need to do two things:

1. Resize the last parition to use the unallocated sectors at the end using fdisk or Gparted.
2. Resize the filesystem to make it aware of the resized partition.




Dokuwiki Installation on CENTOS


 Dokuwiki is an excellent wiki software that can be installed very easily on a CentOS 5 server by following the steps below:



1. Introduction

After reading about several wikis, I decided to go with DokuWiki. One advantage I see is that it does not use a backend database. All the files are stored on the filesystem. Easy backup and portability. Can view the files even when the internet or server is down.

HOW TO SHUTDOWN A SYSTEM BY USER


Before going through this documentation first try to login as user and try to shutdown or reboot the system. 

                   As we know that normal user can not shutdown or reboot the system in linux. Because they don’t have privileges to do that.   

                  So try the below procedure to shutdown the system by user.


How to Create YUM repository in Redhat


Creation of YUM repository

By default createrepo-0.4.11-3.el5.noarch.rpm is not installed

1)
Need to install following packages

createrepo-0.4.11-3.el5.noarch.rpm
vsftpd-2.0.5-16.el5.x86_64.rpm