-
Notifications
You must be signed in to change notification settings - Fork 275
Description
So... after working for some time. Getting annoyed at my Raspian Lite still having a Display Manager. I took the challenge, and made something only using matchbox-window-manager, unclutter, midori and xorg/xinit/xtools.
And - I'm controlling it all with Init.d:
#! /bin/sh
# Author: Daniel H. Hemmingsen <[email protected]>
### BEGIN INIT INFO
# Provides: fullpageos
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: FullPageOS start/stop init.d script.
# Description: FullPageOS start/stop init.d script. Handles all the stuff needed to boot up FullPageOS. Midori is the browser, unclutter hides the mouse and matchbox-window-manager is the Window Manager.
### END INIT INFO
case "$1" in
start)
echo "Starting X Display in the background..."
X :0 &
sleep 2
export DISPLAY=:0
echo "Disabling annoying default X behaviour..."
xset s off
xset -dpms
xset s noblank
echo "Starting Unclutter in the background..."
/usr/bin/unclutter &
echo "Starting Matchbox Window Manager in the background..."
/usr/bin/matchbox-window-manager &
echo "Starting Midori..."
/usr/bin/midori -e Fullscreen -a https://google.com
;;
stop)
echo "Stopping Unclutter"
killall unclutter
echo "Stopping Matchbox Window Manager"
killall matchbox-window-manager
echo "Stopping Midori"
killall midori
echo "Stopping Xorg"
killall Xorg
;;
*)
echo "Usage: /etc/init.d/fullpageos {start|stop}"
exit 1
;;
esac
exit 0So now, I can simply do service fullpageos start/stop. I haven't installed the webserver yet, since this was just testing the actual FullPageOS. (Where we get content from in the browser, is something different. But simply installing this like we already do; would be a-ok.)
On my old Raspberry Pi. I could get some pretty low RAM usage. (Remember, no webserver yet. But should be fine.)
pi@raspberrypi:~ $ free -h
total used free shared buffers cached
Mem: 434M 192M 242M 4.9M 10M 108M
-/+ buffers/cache: 73M 361M
Swap: 99M 0B 99MOf course, this is not done yet. I would check for $network in the script and check for if the lighttpd server is up, etc.
But what do you guys think, at least for older devices only running on ARM6? I would be happy to hear your thoughts.