diff --git a/README.md b/README.md index d1085d1..6c07970 100644 --- a/README.md +++ b/README.md @@ -44,75 +44,4 @@ The backend requires a working webserver so you might have to install one on you ## Setting up the Infoscreen -### Installing Base System -Installing the Base System is pretty easy and can be done in three simple steps: - -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 -2. Copy `installer-config.txt` into `/` of the SD-Card -3. Connect the pi to the internet and power it up. The script will install the system - -The last Step may take some time (ETA 90 Minutes) - -### Configuration -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. - -At first, run `apt-get update` and `apt-get dist-upgrade` to update the system. - -Run `dpkg-reconfigure locales` and select the locales you want to use and set a standard locale. - -Run `dpkg-reconfigure tzdata` and set the correct timezone. - -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. - -``` -wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz -tar xzf Python-3.5.2.tgz -cd Python-3.5.2 && sed -ie 's/^#zlib/zlib/' Modules/Setup.dist -./configure --enable-optimizations -make -j4 -make test -make install -``` - -Now would be an excellent time to get a coffee, do your homework or get some sleep. This will take hours. Seriously. - -``` -cd .. -rm -rf Python-3.5.2* -``` - -It is time to install Node.js to use electron - -``` -curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash - -apt install nodejs -``` - -Add a new user named `pi` to the system. We recommend using the same password the root account has. -``` -adduser pi -``` - -Next, add the `pi` user to the sudoers file using the `visudo` command. Add the following line to the file: -``` -pi ALL=(ALL) NOPASSWD:ALL -``` - -You can now switch to the `pi` user and clone the infoscreen repository: -``` -su pi -cd /home/pi -git clone https://github.com/fsr/infoscreen.git -cd infoscreen -sudo pip3 install -r requirements.txt -npm install -``` - -TODO: Bürostatus -TODO: Printerscript - -Copy the `backend.json.example` file in the middleware folder to `backend.json` and provide it with the required information. -- run `sudo cp deployment/infoscreen /etc/init.d/` -- run `sudo update-rc.d enable infoscreen` -- run `sudo ./deployment/lightdm.sh` to set up lightdm-config -- run `sudo ./deployment/cron.sh` to setup all needed cron jobs +For information to setting up the Infoscreen have a look into the [Wiki](https://github.com/fsr/infoscreen/wiki) diff --git a/deployment/cron.sh b/deployment/cron.sh index 32f8111..044ec66 100644 --- a/deployment/cron.sh +++ b/deployment/cron.sh @@ -3,9 +3,5 @@ cat <<__EOF__ | crontab 0 0 * * * /opt/vc/bin/tvservice -o & 0 7 * * * /opt/vc/bin/tvservice -p && timeout 1 startx & * * * * * /usr/local/bin/python3 /home/pi/buerostatus/raspi.py -@reboot /etc/init.d/infoscreen start -@reboot screen -dmS printerStatus /usr/local/bin/python3 /home/pi/printer-monitor/pi/printerstatus.py - -# Reboot everyday at 0715 in the morning -15 7 * * * reboot +@reboot /usr/bin/tmux -f /dev/null new-session -s "printerStatus" -d "/usr/local/bin/python3 /home/pi/printer-monitor/pi/printerstatus.py" __EOF__ diff --git a/deployment/installer-config.txt b/deployment/installer-config.txt index ef502de..4515ac2 100644 --- a/deployment/installer-config.txt +++ b/deployment/installer-config.txt @@ -1,5 +1,5 @@ preset=server -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 +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 release=jessie hostname=infoscreen domainname=ifsr.de