Community
cancel
Showing results for 
Search instead for 
Did you mean: 
ggbby
Beginner
1,040 Views

Installing Cron on Galileo Gen 2

Has anyone been successful in getting cron installed on a gen2? I've installed cronie from opkg, and even https://github.com/sarweshkumar47/Packages-Install-on-Intel-Galileo-Poky-os/blob/master/cron_service... tried this as well, but I cannot seem to get a cron service running for the life of me. The python script I wrote works fine from the terminal, and the same crontab configuration works on a different machine, but I cannot get any activity on the galileo...

0 Kudos
4 Replies
FTinetti
Honored Contributor I
89 Views

Hi gbby,

Did you check several threads about cron such as

Copied from a post in that thread:

It would be necessary to check if the Cron package is already installed in the Galileo eglibc image. I'm sure it is not installed by default in the uClibc image, but you can get it from the AlexT repository (Cronie), you can check it here: http://repo.opkg.net/galileo/i586/ http://repo.opkg.net/galileo/i586/. If you're not sure how to download packages from his repository you can check his instructions here http://alextgalileo.altervista.org/package-repo-configuration-instructions.html http://alextgalileo.altervista.org/package-repo-configuration-instructions.html.

I was also looking for another way to install it and found this https://github.com/sarweshkumar47/Packages-Install-on-Intel-Galileo-Poky-os/tree/master/cron_service... https://github.com/sarweshkumar47/Packages-Install-on-Intel-Galileo-Poky-os/tree/master/cron_service.... You'll just need to run the cron_install_galileo.sh script and it will download and install Cronie for you.

There you have two options to get Cron running on your board, I would also suggest you to check this thread https://intel-openport-v8.hosted.jivesoftware.com/thread/60751 https://intel-openport-v8.hosted.jivesoftware.com/thread/60751.

HTH,

Fernando.

FTinetti
Honored Contributor I
89 Views

Replying to myself just because I was too curious about installing cronie... here we go...

1) I'm using the latest yocto eglibc image

https://software.intel.com/en-us/iot/hardware/galileo/downloads IoT - Intel® Galileo Board Download | Intel® Software ==>

Intel® Galileo Board microSD Card Linux* Operating System Image

https://software.intel.com/galileo-image/latest Latest Yocto* Poky image for Galileo

(iot-devkit-prof-dev-image-galileo-20160606)

I'm using Intel Galileo (aka Intel Galileo Gen1), but I think the all of this is valid for Intel Galileo Gen2.

2) I do not have my Intel Galileo directly connected to the Internet, so I downloaded

cronie-cronie1.5.0.tar.gz

from

https://git.fedorahosted.org/cgit/cronie.git/tag/%3Fh%3Dcronie1.5.0 https://git.fedorahosted.org/cgit/cronie.git/tag/?h=cronie1.5.0

to my laptop and later I used WinSCP to copy (set to binary) the .gz in the yocto filesystem

(/home/root/opkgs/build in my case, you can choose any other)

once you I had the .gz in yocto, just issued (some of them take a while... like minutes...)

gunzip cronie-cronie1.5.0.tar.gz

tar -xvf cronie-cronie1.5.0.tar

cd cronie-cronie1.5.0

./autogen.sh

./configure

make

make install

mkdir -p /usr/local/var/spool/cron

cp src/crond /etc/init.d/

update-rc.d crond defaults

you'll need to reboot in order to crond to start

3) reboot

And I think crond is now "up&running", because

root@galileo:~# ps | grep cron

146 root 2508 S /etc/init.d/crond start

217 root 2508 S grep cron

All of this has been "inspired" and adapted from

https://github.com/sarweshkumar47/Packages-Install-on-Intel-Galileo-Poky-os/blob/master/cron_service... Packages-Install-on-Intel-Galileo-Poky-os/cron_install_galileo.sh at master · sarweshkumar47/Packages-Install-on-Intel-G…

You can try and let us know your results.

HTH,

Fernando.

ggbby
Beginner
89 Views

Thanks, Fernando. Your post inspired me to reinstall the latest OS image. I thought I was working with a relatively recent OS, but I may have installed it on the SD as far back as 2014. Everything is up and running now.

FTinetti
Honored Contributor I
89 Views

Welcome,

Good to know you have your Galileo Up&Running.

Fernando.

Reply