Skip to content

Setup: Boot to Browser (OctoPi or Jessie Light)

Paul de Vries edited this page May 24, 2016 · 36 revisions

This is a guide for Jessie Light or OctoPi (0.13 and higher)

Follow this guide for Jessie Full.

If you're using OctoPi and the LCD-show drivers make sure you installed LCD-show-151102.tar.gz driver.


  1. Make sure you've expanded your file system

  2. Make sure all packages are up-to-date:

    sudo apt-get update
    
  3. Install Chromium

  4. Install all required modules:

    sudo apt-get install --no-install-recommends xinit xserver-xorg xserver-xorg-video-fbdev matchbox x11-xserver-utils unclutter
    
  5. Register your touchscreen to X11 by creating a new config:

    sudo nano /usr/share/X11/xorg.conf.d/99-fbdev.conf
    

    Paste the following code:

    Section "Device"
      Identifier "touchscreen"
      Driver "fbdev"
      Option "fbdev" "/dev/fb1"
    EndSection
    

    Save and exit (CTR-O, enter and CTR-X)

  6. Allow X11 to run as anybody by running the following command:

    sudo sed -i 's/allowed_users=console/allowed_users=anybody/' /etc/X11/Xwrapper.config
    
  7. Get the TouchUI boot files:

    wget -P /home/pi/ https://github.com/BillyBlaze/OctoPrint-TouchUI/archive/autostart.zip
    unzip -d /home/pi/ /home/pi/autostart.zip
    
  8. Copy service file and register it as auto boot:

    sudo cp ~/OctoPrint-TouchUI-autostart/touchui.init /etc/init.d/touchui
    sudo chmod +x /etc/init.d/touchui
    sudo cp ~/OctoPrint-TouchUI-autostart/touchui.default /etc/default/touchui
    sudo update-rc.d touchui defaults
    
  9. Reboot

  • You can also safely remove autostart.zip. Do not remove the directory ~/OctoPrint-TouchUI-autostart and if you change the path of this directory then edit the file /etc/default/touchui with the new path.

  • Don't forget to turn on Touchscreen mode in the TouchUI Setting dialog to enhance performance.

  • Troubleshooting: