Screesnshot of login screen
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2006
    Posts
    1,787
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Screesnshot of login screen

    Friends,

    How to take a screenshot of log-in screen in Fedora 23, just like this one at the following URL? Thanks.


    https://fedoramagazine.org/wp-conten...dm-wayland.png
    fedoralinuxcommands.blogspot.com


    All the forces in the world are not so powerful as an idea whose time has come - Victor Hugo

  2. #2
    Join Date
    Oct 2011
    Posts
    1,907
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Screesnshot of login screen

    With a camera?

    Linked screenshot is probably taken from a virtual machine.

  3. #3
    Join Date
    Dec 2013
    Location
    United Kingdom
    Posts
    7,096
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Screesnshot of login screen

    yes that's a VM screenshot, camera is the only way for bare metal installs that I'm aware of.

  4. #4
    Join Date
    Jan 2016
    Location
    Germany
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Screesnshot of login screen

    I thin you can do that using gimp
    From: File -> Create -> Screenshot -> Delay = 5
    Then lock the screen and you get your screen shot after 5 sec. delay.

  5. #5
    Join Date
    Nov 2006
    Location
    Detroit
    Posts
    6,769
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Screesnshot of login screen

    In the old days you could use something like Xnest to do this. You'd need the xorg-x11-server-Xnest package installed, then do something like:
    Code:
    Xnest -geometry 1280x1024 -query localhost :1
    That would put a window on your desktop with a 1280x1024 version of the login screen, and then you could use any of the usual screenshot utilities to capture that window.

    I don't know if this will still work with Wayland or with any of the new display managers, and if you're using multiple monitors then you might have to fiddle with the -geometry option. So you're on your own there. VNC might be another option.
    OS: Fedora 29 x86_64 | Machine: Lenovo ThinkCentre M91P | CPU: Intel Core i5-2500 3.30GHz | RAM: 8GB PC3-12800 DDR3 | Disk: 500GB SATA | Video: Intel HD Graphics 2000 128MB | Sound: Realtek ALC662 | Ethernet: Intel 82579LM

  6. #6
    Join Date
    Nov 2006
    Location
    Detroit
    Posts
    6,769
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Screesnshot of login screen

    Reviving this old thread since I finally found a solution. The old Xnest (or Xephyr) method doesn't work anymore (it will just show a black screen). The new solution is much cleaner, anyway.

    I'm using xdm as my display manager, so you'll probably have to adjust the XAUTHORITY value in the command below if you're using another display manager (e.g., gdm, kdm, lxdm). I have dual monitors of different sizes: my main monitor is 1920x1080, and it shows the login screen and is to the right of the secondary 1440x900 monitor. So if you have a different monitor setup, then you'll have to adjust the -crop parameter value in the import command accordingly. You'll need the ImageMagick package installed from the Fedora repos (to give you the import command).

    Here's what I did:
    1. Log out of X to get back to the login screen.
    2. Switch virtual terminals to get a console login prompt (I used Ctrl-Alt-F4) and log in as root.
    3. Run this command in the console (all on one line):
      Code:
      chvt 2; sleep 5; DISPLAY=:0.0 XAUTHORITY=/var/lib/xdm/authdir/authfiles/$(/bin/ls /var/lib/xdm/authdir/authfiles/) import -window root -crop 1920x1080+1440+0 /tmp/login_screenshot.png

    That long command switches you to virtual terminal 2 (where xdm runs), waits 5 seconds, then takes a screenshot and saves it in /tmp as login_screenshot.png. You can then log in through the login screen with your usual user ID and view that image file. You should probably log root out of that other virtual terminal console (virtual terminal 4, in my case). Running that command as root is the key, since only root has access to that Xauthority file when the login screen is displayed. I don't know what virtual terminals other display managers show the login screen on, but you can change the chvt command if needed.

    Here's what login screen looks like:
    Click image for larger version. 

Name:	xdm_screenshot.jpg 
Views:	15 
Size:	102.8 KB 
ID:	30252
    OS: Fedora 29 x86_64 | Machine: Lenovo ThinkCentre M91P | CPU: Intel Core i5-2500 3.30GHz | RAM: 8GB PC3-12800 DDR3 | Disk: 500GB SATA | Video: Intel HD Graphics 2000 128MB | Sound: Realtek ALC662 | Ethernet: Intel 82579LM

Similar Threads

  1. Replies: 5
    Last Post: 26th February 2011, 07:45 AM
  2. login window "can i change my login screen in fedora 10
    By oshan1991 in forum Using Fedora
    Replies: 15
    Last Post: 31st October 2009, 12:11 PM
  3. No root login allowed at login screen - Fedora 10
    By mitchellray in forum Using Fedora
    Replies: 2
    Last Post: 2nd April 2009, 02:13 AM
  4. upgraded to fc9 can't login at graphic screen but can login from a console
    By clutch in forum Installation, Upgrades and Live Media
    Replies: 6
    Last Post: 14th September 2008, 03:11 PM
  5. after upgrade to F8 only X-login, but failing to login, returns to login screen
    By angro in forum Installation, Upgrades and Live Media
    Replies: 1
    Last Post: 26th November 2007, 09:12 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •