Using Screen to share your terminal.

As a consultant who works with remote clients and, before that, a telecommuting systems engineer for companies who used linux I have often encountered the problem of collaborating inside of a remote client that does not have X and who’s only access is ssh. Servers with GUI interfaces like Windows or Mac OS X have a long history of tools to share the desktop with multiple users, oddly enough both are called Remote Desktop. Servers that only have a command line interface, like most linux servers, do not have such an obvious tool for sharing the terminal with another user. While bash and ssh can be manipulated to accomplish this, screen fills this roll nicely.

Screen allows you to create virtual terminals that you can detach from and attach to at will. Detaching from a screen will leave it running in the background. Attaching to it again allows you to keep executing commands where you were or see the current state of a process you left running. If you are the user who started the screen you can attach to a screen that is already attached to, this is is how the shared screen is accomplished.

To set it up, one user logs in to the server and, using su or sudo su, changes to either the second users account or an account that all parties can access. Next, start screen with the -S option and give it a meaningful name.

me@jjtest:~# sudo su – theOtherGuy
theOtherGuy@jjtest:~# screen -S blogTest

If screen is not installed, it is available as a package on most popular linux distributions. You are now in a screen session as theOtherGuy. Now just tell theOtherGuy to log in and that your screen is called blogTest and he will simply need to run screen with the -x option and give the screen name.

theOtherGuy@jjtest:~# screen -x blogTest

At this point you are both in the same screen session and can both interact with it. This is great for showing another user what kind of problems you may be having or how to do a certain process. It can also be used to accomplish remote pair programing on the remote system. And this doesn’t have to be limited to just two users, as long as someone can get to that system as that user they can join the screen as well.

Typing exit at this point will kill the screen and kick both of you out. If one user wants to leave but not kick the other person off the user just presses Ctrl+a and then d, this will detach you from the screen. Ctrl+a is the default hot key for activating screen commands. You can read more about the variety of command available on screen at this site or read abut it fully on the man page.

