• Home
  • RSS Feed
  • Log in

Pair Programming for Sysadmins
Posted by Wilfred Springer in the early evening: September 6th, 2009

At Xebia, we work quite a lot with teams distributed across the globe. In the true spirit of extreme programming, that means your pair programming buddy might very well be in a completely other timezone. In my team, Mikogo is quite a popular solution in situations like these. However, it is not always the most efficient solution. Especially if you and your team mate are working together remotely on a system neither yours nor your buddy's. Which is exactly what we are doing if we are working on our EC2 based deployments. (That basically means someone from our Dutch team working with someone in our Indian team on a system in the US.)

In those cases, you definitely need to take a look at screen:

Screen is a full-screen window manager that multiplexes a physical terminal between several processes (typically interactive shells).

Think of it as VNC for terminals sessions instead of desktop sessions. (That may not be a very accurate description of what it actually is, but for sake of this blog post, that will do.) Screen is just awesome. True, it does not give you a full-fledged Graphical UI, but - hey - who needs that anyway? The terminal has never let me down. In fact, if you are working on deployment than it most likely involves systems without X support or a frame buffer anyway. So it does not make an awful lot of sense to use Mikogo to transmit loads of information from your own Desktop across the Internet (pixels) to another Desktop, just to share the same viewport on a bunch of characters.

The screencast below shows you how to do it. It's fairly easy. It will demonstrate how two guys - one interesting fella called Wilfred and his compadre Jack - are working together on the same Linux box. The upper terminal is mine, the lower terminal is Jack's. Just imagine these terminals to be opened on our own systems.

  • Share/Bookmark

Tags: ec2, pair programming, productivity, screen
Filed under Java | 6 Comments »



6 Responses to “Pair Programming for Sysadmins”



    Dan Martin Says:
    Posted at: September 7, 2009 at 5:17 am

    Nice post. I’m guessing you mean VNC, not VLC.



    Wilfred Springer Says:
    Posted at: September 7, 2009 at 6:19 am

    Ah, glad you caught that. I changed it instantly.



    Andrew Phillips Says:
    Posted at: September 7, 2009 at 8:13 am

    Another feature of screen we use a lot is the ability to detach a terminal session (search for “detach [-h]” in the man page referenced in the post) and reconnect to it later. This comes in especially handy if, for instance, you want to kick off a long-running task via SSH and then disconnect from the machine.



    Random Links #42 | YASDW - yet another software developer weblog Says:
    Posted at: September 8, 2009 at 6:12 pm

    [...] Pair Programming for Sysadmins Hab gar nicht gewusst, was screen alles kann, vlt. soll ich mir das doch mal genauer anschauen. [...]



    Vincent Partington Says:
    Posted at: September 28, 2009 at 7:06 pm

    @Wilfred Springer: Cool use of screen, a tool any system admin worth his money should know.

    @Andrew Phillips: Detaching and then reattaching (I use screen -dr) is even nicer when suspending machine images (think VMWare). After resuming the image you can get back to where you were before you suspended it.



    iwein Says:
    Posted at: November 19, 2009 at 6:24 pm

    just so you don’t have to watch the whole thing again for the command (and if you’re too lazy to use man):
    to start a screen: screen -S
    to join a screen : screen -x



Leave a Reply

Click here to cancel reply.

Deployment automation for Java application running on Websphere, WebLogic and JBoss

Categories

  • Java (291)
  • Agile (127)
  • General (96)
  • Architecture (47)
  • Testing (45)
  • Scrum (44)
  • Performance (42)
  • Podcast (31)
  • SOA (25)
  • Middleware (31)
    • Deployment (20)
  • Project Management (23)
  • Xebia Labs (21)
  • Quality Assurance (16)
  • Tools (12)
  • lean architecture (11)
  • Requirements Management (10)
  • Articles (9)
  • Virtualization (9)
  • Security (7)

Tag Cloud

    qcon websphere ACT Spring Frameworks Agile Flex Maven Grails Architecture SOA Hibernate Eclipse IntelliJ agile architectuur Lean lean architectuur Oracle Performance XML lean architecture Scala Ajax JPA implementation patterns Moving to India Concurrency Control Java Scrum Groovy JPA

Xebia Sites

  • Xebia Corporate
  • Xebia France
  • Xebia India

Archives

  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009