• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Source Digit

Source Digit

Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • How To
  • Ubuntu
  • Instagram
  • Blogging
  • Android
  • WordPress
  • +More
    • Cloud Computing
    • Gadgets
    • Social Media
    • Technology
  • Write for Us
Home / Ubuntu / How to Take Screenshot of Ubuntu Login Screen In Ubuntu 16.10

How to Take Screenshot of Ubuntu Login Screen In Ubuntu 16.10

By Sourabh / October 24, 2016 Category: How To, Ubuntu

How to take screenshot of Ubuntu Login Screen in Ubuntu 16.10, Ubuntu 16.04, Ubuntu 14.04 and other Ubuntu Derivatives. To take screenshot of Ubuntu login screen, you will need ImageMagick. If you do not have ImageMagick installed, run the following command in terminal to install ImageMagick.

sudo apt-get update
sudo apt-get install imagemagick

Once installed, it’s time to create the script to take screenshot. Create a new text file, name it screenshot.sh. Create the screenshot text file in your Home directory and add the following lines in the file:

chvt 7; sleep 5s; DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/:0 xwd -root -out ~/screenshot.xwd; convert ~/screenshot.xwd ~/screenshot.png; rm ~/screenshot.xwd

Once you have created the screenshot scrip, run the following command to give executable permission to the script.

sudo chmod +x screenshot.sh

Once everything is OK, here’s how to take the screenshot.

  • Log out of the system.
  • Press Ctrl+Alt+F1 at the login screen to go to console mode.
  • Login to the console mode, enter your username and password.
  • Run the command to run the screenshot.sh script:

sudo ./screenshot.sh

  • Once you run the script, you will be returned back to the graphical interface login screen. Wait gere for 5 seconds (remember sleep 5s in the screenshot script code) and after five seconds it will take and save the screenshot in your home directory.

Once the script is run, it will take the screenshot. After the screenshot is taken, you will be returned back to the graphical interface login screen. The screenshot is saved as screenshot.png in the home directory.

Tags: Capture Screenshot of Ubuntu Login Screen, How to Take Screenshot of Ubuntu Login Screen, Screenshot of Login Screen Ubuntu 16.04, Screenshot of Login Screen Ubuntu 16.10, Screenshot of Ubuntu Login Screen, Screenshot of Ubuntu Login Screen In Ubuntu 16.04, Screenshot of Ubuntu Login Screen In Ubuntu 16.10, Screenshot of Ubuntu Login Screen Ubuntu 16.04, Screenshot of Ubuntu Login Screen Ubuntu 16.10, Take Screenshot Of Ubuntu Login Screen, Ubuntu 16.04 Login Screen Screenshot, Ubuntu 16.10 Login Screen Screenshot, Ubuntu Login Screen Screenshot

Primary Sidebar

Latest Posts

Delete Directory And Contents Recursively Without Prompt On Linux

Check User Login History In Ubuntu Linux Command Line

Use Locate Command To Find File In Linux Terminal By Name

How To Change Terminal Color In Ubuntu Command Line

How To Run Fsck Manually In Linux To Fix Unexpected Inconsistency

How To Fix Broken Packages On Ubuntu From Terminal

Re Execute The Previous Command In Linux Ubuntu Command Line

How Much RAM Is Needed For Ubuntu PC

How To Find Large Files And Directories In Linux Command Line

How To Use Clear Command History In Linux Terminal

© 2026 Source Digit • Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • About
  • Privacy Policy
  • Terms & Conditions
  • Contact Us
  • Sitemap