Archive

Posts Tagged ‘how-to’

How to enable VCS infromation in zsh

March 10th, 2010 Petros No comments

If you are using zsh as your terminal in Ubuntu, you can use a built in feature to display version control information at the prompt.

After reading “Zsh Prompt Magic” I created the zsh_vcs_info file which you can download. You place it in your home directory and open .zshrc and add the following line:

source /home/user/.zsh_vcs_info

Notice that I added a . (dot) in the filename because I want it to be hidden. Also, notice that “user” in the path above, is the username of the account you use to log into Ubuntu.

Categories: tips Tags: , , , , ,

How to generate the MD5 checksum of a file

December 26th, 2008 Petros No comments

md5sum file.iso > file.iso.md5

How to create an ISO image

December 26th, 2008 Petros No comments

In order to turn a CD/DVD into an .iso one can:

sudo umount /dev/cdrom

dd if=/dev/cdrom of=file.iso bs=1024

In order to turn a folder into an .iso one can:

mkisofs -r -o file.iso /location_of_folder/

Related posts:

Restore an MSSQL backup to a different database name

December 24th, 2008 Petros 2 comments

I had a database backup and was trying to restore it but to a different database name than that from where it was backed up.
Read more…

Categories: tips Tags: , ,