dsktool
Installing dsktool

Before you can install dsktool.rb, ruby must be installed – instructions on how to do this for most operating systems can be found at http://www.ruby-lang.org/en/downloads/

once you have ruby installed, you can download, install and configure dsktool just by opening up a command window and running gem install dsktool

If you are using debian or ubuntu, then you will need to put “sudo” at the start of the command, like so:

jonno@ubuntu:~$ sudo gem install dsktool

If all goes well, you should see a response like so:

Bulk updating Gem source index for: http://gems.rubyforge.org
Successfully installed dsktool-0.4.2
Installing ri documentation for dsktool-0.4.2...
Installing RDoc documentation for dsktool-0.4.2...
jonno@ubuntu:~$

Now check that dsktool.rb is working by typing dsktool.rb -v.

You should be given a version number, like so:

jonno@ubuntu:~$ dsktool.rb -v
dsktool.rb 0.4.2
jonno@ubuntu:~$

if you are running ubuntu, and you get a ‘command not found’ error when you run dsktool.rb, you will need to add the the gems ‘bin’ directory to your default search path. To do this, to do this, edit the file called .bashrc in your home directory (using the text editor of your choice, e.g. nano or gedit), and at the bottom of that file add:

export PATH=$PATH:/var/lib/gems/1.8/bin

Then save .bashrc, and restart your terminal window.

You should now be able to run dsktool.rb.

Next: Getting started with dsktool