Parasol Air: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 7: | Line 7: | ||
== AirBoard Konfiguration == | == AirBoard Konfiguration == | ||
sudo apt-get update | |||
sudo apt-get dist-upgrade | |||
sudo apt-get install matchbox chromium x11-xserver-utils ttf-mscorefonts-installer xwit sqlite3 libnss3 | |||
sudo reboot | |||
<br /> | |||
sudo nano /boot/config.txt | |||
<pre> | |||
display_rotate=1 | |||
framebuffer_width=1200 | |||
framebuffer_height=1920 | |||
</pre> | |||
sudo nano /etc/rc.local | |||
<pre> | |||
#!/bin/sh -e | |||
# | |||
# rc.local | |||
# | |||
# This script is executed at the end of each multiuser runlevel. | |||
# Make sure that the script will "exit 0" on success or any other | |||
# value on error. | |||
# | |||
# In order to enable or disable this script just change the execution | |||
# bits. | |||
# | |||
# By default this script does nothing. | |||
# Print the IP address | |||
_IP=$(hostname -I) || true | |||
if [ "$_IP" ]; then | |||
printf "My IP address is %s\n" "$_IP" | |||
fi | |||
if [ -f /boot/xinitrc ]; then | |||
ln -fs /boot/xinitrc /home/pi/.xinitrc; | |||
su - pi -c 'startx' & | |||
fi | |||
exit 0 | |||
</pre> | |||
sudo nano /boot/xinitrc | |||
<pre> | |||
#!/bin/sh | |||
while true; do | |||
# Clean up previously running apps, gracefully at first then harshly | |||
killall -TERM chromium 2>/dev/null; | |||
killall -TERM matchbox-window-manager 2>/dev/null; | |||
sleep 2; | |||
killall -9 chromium 2>/dev/null; | |||
killall -9 matchbox-window-manager 2>/dev/null; | |||
# Clean out existing profile information | |||
rm -rf /home/pi/.cache; | |||
rm -rf /home/pi/.config; | |||
rm -rf /home/pi/.pki; | |||
# Generate the bare minimum to keep Chromium happy! | |||
mkdir -p /home/pi/.config/chromium/Default | |||
sqlite3 /home/pi/.config/chromium/Default/Web\ Data "CREATE TABLE meta(key LONGVARCHAR NOT NULL UNIQUE PRIMARY KEY, value LONGVARCHAR); INSERT INTO meta VALUES('version','46'); CREATE$ | |||
# Disable DPMS / Screen blanking | |||
xset -dpms | |||
xset s off | |||
# Reset the framebuffer's colour-depth | |||
fbset -depth $( cat /sys/module/*fb*/parameters/fbdepth ); | |||
# Hide the cursor (move it to the bottom-right, comment out if you want mouse interaction) | |||
xwit -root -warp $( cat /sys/module/*fb*/parameters/fbwidth ) $( cat /sys/module/*fb*/parameters/fbheight ) | |||
# Start the window manager (remove "-use_cursor no" if you actually want mouse interaction) | |||
matchbox-window-manager -use_titlebar no -use_cursor no & | |||
# Wait for Server | |||
while true; do | |||
ping -c1 myapi3.parasol-island.com > /dev/null && break; | |||
done | |||
# Start the browser (See http://peter.sh/experiments/chromium-command-line-switches/) | |||
chromium --app=https://myapi3.parasol-island.com/prototypes/app_air-dashboard | |||
done; | |||
</pre> | |||
sudo reboot | |||
== AirBoard Konfiguration (alt) == | |||
*Betriebssystem | *Betriebssystem | ||
RASPBIAN (Debian Wheezy; Release date:2014-01-07) | RASPBIAN (Debian Wheezy; Release date:2014-01-07) | ||
Revision as of 11:18, 31 July 2015
Projekt befindet sich in der Testphase.
AirBoards
AirBoard1 - 192.168.35.5 (Vorderhaus 1. OG)
AirBoard2 - 192.168.35.6 (Vorderhaus 2. OG)
AirBoard3 - 192.168.35.7 (in Planung)
AirBoard Konfiguration
sudo apt-get update sudo apt-get dist-upgrade sudo apt-get install matchbox chromium x11-xserver-utils ttf-mscorefonts-installer xwit sqlite3 libnss3 sudo reboot
sudo nano /boot/config.txt
display_rotate=1 framebuffer_width=1200 framebuffer_height=1920
sudo nano /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
fi
if [ -f /boot/xinitrc ]; then
ln -fs /boot/xinitrc /home/pi/.xinitrc;
su - pi -c 'startx' &
fi
exit 0
sudo nano /boot/xinitrc
#!/bin/sh
while true; do
# Clean up previously running apps, gracefully at first then harshly
killall -TERM chromium 2>/dev/null;
killall -TERM matchbox-window-manager 2>/dev/null;
sleep 2;
killall -9 chromium 2>/dev/null;
killall -9 matchbox-window-manager 2>/dev/null;
# Clean out existing profile information
rm -rf /home/pi/.cache;
rm -rf /home/pi/.config;
rm -rf /home/pi/.pki;
# Generate the bare minimum to keep Chromium happy!
mkdir -p /home/pi/.config/chromium/Default
sqlite3 /home/pi/.config/chromium/Default/Web\ Data "CREATE TABLE meta(key LONGVARCHAR NOT NULL UNIQUE PRIMARY KEY, value LONGVARCHAR); INSERT INTO meta VALUES('version','46'); CREATE$
# Disable DPMS / Screen blanking
xset -dpms
xset s off
# Reset the framebuffer's colour-depth
fbset -depth $( cat /sys/module/*fb*/parameters/fbdepth );
# Hide the cursor (move it to the bottom-right, comment out if you want mouse interaction)
xwit -root -warp $( cat /sys/module/*fb*/parameters/fbwidth ) $( cat /sys/module/*fb*/parameters/fbheight )
# Start the window manager (remove "-use_cursor no" if you actually want mouse interaction)
matchbox-window-manager -use_titlebar no -use_cursor no &
# Wait for Server
while true; do
ping -c1 myapi3.parasol-island.com > /dev/null && break;
done
# Start the browser (See http://peter.sh/experiments/chromium-command-line-switches/)
chromium --app=https://myapi3.parasol-island.com/prototypes/app_air-dashboard
done;
sudo reboot
AirBoard Konfiguration (alt)
- Betriebssystem
RASPBIAN (Debian Wheezy; Release date:2014-01-07)
- Monitor drehen
sudo nano /boot/config.txt
config.txt
+ display_rotate=3
- Software installieren
sudo apt-get update sudo apt-get upgrade sudo apt-get install chromium-browser unclutter x11vnc
- Startscript erstellen
touch ~/startup.sh chmod +x ~/startup.sh nano ~/startup.sh
startup.sh
#!/bin/sh unclutter & sleep 30 chromium-browser \ --kiosk \ --ignore-certificate-errors \ --disable-restore-session-state \ --incognito \ http://myapi3.parasolisland.local/app_air_timetable/timetable.php & x11vnc -forever
- Startscript einbinden / Screensaver ausschalten
sudo nano /etc/xdg/lxsession/LXDE/autostart
autostart
- @xscreensaver -no-splash + #@xscreensaver -no-splash + @/bin/bash /home/pi/startup.sh
- black-Screen ausschalten
sudo nano /etc/lightdm/lightdm.conf
lightdm.conf
[SeatDefaults]
+ xserver-command=X -s 0 dpms
#xserver-command=X
- Zeitzone setzen
nano ~/.profile
.profile
+ TZ='Europe/Busingen'; export TZ
sudo reboot
Chromebox Setup
- Wipe Data on Chromebook (https://support.google.com/chrome/a/answer/1360642)
- After wipe is completed, you will be at the welcome screen. (Input your network information, but DO NOT LOGIN to the Chromebook)
- At the login screen, press CTRL+ALT+K and enable Kiosk mode.
- Login into the Chromebook
- Open a new tab in Chrome, and enter chrome://extensions in the address bar (also known as the omnibox). Click enter.
- Check the box next to Developer
- Add kiosk application, and enter the ID of the Kiosk App you'd like to enable.
- Highlight the Kiosk App and select "auto launch"
- Press Enter or click Done.
- Reboot and when asked, enable app for Kiosk mode
- Now the app will auto launch each time you reboot.
- To Turn off Kiosk Mode, begin by rebooting the Chromebook. While the device is starting up, press the keyboard shortcut Ctrl+Alt+S to interrupt the process and return to the login screen.