» tagged pages
» logout

sorted by: recent | see : popular
Content Tagged with With + Ubuntu

How to Create Screenshots via CLI with scrot

scrot is a commandline screen capture util like "import", but using imlib2.

It has lots of options for autogenerating filenames, and can do fun stuff like taking screenshots of multiple displays and glueing them together.

Install Scrot in Ubuntu

sudo aptitude install scrot

This will complete the installation.

Using Scrot

Example scrot commands
1. Capture screen and save file to working directory:

scrot

2. Capture screen in 5 seconds time:

scrot -d 5

3. Capture screen in 5 seconds time, name file with time stamp and screen dimensions:

scrot -d 5 '%Y-%m-%d--%s_$wx$h_scrot.png'

4. As above, but move file into "images" directory and open the image with GIMP:

scrot -d 5 '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/images/ & gimp ~/images/$f'

scrot Options
See below for a full list of options:

Usage : scrot [OPTIONS]... [FILE]
Where FILE is the target file for the screenshot.
If FILE is not specified, a date-stamped file will be dropped in the
current directory.
See man scrot for more details
-h, --help display this help and exit
-v, --version output version information and exit
-b, --border When selecting a window, grab wm border too
-c, --count show a countdown before taking the shot
-d, --delay NUM wait NUM seconds before taking a shot
-e, --exec APP run APP on the resulting screenshot
-q, --quality NUM Image quality (1-100) high value means
high size, low compression. Default: 75.
For lossless compression formats, like png,
low quality means high compression.
-m, --multidisp For multiple heads, grab shot from each
and join them together.
-s, --select interactively choose a window or rectangle
with the mouse
-t, --thumb NUM generate thumbnail too. NUM is the percentage
of the original size for the thumbnail to be,
or the geometry in percent, e.g. 50x60 or 80x20.

SPECIAL STRINGS
Both the --exec and filename parameters can take format specifiers
that are expanded by scrot when encountered.
There are two types of format specifier. Characters preceded by a '%'
are interpreted by strftime(2). See man strftime for examples.
These options may be used to refer to the current date and time.
The second kind are internal to scrot and are prefixed by '$'
The following specifiers are recognised:
$f image path/filename (ignored when used in the filename)
$m thumbnail path/filename
$n image name (ignored when used in the filename)
$s image size (bytes) (ignored when used in the filename)
$p image pixel size
$w image width
$h image height
$t image format
$$ prints a literal '$'
n prints a newline (ignored when used in the filename)
Example:
scrot '%Y-%m-%d_$wx$h_scrot.png' -e 'mv $f ~/images/shots/'
Creates a file called something like 2000-10-30_2560x1024_scrot.png
and moves it to your images directory.

This program is free software see the file COPYING for licensing info.
Copyright Tom Gilbert 2000

Source from here

Ubuntu: OnlyUbuntu Tutorials

How to Create Screenshots via CLI with scrot

scrot is a commandline screen capture util like "import", but using imlib2.

It has lots of options for autogenerating filenames, and can do fun stuff like taking screenshots of multiple displays and glueing them together.

Install Scrot in Ubuntu

sudo aptitude install scrot

This will complete the installation.

Using Scrot

Example scrot commands
1. Capture screen and save file to working directory:

scrot

2. Capture screen in 5 seconds time:

scrot -d 5

3. Capture screen in 5 seconds time, name file with time stamp and screen dimensions:

scrot -d 5 '%Y-%m-%d--%s_$wx$h_scrot.png'

4. As above, but move file into "images" directory and open the image with GIMP:

scrot -d 5 '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/images/ & gimp ~/images/$f'

scrot Options
See below for a full list of options:

Usage : scrot [OPTIONS]... [FILE]
Where FILE is the target file for the screenshot.
If FILE is not specified, a date-stamped file will be dropped in the
current directory.
See man scrot for more details
-h, --help display this help and exit
-v, --version output version information and exit
-b, --border When selecting a window, grab wm border too
-c, --count show a countdown before taking the shot
-d, --delay NUM wait NUM seconds before taking a shot
-e, --exec APP run APP on the resulting screenshot
-q, --quality NUM Image quality (1-100) high value means
high size, low compression. Default: 75.
For lossless compression formats, like png,
low quality means high compression.
-m, --multidisp For multiple heads, grab shot from each
and join them together.
-s, --select interactively choose a window or rectangle
with the mouse
-t, --thumb NUM generate thumbnail too. NUM is the percentage
of the original size for the thumbnail to be,
or the geometry in percent, e.g. 50x60 or 80x20.

