Skip to content

Commit bb12a71

Browse files
committed
Final changes to a working Infoscreen
1 parent 45c56cd commit bb12a71

File tree

3 files changed

+3
-78
lines changed

3 files changed

+3
-78
lines changed

README.md

Lines changed: 1 addition & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -44,75 +44,4 @@ The backend requires a working webserver so you might have to install one on you
4444

4545

4646
## Setting up the Infoscreen
47-
### Installing Base System
48-
Installing the Base System is pretty easy and can be done in three simple steps:
49-
50-
1. Download the [latest release](https://github.com/debian-pi/raspbian-ua-netinst/releases/latest) of the [raspbian-ua-netinst](https://github.com/debian-pi/raspbian-ua-netinst) and flash it to the SD-Card
51-
2. Copy `installer-config.txt` into `/` of the SD-Card
52-
3. Connect the pi to the internet and power it up. The script will install the system
53-
54-
The last Step may take some time (ETA 90 Minutes)
55-
56-
### Configuration
57-
Congratulations! You have successfully installed the Raspbian image! Now it's time to configure it. Therefore, log in as `root` at infoscreen.ifsr.de (you may use the IP instead of the hostname if there is an old Infoscreen instance still running). The password is `fsrberry`, as usual. You can also attach a screen and a keyboard to the Pi and do the configuration there.
58-
59-
At first, run `apt-get update` and `apt-get dist-upgrade` to update the system.
60-
61-
Run `dpkg-reconfigure locales` and select the locales you want to use and set a standard locale.
62-
63-
Run `dpkg-reconfigure tzdata` and set the correct timezone.
64-
65-
Then, download, unpack and install the latest release of **python3**. This is necessary since Debians/Raspbians package management sucks and doesn't provide the required Python version (3.5+) for Wheezy ARMv7, unfortunately.
66-
67-
```
68-
wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz
69-
tar xzf Python-3.5.2.tgz
70-
cd Python-3.5.2 && sed -ie 's/^#zlib/zlib/' Modules/Setup.dist
71-
./configure --enable-optimizations
72-
make -j4
73-
make test
74-
make install
75-
```
76-
77-
Now would be an excellent time to get a coffee, do your homework or get some sleep. This will take hours. Seriously.
78-
79-
```
80-
cd ..
81-
rm -rf Python-3.5.2*
82-
```
83-
84-
It is time to install Node.js to use electron
85-
86-
```
87-
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
88-
apt install nodejs
89-
```
90-
91-
Add a new user named `pi` to the system. We recommend using the same password the root account has.
92-
```
93-
adduser pi
94-
```
95-
96-
Next, add the `pi` user to the sudoers file using the `visudo` command. Add the following line to the file:
97-
```
98-
pi ALL=(ALL) NOPASSWD:ALL
99-
```
100-
101-
You can now switch to the `pi` user and clone the infoscreen repository:
102-
```
103-
su pi
104-
cd /home/pi
105-
git clone https://github.com/fsr/infoscreen.git
106-
cd infoscreen
107-
sudo pip3 install -r requirements.txt
108-
npm install
109-
```
110-
111-
TODO: Bürostatus
112-
TODO: Printerscript
113-
114-
Copy the `backend.json.example` file in the middleware folder to `backend.json` and provide it with the required information.
115-
- run `sudo cp deployment/infoscreen /etc/init.d/`
116-
- run `sudo update-rc.d enable infoscreen`
117-
- run `sudo ./deployment/lightdm.sh` to set up lightdm-config
118-
- run `sudo ./deployment/cron.sh` to setup all needed cron jobs
47+
For information to setting up the Infoscreen have a look into the [Wiki](https://github.com/fsr/infoscreen/wiki)

deployment/cron.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,5 @@ cat <<__EOF__ | crontab
33
0 0 * * * /opt/vc/bin/tvservice -o &
44
0 7 * * * /opt/vc/bin/tvservice -p && timeout 1 startx &
55
* * * * * /usr/local/bin/python3 /home/pi/buerostatus/raspi.py
6-
@reboot /etc/init.d/infoscreen start
7-
@reboot screen -dmS printerStatus /usr/local/bin/python3 /home/pi/printer-monitor/pi/printerstatus.py
8-
9-
# Reboot everyday at 0715 in the morning
10-
15 7 * * * reboot
6+
@reboot /usr/bin/tmux -f /dev/null new-session -s "printerStatus" -d "/usr/local/bin/python3 /home/pi/printer-monitor/pi/printerstatus.py"
117
__EOF__

deployment/installer-config.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
preset=server
2-
packages=nano,curl,omxplayer,lightdm,git,raspi-config,sudo,xserver-xorg,xinit,tmux,xserver-xorg-video-fbdev,snmp,vim,apt-utils,unzip,gcc,g++,make,libssl-dev,zlib1g-dev,lsb-release,libffi-dev,xdotool,htop,xz-utils,libxss-dev,libgtkextra-dev,libgconf2-dev,libnss3,libasound2,libxtst-dev,libxss1,x11-utils
2+
packages=nano,curl,omxplayer,lightdm,git,raspi-config,sudo,xserver-xorg,xinit,tmux,xserver-xorg-video-fbdev,snmp,snmp-mibs-downloader,vim,apt-utils,unzip,gcc,g++,make,libssl-dev,zlib1g-dev,lsb-release,libffi-dev,xdotool,htop,xz-utils,libxss-dev,libgtkextra-dev,libgconf2-dev,libnss3,libasound2,libxtst-dev,libxss1,x11-utils
33
release=jessie
44
hostname=infoscreen
55
domainname=ifsr.de

0 commit comments

Comments
 (0)