Feisty Fawn



Published June 18th, 2007 by admin

Adding Terminal Aliases to Ubuntu


If you spend any time at all in the terminal you will soon discover that re-typing common commands gets old very quickly.

Linux has come up with a great solution to an age old problem.

The alias command.

This command allows you to create an alias or shortcut if you will to calling a longer command.

Let’s say you vnc another machine a lot. That machine happens to not have a DNS host name associated with it. You are always trying to remember the IP of that machine so you can VNC it.

The command to VNC our imaginary machine goes something like this:

vncviewer admin@192.168.245.231

That is a lot of typing for a common task.

Let’s simplify that. Type the following:

alias vncmybox=’
vncviewer admin@192.168.245.231′

Now you have created your first alias. Anytime during the session you type vncmybox it will run the command we assigned to that alias.

Here is the catch, as soon as you close the terminal all is lost.

Let’s make this change permanent.

Go to you home folder and create a file named:

.bash_aliases

(This can also be done via the terminal like so:

touch ~/.bash_aliases

Then add the alias we created earlier on the first line of this text file as so: (Remember to open this file from your home folder you will have to show hidden files by pressing ctrl + h when in your home directory)

alias vncmybox=’vncviewer admin@192.168.245.231′

Save the file and open the file named:

.bashrc

Find the section that is commented out (lines preceded with #’s) to looks like this:

if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi

Uncomment those lines. Save and close and then open a new terminal window.

Now type:

alias

It will list your aliases including the one we just added. Now you can go back and add other commonly used commands to your .bash_aliases file to ease your terminal tasks.

Technorati Tags: , , ,

Published June 13th, 2007 by admin

How to Create .iso files from CD/DVD


Have a CD or DVD lying around that you are sic of putting in the drive every time you need something on the disc?

How about just making an .iso file that you can mount as you need? Or maybe you just want a “master” copy of the media so you can create another copy at a future date.

At any rate it is rather easy to accomplish in Ubuntu:

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

You can also do the same with folders:

mkisofs -r -o file.iso /location_of_folder/

Don’t forget to make a checksum:

md5sum file.iso > file.iso.md5

Technorati Tags: , ,

Published June 8th, 2007 by admin

Kflickr for uploading to Flickr

If you are a Flickr user and want the same goodness on Linux as the Windows users get when it comes to a photo uploading tool, look no farther than Kflickr.

It supports drag-n-drop, photo editing, tagging, batch editing, rotation, and uploading to your different photosets.

It works on KDE and Gnome. Kflicker is also available in Synaptic but it is an older version so get the .deb file from the Kflicker site.

Go get it!

Technorati Tags: , , ,

Published June 6th, 2007 by admin

Ubuntu Search Engine

Want to search all things Ubuntu?

UbuntuWire.com

You’re welcome!

Technorati Tags: , ,