If that dont work reinstall the appropriate gnome package sudo apt install gnome-session-flashback metacity then restart the VNC it should work.Install vncServer in Ububtu 12.04 server to create a virtual desktop on another computer Then chmod +x ~/.vnc/xstartup then kill any remaining VNC session vncserver -kill :0 then start a new VNC session vncserver :0 -geometry 1980x1080 -localhost no then you can try connecting to your VNC server with your VNC client If that dont work get a better VNC like TigerVNC sudo apt install tigervnc-standalone-server tigervnc-xorg-extension tigervnc-viewer then create a new xstartup file nano ~/.vnc/xstartup put this inside: #!/bin/sh Your problem come from incorrect permission or an outdated version of TightVNC.įirst you can try to set the correct permission chmod +x ~/.vnc/xstartup Session startup via '/home/hc/.vnc/xstartup' cleanly exited too early (< 3 seconds)! Use xtigervncviewer -SecurityTypes VncAuth,TLSVnc -passwd /home/hc/.vnc/passwd my_:1 to connect to the VNC server. New Xtigervnc server 'my_:1 (hc)' on port 5901 for display :1. Started with display 1 but died immediately: $ vncserver :1 -geometry 1980x1080 -localhost no Gnome-session -session=gnome-flashback-metacity -disable-acceleration-check &īut failed to start with display 0: $ vncserver :0Ī X11 server is already running for display :0 on machine. rwxrwxr-x 1 hc hc 371 Mar 29 12:02 xstartupįorced a reinstall: $ sudo apt -reinstall install gnome-session-flashback metacityĮxport XDG_CURRENT_DESKTOP="GNOME-Flashback:Unity"Įxport XDG_MENU_PREFIX="gnome-flashback-" Made xstartup executable: $ chmod +x ~/.vnc/xstartup Installed Tigervnc instead: $ sudo apt install tigervnc-standalone-server tigervnc-xorg-extension tigervnc-viewer Update #1: Followed Saxtheowl's suggestion: Here is my ~/.vnc/xstartup: $ cat ~/.vnc/xstartup I have tried this solution and this solution. Starting applications specified in /home/hc/.vnc/xstartup
0 Comments
Leave a Reply. |