Screen can be used to do so much more than I’ve talked about here but it’s ability to facilitate the sharing of a terminal between users can be a life saver when you need it. It is not normally installed by default to may linux systems so you may have to install it or ask that it be installed.

  1. Im not sure where you are getting your info, but great topic. I needs to spend some time learning more or understanding more. Thanks for great info I was looking for this information for my mission.

  2. We re a group of volunteers and starting a new scheme in our community. Your website offered us with valuable information to work on. You have done a formidable job and our entire community will be grateful to you.

  3. I admit, I haven’t been using this web site for long periods, however, it was first another pleasure to see such an amazing items plus overpass this. Many thanks for assisting making people find that wonderful factors.

  4. Glorious info at this point. This attention-grabbing deal forced myself smirk. Maybe if you toss inside a couple of pics it’s heading to make the sum of the point much more interesting. In any case, in my own vocabulary, there commonly are not quite a couple of excellent supply like it.

  5. Hi there, You have done an excellent job. Ill certainly digg it and personally recommend to my friends. I am sure they’ll be benefited from this site.

  6. I think this is among the most significant information for me. And i’m glad reading your article. But should remark on few general things, The website style is great, the articles is really nice : D. Good job, cheers

  7. The data pointed out within the post are the greatest accessible|

  8. Every affiliate marketer is always searching for the successful marketplace that provides the biggest paycheck. Occasionally they think it is really a magic formula that’s readily accessible for them. Really, it is more complicated than that.

  9. A lot of the things you point out is supprisingly appropriate and it makes me ponder the reason how I hadn

  10. That you’re running a blog which appears to be a stroll neighborhood! Image trying to blog daily however I just won’t find writing material.. you’re an inspiration in my experience, thanks a lot.

  11. I must say, as very much as I enjoyed reading what you had to say, I couldnt help but lose interest after a while. Its as if you had a good grasap on the topic matter, but you forgot to include your readers. Perhaps you should think about this from far more than 1 angle. Or maybe you shouldnt generalise so much. Its better if you think about what others may have to say instead of just going for a gut reaction to the topic. Think about adjusting your personal thought process and giving others who may read this the benefit of the doubt.

  12. I have come across that these days, more and more people are increasingly being attracted to cameras and the field of pictures. However, being photographer, you should first expend so much period deciding the model of dslr camera to buy along with moving out of store to store just so you might buy the most affordable camera of the trademark you have decided to pick. But it isn’t going to end generally there. You also have take into consideration whether you can purchase a digital digicam extended warranty. Thanks a lot for the good points I gained from your weblog.

  13. Some tips i have often told people today is that while searching for a good on the net electronics retail store, there are a few aspects that you have to remember to consider. First and foremost, you need to make sure to find a reputable and also reliable store that has got great assessments and classification from other buyers and business sector people. This will ensure you are dealing with a well-known store that can offer good service and help to their patrons. Many thanks for sharing your notions on this blog site.

  14. Usually I don’t read post on blogs, however I would like to say that this write-up very compelled me to check out and do it! Your writing style has been surprised me. Thank you, very nice post.

  15. Hey! I know this is kinda off topic however I’d figured I’d ask. Would you be interested in trading links or maybe guest authoring a blog post or vice-versa? My blog covers a lot of the same subjects as yours and I think we could greatly benefit from each other. If you happen to be interested feel free to shoot me an e-mail. I look forward to hearing from you! Wonderful blog by the way!

  16. IF you’re still on the fence for more posts, sign me up!

  17. Bookmarked! Thanks for an amazing post, will read your others posts.

  18. erection dysfunction is the wherewithal to achieve or even sustain a harder erection to get a steady time period. Do not be surprised if you or perhaps a loved one will be at times can not achieve a harder erection

  19. What would all of us do minus the awesome tips you discuss on this website? Who comes with the endurance to deal with critical topics just for common readers like me? I actually and my buddies are very happy to have your web blog among the ones we often visit. We hope you know how very much we get pleasure from your efforts! Best wishes coming from us all.

  20. Almost all I can say is, I dont know what to really say! Except needless to say, for the fantastic tips that are shared within this blog. I am able to think of a trillion fun strategies to read the content on this site. I believe I willll make a move making use of your tips on those issues I could not have been able to handle alone. You’re so careful to permit me to be one of those to learn from your handy information. Please see how much I am thankfully.

  21. We truly appreciate your blog post. You will discover a lot of ways we could put it to very good use while using a minimum of effort with time and financial resources. Thank you really with regard to helping make this post answer many issues we have encountered before now.

  22. I am really impressed with your writing skills and also with the layout on your blog. Is this a paid theme or did you customize it yourself? Either way keep up the nice quality writing, it is rare to see a nice blog like this one nowadays..

  23. In order to properly gather visitors to your web site and have higher conversion rates, it is very important direct your marketplace niche to your website. And the best way to accomplish this is usually to present inbound links that immediately transportation all of them from other latest site to your house page.

  24. Great article and straight to the point. I am not sure if this is really the best place to ask but do you folks have any ideeas where to get some professional writers? Thank you!

  25. You actually make it seem so easy with your presentation but I find this topic to be really something that I think I would never understand. It seems too complex and very broad for me. I’m looking forward for your next post, I will try to get the hang of it!

  26. Hello there! Do you know if they make any plugins to assist with SEO? I’m trying to get my blog to rank for some targeted keywords but I’m not seeing very good success. If you know of any please share. Thank you!

  27. An stimulating speech is designer notice. I reckon that you should pen statesman on this theme, it power not be a preconception subordinate but generally grouping are not enough to mouth on such topics.

  28. I have been brows online more than 3 hours today, yet I have never f any interesting article like yours. It’s pretty worth enough for me. In my view, if all site owners and bloggers made good content as you did, the internet will be a lot more useful than ever before.

  29. Your actually make its seem so easy with your pres. but I find this topic to be really smthg that I think I would never understand. It seems too complex and very broad for me. I’m looking forward for your next post, I will try to get the hang of it!

  30. Thanks for the guidelines you have contributed here. Something else I would like to express is that computer system memory demands generally rise along with other developments in the technological know-how. For instance, if new generations of cpus are introduced to the market, there is certainly usually a similar increase in the size and style preferences of both the computer memory along with hard drive room. This is because the software program operated by simply these processors will inevitably boost in power to leverage the new engineering.

  31. Appreciate this informative articlepublish. I willI am likely to prefer to situationproblem that it could frequently beregularly begetbe difficult when you areif you’reif you find yourself at schoolattending collegeat school as well astogether with essentiallybasicallyessentiallygenerally beginning tobegin tobeginning out create a extendedextendedprolongedlengthy credit scorecredit ratingcredit ratingcredit rating. If you have been college studentspeople that arewhich arewho definitely are trying toattempting toattempting tosearching to endure and possess lengthya longa extendeda great or possibly aor perhaps aor maybe a credit ratinggood credit score backgroundhistoric pastrecord frequently beis frequentlyare oftenis often a tough show possess.

  32. Tag Heuer Watches Buy

  33. A few things i have generally told folks is that when looking for a good on the net electronics retail outlet, there are a few elements that you have to remember to consider. First and foremost, you want to make sure to find a reputable plus reliable store that has picked up great reviews and classification from other people and business world experts. This will make certain you are dealing with a well-known store that delivers good assistance and help to its patrons. Thanks for sharing your notions on this weblog.

  34. Between me and my husband we’ve owned more MP3 players over the years than I can count, including Sansas, iRivers, iPods (classic

  35. Poor credit mortgage lenders, often called sub-prime lenders, are those that specialize in offering loans to individuals with less than perfect credit numbers. Because of recent historically low interest rates, a lot of buyers are choosing to buy their 1st house or renew the financing of their present mortgage to obtain a better rate.

  36. I like the helpful info you provide in your articles. I will bookmark your weblog and check again here frequently. I’m quite certain I will learn lots of new stuff right here! Good luck for the next!

  37. Hey! I know this is kinda off topic however , I’d figured I’d ask. Would you be interested in trading links or maybe guest authoring a blog article or vice-versa? My website covers a lot of the same topics as yours and I feel we could greatly benefit from each other. If you’re interested feel free to send me an email. I look forward to hearing from you! Wonderful blog by the way!

  38. Fantastic beat ! I would like to apprentice while you amend your web site, how can I subscribe for a blog site? The account aided me a acceptable deal. I had been a little bit acquainted of this your broadcast offered bright clear idea

  39. Hi there, recently became aware of this site through Bing, and discovered that it’s truly awesome. I am gonna watch out for brussels. I will be grateful if you keep on writing about this subject later on. A lot of folks will benefit from your writing. Take care!

  40. Great beat ! I would like to apprentice while you amend your site, how could I subscribe for a blog web site? The account aided me a acceptable deal. I had been tiny bit acquainted of this your broadcast offered bright clear concept

  41. Can you tell us more about this? I’d want to find out more details.

  42. Hey, you used to write great, but the last several posts have been kinda boring… I miss your great writings. Past few posts are just a little out of track! come on! Partake of some of life’s sweet pleasures. And yes, get comfortable with yourself. by Oprah Winfrey.

  43. This webpage doesn’t render properly on my apple iphone – you might wanna try and fix that

  44. Hi, I think your blog might be having browser compatibility issues. When I look at your website in Ie, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, amazing blog!

  45. This is the correct blog for anyone who needs to search out out about this topic. You notice so much its nearly laborious to argue with you (not that I truly would want…HaHa). You undoubtedly put a brand new spin on a subject thats been written about for years. Great stuff, simply nice!

  46. I have been browsing online more than 3 hours today, yet I never found any interesting article like yours. It is pretty worth enough for me. In my view, if all webmasters and bloggers made good content as you did, the net will be a lot more useful than ever before.

  47. A lot of the things you mention happens to be astonishingly precise and it makes me ponder why I hadn’t looked at this in this light previously. This particular article truly did switch the light on for me personally as far as this specific issue goes. Nevertheless there is 1 issue I am not necessarily too comfy with so while I attempt to reconcile that with the actual main idea of your point, permit me observe just what the rest of your subscribers have to say.Nicely done.

  48. I’ve really enjoyed reading your articles. You obviously know what you are talking about! Your site is so easy to navigate too, I’ve bookmarked it in my favourites.While searching google I found your post. The post is exactly what I am looking for. Entire article is written in very informative way. Looking forward for more articles.

  49. I similar to Your Content about Bob’s Web page | Morning 3 for the ‘Que Path Perfect what exactly I was looking for!.

  50. Simply desire to say your article is as astonishing. The clearness in your post is simply great and i can assume you’re an expert on this subject. Fine with your permission let me to grab your feed to keep updated with forthcoming post. Thanks a million and please carry on the enjoyable work.

  1. No trackbacks yet.