Linux install the 3D accelerated nVidia drivers

Posted on in Categories FAQ, Howto, Linux, X server last updated July 16, 2006

This is one the most common question asked by newbie: “How do I get (download) and install the 3D accelerated nVidia drivers for Linux system? I am using Fedora/Redhat/Gentoo/(Your distro) Linux…

Well, nVidia drivers are not included in default kernel as they are not open source drivers. nv driver only provide 2d support.

Step # 1: Download drivers

Download 3D accelerated nVidia drivers. Don’t forget to read installation instructions provided on same site/page.

Step # 2: Configure X

No need to edit X config file by hand. nvidia-xconfig is a tool for manipulating X config files, specifically for use by the NVIDIA Linux graphics driver. So, NVIDIA now provides a utility to assist you with configuration of your X config file. Type the following command to configr X:


Please note that above site also carries driver for FreeBSD desktop.

Linux Iptables block remote X Window server connection

Posted on in Categories Iptables, Linux, Security, X server last updated October 29, 2007

It is true that connections to remote X Window servers should be always made over SSH. SSH supports X windows connections. So my task was allow X over ssh but block unprivileged X windows mangers TCP ports.

The first running server (or display) use TCP port 6000. Next server will use 6001 and so on upto 6063 (max 64 X managers are allowed from 6000-6063).

So assuming that you are going to force user to use ssh for remote connections, here are rules for IPTABLES (add to your firewall script):

iptables -A OUTPUT -o eth0 -p tcp --syn --destination-port 6000:6063 -j REJECT
iptables -A INPUT -i eth0 -p tcp --syn --destination-port 6000:6063 -j DROP

a) The first rules blocks outgoing connection attempt to remove X windows manger.

b) The second rule block incoming request for X windows manger. By using –syn flag you are blocking only connection establishments to the server port.

This is the good way to disallow unprivileged X windows mangers – TCP 6000:6063 ports :)

See also:

Weird GNOME problem: INIT: Id respawning too fast: disabled for 5 minutes

Posted on in Categories News, RedHat/Fedora Linux, Troubleshooting, X server last updated July 5, 2006

Yesterday I messed up badly with GNOME configuration. My R & D result into an error on the first console that read as follows:

INIT: Id respawning too fast: disabled for 5 minutes


GNOME was broken badly. Screen was just flicked several times. To fix this problem:

a) Reboot Fedora Core Linux box

b) Boot into single user mode (or text mode i.e. mode init 3 will also do the job,IMPO)

c) Type the following command to fix Display card related stuff:

# redhat-config-xfree86 –reconfig

Above command allows you to fix all problems or allows reconfiguring X windows system.

Quickly list all available fonts

Posted on in Categories Linux, News, X server last updated May 21, 2006

fc-list is a quick and handy command to lists fonts and styles available on the system for applications using fontconfig. You can use fc-list to find out whether particular language font is installed or not.

To list all font faces:
$ fc-list

To lists font faces that cover Hindi language:
$ fc-list :lang=hi

Lohit Hindi:style=Regular

Black Screen While Starting X window

Posted on in Categories Debian Linux, Linux, Linux desktop, RedHat/Fedora Linux, Suse Linux, Sys admin, Tips, Troubleshooting, Ubuntu Linux, X server last updated July 30, 2007

My friend is new to Linux, everything was fine until he made some changes to X, which result into this problem. Now whenever he types command startx to start X he get a blank screen. Finally, he contacted me me via yahoo and asked me to get rid rid of this problem.

Step # 1: Reset blank X screen

First, get out of Blank screen by pressing combination of keys Ctrl+Alt+Backspace. If this fails, reboot system.

Step # 2: Reconfigure X server display

At shell, prompt type the following command to reconfigure X display.

If you are using Red Hat /Fedora / CentOS Linux type command:
# redhat-config-xfree86
If you are using Debian Linux type command:
# dpkg-reconfigure xserver-xfree86
OR login as the root user and type command:
# XFree86 -configure

Step # 3: Test new setup

Type startx to test your new settings:
# startx
OR if you used XFree86 –configure command to reconfigure X, then test it with following command:
# XFree86 -xf86config /etc/X11/

See also:

xrandr: Linux Resize / Set The Screen Size Quickly Via Command Line Options

Posted on in Categories Debian Linux, Howto, Linux, Linux desktop, RedHat/Fedora Linux, Tips, Troubleshooting, Tuning, Ubuntu Linux, UNIX, X server last updated February 23, 2014

Generally, I need to switch my Gnome screen size to 800×600 to watch TV via TV-Tunner card as my card supports max 800×600 resolution. For rest of my work I prefer to use 1024×768 pixels. You can create a shortcuts on the desktop to resize screen quickly: