OctoPi TouchUi Install Guide

1,421 views
Skip to first unread message

Wiliam C

unread,
Mar 31, 2017, 1:37:24 PM3/31/17
to X-Machines 3D Printers
https://octopi.octoprint.org/latest

Download the image via the button above.

Unzip the zipped image and install the contained .img file to an sd card like any other Raspberry Pi image

{Terminal Time!}
Sudo Raspi-Config
{Boot Settings - Login as Pi, password not required. & Expand File System}

Sudo nano /boot/octopi-network.txt
{remove single # from WPA, and enter SSID, and Password)

sudo apt-get update

cd ~
sudo apt-get install python-pip python-dev python-setuptools python-virtualenv git libyaml-dev build-essential
cd OctoPrint
python -m virtualenv venv
./venv/bin/pip install pip --upgrade
./venv/bin/python setup.py install

sudo usermod -a -G tty pi
sudo usermod -a -G dialout pi

cd ~
sudo apt-get install --no-install-recommends xinit xinput xserver-xorg xserver-xorg-video-fbdev x11-xserver-utils matchbox unclutter chromium-browser

{Making a config file for TouchScreen}
sudo nano /usr/share/X11/xorg.conf.d/99-fbdev.conf

{within this new .conf}
Section "Device"
Identifier "touchscreen"
Driver "fbdev"
Option "fbdev" "/dev/fb0"
EndSection
{!!_If generic Touchscreen or HDMI, then user fb1_!! Then: ctrl O, Enter, Ctrl X Enter}

sudo sed -i 's/allowed_users=console/allowed_users=anybody/' /etc/X11/Xwrapper.config

git clone https://github.com/BillyBlaze/OctoPrint-TouchUI-autostart.git ~/TouchUI-autostart/

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

sudo apt-get upgrade
sudo apt-get install rpi-update
sudo rpi-update

Sudo reboot

Alt F4 If TouchUi tries to load
{terminal}
chromium-browser
{should kick back [..] Gtk: cannot open display:}

Startx {launch desktop}
Open Chromium
Enter http://127.0.0.1/5000
Octoprint Webpage should load.
Create login/password

Click settings {gear icon} by username
Left column go down to plugin manager
View installed plugins. Click get more
In search box type TouchUi
Install

Open terminal from desktop
Sudo pip install --upgrade pip

Sudo reboot

Wiliam C

unread,
Mar 31, 2017, 1:54:05 PM3/31/17
to X-Machines 3D Printers

Scott Haynes

unread,
Jul 6, 2017, 1:43:43 AM7/6/17
to X-Machines 3D Printers
After entering

sudo sed -i 's/allowed_users=console/allowed_users=anybody/' /etc/X11/Xwrapper.config


I get

sed: can't read /etc/X11/Xwrapper.config: No such file or directory

skipopotamus

unread,
Sep 5, 2017, 11:06:51 PM9/5/17
to X-Machines 3D Printers
I'm getting the same issue.

Wiliam C

unread,
Dec 19, 2018, 11:34:01 PM12/19/18
to X-Machines 3D Printers
I had issues with this section initially as well.
Reflecting.
I would say the config files are in the wrong directory, or the config file was not made.

Below it’s traveling to the location.
Then you writing a New config, if it isn’t there.
Then setting permissions for access.

Later it’s recalled, and cannot autostart unless that file is fixed / present.

{Making a config file for TouchScreen}
sudo nano /usr/share/X11/xorg.conf.d/99-fbdev.conf

{within this new .conf}
Section "Device"
Identifier "touchscreen"
Driver "fbdev"
Option "fbdev" "/dev/fb0"
EndSection
{!!_If generic Touchscreen or HDMI, then user fb1_!! Then: ctrl O, Enter, Ctrl X Enter}

Reply all
Reply to author
Forward
0 new messages