Skip to content
Archive of posts filed under the Learning category.

Cont: Get yourself some more conkyrc files.

Last time we got ourselves some conkyrc files from the ubuntu forums. But that scripts gets the files only from the First page of the thread. Lets extend this further and get the script to get all the conkyrc files. There are some 1048 pages in the thread, I am showing pages 1 to 3 [...]

Script to get yourself some conkyrc files

Continuing from where we left, here is a script that can do all this for you curl http://ubuntuforums.org/showthread.php?t=281865\&page=$i | sed -n ‘/\\/pr/ p’| sed ‘// d’| sed ‘s##\n———————————–\n\n\n#’ >conkyrc dos2unix conkyrc cp conkyrc .test while [ $(wc -l .test|sed 's/[^0-9]//g’) != 0 ] do sed -n ’1,/————————/ p’ .test|sed ‘$d’ >conkyrc.$count diff .test conkyrc.$count |sed [...]

Creating a chroot environment – the script.

Here is the script, very simple and effective #!/bin/bash – #=============================================================================== # # FILE: mkchroot.sh # # USAGE: ./mkchroot.sh # # DESCRIPTION: Make a chroot environ and cd to it # # OPTIONS: — # REQUIREMENTS: — # BUGS: — # NOTES: — # AUTHOR: Amit Agarwal (aka), # CREATED: 09/03/2011 02:53:37 PM IST # [...]