Gnome-terminal will not start via vnc when vncserver started via cron

General support questions
Post Reply
gbigras
Posts: 3
Joined: 2016/07/04 16:07:16

Gnome-terminal will not start via vnc when vncserver started via cron

Post by gbigras » 2017/04/18 20:11:27

I have cron setup to launch a script every 5 minutes that checks if vncserver is running. If not it launches another script that will start vncserver as a specific user and display ( su - <user> -c "/usr/bin/vncserver -geometry 1280x1024 :1" )

If I "su" as the user and run the command from an ssh session then vnc to the machine, I can launch gnome-terminal without any issues. I see this issue only when vncserver is started via cron.

thanks in advance for your help.
Guy

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Gnome-terminal will not start via vnc when vncserver started via cron

Post by TrevorH » 2017/04/18 21:04:51

I'd suggest using your script to start vnc using the service command.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply