Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Hi. I often have issues starting my window manager--xfce. My computer misbehaves in one of 3 ways, one of which is to fail to open X, but generate several screens of info. I want to paste that info to this site, but since I'm in the shell, not the terminal (please correct my vocabulary if it's wrong here), I don't know how to copy and paste the output, since right-clicking doesn't give me a menu. Even if I could copy I'm not sure the information would be accessible in X. Are there any other options?
If you have gpm installed or running, you can use your mouse to copy and paste text in a terminal.
It would be the same as highlighting the text, then opening an editor on the command line to paste, like vi newfile to save the pasted text in the file.
If you have gpm installed or running, you can use your mouse to copy and paste text in a terminal.
It would be the same as highlighting the text, then opening an editor on the command line to paste, like vi newfile to save the pasted text in the file.
You weren't listening. He said he was having problems and had no window manager and thus no graphic terminal, just a console. I don't know if there is anything for slackware, but in debian there is a package called gpm (general purpose mouse) which lets you do some limited cut and paste within your console, but it might be awkward to do it. Maybe you could cut and paste a line at a time into a command line
echo ' <place cursor here and right click after selecting the line> ' >> filename
this might allow you to copy the error messages to a test file and then if you could figure out a way to get that file copied into a post on the forum I guess that might do what you want.
You weren't listening. He said he was having problems and had no window manager and thus no graphic terminal, just a console. I don't know if there is anything for slackware, but in debian there is a package called gpm (general purpose mouse) which lets you do some limited cut and paste within your console, but it might be awkward to do it. Maybe you could cut and paste a line at a time into a command line
echo ' <place cursor here and right click after selecting the line> ' >> filename
this might allow you to copy the error messages to a test file and then if you could figure out a way to get that file copied into a post on the forum I guess that might do what you want.
No you were not reading properly. Read trickykid's post properly and you'll see that the same solution as yours is being suggested with no mention of the GUI.
No you were not reading properly. Read trickykid's post properly and you'll see that the same solution as yours is being suggested with no mention of the GUI.
What do you mean I wasn't reading properly? It seems trickykid was not reading properly. The original poster said he was using xfce as a window manager, Not gnome (gdm), so please don't tell me I am "reading it wrong". As for the solution 'similar' to mine, since the messages are being generated at startup the only way for that redirect to work is in you put that somewhere in one of the startup scripts so that the redirect happens before the error messages and not after.
Redirect both output and error messages to a file:
Code:
command &> file
This isn't helpful when it's a message not invoked by a command you might have run yourself, perhaps a system message or error during bootup process, etc.
Thank you all for your help. When the problem finally recurred I ended up following trickykid's advice in his first post: I selected the text, wrote to a file in parts using the gpm feature, and now I can post the information.
I'm late but wish to add the mouse buttons for 'gpm' usage. The middle button will insert the highlighted text at the cursor position on current line. Don't forget the pick by double-click to highlight then either copy, paste or insert from point. If setup properly you can use 'gpm' on console(s), terminals or GUI. Handy whenever you want to mix the cli with other apps. Great with 'vi'.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.