configuration

124 - To fix slow ssh login

If your login Linux are really slow, it may be that reverse DNS is not working correctly.
To fix the problem is to either add the IP address to /etc/hosts, or modify your sshd_config file by setting UseDNS to no:

# vi /etc/ssh/sshd_config

--------------------------------------------------------------------------

122 - Network Configuration Files

You can change the network configuration by editing a few files.

1. CentOS & RedHat OS

Host Name : /etc/sysconfig/network

Network Device : /etc/sysconfig/networking/devices/ifcfg-eth0  ifcfg-eth1

Host Name List : /etc/hosts

DNS Server : /etc/resolve.conf

DNS Files NIS : /etc/nsswitch.conf

After editing files, you need to execute the follwoing command :

121 - crontab examples

There are various examples :

120 - To install PHP 5.2.x & MySQL 5.1.x in CentOS 5.x

phpMyAdmin v3.x needs to have PHP 5.2 and later version. But CentOS 5.x has still PHP 5.1.x.
This is one of methods on PHP & MySQL upgrade processes for CentOS 5.x.

1. Check your software versions in terms of PHP & MySQL

# php -v
# yum list installed php*

# mysql -V
# yum list installed mysql*

2. Install third party repository

114 - ssh : root login

 If you want to permit someone to login directly to the root login account via ssh, you can define three methods
of control in the /etc/ssh/sshd_config file:

        PermitRootLogin         no

This will disable all root logins. To enable root logins with any authentication method, use the following setting:
 
        PermitRootLogin         yes

113 - Forget root password.

Sometimes an administrator forgets root password. You need to reset it for login.

1. Reboot OS with single mode.

Login :
[Ctrl] + [Alt] + [Delete] to reboot the operation system

2. Enter Ctrl + x

When the grafical screen comes up, please enter [Ctrl] + x
It shows "OS reboot options list"

3. Edit a reboot line.

111 - Linux Rescue Mode

The official Red Hat DVD (disk 1) can serve as a bootable emergency disk for most modern PCs with BIOS that can boot from DVDs.
It includes file system tools for emergency system administration. Using this disc you can attempt to recover from file system-related crashes.

When your system crashes due to a power failure or any other dire reasons, you may find your file system to be corrupt, and Red Hat Linux
might refuse to boot as normal. In such a case do the following:

1. Insert Red Hat CD-ROM (disc 1) in your DVD or CD-ROM and boot your computer.

109 - Postfix(SMPT) & Dovecot(pop3, imap) for ubuntu server

1. Postfix (SMTP)

Postfix is the default Mail Transfer Agent (MTA) for Ubuntu. It is in Ubuntu's main repository, which means that it receives security updates.
This explains how to install and configure postfix and set it up as an SMTP server.

In order to install Postfix with SMTP-AUTH and TLS, first install the postfix package from the Main repository using your favorite
package manager. For example:

108 - CUPS (Common UNIX Printing SystemTM)

The Common UNIX Printing SystemTM, or CUPS, is the software you use to print from applications like the web browser
you are using to read this page. It converts the page descriptions produced by your application into something your printer
can understand and then sends the information to the printer for printing.

Every printer manufacturer does things differently, printing can be very complicated. CUPS does its best to hide this from you
and your application so that you can concentrate on printing and less on how to print.

107 - NTP Server Configuration

The NTP server (ntpd) can be setup to run continuously. This will keep the system clock synchronized.
You will also be able to server NTP clients on your LAN, if you wish. 

1. Edit /etc/ntp.conf

Syndicate content