-
Notifications
You must be signed in to change notification settings - Fork 93
X: Setup: Boot to Browser (Iceweasel)
This will boot your Pi instantly to a browser without any other nonsense
-
Make sure you're up-to-date with packages:
sudo apt-mark hold raspberrypi-bootloader sudo apt-get update sudo apt-get upgrade
-
Install X.org, iceweasel and stuff:
sudo apt-get install matchbox xinit x11-xserver-utils unclutter iceweasel
-
Get the TouchUI boot files:
git clone https://github.com/BillyBlaze/OctoPrint-TouchUI-autostart.git ~/TouchUI-autostart/ & cd ~/TouchUI-autostart/ & git checkout legacy
-
Copy service file and register it as auto boot:
sudo cp ~/TouchUI-autostart/touchui.init /etc/init.d/touchui sudo chmod +x /etc/init.d/touchui sudo cp ~/TouchUI-autostart/touchui.default /etc/default/touchui sudo update-rc.d touchui defaults
-
Run
sudo dpkg-reconfigure x11-common
and allow Anybody to run xinit. -
Run
sudo nano /etc/defaults/touchui
and changekweb.xinit
intoiceweasel.xinit
-
Reboot (& does it work?)
- Do not remove the directory
~/TouchUI-autostart
and if you change the path of this directory then edit the file/etc/default/touchui
with the new path. - Troubleshooting:
-
Optional:
Fine tweak your Iceweasel.
- Stop TouchUI:
sudo service touchui stop
- Start TouchUI:
sudo service touchui start
- Restart TouchUI:
sudo service touchui restart
-
Goto
/home/pi/.mozilla/firefox/<your default folder>/chrome/
if you have already a custom userChrome.css then skip step 2 but normally you don't have it -
Run
cp userChrome-example.css userChrome.css
-
Run
nano userChrome.css
-
Add the following on the bottom of this document (important: leave the rest of this document intact)
statuspanel[type="overLink"] { display: none !important; }
-
Save (CTR-O, Enter, CTR-X)
-
Reboot TouchUI (
sudo service touchui restart
or reboot your Pi)