Wednesday, October 8, 2008

Linux - Open Source - Daily Tips

Install New fonts in Linux ( Fedora and RedHat )

1. Download the font

2. Copy that font in to /usr/share/fonts

3. Then restart the Xserver [Log off and Log in again].

4. Now new font comes to usage for all applications
like Mozilla,Thunderbird etc....

Note : Tested Under Redhat and Fedora.


Iptable Tips

Open FTP (port 21) for local network

 iptables -I INPUT -s 192.168.1.0/255.255.255.0 -p tcp --dport 21 -j ACCEPT
OR Block FTP port for local network

 iptables -I INPUT -s 192.168.1.0/255.255.255.0 -p tcp --dport 21 -j REJECT
Change the file descriptor value

It will increase the performance of the whole server or system.

View the existing value using -> cat /proc/sys/fs/file-max

Change the Maximum file descriptor value by using this command -> echo 65536 > /proc/sys/fs/file-max

The above example, we should change file descriptor value to 65536.

Today's Quote:
The Linux philosophy is 'Laugh in the face of danger'. Oops. Wrong One. 'Do it yourself'. Yes, that's it
--Linus Torvalds--

Regards,
Vivekanandan N.