Skip to content

X: Setup: Boot to Browser (Iceweasel)

Paul de Vries edited this page Nov 18, 2018 · 4 revisions

DEPRECATED

This will boot your Pi instantly to a browser without any other nonsense

  1. Make sure you boot to command line

  2. Make sure you're up-to-date with packages:

    sudo apt-mark hold raspberrypi-bootloader
    sudo apt-get update
    sudo apt-get upgrade
    
  3. Install X.org, iceweasel and stuff:

    sudo apt-get install matchbox xinit x11-xserver-utils unclutter iceweasel
    
  4. Get the TouchUI boot files:

    git clone https://github.com/BillyBlaze/OctoPrint-TouchUI-autostart.git ~/TouchUI-autostart/	& cd ~/TouchUI-autostart/ & git checkout legacy	
    
  5. 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
    
  6. Run sudo dpkg-reconfigure x11-common and allow Anybody to run xinit.

  7. Run sudo nano /etc/defaults/touchui and change kweb.xinit into iceweasel.xinit

  8. Reboot (& does it work?)

  1. Optional:
    Fine tweak your Iceweasel.

Command line

  • Stop TouchUI:
    sudo service touchui stop
  • Start TouchUI:
    sudo service touchui start
  • Restart TouchUI:
    sudo service touchui restart

Tweaks:

Hide the 'statusbar' (a.k.a. the bottom bar) which shows the URL.

  1. 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

  2. Run cp userChrome-example.css userChrome.css

  3. Run nano userChrome.css

  4. Add the following on the bottom of this document (important: leave the rest of this document intact)

    statuspanel[type="overLink"] {
          display: none !important;
    }
    
  5. Save (CTR-O, Enter, CTR-X)

  6. Reboot TouchUI (sudo service touchui restart or reboot your Pi)