Skip to content

X: Setup: Boot to Browser (Jessie Full)

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

DEPRECATED

This is a guide for Debian Jessie

Follow this guide for OctoPi or Jessie Light.


It's not recommended to use a single-core Raspberry Pi with OctoPrint and a touchscreen. The single-core processor is only recommended for running OctoPrint. Attaching third-party equipment (e.g. camera or touchscreen) can result in failing prints or slow performance.

Before starting with this guide, make sure you've installed OctoPrint and installed TouchUI from the 'Plugins Manager'.


Fresh install

  1. Make sure you've expanded your file system.

  2. Make sure you boot to the command line

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

    sudo apt-get update
    
  4. Install X.org and stuff:

    sudo apt-get install matchbox xinit x11-xserver-utils unclutter chromium-browser
    
  5. Allow X11 to run as anybody by running the following command:
    Ignore this step if it fails

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

    git clone https://github.com/BillyBlaze/OctoPrint-TouchUI-autostart.git ~/TouchUI-autostart/		
    
  7. 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
    
  8. Test if your kernel can run Chromium by running the following command:

    chromium-browser
    
    • If you get the following error, you need to upgrade your kernel to the latest version, follow these extra steps.

      /usr/lib/chromium-browser/chromium-browser: symbol lookup error: /usr/lib/chromium-browser/chromium-browser: undefined symbol: mmal_vc_init_fd
      
    • If you get the following error, you can proceed to step 9:

      [..] Gtk: cannot open display:
      
  9. Reboot


Upgrade from Iceweasel / KWEB

  1. Install Chromium

    sudo apt-get install chromium-browser
    
  2. Remove the old autostart files:

    rm -rf ~/OctoPrint-TouchUI-autostart/
    
  3. Continue on to Fresh install and skip to step 5.