{"id":2186,"date":"2013-11-10T06:29:27","date_gmt":"2013-11-10T06:29:27","guid":{"rendered":"http:\/\/ubuntuhandbook.org\/?p=2186"},"modified":"2013-11-10T06:30:02","modified_gmt":"2013-11-10T06:30:02","slug":"capture-login-screen-ubuntu-elementary-pear-os","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2013\/11\/capture-login-screen-ubuntu-elementary-pear-os\/","title":{"rendered":"Take screenshot of Login Screen in Ubuntu, Elementary &#038; Pear OS"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/10\/ubuntu-logo.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2015\" alt=\"capture login screen\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/10\/ubuntu-logo.jpg\" width=\"170\" height=\"170\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/10\/ubuntu-logo.jpg 170w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/10\/ubuntu-logo-150x150.jpg 150w\" sizes=\"auto, (max-width: 170px) 100vw, 170px\" \/><\/a><\/p>\n<p>This simple tutorial shows you how to capture screenshot of the LightDM \/ GDM login screen in Ubuntu, Elementary OS, or Pear OS.<\/p>\n<p>Besides installing your system as Virtualbox or Vmware Guest OS, we can follow the steps below to capture and share our login screens.<\/p>\n<p>1. Press Ctrl+Alt+T on your keyboard to open terminal. When it opens, run command blow to check out your display manager:<\/p>\n<pre>cat \/etc\/X11\/default-display-manager<\/pre>\n<pre style=\"color: #ffffff; background: #000000;\">handbook@handbook-1310:~$ cat \/etc\/X11\/default-display-manager \n\/usr\/sbin\/lightdm<\/pre>\n<p>By default:<\/p>\n<ul>\n<li>Ubuntu Unity and Elementary OS Luna uses <b>LightDM<\/b><\/li>\n<li>Pear OS 8 and Ubuntu Gnome uses <b>GDM<\/b><\/li>\n<\/ul>\n<p>2. Check out the value of $DISPLAY:<\/p>\n<pre>echo $DISPLAY<\/pre>\n<pre style=\"color: #ffffff; background: #000000;\">handbook@handbook-1310:~$ echo $DISPLAY\n:0<\/pre>\n<p>3. Now create a simple script<\/p>\n<pre>echo 'sleep <b>20<\/b>; DISPLAY=<b>:0<\/b> XAUTHORITY=\/var\/run\/<b>lightdm<\/b>\/root\/$DISPLAY xwd -root' &gt; \/tmp\/shot.sh<\/pre>\n<p>You may change:<\/p>\n<ul>\n<li><b>20<\/b> : the seconds of delay.<\/li>\n<li><b>:0<\/b> : the value of $DISPLAY. In my Pear OS 8, the value of $DISPLAY changes every login ($DISPLAY=$DISPAY +1).<\/li>\n<li><b>lightdm<\/b> : the display manager.<\/li>\n<\/ul>\n<p>4. Press <span style=\"text-decoration: underline;\">Ctrl+Alt+F1<\/span> and log into TTY1.<\/p>\n<p>5. Run command below to start the script:<\/p>\n<pre>sudo bash \/tmp\/shot.sh &gt;\/tmp\/shot.xwd<\/pre>\n<p>6. Return to GUI mode by pressing Ctrl+Alt+F1.<\/p>\n<p>7. Logout by normal way. While you can see login screen, wait for some seconds.<\/p>\n<p>8. Login by normal way. Install <code>imagemagick<\/code> if you don&#8217;t have it installed yet.<\/p>\n<pre>sudo apt-get install -y imagemagick<\/pre>\n<p>9. Run command below and finally you can check out the image under user Pictures folder.<\/p>\n<pre>convert \/tmp\/shot.xwd ~\/Pictures\/loginscreen.png<\/pre>","protected":false},"excerpt":{"rendered":"<p>This simple tutorial shows you how to capture screenshot of the LightDM \/ GDM login screen in Ubuntu, Elementary OS, or Pear OS. Besides installing your system as Virtualbox or Vmware Guest OS, we can follow the steps below to capture and share our login screens. 1. Press Ctrl+Alt+T on your keyboard to open terminal. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[781,780,673,779],"class_list":["post-2186","post","type-post","status-publish","format-standard","hentry","category-howtos","tag-elementary-os","tag-gdm","tag-lightdm","tag-pear-os-8"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/2186","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=2186"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/2186\/revisions"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=2186"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=2186"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=2186"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}