Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm running ubuntu server virtually . I can't select any text with the mouse since we all know there is no mouse in the server version. so how can I select particular lines of text in Ubuntu server?

share|improve this question
    
can you ssh into it? –  adempewolff Sep 17 '12 at 14:29
    
@adempewolff I guess what you mean is that you should ssh in from your current desktop and then copy the text from there. –  Alvar Sep 17 '12 at 14:40
1  
@Alvar that is what I do for my local virtualized headless servers, only time I access them directly is when there is a problem with the ssh server. Because the server is local you aren't going to get any more lag using ssh than you would using it directly, and having copy/paste, windowing, etc. capabilities makes such a difference for productivity. –  adempewolff Sep 17 '12 at 14:49
add comment

1 Answer

up vote 4 down vote accepted

The Package gpm enables mouse support for the console.

GNU screen Supports copy&paste as well if you don't have a mouse at all.

share|improve this answer
    
Does that work on a headless server? –  hexafraction Sep 17 '12 at 14:03
    
I doubt it, but since you usually connect to a headless server via ssh or something similar it's not the servers problem anymore, it's the clients problem. –  Gerald Schneider Sep 17 '12 at 14:05
2  
Is there a way to select text with the keyboard, though, over something like SSH, or just on a mouse-less machine? –  hexafraction Sep 17 '12 at 14:06
    
After a little googling I found out that screen supports copy&paste as well .. I've been using it for ages and wasn't aware of it. –  Gerald Schneider Sep 17 '12 at 14:13
    
@obsessive: With ssh, the responsibility for copy and paste lies with the client, not the host. Therefore, if the terminal you run ssh from supports copy and paste, your server does too. If it doesn't, it's time to find another one. –  Scott Severance Sep 18 '12 at 9:42
show 2 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.