Quantcast
Viewing all articles
Browse latest Browse all 4439

How to configure TightVNC server to get full Gnome desktop?

I am running tightvnc on Ubuntu 22.04.2 LTS (GNU/Linux 5.15.0-1031-aws x86_64):

$ vncserver :0 -geometry 1980x1080New 'X' desktop is ip-172-31-14-62:0Starting applications specified in /home/hc/.vnc/xstartupLog file is /home/hc/.vnc/ip-172-31-14-62:0.log$ ps aux | grep vnchc        408153  0.0  0.0  14836 12448 pts/0    S    13:37   0:00 Xtightvnc :0 -desktop X -auth /home/hc/.Xauthority -geometry 1980x1080 -depth 24 -rfbwait 120000 -rfbauth /home/hc/.vnc/passwd -rfbport 5900 -fp /usr/share/fonts/X11/misc/,/usr/share/fonts/X11/Type1/,/usr/share/fonts/X11/75dpi/,/usr/share/fonts/X11/100dpi/ -co /etc/X11/rgbhc        408163  0.0  0.0   7004  2196 pts/0    S+   13:37   0:00 grep --color=auto vnc

However, I am getting a grey screen:Image may be NSFW.
Clik here to view.
enter image description here

I have tried this solution and this solution.

Here is my ~/.vnc/xstartup:

$ cat ~/.vnc/xstartup#!/bin/shexport XKL_XMODMAP_DISABLE=1unset SESSION_MANAGERunset DBUS_SESSION_BUS_ADDRESS[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresourcesxsetroot -solid greyvncconfig -iconic &gnome-panel &gnome-settings-daemon &metacity &nautilus &gnome-terminal &

Here is tightvnc's log

28/03/23 13:44:01 Xvnc version TightVNC-1.3.1028/03/23 13:44:01 Copyright (C) 2000-2009 TightVNC Group28/03/23 13:44:01 Copyright (C) 1999 AT&T Laboratories Cambridge28/03/23 13:44:01 All Rights Reserved.28/03/23 13:44:01 See http://www.tightvnc.com/ for information on TightVNC28/03/23 13:44:01 Desktop name 'X' (my_host:0)28/03/23 13:44:01 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t28/03/23 13:44:01 Listening for VNC connections on TCP port 5900Font directory '/usr/share/fonts/X11/75dpi/' not found - ignoringFont directory '/usr/share/fonts/X11/100dpi/' not found - ignoringsh: 1: /home/hc/.vnc/xstartup: Permission denied28/03/23 13:44:10 Got connection from client [client's ip]28/03/23 13:44:10 Using protocol version 3.828/03/23 13:44:10 Got connection from client [some hacker's IP]28/03/23 13:44:10   (other clients [client's ip])28/03/23 13:44:10 Using protocol version 3.328/03/23 13:44:10 rfbVncAuthProcessResponse: authentication failed from [some hacker's IP]28/03/23 13:44:10 Client [some hacker's IP] gone28/03/23 13:44:10 Statistics:28/03/23 13:44:10   framebuffer updates 0, rectangles 0, bytes 028/03/23 13:44:15 Full-control authentication passed by [client's ip]28/03/23 13:44:15 Pixel format for client [client's ip]:28/03/23 13:44:15   32 bpp, depth 24, little endian28/03/23 13:44:15   true colour: max r 255 g 255 b 255, shift r 16 g 8 b 028/03/23 13:44:15   no translation needed28/03/23 13:44:15 Enabling X-style cursor updates for client [client's ip]28/03/23 13:44:15 rfbProcessClientNormalMessage: ignoring unknown encoding -31428/03/23 13:44:15 rfbProcessClientNormalMessage: ignoring unknown encoding -22328/03/23 13:44:15 rfbProcessClientNormalMessage: ignoring unknown encoding -30828/03/23 13:44:15 rfbProcessClientNormalMessage: ignoring unknown encoding -30728/03/23 13:44:15 Enabling LastRect protocol extension for client [client's ip]28/03/23 13:44:15 rfbProcessClientNormalMessage: ignoring unknown encoding -31328/03/23 13:44:15 rfbProcessClientNormalMessage: ignoring unknown encoding -31228/03/23 13:44:15 Using tight encoding for client [client's ip]28/03/23 13:44:15 rfbProcessClientNormalMessage: ignoring unknown encoding 1628/03/23 13:44:15 Using image quality level 8 for client [client's ip]

========================Update #1: Followed Saxtheowl's suggestion:Installed Tigervnc instead:

$ sudo apt install tigervnc-standalone-server tigervnc-xorg-extension tigervnc-viewer

Made xstartup executable:

$ chmod +x ~/.vnc/xstartup$ ls -la | grep xstartup-rwxrwxr-x  1 hc hc  371 Mar 29 12:02 xstartup

Forced a reinstall:

$ sudo apt --reinstall install gnome-session-flashback metacity

Updated xstartup:

$ cat xstartup#!/bin/shunset SESSION_MANAGERunset DBUS_SESSION_BUS_ADDRESS[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresourcesexport XKL_XMODMAP_DISABLE=1export XDG_CURRENT_DESKTOP="GNOME-Flashback:Unity"export XDG_MENU_PREFIX="gnome-flashback-"gnome-session --session=gnome-flashback-metacity --disable-acceleration-check &

But failed to start with display 0:

$ vncserver :0A X11 server is already running for display :0 on machine ip-172-31-14-62.ap-northeast-2.compute.internal.$ ps aux | grep vnchc          3233  0.0  0.0   7004  2324 pts/0    S+   12:13   0:00 grep --color=auto vnc

Started with display 1 but died immediately:

$ vncserver :1 -geometry 1980x1080 -localhost noNew Xtigervnc server 'my_host.ap-northeast-2.compute.internal:1 (hc)' on port 5901 for display :1.Use xtigervncviewer -SecurityTypes VncAuth,TLSVnc -passwd /home/hc/.vnc/passwd my_host.ap-northeast-2.compute.internal:1 to connect to the VNC server.=================== tail /home/hc/.vnc/my_host.ap-northeast-2.compute.internal:5901.log ======================================================================================================================================Session startup via '/home/hc/.vnc/xstartup' cleanly exited too early (< 3 seconds)!Maybe try something simple first, e.g.,    tigervncserver -xstartup /usr/bin/xtermThe X session cleanly exited!Killing Xtigervnc process ID 2940... success!

Viewing all articles
Browse latest Browse all 4439

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>