I am trying to get a remote screen on C7. I did the following on C7 server: yum install tigervnc-server cp /lib/systemd/system/vncserver at .service /etc/systemd/system/vncserver@:1.service systemctl daemon-reload edit /etc/systemd/system/vncserver@:1.service and replace <USER> with myuser su - myuser run vncpassword to set password systemctl start vncserver@:1.service systemctl enable vncserver@:1.service Then when I use something like vncviewer from a windows laptop into the linux desktop I get the password prompt, but the next screen says "oh no, something went wrong". Did I do something wrong above? Thanks, Jerry
On Thu, Jun 02, 2016 at 07:56:37AM -0400, Jerry Geis wrote:> Then when I use something like vncviewer from a windows laptop into the > linux desktop > I get the password prompt, but the next screen says "oh no, something went > wrong".That sounds like the desktop environment (Gnome3) is failing, probably because its a compositing desktop environment and fails because it can't use GL. You could try it with a desktop manager other than Gnome3. -- Jonathan Billings <billings at negate.org>
On 2016-06-02 09:42, Jonathan Billings wrote:> On Thu, Jun 02, 2016 at 07:56:37AM -0400, Jerry Geis wrote: > > Then when I use something like vncviewer from a windows laptop into the > > linux desktop > > I get the password prompt, but the next screen says "oh no, something went > > wrong". > > That sounds like the desktop environment (Gnome3) is failing, probably > because its a compositing desktop environment and fails because it > can't use GL. > > You could try it with a desktop manager other than Gnome3.Hi Jerry, Hope that works. If not, I'm suspicious that the file copy created a file with the wrong (default) SELinux context, which you could confirm with "ls -lZ", and fix with restorecon. Also you can run "ausearch --success no --interpret -ts today" to check the audit log for permissions issues that silently escape notice. Hope that helps, -- Charles Polisher
On Thu, Jun 2, 2016 at 7:56 AM, Jerry Geis <geisj at pagestation.com> wrote:> I am trying to get a remote screen on C7. > I did the following on C7 server: > yum install tigervnc-server > cp /lib/systemd/system/vncserver at .service > /etc/systemd/system/vncserver@:1.service > systemctl daemon-reload > edit /etc/systemd/system/vncserver@:1.service and replace > <USER> with myuser > su - myuser run vncpassword to set password > systemctl start vncserver@:1.service > systemctl enable vncserver@:1.service > > Then when I use something like vncviewer from a windows laptop into the > linux desktop > I get the password prompt, but the next screen says "oh no, something went > wrong". > > Did I do something wrong above? > Thanks, > > Jerry >Two things: 1) I am not using just Gnome3... I am using the MATE desktop if that makes a difference. 2) selinux is disabled on this machine. Thanks, Jerry
On Thu, 2 Jun 2016 14:04:28 -0400 Jerry Geis wrote:> I am using the MATE desktop if that makes a difference.Here are my notes for getting vnc to work on Centos 7 with mate: VNCSERVER SETUP To start vncserver: systemctl start vncserver at 1:service to kill and restart the vnc server as a user: vncserver -kill :1 vncserver :1 To get mate to show up use the follow text in your ~.vnc/xstartup file: #!/bin/sh # Uncomment the following two lines for normal desktop: # unset SESSION_MANAGER unset DBUS_SESSION_BUS_ADDRESS # exec /etc/X11/xinit/xinitrc [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r HOME/.Xresources ] && xrdb HOME/.Xresources xsetroot -solid grey vncconfig -iconic & x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & mate-session & -- MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com
Thanks Frank. The below in fact worked and restarting the service. Jerry To get mate to show up use the follow text in your ~.vnc/xstartup file: #!/bin/sh # Uncomment the following two lines for normal desktop: # unset SESSION_MANAGER unset DBUS_SESSION_BUS_ADDRESS # exec /etc/X11/xinit/xinitrc [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r HOME/.Xresources ] && xrdb HOME/.Xresources xsetroot -solid grey vncconfig -iconic & x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & mate-session &