Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i want to know how to capture screen shot from shell command not from GUI ,and print it to a windows shared printer....i'm using fedora core 1 ..and i used to do my work from the black shell...
There is a device which buffers the tty screens. A kind of scroll-back buffer. Unfortunately I don't remember any references but I guess it was related with 2.6 kernel. Try to search.
Or use xterm and all the bells and whistles of X11.
Linux has a wonderful utility called dump ( odd name? )
From a console such as F2, I would run the command: setterm -dump 2-NR-CONSOLES
By default the output goes in the PWD to a file called screen.dump
That can be redirected to a linux printer with the command: cat screen.dump > /dev/lp0
You may have to do some research as how to get it to your windows printer but I suspect that you could start with looking at samba.
Just a note: if you wanted to do this from an X window environment, the command might look like ... xwd -display :0 -root >image.xwd
convert image.xwd image.jpg
or import -window root image.jpg
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.