Differences between revisions 11 and 12
Revision 11 as of 2008-10-29 16:17:16
Size: 2839
Editor: ?DiegoBrengi
Comment: Added screnshot using command line
Revision 12 as of 2008-10-29 21:22:09
Size: 3000
Editor: FranklinPiat
Comment:
Deletions are marked like this. Additions are marked like this.
Line 24: Line 24:
Just open a graphical terminal like xterm or Eterm an type:
 sleep 5; xwd -root | convert - capture.jpg
Here you can change capture time and output format easily. You need ImageMagick.
Just open a graphical terminal and type:
 {{{
 sleep 5; xwd -root | convert - capture.png
or
 sleep 5; xwd -root | xwdtopnm | pnmtopng > capture.png
}}}
The command {{{xwd}}} is a standard xorg tool, which creates a [wiki:WikiPedia:Netpbm_format pnm] file. you can then use Pkg:imagemagick's {{{convert}}}, or DebPkg:netpbm's xwdtopnm tool)

How to make a screenshot under Debian ?

?Anchor(gnome)

Using Gnome

Gnome has built-in capability to make a screenshot (package gnome-utils). Simply press:

  • "Print Screen" key to take a screenshot of the whole screen.
  • Alt+"Print Screen" key to take a screenshot of the current active window. inline:gnome.png

More options are available in "Gnome Application Menu/Acessories/Take Screenshot" (like delayed screen shot).

  • {i} Read gnome-screenshot manpage and "Take Screenshot" help page for more information.

?Anchor(kde)

Using KDE

KDE has the capability to make a screenshot (using package ksnapshot). Simply press:

  • "Print Screen" key to take a screenshot of the whole screen. inline:kde.png

Read ksnapshot handbook for more information.

Using command line

Just open a graphical terminal and type:

  •  sleep 5; xwd -root | convert - capture.png
    or 
     sleep 5; xwd -root | xwdtopnm | pnmtopng > capture.png

The command xwd is a standard xorg tool, which creates a [wiki:Netpbm_format pnm] file. you can then use Pkg:imagemagick's convert, or netpbm's xwdtopnm tool)

Console / Xterm

Rather that making a graphical snapshot of the console/command line or X-window terminal, it's usually better to copy the actual text content (select the region with a mouse).

?Anchor(console)

Console

To you use the mouse on the Console screen, you need to install gpm (run apt-get install gpm).

  • Select the region to copy by pressing the mouse's left-button, then drag.
  • Open your favorite text editor, then paste the selected text using the right button.

advanced tip: if you don't want to use a text editor, you can run cat > /tmp/outfile.txt, then paste the content using right-button, then press Ctrl-D (once).

Other Tools

Debian provides some other (advanced) tools to make screenshot, including gimp .

?Anchor(debian-installer-gui)

Debian Installer GUI screenshots

DebianInstaller's [:DebianInstaller/GUI:GUI] has a take "Screenshot" button.

  • inline:DebianInstaller/GUI/installgui-parititiondisk-small.gif

To fetch the captured screen :

  • Click "Go Back" until you get to the main menu of the installer (this can be postponed until a later point in the installation).
  • Select the "Save debug logs" option.
  • Select one of the three option : "floppy", "web server" or "mounted filesystem". (The web server way is very convenient if you have another computer around).

  • Then follow the instructions in the next dialog.
  • When you get back to the menu, resume the installation at the next step (which should be the one that is selected when the menu is displayed).

If you complete the installation, the screenshots can also be found in the directory /var/log/installer/ (after the reboot into the installed system).