DietPi VNC Server Headless....head wrecked! Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
feardamhan
Posts: 21
Joined: Tue Apr 28, 2020 12:51 pm

Re: DietPi VNC Server Headless....head wrecked!

Post by feardamhan »

Tried that and ss -alnp | grep Xvnc-core still returns nada
User avatar
Joulinar
Posts: 2549
Joined: Sat Nov 16, 2019 12:49 am

Re: DietPi VNC Server Headless....head wrecked!

Post by Joulinar »

but what is the output of the manual start? for me the last lines looks like this

Code: Select all

...
Running applications in /root/.vnc/xstartup

VNC Server catchphrase: "Spider state mercury. Carrot diet Henry."
             signature: 38-24-c0-46-a4-10-d0-34

Log file is /root/.vnc/DietPi3:1.log
New desktop is DietPi3:1 (192.168.0.12:1)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
feardamhan
Posts: 21
Joined: Tue Apr 28, 2020 12:51 pm

Re: DietPi VNC Server Headless....head wrecked!

Post by feardamhan »

'/usr/local/bin/vncserver start' does not appear to restart the vnc server service at all. Running it does not error out but it returns no output
User avatar
Joulinar
Posts: 2549
Joined: Sat Nov 16, 2019 12:49 am

Re: DietPi VNC Server Headless....head wrecked!

Post by Joulinar »

yes that's correct. ths command did not restart the service. It will start the server manually only. Anyhow it should give anything back. For me it's quite a long output. Still something seems to be strange on your VNC installation. can you do ps -ef|grep vnc and post the entire output
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
feardamhan
Posts: 21
Joined: Tue Apr 28, 2020 12:51 pm

Re: DietPi VNC Server Headless....head wrecked!

Post by feardamhan »

Code: Select all

root@raspberrypi-emby:~# ps -ef|grep vnc
root       492     1  0 19:11 ?        00:00:00 /usr/bin/vncserver-x11-serviced -fg
root       494     1  0 19:11 ?        00:00:00 /usr/bin/vncserver-virtuald -fg
root       522   492  0 19:11 ?        00:00:00 /usr/bin/vncserver-x11-core -service
root      1029   949  0 19:12 pts/0    00:00:00 grep vnc
User avatar
Joulinar
Posts: 2549
Joined: Sat Nov 16, 2019 12:49 am

Re: DietPi VNC Server Headless....head wrecked!

Post by Joulinar »

that's all?? I have way more processes running

Code: Select all

root@DietPi3:~# ps -ef|grep vnc
root       430     1  0 20:17 ?        00:00:00 /usr/bin/vncserver-x11-serviced -fg
root       433     1  0 20:17 ?        00:00:00 /usr/bin/vncserver-virtuald -fg
root       444   430  0 20:17 ?        00:00:00 /usr/bin/vncserver-x11-core -service
root       635     1  0 20:17 ?        00:00:00 /usr/bin/vncserver :1 -geometry 2160x1440 -depth 16
root       637   635  4 20:17 ?        00:00:00 /usr/bin/Xvnc-core :1 -auth /root/.Xauthority -pn -geometry 2160x1440 -depth 16
root       654   635  0 20:17 ?        00:00:00 /bin/sh /etc/vnc/xstartup
root       681     1  3 20:17 ?        00:00:00 /usr/bin/vncserverui virtual 13
root       695   681  1 20:17 ?        00:00:00 /usr/bin/vncserverui -statusicon 5
root       857   777  0 20:18 pts/0    00:00:00 grep vnc
root@DietPi3:~#

root@DietPi3:~#

Do you have a spare SD card and could do a fresh install? Something seems to be wrong
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
feardamhan
Posts: 21
Joined: Tue Apr 28, 2020 12:51 pm

Re: DietPi VNC Server Headless....head wrecked!

Post by feardamhan »

yup, thats all of it

This was a fresh install about 60 mins ago. Wiped the SD card, included the RealVNC installation in the dietpi.txt that was on the SD card before first boot. Literally nothing else done since.

The first install also includes
emby
mariadb
vim
samba client
syncthing

I might strip back the rest, and literally just do realVNC (and manually via dietpi-software) and see what happens, in case there is some weird issues during install.
User avatar
Joulinar
Posts: 2549
Joined: Sat Nov 16, 2019 12:49 am

Re: DietPi VNC Server Headless....head wrecked!

Post by Joulinar »

Currently it looks like there is no xsession started for VNC
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
feardamhan
Posts: 21
Joined: Tue Apr 28, 2020 12:51 pm

Re: DietPi VNC Server Headless....head wrecked!

Post by feardamhan »

Ok. So a fresh install, cutting the dietpi.txt for first boot to the bare bones of just the IP address required, plus a manual install of realVPN via dietpi-software, got my ps -ef | grep vnc to display this

Code: Select all

root@dietpi-server1:~# ps -ef | grep vnc
root       495     1  0 21:00 ?        00:00:00 /usr/bin/vncserver-virtuald -fg
root       504     1  0 21:00 ?        00:00:00 /usr/bin/vncserver-x11-serviced -fg
root       529   504  0 21:00 ?        00:00:00 /usr/bin/vncserver-x11-core -service
root       682     1  0 21:00 ?        00:00:00 /usr/bin/vncserver :1 -geometry 1280x720 -depth 16
root       684   682  0 21:00 ?        00:00:01 /usr/bin/Xvnc-core :1 -auth /root/.Xauthority -pn -geometry 1280x720 -depth 16
root       697   682  0 21:00 ?        00:00:00 /bin/sh /etc/vnc/xstartup
root       732     1  0 21:00 ?        00:00:00 /usr/bin/vncserverui virtual 15
root       755   732  0 21:00 ?        00:00:00 /usr/bin/vncserverui -statusicon 5
root      1260  1188  0 21:20 pts/0    00:00:00 grep vnc
Also 'ss -alnp | grep Xvnc-core' looks better

Code: Select all

ss -alnp | grep Xvnc-core
u_str  LISTEN  0        0                                     /tmp/.X11-unix/X1 15363                                                   * 0                      users:(("Xvnc-core",pid=684,fd=3))
u_str  LISTEN  0        0                        /tmp/.vnc-0/Xvnc.CtrlComms.1.0 15389                                                   * 0                      users:(("Xvnc-core",pid=684,fd=9))
tcp    LISTEN  0        5                                               0.0.0.0:5901                                              0.0.0.0:*                      users:(("Xvnc-core",pid=684,fd=7))
tcp    LISTEN  0        128                                             0.0.0.0:6001                                              0.0.0.0:*                      users:(("Xvnc-core",pid=684,fd=1))
tcp    LISTEN  0        5                                                  [::]:5901                                                 [::]:*                      users:(("Xvnc-core",pid=684,fd=6))
tcp    LISTEN  0        128                                                [::]:6001                                                 [::]:*                      users:(("Xvnc-core",pid=684,fd=0))
Still can't connect tho. Same error of 'Cannot currently show the desktop'
User avatar
Joulinar
Posts: 2549
Joined: Sat Nov 16, 2019 12:49 am

Re: DietPi VNC Server Headless....head wrecked!

Post by Joulinar »

Ok that looks good now. You should be able to connect using IP:1 or IP:5901. Thats the port the vnc is running on as you can see on your output above.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply