CentOS

How to fix X11 Forwarding in CentOS 5

This tutorial describes how to fix the ssh X11 forwarding problem in CentOS 5.5 server.

Autoselected keyboard map en-us
ERROR: Failed to open display:

Make sure that the "xorg-x11-xauth" is also installed in your system. If not, this comm

yum -y install xorg-x11-xauth

Ensure that "X11Forwarding" is enabled in your ssh server configuration file. Edit the file "/etc/ssh/sshd_config".

How to disable IPV6 in Fedora 12 and CentOS 5.5

This is a quick tutorial on disabling IPV6 in Fedora 12 and CentOS 5.5

echo -e "install ipv6 /bin/true\nblacklist ipv6" > /etc/modprobe.d/blacklist-ipv6.conf

Stop ip6tables service and disable it from starting automatically at system boot.

service ip6tables stop
chkconfig ip6tables off

How to find the fastest CentOS/Fedora mirrors

To speed-up your yum download, you need to install the yum-fastestmirror package. Its a yum plugin which chooses fastest repository from a mirrorlist. This plugin sorts each repository's mirrorlist by connection speed prior to downloading packages.

To install, simply type:

yum install yum-fastestmirror

Have fun...

How to configure your Cisco Router using Minicom in Linux CLI

I will assume that you are using GNU/Linux systems (Ubuntu,Debian, CentOS etc.) to configure your CISCO router using CLI.
Open your terminal and install minicom and setserial by typing this command in the terminal.

apt-get install minicom setserial

Check your serial port

dmesg | grep tty

The output should be like this:

[   18.439952] console [tty0] enabled
[   20.172975] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[   20.173725] 00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A

set your serial port

How to Install DAHDI in CentOS 5

Due to trademark issue with the name Zaptel, Digium changed the name Zaptel to DHADI (Digium Asterisk Hardware Device Interface). Asterisk 1.6.0 and later version will use DAHDI, while Asterisk 1.4 will support both Zaptel and DAHDI. Asterisk 1.2 will be unaffected by these changes.

Installing DAHDI
Download dahdi-linux and dahdi-tools from Digium's website

How to Install and Configure Net SNMP in Linux

Cacti and other Network monitoring tools requires SNMP (Simple Network Management Protocol) to monitor your server's network bandwidth, cpu loads, total ammounts of RAM and Hard Drive etc. To monitor your Linux server, you must have net-snmp installed.

Installing Net-SNMP on Debian or Ubuntu

For Debian, Ubuntu and other Debian-based distro, type this command:

apt-get install snmpd

Edit the /etc/default/snmpd file

vi /etc/default/snmpd

find this line

How to Install php5 and mysql-server 5 in CentOS 4

Enable centosplus repo to install php5 and mysql 5

yum enablerepo=centosplus install php php-mysql mysql mysql-server

How to Configure your CentOS 4 box as an Internet Gateway/Router using IP Masquerading

What is IP Masquerading?

IP Masquerade is a form of Network Address Translation or NAT which NAT allows internally connected computers that do not have one or more registered Internet IP addresses to communicate to the Internet via the Linux server's Internet IP address. The software interface which enables one to configure the kernel for IP masquerading is iptables.

To configure IP Masquerading, you need to have two LAN cards, a PC with CentOS 4 Linux installed.
Install the LAN cards and configure the IP address of your public and private network.

1. Configure the IP address of your public network, it should be similar like this one.

How to Configure Apache to Password Protect your Web Directory

If you are developing a new website and you do not want the general public to view it or you have an important documents on your web directory that you want to secure, you can configure your Apache web server to password protect your web directory. If a web directory is password protected and a user attempts to open either that directory area or a file in that directory, a window will appear requesting a required username and password. With the proper username and password entered, the user will be allowed to view files in that directory.

Howto Install Asterisk 1.4 and Asterisk GUI in CentOS 4 and CentOS 5

1. Preparing for installation

Installation of Asterisk 1.4 is slightly different than installing Asterisk 1.2. There are some slight changes in the installation and some packages is needed. Asterisk GUI is available for Asterisk 1.4 only and the installation package is avalabe in Digium's svn repository. To install Asterisk GUI you need to download the subversion package.

Do the command:

Syndicate content