[CentOS] vnc on C7

koenigsohn

ulrich.koenig at telekom.de
Wed Jul 13 16:10:38 UTC 2016


Hi Jerry,

I done a lot of search in google. Than I find your post, but without success
for my problem.

I have add your xstartup file. But I can't get it working with this
startupfile.
One problem is, that I can't find the x-terminal-emulator on my machine.

Which package must I install for x-terminal-emulator in CentOS7 ?

Maybe you can have a look at my logfile and my configuration for additional
hints.

I am happy for any kind of feedback.

Koenigsohn

**************** *devtest1:4.log* **************************
Xvnc TigerVNC 1.3.1 - built Mar 31 2016 16:34:53
Copyright (C) 1999-2011 TigerVNC Team and many others (see README.txt)
See http://www.tigervnc.org for information on TigerVNC.
Underlying X server release 11702000, The X.Org Foundation


Wed Jul 13 15:49:53 2016
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on all interface(s), port 5904
 vncext:      created VNC server for screen 0
No protocol specified
/usr/bin/vncconfig: unable to open display ":4"
No protocol specified
xsetroot:  unable to open display ':4'
/home/ulkoenig/.vnc/xstartup: line 12: x-terminal-emulator: command not
found
No protocol specified
vncconfig: unable to open display ":4"
No protocol specified

** (mate-session:2597): WARNING **: Could not open X display
No protocol specified

** (mate-session:2597): WARNING **: Cannot open display: 
***********************************************************************

*The xstartup file is here*
********************** xstartup *************************
#!/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 &
***********************************************************

*The vncserver.service file is here*
************************ /etc/systemd/system/vncserver@:4.service
************************** 

[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target

[Service]
Type=forking
# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/usr/sbin/runuser -l ulkoenig -c "/usr/bin/vncserver %i -geometry
1280x1024"
PIDFile=/home/ulkoenig/.vnc/%H%i.pid
ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'

[Install]
WantedBy=multi-user.target
****************************************************************************************************





--
View this message in context: http://centos.1050465.n5.nabble.com/CentOS-vnc-on-C7-tp5743554p5744086.html
Sent from the CentOS mailing list archive at Nabble.com.



More information about the CentOS mailing list