How to set default session timeout in Linux

My DC operation guys access Linux servers on a daily basis but somehow they never remember to log out. This is a security risk as anyone could gain access to the open console and create caos.

Today, yet again I’m forced to play the bad guy by dummy proofing my Linux servers by implementing default timeout for user sessions.

Bash and Korn both support the TMOUT variable which I will use to set the default timeout.

The etc/.bashrc file will apply the timeout system wide but if you need it to be user specific then modify the ~/.bashrc file instead.

Here’s how it’s done.

Log off, start a new session and wait for 5 minutes. Your session should terminate

Deluge BitTorrent Client released

A new verison of Deluge is out. Version

Changes made to this version shown below,

  • Fix force recheck
  • auto scraping of tracker if it doesn’t report number of peers on reply
  • fix web seed proxy preference
  • Fix adding of duplicate torrents
  • Fix timers for saving fastresume and uploaded memory
  • Fix rechecking on start
  • PnP fixes
  • Fix possible libtorrent crash in storage

Grab your copy here.

Source: Deluge

Happy birthday Nuffnang

Happy 1st birthday Nuffnang.

The name Nuffnang is no more a stranger amongst bloggers across Asia. From a humble beginng Nuffnang has grown considerably in past year. Almost every blogger I know is on Nuffnang now or has heard about it. The recent TV coverage really helped.

Today, Nuffnang is a year old and to show it’s appreciation Nuffnang has put together the “Nuffnang Pajama Party” which is scheduled for the 15th March 2008. Initialiy it was scheduled for the 8th but that date later conflicted with our general elections thus the move.

Read about the Pajama Party.

Source: Nuffnang Blog

How to increase file descriptors max limit on Linux

Today my DBA reported that the server she was working on was spitting out “too many open files” errors and no new processes could be started.

This is a common problem with DB servers with heavy transactions. In my environment there are 6 DB instances running on the server. No quite the optimized setup I would say.

The fix was to increase the total file descriptors kernel parameter count in the /etc/sysctl.conf file. I doubled my limit from 8192 to 16384.

The walk through,

1. Find out what the current open file descriptor limit is.


2. View how many open file descriptors are currently being used.

3. View how many files are open. The number returned might defer as 1 file descriptor can have multiple open files attached to it.

4. Edit the kernel paramneter file /etc/sysctl.conf and add line “fs.file-max=[new value]” to it.

5. Apply the changes.

Problem fixed.

How to install Microsoft Core Fonts on Linux

Most Linux desktop users don’t fancy the default fonts which ship default with Linux. Luckily there are a few ways you could easy enjoy Microsoft fonts on your Linux desktop.

The simplest way would be to use the package manager to add distro specific packages to install the fonts. openSUSE, Ubuntu and many other distros now provide the fonts with a disclaimer which you will have to agree to before the fonts get installed.

If the above did not work for you then download this rpm package: which will provide the fonts for you. Use your package manager to install the package or simply install it from the command line using the command below. An advantage of this rpm package is that it includes the Tahoma fonts which is not included by the distro specific packages.

The third and final way which is also the legal way would be to copy the fonts over from a licensed Windows XP computer. Move them over using winscp or a usb thumb drive,WinSCP in my case. Once moved over simply use your font’ manager to install them. In my case KDE, the font manger can be accessed at KDE Menu -> Configure Desktop -> System Administration -> Font Installer -> “Administrator Mode”.

Enjoy your fonts, drop me a comment if you need help.

© 2008-2012 The Danesh Project
Powered by Wordpress and made by Guerrilla. Hosted at ServerFreak