• Home
  • RSS Feed
  • Log in

Wilfred Springer

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

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.

    Reply


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

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

      Reply


    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.

    Reply


    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. [...]

    Reply


    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.

    Reply


    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

    Reply


Leave a Reply

Click here to cancel reply.


Xebia Sites

  • Xebia Corporate
  • Xebia France
  • Xebia India
  • Xebia Sweden

Categories

  • Java (311)
  • Agile (181)
  • General (136)
  • Scrum (67)
  • Architecture (64)
  • Testing (59)
  • Performance (46)
  • Middleware (56)
    • Deployment (38)
  • Xebia Labs (39)
  • SOA (31)
  • Podcast (31)
  • Project Management (28)
  • Tools (26)
  • Uncategorized (20)
  • lean architecture (20)
  • Quality Assurance (17)
  • Articles (13)
  • Requirements Management (13)
  • Virtualization (19)

Tag Cloud

    Moving to India Scala product owner Ajax Eclipse Architecture Java XML agile architectuur ACT Oracle lean architectuur Hibernate SOA Groovy Grails Concurrency Control Javascript Agile Scrum Spring Lean Maven TDD JPA Flex JPA implementation patterns Xebia lean architecture Frameworks

Archives

  • February 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
Avatars by Sterling Adventures