0

I would like to setup a small computer (Raspberry Pi) running Arch Linux to accept remote X sessions. Doing this usually means setting up Xorg server and running one of the Display Managers. I have done this before, and I will go this route if I have to. However, since the machine is very underpowered, and it is actually not connected to a physical monitor, I was hoping to setup the X server to accept only remote sessions. This way no memory would be wasted on managing the local graphics card, video memory etc, since they are not being used. Is it possible to setup the X server to accept only remote sessions without going into local graphical mode? And how?

mikijov
  • 1,552
  • 24
  • 37

2 Answers2

2

It's possible to set up a *ix to remote display to a system you're sitting in front of, without an X server on the machine running the app.

You need X11 libraries, one or more X11 applications, and you probably want openssh set up for remote X11 forwarding - all on the raspberry pi. You'll also want an X server running on the machine you're sitting in front of.

On the Raspberry Pi, change your sshd_config to include "X11Forwarding yes". After making this change, restart sshd or reboot.

Then apt-get or yum your X11 libraries and app(s).

When you connect to the Raspberry Pi machine, use "ssh -Y" instead of just ssh to pass along xauth data.

Good luck!

dstromberg
  • 6,954
  • 1
  • 26
  • 27
  • Thanks, this connected the dots. @bobah Thanks for you comments as well. Both answers filled a bit of a puzzle, and now it all works. dstromberg was ever so slightly closer, so I accept this answer. Thanks to both any way. – mikijov Nov 09 '12 at 19:04
1

Disable automatic start of the login manager and X server, instructions are googlable, say http://www.debianadmin.com/howto-boot-debian-in-text-mode-instead-of-graphical-mode-gui.html. From personal experience running X apps on raspberry remotely is not too good either.

bobah
  • 18,364
  • 2
  • 37
  • 70
  • I might be missing something. If I do not start a login manager, which process will listen to incoming X sessions? – mikijov Nov 08 '12 at 21:13
  • @MikiJ - it works the other way around, remote computer starts X server locally and tunnels the listening port to the server, apps running on the server use client's X server to display graphics. – bobah Nov 08 '12 at 21:18