September 23rd in Linux/Unix by pbu .

Disable anonymous FTP login in cPanel

I have been looking at server logs and there have been a number of connections from different IPs logging in my server. By default anonymous FTP is enabled in cpanel.

Sep 22 19:47:08 server pure-ftpd: (?@x.x.x.x) [INFO] New connection from x.x.x.x
Sep 22 19:47:11 server pure-ftpd: (?@x.x.x.x) [INFO] Anonymous user logged in …

September 19th in Linux/Unix by pbu .

Install Apache Mod_Substitute

I came across interesting module for apache which does automatic search and replacement operations using regular expressions and decided to experiment on it. For information about this module documented in apache website

NOTE: This module is only available in Apache 2.2.7 and later

I was running Centos 5 and unable to …

August 26th in Linux/Unix by pbu .

Capturing a Screenshot of a Website

How to Capture a Website Screenshot in Linux

You might be wondering how to capture a website screenshot (as thumbnail) but
you dont know how to do it. Although PHP GD library is available, it is just
not possible to do the task with php. You will need a linux server running xwindow
system …

August 25th in Linux/Unix by pbu .

how to install a new .deb package in debian/ubuntu

If you have downloaded a new .deb package file and you dont know how to install it. here is an easy way to install it.

dpkg -i mypackage.deb

You cannot install by apt-get instead you need to use dpkg.

Hope this helps!

August 24th in Linux/Unix by pbu .

how to change default homepage with htaccess?

It is easy to change the default homepage with .htaccess file. Normally the default homepage is index.htm or index.php.

what if you want to set the default homepage to some other file (say home.php) . All you have to do is create a .htaccess file in the public html folder …

August 19th in Linux/Unix by pbu .

How to install Xvfb (X11 Server) in Linux Server

Xvfb is a virtual frame buffer X11 server that can be installed on linux servers without a monitor and graphics card. It can be customized for multiple displays and screens as well. In this tutorial i will show how to install, setup and configure a display. I am installing the …

August 18th in Linux/Unix by pbu .

Xvfb – Fatal server error: Couldn’t add screen 0

i was attempting to launch Xvf (virtual x server) and i have noticed that if i specify 32 bit depth i always get this error. Its a bit strange becuase it works perfectly fine for 24bit and 16bit colors.

Xvfb :1 -screen 0 800x600x32&

The error i get is

Fatal server error:
Couldn’t …

August 18th in Linux/Unix by pbu .

Fix: FreeFontPath: FPE “unix/:7100″ refcount is 2, should be 1; fixing

I was trying to run a Xorg window system and every time in between i was getting this nasty error in between the commandlines. I am running Centos/RedhatEL

FreeFontPath: FPE “unix/:7100″ refcount is 2, should be 1; fixing.

I was also getting this warning while attempting to launch firefox in my server …

August 18th in Linux/Unix by pbu .

Xvfb Problems & Fixes

Xvfb is a virtual frame buffer suitable for headless linux servers having no physical hardware like graphics card or monitor. I was trying to install Xvfb and i have a countless problems with my centos server.

Installing Xvfb

yum install Xvfb

When i try to run the Xvfb to start a virtual frame …

August 18th in Linux/Unix by pbu .

how to install KDE X Window System in linux commandline?

If you are struggling to install KDE (KDE desktop environment) an x window system here is a simple commandline.

All you have to do is

yum groupinstall “X Window System” “KDE (K Desktop Environment)”

If you want to install in Debian/Ubuntu

apt-get install kde

Thats it!