I am trying to configure vnc on my home server from may laptop. Both are running opensuse leap along with KDE.
I have googled for days with no luck.
So i install tightvnc on server from ssh connection using yast on terminal.
then i run
susebox:~ # vncserver
xauth: (argv):1: bad display name "susebox:2" in "add" command
New 'susebox:2 (admin)' desktop is susebox:2
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/susebox:2.log
susebox:~ # vncviewer susebox:2
TigerVNC Viewer 64-bit v1.6.0
Built on: ??-??-?? ??:??
Copyright (C) 1999-2015 TigerVNC Team and many others (see README.txt)
See http://www.tigervnc.org for information on TigerVNC.
Can't open display:
i tried # vncviewer ip_server:2 also got an error
i disable firewall, still no luck…
i have find this topic here, there are lot covered my topic but still i couldn’t solve my problem…
If susebox is the remote machine, then you are trying to run the viewer on the remote machine. You need to run it locally.
After you have run vncserver on the remote machine, log out of that ssh session, keep the console open, but keep note that the display number, in this case, is 2. This number might be different the next time you evoke vncserver on that machine, so remember to pay attention to that number.
Now, the generic command you would issue would be like this, but since you are spawning a new desktop session on the remote machine, look to the next example for the changes you need to make: