{"id":599,"date":"2014-12-30T21:56:00","date_gmt":"2014-12-31T05:56:00","guid":{"rendered":"https:\/\/kb.terabyteunlimited.com\/kb-articles\/how-to-create-screen-shots-in-ifl-gui\/"},"modified":"2021-09-07T15:04:39","modified_gmt":"2021-09-07T22:04:39","slug":"how-to-create-screen-shots-in-ifl-gui","status":"publish","type":"lsvr_kba","link":"https:\/\/www.terabyteunlimited.com\/kb\/kb-articles\/how-to-create-screen-shots-in-ifl-gui\/","title":{"rendered":"How to create screen shots in IFL (GUI)"},"content":{"rendered":"<p>As of version 2.89, the IFL (GUI) boot disk contains the <strong>'scrot'<\/strong> command line utility to create screenshots. This utility can be run by opening a terminal window and running 'scrot' along with any desired options. The command line options available are summarized below, followed by a few examples of using it.<\/p>\r\n<table width=\"500\" style=\"font-size: 85%; background-color: rgb(255, 255, 221);\" border=\"0\" cellspacing=\"4\" cellpadding=\"4\">\r\n  <tbody><tr>\r\n    <td colspan=\"2\"><strong>Usage: scrot [OPTIONS]... [FILE]<\/strong><\/td>\r\n    <\/tr>\r\n  <tr>\r\n    <td height=\"26\" colspan=\"2\">Where FILE is the target file for the screenshot. If FILE is not specified, a date-stamped file will be dropped in the current directory.<\/td>\r\n  <\/tr>\r\n  <tr>\r\n    <td height=\"17\" colspan=\"2\"><p>(See 'man scrot' on a Linux distribution for more details.)<\/p><\/td>\r\n    <\/tr>\r\n  <tr>\r\n    <td width=\"135\" valign=\"top\">-h, --help<\/td>\r\n    <td width=\"337\" valign=\"top\">display this help and exit<\/td>\r\n  <\/tr>\r\n  <tr>\r\n    <td valign=\"top\">-v, --version<\/td>\r\n    <td valign=\"top\">output version information and exit<\/td>\r\n  <\/tr>\r\n  <tr>\r\n    <td valign=\"top\">-b, --border<\/td>\r\n    <td valign=\"top\">When selecting a window, grab wm border too<\/td>\r\n  <\/tr>\r\n  <tr>\r\n    <td valign=\"top\">-c, --count<\/td>\r\n    <td valign=\"top\">show a countdown before taking the shot<\/td>\r\n  <\/tr>\r\n  <tr>\r\n    <td valign=\"top\">-d, --delay NUM<\/td>\r\n    <td valign=\"top\">wait NUM seconds before taking a shot<\/td>\r\n  <\/tr>\r\n  <tr>\r\n    <td valign=\"top\">-e, --exec APP<\/td>\r\n    <td valign=\"top\">run APP on the resulting screenshot<\/td>\r\n  <\/tr>\r\n  <tr>\r\n    <td valign=\"top\">-q, --quality NUM<\/td>\r\n    <td valign=\"top\">Image quality (1-100) high value means high size, low compression. Default: 75. For lossless compression formats, like png, low quality means high compression.<\/td>\r\n  <\/tr>\r\n  <tr>\r\n    <td valign=\"top\">-m, --multidisp<\/td>\r\n    <td valign=\"top\">For multiple heads, grab shot from each and join them together.<\/td>\r\n  <\/tr>\r\n  <tr>\r\n    <td valign=\"top\">-s, --select<\/td>\r\n    <td valign=\"top\">interactively choose a window or rectangle with the mouse<\/td>\r\n  <\/tr>\r\n  <tr>\r\n    <td valign=\"top\">-u, --focused<\/td>\r\n    <td valign=\"top\">use the currently focused window<\/td>\r\n  <\/tr>\r\n  <tr>\r\n    <td valign=\"top\">-t, --thumb NUM<\/td>\r\n    <td valign=\"top\">generate thumbnail too. NUM is the percentage of the original size for the thumbnail to be, or the geometry in percent, e.g. 50x60 or 80x20.<\/td>\r\n  <\/tr>\r\n  <tr>\r\n    <td valign=\"top\">-z, --silent<\/td>\r\n    <td valign=\"top\">Prevent beeping<\/td>\r\n  <\/tr>\r\n<\/tbody><\/table>\r\n<p>&nbsp;<\/p>\r\n<p><font color=\"#005858\"><strong>Basic examples of usage: <\/strong><\/font><\/p>\r\n<ul>\r\n  <li> Capture entire desktop to a time stamped PNG file:<br \/>\r\n    <font color=\"#008800\" face=\"Courier New, Courier, monospace\"><strong>scrot<\/strong><\/font><br \/>\r\n    <br \/>\r\n    Example file created: \r\n2020-05-08-050830_1024x768_scrot.png<br \/>\r\n    <br \/>\r\n  <\/li>\r\n  <li> Capture entire desktop to a specified filename:<br \/>\r\n    <font color=\"#008800\" face=\"Courier New, Courier, monospace\"><strong>scrot filename.png<\/strong><\/font><br \/>\r\n    <br \/>\r\n  <\/li>\r\n  <li>Capture window selected by the mouse to a time stamped PNG file:<br \/>\r\n    <font color=\"#008800\" face=\"Courier New, Courier, monospace\"><strong>scrot -s<\/strong><\/font><br \/>\r\n    <br \/>\r\n    Example file created: \r\n2020-05-08-053830_630x430_scrot.png<br \/>\r\n<br \/>\r\n  <\/li>\r\n  <li>Capture window selected by the mouse to a specified filename:<br \/>\r\n    <font color=\"#008800\" face=\"Courier New, Courier, monospace\"><strong>scrot -s iflscreenshot.png<\/strong><\/font><br \/>\r\n    <br \/>\r\n  <\/li>\r\n  <li>Capture entire desktop to a specified filename after five second delay to arrange screen:<br \/>\r\n    <font color=\"#008800\" face=\"Courier New, Courier, monospace\"><strong>scrot -d 5 ifloptions.png<\/strong><\/font><\/li>\r\n<\/ul>\r\n<blockquote>\r\n  <p><strong>Note:<\/strong> If the specified filename (or path) contains spaces make sure to surround it in quotes. For example:<br \/>\r\n    <font color=\"#008800\" face=\"Courier New, Courier, monospace\"><strong>scrot -s &quot;ifl backup options.png&quot;<\/strong><\/font>\r\n  <\/p>\r\n<\/blockquote>\r\n<p>&nbsp;<\/p>\r\n<p><font color=\"#005858\"><strong>Saving screenshot files:<\/strong><\/font><\/p>\r\n<p>The screenshot files will be saved to the current directory (\/tbu, by default) unless otherwise specified in the filename path on the command line. The contents of the \/tbu directory can be viewed by using Midnight Commander (MC icon) or by running the&nbsp; <font color=\"#008800\" face=\"Courier New, Courier, monospace\"><strong>ls \/tbu<\/strong><\/font>&nbsp; command in a terminal window (if \/tbu is the current directory you can just run <font color=\"#008800\" face=\"Courier New, Courier, monospace\"><strong>ls<\/strong><\/font>). If you want to view only the PNG files you can run: <font color=\"#008800\" face=\"Courier New, Courier, monospace\"><strong>ls \/tbu\/*.png<\/strong><\/font><\/p>\r\n<p>Since the saved PNG files only exist in RAM on the running boot media, they will be lost when the system is rebooted or powered down. The files can be saved from the running boot media by using the '<strong>mnt<\/strong>' icon (Mount Drive or Partition; the dpmount script) to mount a drive\/partition, or the '<strong>net1<\/strong>' icon (Mount Network Shares) to mount a network share, and then using Midnight Commander or terminal to copy the files to the mounted file system.<\/p>\r\n<p>Below is an example of the process of saving screenshot files to the root folder of a USB flashdrive using the dpmount script to mount the drive and then copying the files using a terminal:<\/p>\r\n<ol>\r\n  <li>Connect the USB flashdrive (UFD). The booted IFL GUI UFD is used here.<br \/>\r\n    <br \/>\r\n    <strong>Note:<\/strong> If the IFL UFD was created using the &quot;Traditional - You have control over options. (Custom)&quot; method and you selected the &quot;Leave Boot Drive Mounted as \/tbu\/boot&quot; option, you can skip step 6 if step 5 shows the drive is mounted to \/tbu\/boot. In the command examples you would need to substitute <font color=\"#008800\" face=\"Courier New, Courier, monospace\"><strong>boot<\/strong><\/font> for <font color=\"#008800\" face=\"Courier New, Courier, monospace\"><strong>mnt1<\/strong><\/font> if the drive is mounted to \/tbu\/boot.<br \/>\r\n    <br \/>\r\n    <strong>Note:<\/strong> As with the above note, if the UFD is mounted to a folder other than mnt1, in the following command examples you would need to substitute the correct mount folder name for <font color=\"#008800\" face=\"Courier New, Courier, monospace\"><strong>mnt1<\/strong><\/font>. For example, if a partition has already been mounted to mnt1 and the UFD gets mounted to \/tbu\/mnt2, use <font color=\"#008800\" face=\"Courier New, Courier, monospace\"><strong>mnt2<\/strong><\/font>.<br \/>\r\n    <br \/>\r\n  <\/li>\r\n  <li>Open a terminal by   clicking the '<strong>Terminal<\/strong>' icon or by right-clicking the desktop and selecting <strong>Terminal<\/strong> from the pop-up menu.<br \/>\r\n    <br \/>\r\n  <\/li>\r\n  <li>If necessary, determine the device name used by the UFD. To do this, open a terminal and run the following two commands.  Each will list the devices in a different manner and you should be able to determine the proper device being used (e.g. \/dev\/sdb1).<br \/>\r\n    <font color=\"#008800\" face=\"Courier New, Courier, monospace\"><strong>blkid<\/strong><\/font><br \/>\r\n    <font color=\"#008800\" face=\"Courier New, Courier, monospace\"><strong>listhw<\/strong><\/font><br \/>\r\n    <br \/>\r\n    Example <strong>blkid<\/strong> output for device:<br \/>\r\n    <font color=\"#008800\" face=\"Courier New, Courier, monospace\"><strong>\/dev\/sdb1: LABEL=&quot;IFL_3_39&quot; UUID=&quot;5EA8-8F89&quot; TYPE=&quot;vfat&quot; PARTUUID=&quot;5ea88f89-01&quot;<\/strong><\/font><br \/>\r\n    <br \/>\r\n    Example <strong>listhw<\/strong> output for device:<br \/>\r\n    <font color=\"#008800\" face=\"Courier New, Courier, monospace\"><strong>Removable drives (sdx, mmcblkx, nvmex):<br \/>\r\n    &nbsp;&nbsp;sdb: 30528 MiB SanDisk &nbsp;Cruzer Glide 3.0<\/strong><\/font>\r\n    <br \/>\r\n<br \/>\r\n  <\/li>\r\n  <li>Run the <strong>dpmount<\/strong> script using one of the following methods:<br \/>\r\n    <br \/>\r\n  <ul>\r\n  <li>Click the '<strong>mnt<\/strong>' icon (Mount Drive or Partition).<\/li>\r\n  <li>Right-click on the desktop and select <strong>Mount Drive or Partition<\/strong> from the pop-up menu.<\/li>\r\n  <li>Run <font color=\"#008800\" face=\"Courier New, Courier, monospace\"><strong>dpmount<\/strong><\/font> in a terminal.<br \/>\r\n    <br \/>\r\n  <\/li>\r\n  <\/ul>\r\n  <\/li>\r\n  <li>Locate the UFD in the list of devices (devices will indicate UNMOUNTED or MOUNTED along with the path used).<br \/>\r\n    <br \/>\r\n    Example: <font color=\"#008800\" face=\"Courier New, Courier, monospace\"><strong>\/dev\/sdb1:(30521M_vfat)&nbsp;&nbsp;&nbsp;&nbsp; UNMOUNTED<\/strong><\/font><br \/>\r\n    <br \/>\r\n  <\/li>\r\n  <li>Select the device and click the <strong>Ok<\/strong> button (or press <strong>Enter<\/strong>) to mount it. The list will refresh and the device should now show as mounted.<br \/>\r\n    <br \/>\r\n    Example: <font color=\"#008800\" face=\"Courier New, Courier, monospace\"><strong>\/dev\/sdb1:(30521M_vfat)&nbsp;&nbsp;&nbsp;&nbsp; MOUNTED:(\/tbu\/mnt1)<\/strong><\/font>\r\n    <br \/>\r\n    <br \/>\r\n  <\/li>\r\n  <li>Switch back to the terminal window and use the <font color=\"#008800\" face=\"Courier New, Courier, monospace\"><strong>cp<\/strong><\/font> command to copy the screenshot file(s) to the UFD. Wildcards can be used. Surround filename and path with quotes if either contains spaces. Several examples are shown below:<br \/>\r\n    <br \/>\r\n    Copy single files:<br \/>\r\n    <font color=\"#008800\" face=\"Courier New, Courier, monospace\"><strong>cp iflscreenshot.png mnt1<\/strong><\/font><br \/>\r\n    <font color=\"#008800\" face=\"Courier New, Courier, monospace\"><strong>cp &quot;ifl backup options.png&quot; mnt1<\/strong><\/font>\r\n    <br \/>\r\n    <br \/>\r\n    Copy single file using complete paths:<br \/>\r\n    <font color=\"#008800\" face=\"Courier New, Courier, monospace\"><strong>cp \/tbu\/iflscreenshot.png \/tbu\/mnt1<\/strong><\/font>\r\n    <br \/>\r\n    <br \/>\r\n    Copy multiple files using wildcard:<br \/>\r\n    <font color=\"#008800\" face=\"Courier New, Courier, monospace\"><strong>cp 2020-05-08*.png mnt1<\/strong><\/font><br \/>\r\n    <br \/>\r\n  <\/li>\r\n  <li>If you would like to view a directory listing of the UFD you can use the <font color=\"#008800\" face=\"Courier New, Courier, monospace\"><strong>ls<\/strong><\/font> command. For example:<br \/>\r\n    <font color=\"#008800\" face=\"Courier New, Courier, monospace\"><strong>ls mnt1<\/strong><\/font><br \/>\r\n    <font color=\"#008800\" face=\"Courier New, Courier, monospace\"><strong>ls mnt1\/*.png<\/strong><\/font>\r\n    <br \/>\r\n    <br \/>\r\n    Example with complete path:<br \/>\r\n    <font color=\"#008800\" face=\"Courier New, Courier, monospace\"><strong>ls \/tbu\/mnt1\/*.png<\/strong><\/font>\r\n    <br \/>\r\n    <br \/>\r\n  <\/li>\r\n  <li>Switch back to the dpmount script window (WORK WITH DRIVES &amp; PARTITIONS) or reopen if closed. Select the UFD device and click the <strong>Ok<\/strong> button (or press <strong>Enter<\/strong>) to unmount it. The UFD can now be safely removed.<\/li>\r\n<\/ol>\r\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>As of version 2.89, the IFL (GUI) boot disk contains the &#8216;scrot&#8217; command line utility to create screenshots. This utility can be run by opening a terminal window and running &#8216;scrot&#8217; along with any desired options. The command line options available are summarized below, followed by a few examples of using it. Usage: scrot [OPTIONS]&#8230; [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"lsvr_kba_cat":[1814],"lsvr_kba_tag":[2123],"class_list":["post-599","lsvr_kba","type-lsvr_kba","status-publish","hentry","lsvr_kba_cat-faq-image-for-linux","lsvr_kba_tag-image-for-linux"],"_links":{"self":[{"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba\/599","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba"}],"about":[{"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/types\/lsvr_kba"}],"author":[{"embeddable":true,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/comments?post=599"}],"version-history":[{"count":1,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba\/599\/revisions"}],"predecessor-version":[{"id":6324,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba\/599\/revisions\/6324"}],"wp:attachment":[{"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/media?parent=599"}],"wp:term":[{"taxonomy":"lsvr_kba_cat","embeddable":true,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba_cat?post=599"},{"taxonomy":"lsvr_kba_tag","embeddable":true,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba_tag?post=599"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}