Monday, August 28, 2017
Setting up crontab ui on raspberry pi
Setting up crontab ui on raspberry pi
 In this tutorial I will show you how to setup crontab-ui on raspberry pi. 
 
 
 
 
 
 
 
Thanks!
Fork me on Github 
Step 1
Find your architectureuname -a
Linux raspberrypi 4.4.50-v7+ #970 SMP Mon Feb 20 19:18:29 GMT 2017 armv7l GNU/Linux
wget https://nodejs.org/dist/v7.7.2/node-v7.7.2-linux-armv7l.tar.xz
tar xz node-v7.7.2-linux-armv7l.tar.xz
sudo mv node-v7.7.2-linux-armv7l /opt/nodeStep 2
Remove old nodejs if it is already installed and add the latest node to the $PATHsudo apt-get purge nodejs
echo export PATH=$PATH:/opt/node/bin > ~/.bashrc
source ~/.bashrcStep 3
Install crontab-ui and pm2. And start crontab-ui.npm install -g crontab-ui
npm install -g pm2
pm2 start crontab-uiStep 4 (Optional)
In order to be able access crontab-ui from outside, you have to forward the port 8000. Install nginx and configure.sudo apt-get install nginx
sudo vi /etc/nginx/sites-available/defaultserver {
 listen 8001;
 server_name localhost;
 location / {
 proxy_pass http://localhost:8000;
 }
}sudo service nginx restart<ip address of pi>:8001You can also setup http authentication by following this.
Thanks!
download file now
Subscribe to:
Post Comments (Atom)
 
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.