Introduction
If you've ever frequented the Arch Linux forums, you'd know that many a screenshot features this script. However, they've only developed it for Arch and Debian. Here's a guide that can let you get it on Ubuntu.
Here's the original topic that this guide is based off of:
http://forum.beryl-project.org/viewt...hp?f=51&t=5448
Here's a screenshot of it in action (courtesy of Beryl Forums):
What's the point? Well, if nothing else, it saves you less typing for when you post in the Screenshots thread.
Getting the script
You can download this script from here: info.pl.tar.gz
Open up a terminal (Applications>Accessories>Terminal), extract the file, and place it in ~/bin:
By default, the script takes a screenshot of your screen after 10 seconds. To do this, you need to install scrot:Code:tar -xvf info.pl.tar.gz mkdir ~/bin mv info.pl ~/bin
If you don't want this feature, you can edit info.pl and change it like so:Code:sudo apt-get install scrot
change line 17 fromCode:gedit ~/bin/info.pl
toCode:my $shot = 0;
save the file and exit.Code:my $shot = 1;
Testing it out
To try it out, open up a terminal and run the following:
It should all work well.Code:perl ~/bin/info.pl
Going one step further: loading it when the console/terminal loads
This is a nice trick to make the console look a little nicer. Edit .bash_profile:
and place in the following at the bottom of the file:Code:gedit ~/.bash_profile
Save the file and exit.Code:clear; perl ~/bin/info.pl
Note that this only pertains to the system consoles (Ctrl+Alt+F1-F6)! If you'd like to load it when the terminal opens up (Applications>Accessories>Terminal) then do the following:
Edit .bashrc:
and place in the following at the bottom of the file:Code:gedit .bashrc
Save the file and exit.Code:perl ~/bin/info.pl
The end!
And there you have it! A fancy script that works in almost all desktop environments and window managers. Have fun!
Bookmarks