SPECIAL STRINGS
Both the --exec and filename parameters can take format specifiers
that are expanded by scrot when encountered.
There are two types of format specifier. Characters preceded by a '%'
are interpreted by strftime(2). See man strftime for examples.
These options may be used to refer to the current date and time.
The second kind are internal to scrot and are prefixed by '$'
The following specifiers are recognised:
$f image path/filename (ignored when used in the filename)
$m thumbnail path/filename
$n image name (ignored when used in the filename)
$s image size (bytes) (ignored when used in the filename)
$p image pixel size
$w image width
$h image height
$t image format
$$ prints a literal '$'
n prints a newline (ignored when used in the filename)
Example:
scrot '%Y-%m-%d_$wx$h_scrot.png' -e 'mv $f ~/images/shots/'
Creates a file called something like 2000-10-30_2560x1024_scrot.png
and moves it to your images directory.

This program is free software see the file COPYING for licensing info.
Copyright Tom Gilbert 2000

Source from here

Ubuntu: Only Ubuntu

How to Replace Nautilus with PCMan File Manager in Ubuntu

an extremely fast and lightweight file manager for X.PCMan File Manager is a gtk2 based file manager for the X Window System.

(...)
Read the rest of How to Replace Nautilus with PCMan File Manager in Ubuntu (228 words)


© admin for Ubuntu Geek, 2008. | Permalink | 9 comments | Add to del.icio.us digg
Who's linking ? Technorati BlogPulse Google
Want more on these topics ? Browse the archive of posts filed under General.

Related Articles

Ubuntu: Ubuntu Geek - Ubuntu Tutorials,Howto's,Tips and Tricks

Monitor Ubuntu System with saidar

saidar is a curses-based application to display system statistics. Statistics include CPU, processes, load, memory,swap, network I/O and disks I/O along with their free space.


saidar utilizes libstatgrab library. libstatgrab is a library that provides cross platform access to statistics about the system on which it's run. It's written in C and presents a selection of useful interfaces which can be used to access key system statistics. The current list of statistics includes CPU usage, memory utilisation, disk usage, process counts, network traffic, disk I/O, and more.

The current list of platforms is Solaris 2.x, Linux 2.2/2.4/2.6, FreeBSD 4.x/5.x, NetBSD 1.6.x, OpenBSD 3.x, DragonFly BSD 1.0, HP-UX, and Cygwin. The aim is to extend this to include as many operating systems as possible.

Current Stable Version:- 0.14

Project Home page :- http://www.i-scream.org/libstatgrab/

Install Saidar in ubuntu

sudo apt-get install saidar

This will install all the required packages for saidar

saidar syntax

saidar [-d delay] [-v] [-h]

If you want to use this application you can just type the following command

saidar

Now you should see the following screen which includes system statistics include CPU, processes, load, memory, swap,network I/O and disks I/O along with their free space.

If you want more information about saidar check saidar man page


Ubuntu: Only Ubuntu

Install Amarok 1.4.4 Music Player in Ubuntu Edgy

Amarok is a sound system-independent audio-player for *nix systems. Its interface uses a powerful “browser” metaphor that allows you to create playlists that make the most of your music collection. Install Amarok Music Player in Ubuntu If you are using kubuntu 6.10 you will get the amarok version 1.4.4 packages so these are latest packages.If you are [...]

Debian: Debian Admin Step By Step Tutorials and articles with screenshots

Ubuntu Edgy Eft Desktop Installation With Screenshots

Ubuntu 6.10 i.e EdgyEft is the newest Ubuntu stable version and i am going to discuss here how to install ubuntu ubuntu edgyeft desktop with step by step procedure.I hope this will help some ubuntu users to install ubuntu edgyeft in their machines,laptops, etc. All users need to click on the image to view full size [...]

Debian: Debian Admin Step By Step Tutorials and articles with screenshots

Intrusion Detection With BASE And Snort

Intrusion Detection With BASE And Snort

snort: del.icio.us/tag/snort

Howto: Ultimate Ubuntu eye-candy with Xgl and Com

Howto: Ultimate Ubuntu eye-candy with Xgl and Com

Xgl: del.icio.us tag/xgl