There are many ways to take screenshots in Linux, but how do you take screenshots in the Linux login interface? The login interface system has not been started yet, and some screenshot tools are not used. At this time, it is necessary to pay attention to the screenshots of the screen. This article will introduce how to take screenshots in the Linux system login interface?
Use these commands under root privileges:
chvt 8
sleep 5
DISPLAY=:0.0 XAUTHORITY=/var/lib/mdm/: 0.Xauth xwd -root 》 /tmp/shot.xwd
convert /tmp/shot.xwd /tmp/ss.png
The most critical part of these commands is the third line. XAUTHORITY=/var/lib/mdm/. Different distributions use different login managers by default. For example, Ubuntu uses lightdm, Kubuntu uses kdm, Linux Mint uses mdm, and Gnome uses gdm for desktop distribution.
Different login managers have different XAUTHORITY. So some of the information found on the Internet is XAUTHORITY=/var/run/lightdm/root/, and some are XAUTHORITY=/var/lib/gdm/. So the question is, how do we determine which login manager is used by the current system?
Of course you can't make a head, you have to be reasonable. At the beginning, I used to think that the dm I was using was kdm, and the result fell into the pit.
actually very simple, just put the name of the dm process included in a fish out of view, the command will be able to determine how to write. Finally, attach the renderings:
These are the Linux login screen shots of the technique, so you can intercept the login screen high-definition picture, if not the skill, you want to login screen in & ldquo; Screenshots, rdquo;, that can only take pictures.
in a Linux virtual machine In the Linux operating system, you can build DB2 pureScale on a virtual
Linux system operation, many people are not very familiar with the installation of
VMWare is currently the most popular virtual machine tool in the industry, but recently users have r
If the VPS account is leaked, its loss is very large, so how to enhance the securit
How to deal with the problem of starting weblogic server error in Linux
Linux ln command operation guide
Linux common commands (including vi/gdb) operation skills
How to install Mongo extensions on Linux systems
How to shield the storm ui kill function in Linux
Linux system Vim how to install YouCompleteMe plug-in
How to clear the private data in the file under Linux
How to mount iPhone under Arch Linux system
Ubuntu download and install j2ee development environment steps
How Linux uses the command line to clean up the disk to increase the space
This happens every time the computer is turned on. Why?
Win10 Mobile Preview 10549 Update and Fixed Content Encyclopedia
Easily recover modified or deleted Vista files
Solve the win7 installation process crash phenomenon has a trick
Rainforest woodwind win7 system uninstall software prompts no permissions how to do
Wireless Internet access with Windows XP bridge function
Windows7 disk defragmentation after running slow speed how to do