1

I've got a Raspberry Pi 3 Model B with Raspbian Jessie Lite. So far I've been happy running it with command line only, but I came up with a use case for a graphical browser, so I installed the X environment and started it:

sudo apt-get install xserver-xorg xinit xserver-xorg-video-fbdev lxde lxde-common

sudo startx

Now that works fine and when I connect with a suitable client (MobaXterm, if that makes any difference) I can run and use Iceweasel browser just fine (sudo apt-get install iceweasel, then iceweasel &).

However, the issue is now: how do I leave the Iceweasel running when I quit the SSH session? If it was a command line application I'd do nohup iceweasel &, but it doesn't work in this case... Also, I'd naturally like to be able to reattach the Iceweasel window to my session when I reconnect with SSH.

ZeroOne
  • 131
  • 5

2 Answers2

2

No SSH needed, I ended up using VNC. Quick instructions:

sudo apt-get update

sudo apt-get install realvnc-vnc-server realvnc-vnc-viewer

sudo raspi-config > Interfacing Options > VNC > "Yes"

And now, since it's a headless system, you need to start a virtual desktop:

vncserver

It then prints the IP and the display number to the terminal, something like "192.167.5.149:1". You can then use that piece of information to connect to the Raspberry using, say, the RealVNC Viewer.

ZeroOne
  • 131
  • 5
0

The program "screen" is what you are looking for.

A simple tutorial:

https://www.rackaid.com/blog/linux-screen-tutorial-and-how-to/

MatsK
  • 2,882
  • 3
  • 17
  • 22