I have a personal server at home with JIRA, Stash, Jenkins, Nagios and the like installed on it. I wanted to frequently see the status of those applications and also the visitor count from my Piwik installation.
Distributor ID: Ubuntu Description: Ubuntu 14.04.1 LTS Release: 14.04 Codename: trusty
So I decided that my server should start up with the chromium browser that will open a custom html page which will switch between the various sites automatically.
We start with installing the required packages:
sudo apt-get install xorg chromium-browser
Then set up an init script that will be invoked on startup.
sudo vim /etc/init.d/monitor
In this script we basically just start the X server with the browser: (wrapped in an usual service script)
xinit /usr/bin/chromium-browser --app=http://localhost/monitor/monitor.html --user-data-dir=/home/klaus/.config/chromium &
Now we add the script to the runlevels:
update-rc.d monitor defaults 99 01
This will start the monitor as the last item and kills it the first. More information can be found here.
The browser will not start in fullscreen. For this to work, you have to edit the following file (adapt path accordingly of course):
sudo vim /home/klaus/.config/chromium/Default/Preferences