3

I am trying to connect my Pi to my laptop, I have finished installing the OS and through PuTTY and Xming, I am trying to setup the connection but now startlxde command doesn't work.

Can someone help me with this? Please see the image, that's the error I am getting. I am able to perform operations on the Pi using sudo rasbpi-config though.

Screenshot of startlxde:command not found

Greenonline
  • 2,969
  • 5
  • 27
  • 38
Nea
  • 31
  • 1
  • 1
  • 2

5 Answers5

1

Run below command in terminal session:

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

then,

sudo systemctl start vncserver-virtuald.service

to setting up your vncserver run:

vncserver    :1

in pc/mobile you can install and run vncviewer (client) with port ie. 192.168.42.104:1

vnc-viewer

then the login to your raspberry pi.

External references:

https://www.realvnc.com/en/connect/docs/raspberry-pi.html

MatsK
  • 2,882
  • 3
  • 17
  • 22
Sivamani V
  • 11
  • 3
0

In theory, as long as you have Xming running, it is possible to display GUI over ssh. I have tried that on other linux systems before, although not specifically on pi.

In my experience it can be difficult to configure things exactly right, but I am not a pro at this by any means. You should read this for ideas: https://elinux.org/RPi_Remote_Access

I find that using MobaXterm works better for me. It has a X server built in. And startlxde works fine. You can also launch individual GUIs. (Like type lxterminal in your ssh connection)

Seamus
  • 23,558
  • 5
  • 42
  • 83
hz lin
  • 1
0

Use manually commands like in lx terminal type "pcmanfm" this is a alternate to start gui in pi. Then file explorer will pop up in that simply go to application tab where you find severals application associated to pi.

Hack3r
  • 16
  • 1
-1

Putty is an SSH client, it is impossible to display a graphical environment through an SSH session, or TELNET etc ...

To display the graphical environment of Raspbian, you have to connect the Pi to a screen (HDMI)

-1

As already said, Putty is an SSH (Secure Shell) client and cannot display the GUI.

Moreover, the command for starting the GUI is "startx" now.

You can get the GUI for Raspberry Pi by using VNC (just like ssh).

You just have to go to raspi-config and set VNC SERVER to ON. (Just like SSH)

And then you should download VNC VIEWER APP on your phone or desktop. ( Analogous to PUTTY)

Put in your Pi's IP address and enter tour password- default is raspberry.

There are two possibilities now-

1) You'll be inside the command line of Pi. Just type 'startx' (without quotes . And you'll have the GUI (Desktop interface) loaded.

2) You may be directly taken to the GUI.

Manav
  • 107
  • 3