tag:blogger.com,1999:blog-8709393057914915496.post7497085259002325254..comments2023-10-30T10:47:41.651+01:00Comments on DetectorPro: Linux tip: How to take a screenshot without X (GUI), just from consoleUkionhttp://www.blogger.com/profile/12085987411217669638noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-8709393057914915496.post-70954572928432740202010-04-08T14:56:21.980+02:002010-04-08T14:56:21.980+02:00The title, "How to take a screenshot without ...The title, "How to take a screenshot without X . . .", is very misleading. You need to be running X because the the utility called by the script, import, requires X.<br /><br />Frrom the man page:<br /><br />import - saves any visible window on an X server and outputs it as an image file.<br /><br />Sure, you can start it from a VT, but without an X server running you will have nothing to capture. It will not capture a virtual terminal that has no X server.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8709393057914915496.post-80377127943867357222009-01-10T16:37:00.000+01:002009-01-10T16:37:00.000+01:00Hi anonymous, I think that the idea of this tip is...Hi anonymous, I think that the idea of this tip is to capture X on most of Linux distributions from another virtual console. This tip will work also with another virtual console (not just 7).<BR/><BR/>RobertAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8709393057914915496.post-26733979964628812892009-01-10T12:31:00.000+01:002009-01-10T12:31:00.000+01:00No, this captures X sessions only. The "chvt 7" c...No, this captures X sessions only. The "chvt 7" changes to virtual console number 7, which traditionally has X running on it on most Linux distributions.<BR/><BR/>If you want to capture command line sessions, try "script".<BR/><BR/>As an aside, since import takes the display as an argument, do you even need to use chvt at all?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8709393057914915496.post-87355981332247982122009-01-10T06:45:00.000+01:002009-01-10T06:45:00.000+01:00i guess you cold as well use this strategy in a sc...i guess you cold as well use this strategy in a script to make screencasts of CLI sessions!Anonymousnoreply@blogger.com