Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 4525  / 2 Years ago, tue, october 18, 2022, 7:20:17

We have a couple of (identical) Ubuntu 11.10 machines, configured with gnome-classic, which we use as remote servers, and let our clients log into personal user accounts we create for them using vnc4server.



We configured all the machines in the same way, following a short manual we compiled, describing how to download, install and prepare a few tools and our software.



The connection usually works fine, but today I set up a fresh machine, and experienced problems.



After installing vnc4server, I ran vncpasswd and copied the following startup file to ~/.vnc/xstartup:




#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
gnome-session --session=gnome-classic &
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &


Then, I started vnc4server and used two viewers (the Ubuntu Remote Desktop Viewer and Windows RealVNC Client) in two other machines, but instead of getting my desktop, I see an empty window with a grey-ish background pattern like this:



enter image description here



and the cursor is a bold X.



What is wrong with the setup and why don't I get a remote session as expected?


More From » 11.10

 Answers
1

So, we found out that the xstartup file needs executable permission, which were not set in this machine's configuration. Contrary to other machine, this time I created a new file and typed the contents in instead of just copying a file from another machine, so by default it did not have exe permissions.



> chmod a+x ~/.vnc/xstartup


[#39400] Wednesday, October 19, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
algicuade

Total Points: 317
Total Questions: 89
Total Answers: 106

Location: Saint Pierre and Miquelon
Member since Fri, Jan 28, 2022
2 Years ago
;