Skip to content

Commit 8055a61

Browse files
authored
Merge pull request #4 from ravi9/2023.1.0
Update to install cronie
2 parents 1ab6514 + 2a8b315 commit 8055a61

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

install-ov-notebooks.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
sudo yum -y update &&
88
sudo yum -y upgrade &&
99
sudo yum -y groupinstall "Development Tools" &&
10-
sudo yum install -y git-all mesa-libGL
10+
sudo yum install -y git-all mesa-libGL cronie
11+
12+
# Enable and start the ‘cronie’ service. CronTab is missing in AL 2023.
13+
sudo systemctl enable crond.service
14+
sudo systemctl start crond.service
1115

1216
# Create Python Virtual Env and install OV Notebooks
1317
cd /home/ec2-user
@@ -25,12 +29,15 @@ cd openvino_notebooks
2529
/home/ec2-user/openvino_env/bin/python -m ipykernel install --user --name OpenVINO
2630

2731
# Download scripts to start Jupyter
28-
curl https://raw.githubusercontent.com/psakamoori/scripts/main/start_jupyter.sh -o /home/ec2-user/.start_jupyter.sh
32+
curl https://raw.githubusercontent.com/ravi9/openvino-ami/main/start_jupyter.sh -o /home/ec2-user/.start_jupyter.sh
2933

3034
# Give executable permissions to the scripts
3135
chmod 755 /home/ec2-user/.start_jupyter.sh
3236

3337
# Add cronjob to start jupyter on start of the instance.
34-
curl https://raw.githubusercontent.com/psakamoori/scripts/main/add_cron_job.sh -o /home/ec2-user/.add_cron_job.sh
38+
curl https://raw.githubusercontent.com/ravi9/openvino-ami/main/add_cron_job.sh -o /home/ec2-user/.add_cron_job.sh
3539

3640
sudo bash /home/ec2-user/.add_cron_job.sh
41+
42+
# Verify cronjobs
43+
sudo crontab -l

0 commit comments

Comments
 (0)