You are not logged in.

#1 2021-06-24 06:19:20

youngp74
Member
From: Seoul
Registered: 2017-10-19
Posts: 8

[SOLVED] TigerVNC Server problem. bind LightDM to VNC Server

I got stock on vncserver problem for more than 1 year. It was probably at
2019. After system upgrade, I could not run vncserver after ssh to my arch box.
Since that PC didn't connedted to a monitor, I did not use for long time. This
try to fix it. After strugling a day, it work.
  Before TigerVNC updated, I was able to run tigegvnc server as below after
ssh to my Arch box:
 

vncserver :1

  I guess TigerVNC updates is about running TigerVNC as root. I tried many
things as in Arch Wiki. No luck. Finally I could run a server. But it worked
for root only.
 

sudo vncserver :1

  I had to read again again many wiki pages because My English vocabulary is
not much variety. I finally found two things from Arch wikis. They are
LightDM(LightDM VNC Server) and TigerVNC (ssh tunneling for VNC client)

  I did same as those two wiki pages say. I finally got my vncserver back
working. What I got amaged is that there is not much discussions about this on
internet.

  on the Arch remote box:
 

#/etc/lightdm/lightdm.conf below codes added
[VNCServer]
enabled=true
command=Xvnc -rfbauth /etc/vncpasswd
port=5900
listen-address=localhost
width=1024
height=768
depth=24

  on my local machine:
 

ssh -i ~/.ssh/my_rsa_key -fL 9900:localhost:5900 remote_id@remote_ip sleep 10; vncviewer localhost:9900 &

  Maybe I am missing something, if this is wrong, please let me know, I will
delete or correct it. I am just so happy to solve this problem. Thanks a lot
Arch WiKi!

Last edited by youngp74 (2021-06-24 06:43:52)

Offline

Board footer

Powered by FluxBB