Hi, I switched to console 1 (Ctrl + Alt + F1) and tried:

export DISPLAY=:0.0
sudo gnome-screenshot

Which gives a black image with just the mouse cursor. It's nothing critical, but something I'd like to do. Any help appreciated :-)

Running Ubuntu 10.04 Lucid Lynx

asked 20 Jul '10, 18:47

kbmonkey's gravatar image

kbmonkey
1112
accept rate: 0%

Please accept an answer so the question/answer can be finished. Or provide more details so we can help.

(20 Apr '11, 14:13) rfelsburg ♦



Taken from: http://ptspts.blogspot.com/2010/02/how-to-create-screen-shot-of-gdm-login.html

How to create a screen shot of the GDM login screen on Ubuntu

This blog pts explains how to create a screen shot of the currently running X11 GDM login screen (the graphics login screen at system startup) on Ubuntu.

  1. Install ImageMagick for the image file format conversion below:

    $ sudo apt-get install imagemagick

  2. Create a helper script:

    $ echo 'DISPLAY=:0 XAUTHORITY=/var/lib/gdm/:0.Xauth xwd -root' >/tmp/shot.sh

  3. Make sure your login screen is active (log out or reboot the machine, and wait until you see the login screen).

  4. Log in in text mode (by pressing Ctrl-Alt-F1), or using SSH.
  5. Create the screen shot by running

    $ sudo bash /tmp/shot.sh >/tmp/shot.xwd

  6. You can log in now (by pressing Ctrl-AltF7 first to get back to the GDM login screen).

  7. Convert the screen shot to JPEG and/or PNG:

    $ convert -quality 50 /tmp/shot.xwd /tmp/shot.jpg $ convert /tmp/shot.xwd /tmp/shot.png

  8. View the screen shot in your favourite image viewer.

link

answered 20 Jul '10, 19:02

rfelsburg's gravatar image

rfelsburg ♦
6061618
accept rate: 25%

Thanks, but the resulting image is just black.

(21 Jul '10, 05:42) kbmonkey
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

Asked: 20 Jul '10, 18:47

Seen: 2,516 times

Last updated: 20 Apr '11, 14:13

Related questions

powered by OSQA