7

I want to let some smart programers play with a few Raspberry Pi boards at an event I am running. They will all have laptops and internet access. We probably won't have access to keyboards and screens though.

  • Is it possible to use a laptop keyboard to control the Pi and use the laptop screen as a display?
  • What cables would I need to allow this to happen if so?
  • Any idea how long it might take to set up - the people doing it would be super smart - I however, am not? :-(

Thank you. (I see there is already a question about using a laptop screen but the question doesn't seem to have been resolved yet).

4 Answers4

10

You can use VNC server on rarspberryPi and VNC clients on developers laptops. You can use tightvncserver package for this. In most typical setup, each client connecting to VNC will see exatcly the same screen, will control the same mouse pointer etc. I believe you would like to setup it so that every one that logs in gets his own individual screen.

To start VNC session, you can type:

tightvncserver :X

where X is a slot number. You can use :1, :2, :3, etc. It will ask your for password twice. It's the password clients will use to authenticate to the VNC server.

You can run multiple servers as long as each of them have different slot number. You have to specify proper slot number in VNC client when connecting, using proper port number. Port 5901 is slot :1, 5902 is slot :2 etc.

If they don't need graphical output, you could setup SSH server and create accounts for each developer. Developers with Linux systems or develpers who knows how to setup X server on their machines could also use SSH X forwarding feature to run some graphical programs.

Note that you won't be able to use such a setup for many developers at the same time as RaspberryPi is just not powerful enough. Each such session will have it's own programs running and there is really not much RAM and CPU power available.

Krzysztof Adamski
  • 9,605
  • 1
  • 38
  • 53
6

You could also run the Raspberry Pi as the wireless access point itself. All you need is a USB WiFi dongle (I used a RALINK RT5370). Instructions @ http://sirlagz.net/?p=589

Then use SSH or VNC as per above answer, I would recommend SSH myself as VNC with X and multiple sessions will probably bring the Pi to its knees very quickly

Lawrence
  • 2,692
  • 15
  • 14
2

The question was about what cables people would need so I assume you're actually going to physically hand the RPis to the programmers. Looking at the other answers VNC or SSH is obviously a part of the solution and I agree with that but there is some discussion about how the laptops can connect to the RPis and while all of the before mentioned solutions would work I think they're overly complex or would require a good amount of expensive network infrastructure.

So to directly answer your question to the best of my knowledge you'll need 2 cords.

  1. An appropriate USB cord and cell phone charger to power the RPis. Many of the laptops will probably be able to power the RPis with their built in USB ports but this is not recommended as not all USB firmware will support this mode of operation so better to be safe with the cell phone chargers than sorry.

  2. A CROSSOVER ethernet cable. Crossover cables allow you to directly connect two hosts without a hub or switch so with them the laptops and RPis will have connectivity without clogging up the limited network you're likely to have at your event.

You'll need to make sure the images the RPis are running all have VNC installed and are ready to use before the event.

Dan B
  • 2,907
  • 2
  • 21
  • 20
1

This thread has got me thinking. Id like to use my laptop to tinker with my Pi, but access to a TV and keyboard etc is tricky at the mo (house rennovation, shared TV, family living in 1 room etc)... I'm not yet at the stage where i can VNC or SSH on to it, it needs some config. Im a techie, but not a dev or had much experience of Linux so want to play... just had a brainwave however... surely I could setup a VM to run the linux distro of choice and play with it to my satisfaction, then copy the necessary config to the RPi at leisure when i can steal the telly for a bit... My TV time would likely be less than required without the VM.

Anyone tried anything similar and have any thoughts?

Becky
  • 11
  • 1