I'm sure everyone knows how to do this, but I see a lot of people running tightvncserver to run an X session remotely whereas running X over ssh is much more efficient as the poor old Pi doesn't have to do as much compression and/or drawing the screen.
On a mac (and linux) it's just a matter of running the command
- Code: Select all
ssh -X pi@YOUR_PI_IP_ADDR
Your Pies(?) IP can be seen by typing
- Code: Select all
ifconfig
OUTPUT:eth0 Link encap:Ethernet HWaddr b8:27:eb:bc:d7:79
inet addr:192.168.2.3 Bcast:192.168.2.255 Mask:255.255.255.0
Once logged into your Pi, you will notice the usual pi@raspberrypi prompt, plus an X session will start on your Mac. Running any X windows program will display the results on the Mac.
Try
- Code: Select all
xeyes
To run a complete session, type
- Code: Select all
lxsession
Sound works (it comes out of headphone socket) if you do a
- Code: Select all
sudo modprobe snd_bcm2835
For best results make sure to change prefs for X11 - output->fullscreen, otherwise it can a bit muddly, or just move to a seperate clear desktop (mac) and minimise the original terminal (don't close it or this will logout from the pi)
To quit, it's best just to do a 'sudo reboot' otherwise things get confusing, though you can ctrl-c the original terminal to terminate the lxsession.
You will have to setup ssh on the pi :-
- Code: Select all
cd /boot
sudo mv boot_enable_ssh.rc boot.rc
Now reboot pi and ssh should work.
If anyone else can confirm this works on their Debian squeeze 19-04-2012, on a virgin install, it would be useful. I may have inadvertantly setup a package to facilitate this, but it should work straight out of the pi-box.
I think there is a version of X for windows, but as usual you'll have to jump through a lot more hoops.