-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extended README & removed static-ip system.
- Loading branch information
Showing
32 changed files
with
78 additions
and
215 deletions.
There are no files selected for viewing
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
#!/bin/bash | ||
|
||
echo 'Updating package repos ==> ' | ||
sudo apt-get update | ||
echo '----' | ||
|
||
echo 'Installing Curl, AutoSSH and Git ==> ' | ||
sudo apt-get install curl git -y | ||
echo '----' | ||
|
||
echo 'Going to home directory ==> ' | ||
cd ~ | ||
echo '----' | ||
|
||
echo 'Installing NodeJS Version 10' | ||
curl -sL https://deb.nodesource.com/setup_12.x -o nodesource_setup.sh | ||
sudo chmod +x ./nodesource_setup.sh | ||
sudo bash nodesource_setup.sh | ||
sudo rm nodesource_setup.sh | ||
sudo apt-get install nodejs -y | ||
echo '----' | ||
|
||
echo 'Getting project files from GitHub' | ||
cd ~ | ||
git clone https://github.com/ArdaSeremet/SBC-RealTimeIO.git | ||
cd SBC-RealTimeIO | ||
npm install | ||
echo '----' | ||
|
||
echo 'Setting systemd daemon for system bootup' | ||
projectPath=$(pwd) | ||
username=$(whoami) | ||
sudo rm /etc/systemd/system/realtimeio.service | ||
cat >> /etc/systemd/system/realtimeio.service <<EOF | ||
[Unit] | ||
Description=Realtime GPIO Controller for Linux SBCs | ||
[Service] | ||
User=${username} | ||
Restart=always | ||
KillSignal=SIGQUIT | ||
WorkingDirectory=${projectPath} | ||
ExecStart=${projectPath}/app.js | ||
[Install] | ||
WantedBy=multi-user.target | ||
EOF | ||
echo '----' | ||
|
||
sudo systemctl daemon-reload | ||
sudo systemctl enable gpioctrl | ||
echo '----' | ||
|
||
echo 'Running the server' | ||
sudo systemctl start gpioctrl | ||
echo '----' | ||
|
||
echo 'Done installing the system! Have a nice day!' |
This file was deleted.
Oops, something went wrong.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters