Sunday, February 28, 2010

Control Your Children's Internet Access with Gnome Nanny in Ubuntu / Debian

Gnome Nanny is a parental control system. By using Gnome Nanny you can easily  control what your kids are doing in the computer. You can limit how much time a day each one of them is browsing the web, chatting or doing email. You can also decide at which times of the day they can do this things. Gnome Nanny filters what web pages are seen by each user, so you can block all undesirable webs and have your kids enjoy the internet with ease of mind, no more worries! You can download a black list of sites from here

for ubuntu users ppa archive available here
$ sudo add-apt-repository ppa:guadalinex-members/ppa
$sudo apt-get update

Or You can install through synaptic package manager

Saturday, February 27, 2010

How to Solve Screen Resolution Problem in Ubuntu / Debian with Command Line Utility xrandr


X Rezise and Rotare (xrandr) is a utility available in your Linux  system for reseting and resizing your screen resolution. It is a command line utility. so if your display disapperaed ?? No problem you can do it from a Terminal (Press Ctrl+Alt+f1).

First You have to find the possible resolutions with  xrandr -q

$ xrandr -q
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 1024 x 1024
VGA connected 1024x768+0+0 (normal left inverted right x axis y axis) 270mm x 200mm
1024x768 60.0*
800x600 85.1 75.0
640x480 85.0 85.0 75.0 59.9
720x400 70.1

Now you can set your resolution with command
$ xrandr -s 1024x768

More Details
$ man xrandr

Thursday, February 25, 2010

How to Control the CPU Usage of a Process in Ubuntu / Debian Linux with cpulimit

 
CPULIMIT is a very good utility, this can be utilized for limiting the cpu usage of a process.  Limits are expressed in percentage, not in cpu time. This  does not act on the nice value or other scheduling priority , but on the real cpu usage. System administrators can effectively use this for avoiding there headace. The % limit from 0-100 for single processor 0-200 for dual processor.

How to install  cpulimit in Ubuntu / Debian

Open a Terminal and Type the following command to install cpulimit:

$ sudo apt-get install cpulimit

Usage

To limit CPU usage of the process called firefox to 40%, enter:

# cpulimit -e firefox -l 40

To limit CPU usage of the process to 40% by using its PID, enter:

# cpulimit -p 1313 -l 40

To find out PID of the process use any of the following:

# ps -u shibu  (list all process for the use shibu)
# ps aux | grep firefox

You can also use absolute path name of the executable, enter:

# cpulimit -P /opt/firefox/firebox -l 40

Where,

    * -p : Process PID.
    * -e : Process name.
    * -l : percentage of CPU allowed from 0 to 100 for singe processor.
    * -P: absolute path name of the executable program file.