I want to run Google Chrome 24/7 because there is an extension I need to use.
I have installed XFCE and TightVNC as described here:
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-16-04
and is working fine, I can login, see the desktop, execute chrome, my extension is running, everything is ok.
The problem is if I kill the vncserver then Chrome stops working (I think this is because vncserver is starting xfce?)
I’m very noob on these things please could you tell me what is the best way to keep Google Chrome open 24/7 (even if the system restarts or Chrome stops working).
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @enriquepiatti,
You can create a bash script to check if the service vncserver is actually running. If the service is not running start it.
You can see if a service is running with the following
systemctl show -p ActiveState NameOfService
It will show if the service is active,inactive or dead. Based on this output, you can actually decide whether to try and start it or leave as it is.
Once you create the bash script, add it as a cron job to be executed every minute. This should be enough to solve your problem.
Regards, KDSys
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.