0

So I got my RPi 3 today and I spent a good 5 hours trying to run it headlessly because I usually use my laptop, plus I only have a DVI monitor and have to use an HDMI to DVI adapter (getting no sound either). When I connect it the orthodox way (HDMI cable to monitor, keyboard and mouse plugged in) I see the normal Raspbian DE, and it's functioning perfectly.

Then I followed a few tutorials on how to use it headlessly, and what I basically did was add ip=169.254.0.2 in the cmdline.txt file on the SD card. Then I ran ssh -Y pi@169.254.0.2, entered the name and password, and I got to the raspberry terminal (such a success after hours of sweat and tears). However, when I run lxsession the screen starts flashing and in a little bit I get some taskbar on the bottom of the screen, which is nothing like the Raspbian environment (e.g. it has the Debian logo instead of the red raspberry).

My question is, is it possible to connect to the RPi over SSH using my laptop, while also getting the exact same experience as going the whole nine yards and using an external monitor and peripherals? I want to be able to develop and text on my laptop anywhere, obviously impossible the other way...

2 Answers2

1

No. You cannot run visual environment within an SSH session.

To have (almost) "the exact same experience as going the whole nine yards and using an external monitor and peripherals" you should set up VNC.

RealVNC server comes pre-installed on Raspbian, but you need to enable it. Refer to the official documentation for detailed instructions.

You might however need to install VNC client like VNCviewer on your Debian machine.

techraf
  • 4,353
  • 10
  • 32
  • 43
0

There are so many things wrong with this question.

  1. 169.254.0.2 is a Link-local address and not routable. See How do I set up networking/WiFi/Static IP

  2. ssh is a protocol which is normally used to access the console and used to enter commands on a terminal.

  3. If you want to see the GUI you need to use a suitable protocol. VNC is probably the most common. There are 2 popular flavours RealVNC is included in latest Raspbian. TightVNC is another. I will leave you to research this if you want to go this way.

Milliways
  • 62,573
  • 32
  • 113
  • 225