Archive

Posts Tagged ‘howto’

Using xargs to parallelize and speed up jobs.

December 8th, 2009 No comments

Often we look for new way to boost up our work, so we write a lot of code to perform jobs at high speed.
Sometimes the right way is the old way, specially if we need to do repetitive jobs. To do this kind of jobs we can use the xargs command, this command used in pipe with other commands can automate our jobs.
For example if we want to remove all C files from a directory and from all subdirectory recursively we can do the following:

Installing Firefox 3.5 or Firefox 3.6 on Ubuntu

July 8th, 2009 No comments

With the following script you can install Firefox (version 3.5  or version 3.6)  on your ubuntu box.

I have checked this script on ubuntu 8.10 umpc, Ubuntu 8.10 and Ubuntu 9.04. This script should also work with Ubuntu 9.10, If you use this script to install Firefox3.5/6 on Ubuntu 9.10 please leave a comment to this post.

How to Auto Login To Ubuntu

June 27th, 2009 No comments

Sometimes  could be useful to get automatic access to your Ubuntu box.

How to make a file unchangeable or unalterable (only for ext2/ext3 file systems)

December 25th, 2008 No comments

If you have a file that you want nobody can change it, you shall type the following command into a shell

# sudo chattr +i filename

You can check the attributes using the following command:

# lsattr

----i------------- ./gg1.txt
 

How to fix Ubuntu Hardy’s xargs bug: Assertion ‘bc_ctl.arg_max <= (131072-2048)’ failed.

December 23rd, 2008 No comments

In Ubuntu/Hardy you could have this error using xargs, this error is due to the findutils package. To solve this problem you could take the package from the Ubuntu release Intrepid.

Open (as root) the /etc/apt/sources.list file with your preferred editor

# sudo gedit /etc/apt/sources.list

Categories: Bugs Tags: , , , , , ,
Statistical data collected by Statpress SEOlution (blogcraft).