![]() |
|
|
#1 |
|
"Luke Richards"
Jan 2018
Birmingham, UK
28810 Posts |
Any suggestions?
Following on from my thread on autostarting pre-emptible VM instances in Google Cloud, the next job is getting Cado to run successfully on boot and on this I don't know where to start. |
|
|
|
|
|
#2 |
|
"Ed Hall"
Dec 2009
Adirondack Mtns
1110111010012 Posts |
I use script files on my linux machines, that are invoked via Startup. I suppose Windows could do the same with .bat files.
|
|
|
|
|
|
#3 |
|
Sep 2009
2×1,039 Posts |
What OS do they run?
If Linux you could set up an @reboot entry in your ID's crontab to run a script whenever the system is booted up. Or the script that boots up the instance could wait until it's up (eg ping it every few seconds until it's up), then ssh onto it to start cado. Chris |
|
|
|
|
|
#4 |
|
Sep 2002
Database er0rr
3,739 Posts |
Just to echo what others are saying: Run crontab -e and enter on a line
Code:
@reboot cd /path/to/cado; ./cado whatever & Last fiddled with by paulunderwood on 2019-06-07 at 16:40 |
|
|
|
|
|
#5 |
|
"Ed Hall"
Dec 2009
Adirondack Mtns
11×347 Posts |
I haven't used crontab in a long while for anything. (I should probably refamiliarize myself.) I've been using the GUI Startup method. Is there an advantage to using crontab instead?
|
|
|
|
|
|
#6 |
|
Sep 2002
Database er0rr
3,739 Posts |
Unless you have automatic desktop login, it would not start until you login to the desktop. "cron" will start it on boot regardless. This is useful for server machines (running headless).
Last fiddled with by paulunderwood on 2019-06-07 at 18:01 |
|
|
|
|
|
#7 | |
|
"Ed Hall"
Dec 2009
Adirondack Mtns
11×347 Posts |
Quote:
*My Debian machines no longer allow me to login to a GUI environment at all since the last upgrade. I am now limited in some of the things I can do with them. For a specific, I can no longer run Primo on them. Thanks for the info. |
|
|
|
|
|
|
#8 | |
|
Sep 2002
Database er0rr
E9B16 Posts |
Quote:
If you need to purge the configuration files instead try apt-get purge gnome && sudo apt-get install gnome. Last fiddled with by paulunderwood on 2019-06-08 at 04:15 |
|
|
|
|
|
|
#9 | |
|
"Ed Hall"
Dec 2009
Adirondack Mtns
11×347 Posts |
Quote:
Thank you for the help. I did try the reinstall - more later. I tried changing to lightdm on one of the machines a while back and that made it worse. On the other, I can still get a VNC connection (via ssh), but what appears to be happening, is that the user is logged in and immediately taken to a locked background. There is something acting like a stuck key that disallows any unlock attempt. Any actual keystroke is quickly removed and the message "Authentication error" is continuously displayed. This happened identically on both machines when I upgraded them to jessie. |
|
|
|
|
|
|
#10 | |
|
Sep 2002
Database er0rr
3,739 Posts |
Quote:
Last fiddled with by paulunderwood on 2019-06-08 at 20:32 |
|
|
|
|
|
|
#11 |
|
"Luke Richards"
Jan 2018
Birmingham, UK
12016 Posts |
And we have liftoff!
Non-pre-emptible micro instance costing $4 a month with a script which pings an eight-core pre-emptible instance every 5 minutes and, if receives no reply, assumes it is down and restarts it. Pre-emptible instance then boots and runs CADO from crontab. |
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Automatically stopping P-1 to benchmark? Why? | Uncwilly | Software | 2 | 2018-02-23 05:24 |
| Several Assignments not automatically unreserved | sixblueboxes | PrimeNet | 8 | 2014-03-05 21:59 |
| Automatically updating factordb | chris2be8 | FactorDB | 9 | 2012-05-03 10:20 |
| Automatically start Prime95 on the mac | koekie | Software | 2 | 2012-02-06 15:39 |
| Automatically starting mprime. | xode | Software | 8 | 2004-10-20 14:47 |