Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tv_panel
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hermod
tv_panel
Commits
1ddcf010
Commit
1ddcf010
authored
7 years ago
by
Aymeric Bernard
Browse files
Options
Downloads
Patches
Plain Diff
README update, cd in update-server.sh
parent
8737a8ab
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+13
-5
13 additions, 5 deletions
README.md
front/start.sh
+1
-1
1 addition, 1 deletion
front/start.sh
scripts/update_server.sh
+3
-0
3 additions, 0 deletions
scripts/update_server.sh
with
17 additions
and
6 deletions
README.md
+
13
−
5
View file @
1ddcf010
...
...
@@ -27,7 +27,7 @@
@reboot sleep 1 && /root/scripts/waitForNetwork && /root/scripts/startup-telegram-message
```
### Boot config (only on Pi zeros
?
)
### Boot config (only on Pi zeros)
`vim /boot/config.txt`
to comment out
`dtparam=audio=on`
->
`#dtparam=audio=on`
and add
```
# Serial
...
...
@@ -38,13 +38,14 @@ dtoverlay=pi3-disable-bt
Reboot
### Download nodejs:
-
`wget https://nodejs.org/dist/v9.7.1/node-v9.7.1-linux-armv6l.tar.xz`
(to adapt to most recent version)
-
`tar xf node-v9.7.1-linux-armv6l.tar.xz`
-
`sudo mv node-v9.7.1-linux-armv6l /usr/lib/nodejs/node-v9`
-
`wget https://nodejs.org/dist/v10.3.0/node-v10.3.0-linux-armv6l.tar.xz`
(to adapt to most recent version, for Pi zeros)
-
`wget https://nodejs.org/dist/v10.3.0/node-v10.3.0-linux-armv7l.tar.xz`
(to adapt to most recent version, for Pi 3B+)
-
`tar xf node-v10.3.0-linux-armv6l.tar.xz`
(or
`armv7l`
)
-
`sudo mv node-v10.3.0-linux-armv6l /usr/lib/nodejs/node-v10`
(or
`armv7l`
)
-
`vim .profile`
to add:
```
# Nodejs
export NODEJS_HOME=/usr/lib/nodejs/node-v
9
export NODEJS_HOME=/usr/lib/nodejs/node-v
10
export PATH=$NODEJS_HOME/bin:$PATH
```
...
...
@@ -136,3 +137,10 @@ sudo mkdir -p /etc/nfc/devices.d
sudo cp contrib/libnfc/pn532_uart_on_rpi.conf.sample /etc/nfc/devices.d/
sudo cp contrib/udev/42-pn53x.rules /lib/udev/rules.d/
```
### Start the TV panel at startup
Put in the
`hermod`
contab (
`crontab -e`
)
```
@reboot sleep 10 && cd /home/hermod/tv_panel && export NODEJS_HOME=/usr/lib/nodejs/node-v10 && export PATH=$NODEJS_HOME/bin:$PATH && /home/hermod/tv_panel/scripts/waitForNetwork && NODE_ENV=production /home/hermod/tv_panel/scripts/update_server.sh
```
This diff is collapsed.
Click to expand it.
front/start.sh
+
1
−
1
View file @
1ddcf010
#!/bin/bash
if
chromium-browser
--version
2>/dev/null
;
then
chromium-browser
--kiosk
--incognito
--disable-gpu
http://localhost:
1234
chromium-browser
--kiosk
--incognito
--disable-gpu
http://localhost:
5000
else
echo
"chromium-browser is not installed on this system."
exit
1
...
...
This diff is collapsed.
Click to expand it.
scripts/update_server.sh
+
3
−
0
View file @
1ddcf010
#!/bin/bash
cd
$(
cd
`
dirname
$0
`
/..
&&
pwd
)
echo
"Running update-server.sh from
`
pwd
`
"
if
[[
"
$NODE_ENV
"
!=
"production"
]]
then
read
-p
"The env if not production, this script can remove uncommitted changes. Are you sure you want to continue? [y/N] "
prompt
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment