Category: GNU

Using tar together with gzip

Posted by – September 22, 2011

How can I extract a tar.gz or .tgz file?
Files with extension tar.gz or .tgz are tar files compressed with gzip. On Unix extract them with:

gunzip < file.tar.gz | tar xvf –
gunzip < file.tgz    | tar xvf –
Can gzip compress several files into a single archive?
Not directly. You can first create a tar file then compress it:

tar cvf –  filenames | gzip > file.tar.gz


Posted by – October 7, 2010

在makefile嵌shell命令的问题: (how to using shell commands within makefile?):
ifeq ($(APP),)
for dir in $(subdir-y) ; do \
{ \
if [ -d $$dir ]; then \
$(MAKE) -C $$dir cleanc; \
else \
echo "$$dir is not exist"<strong>; \</strong>
fi <strong>\</strong>
} \
make -C $(APP) cleanc

Ubuntu mount permanently

Posted by – September 9, 2010

Ubuntu mount permanently: ( if not root, use sudo before each command below)
1. mkfs.ext3 or mkfs.ext4 your device like below:

[code lang=”bash”]mkfs.ext3 /dev/sda4

2. Modify /etc/fstab, and append below line to the file:

[bash]/dev/sda4    /home/freespace    ext3    default,noatime    0     0

3. reboot your box:


Using more /etc/fstab to see more info about how to add entry to fstab file see below:

root@JinLab:~/sda4# more /etc/fstab

# /etc/fstab: static file system information.
# Use ‘blkid -o value -s UUID’ to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# / was on /dev/sda2 during installation
UUID=c1bc5ff4-157b-4e33-a30f-12e5691d77d0 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda1 during installation
UUID=69230e89-79fa-4bca-a37f-ce9461c31129 none            swap    sw              0       0

# /root/sda4 on /dev/sda4
UUID=2dbba927-0fb3-4ad0-97f0-9887364e5edc /root/sda4       ext3 defaults,noatime 0    0

Linux All Man page

Posted by – August 12, 2010

Login into

FSF: Thanks for supporting free software!

Posted by – May 27, 2010

Thanks for supporting free software!

Support freedom

Gnome Nanny, a Parental Control System for Linux

Posted by – May 25, 2010

Gnome Nanny, a Parental Control System for Linux

Refers to:

nanny logo

I am not in favour of monitored or filtered Internet at all. I love Internet the way it is and I hate if someone tries to censor it. But we have to admit that there is a lot of bad stuff on the Internet that you definitely don’t want little kids to come across. Gnome Nanny is a parental control system build for this purpose. Not just the websites, it can also be used to monitor and control the time spent on web or chatting.


  • You can easily control what the kids/users are doing on the computer.
  • How long a user can be using the compuer, browse the web, email and instant message.
  • You can decide the time of the day you want them to do these things.
  • You can even filter out the web pages seen by each of the user by blocking undesirable websites.
  • Its really easy to understand and configure.

The most recent version of Nanny available is 2.29.2. No stable version has been released yet.

Download and Install the Latest version of Nanny in Ubuntu

In order to install the latest development release in Ubuntu, you will have to install it using the ppa. You can find the PPA archive of Nanny here. Follow the instruction in this howto to install nanny in Ubuntu from the PPA. In case of any trouble, leave a comment.

Other distro users may install the source packages from their download page and give it a try.

After installation you can find it at System -> Administration -> Parental Control.

How to Configure Nanny

Understanding the working of Nanny is really easy. Its developers have worked pretty well to improve its usability. In the first glance, you will easily understand how to use it. You can find it in System -> Administration -> Parental control.

With these bars(click them), you can select which part of the day you want a particular service to be active. Different services are mentioned in separate tabs. Just check the option above to activate any option.

Nanny’s Web Content Filtering System

If you want to control the websites that can be accessed you can easily do that by maintaining lists of allowed and blocked sites. Check the enable web filtering box in the web browser tab and click configure.

You can even download the list of blacklisted websites from internet and ofcouse manual addition is available.

Limitations of Nanny

Nanny is a pretty good software and probably the only Parental control system for Linux I know. But it connects the tasks with the respective applicaitons e.g. pidgin with chatting, thunderbird with emails and browser with web surfing. This seems logical but now a days each of these activities are possible on the browser. You can’t expect a 10-12 year old kid to use a mail client . There are tons of social networking sites out there that can keep him “busy”. Although my point seems a little vague here because you can manage and control websites the user can access using Nanny’s web content filtering system.

Another thing I noticed was the applists mentioned in /etc/nanny/applists. It is probably the list of applicaitons supported by Nanny. As of now, or as mentioned in my list, it supports only 3 browsers epiphany, firefox and konqueror. Since, browsing is the most important thing to be censored and monitored here, Nanny should add support for more browsers.

GnuWin by gnuwin32

Posted by – January 3, 2010

GnuWin provides Win32-versions of GNU tools, or tools with a similar open source licence. The ports are native ports, that is they rely only on libraries provided with any 32-bits MS-Windows operating system, such as MS-Windows 95 / 98 / 2000 / NT / XP /