Archive for May, 2007

Disable Password Prompt at Startup in Windows XP

Disabling startup login prompt for password

  • Click Start and Run
  • Type “Control Userpasswords2″ and press enter.
  • Uncheck the box for “Users must enter a user name and password to use this computer.”
  • Click Apply and Ok.

[tags]windows,xp,password,user,boot,startup,prompt[/tags]

Extracting DAA Image Files

I once got a DAA file from a P2P network. Initally I was at a lose about how to extract the data. Finally I found a method that works. First get the ‘poweriso’ utilty for Linux. You can get it at the PowerISO website

Then convert the DAA file to a regular ISO file using this command…


poweriso convert daa_image.daa -o iso_image.iso -ot iso

[tags]iso,daa,image,poweriso,command,linux[/tags]

Searching text in a directory using find and grep

Use find and grep to search for a specific text in a directory. In this example, we search for files which uses the PHP short tag - <?


find -name '*.php' -exec grep '<?[^p\=]' {} \;

Caching Debain installation DVD/CD

Cache all your Debain installation DVD/CDs

Put the first DVD in the drive and run this command

apt-cdrom add

Do this for all your DVDs. After its over run this command

apt-get upgrade

To install a pacakge this command can be used

apt-get install <Package Name>

[tags]debian,install,cd,dvd,cache,apt[/tags]

Using Awk

Simple uses for awk

Get the second column from the output

ps aux | awk '{print $2}'

Use a different column separator

cat /etc/passwd|awk '{print $1}'

[tags]awk,cli,linux,command,filter,text[/tags]

Install Win32Codecs in Linux

Win32Codecs is a collection of important codes to play videos in linux

Download
http://www.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2

Extract into /usr/lib/codecs/

[tags]codecs,video,linux,install[/tags]

SourceForge Project Packager - from SVN source

This script will package your SVN code to a tar.gz file. Just give the name of the project as the first argument. Like this…

perl packager.pl jus5


#!/usr/bin/perl
#Package a Sourceforge project from its SVN source.

die("Please provide the name of the project as the argument") unless($ARGV[0]);

$project=$ARGV[0];
#$project='jus5';

`svn checkout https://$project.svn.sourceforge.net/svnroot/$project`;
`find $project/ -name .svn -exec rm -rf {} \\;`;
`tar -czf $project.tar.gz $project/`;
`rm -rf $project/`;

[tags]source,sourceforge,project,package,perl,script,svn[/tags]