<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Debian on balharrie.uk</title>
        <link>https://balharrie.uk/tags/debian/</link>
        <description>Recent content in Debian on balharrie.uk</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>en</language>
        <lastBuildDate>Fri, 12 Aug 2022 00:00:00 +0000</lastBuildDate><atom:link href="https://balharrie.uk/tags/debian/index.xml" rel="self" type="application/rss+xml" /><item>
        <title>Joggler Home-Assistant Kiosk v2!</title>
        <link>https://balharrie.uk/p/joggler-home-assistant-kiosk-v2/</link>
        <pubDate>Fri, 12 Aug 2022 00:00:00 +0000</pubDate>
        
        <guid>https://balharrie.uk/p/joggler-home-assistant-kiosk-v2/</guid>
        <description>&lt;img src="https://balharrie.uk/p/joggler-home-assistant-kiosk-v2/title.jpg" alt="Featured image of post Joggler Home-Assistant Kiosk v2!" /&gt;&lt;h1 id=&#34;o2-joggler-home-assistant-kiosk&#34;&gt;O2 Joggler Home-Assistant Kiosk&lt;/h1&gt;
&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;/h2&gt;
&lt;p&gt;I wanted to setup a &amp;lsquo;kiosk&amp;rsquo; style interface for our home automation setup, powered by Home-Assistant.  I managed to pickup an old &lt;a class=&#34;link&#34; href=&#34;https://en.wikipedia.org/wiki/O2_Joggler&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;O2 Joggler&lt;/a&gt; for ~£20 on eBay a while back.  It&amp;rsquo;s perfect - Small, touch-screen Linux box with USB, Ethernet, WiFi and audio.&lt;/p&gt;
&lt;p&gt;Thanks to the wonderful work of Andrew Davison of &lt;a class=&#34;link&#34; href=&#34;BirdsLikeWires.net&#34; &gt;BirdsLikeWires.net&lt;/a&gt;, there is already a great Debian based image that can easily be flashed to the Joggler.&lt;/p&gt;
&lt;p&gt;I originally wrote a post about my process for setting up my Joggler using his Ubuntu, but as described on his website, Andrew made the switch of the base OS to Debian due to incomplete 32-bit support beyond Bionic.&lt;/p&gt;
&lt;p&gt;So I am updating my documentation of the process I used here: mainly for myself, but if you find it useful - great!&lt;/p&gt;
&lt;p&gt;Please consider donating to Andrew on &lt;a class=&#34;link&#34; href=&#34;BirdsLikeWires.net&#34; &gt;BirdsLikeWires.net&lt;/a&gt; as a thank you for the awesome work that makes this possible!&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;setup&#34;&gt;Setup&lt;/h2&gt;
&lt;h3 id=&#34;download-the-debian-image&#34;&gt;Download the Debian image&lt;/h3&gt;
&lt;p&gt;Download the image from &lt;a class=&#34;link&#34; href=&#34;https://birdslikewires.net/debian-for-openframe&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;BirdsLikeWires.net&lt;/a&gt; (I used the &amp;lsquo;Kernel 5.4&amp;rsquo; version).&lt;/p&gt;
&lt;!-- raw HTML omitted --&gt;
&lt;h3 id=&#34;flash-to-usb&#34;&gt;Flash to USB&lt;/h3&gt;
&lt;p&gt;Flash the image to a USB stick.  I used &lt;a class=&#34;link&#34; href=&#34;https://www.balena.io/etcher/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Balena Etcher&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Make sure you use a USB stick large enough for the applications you want to install.  I used a 16GB drive.&lt;/p&gt;
&lt;!-- raw HTML omitted --&gt;
&lt;h3 id=&#34;boot&#34;&gt;Boot&lt;/h3&gt;
&lt;p&gt;Once complete, plug the USB stick into your Joggler and power it on.&lt;/p&gt;
&lt;p&gt;There is a USB port on the side of the Joggler that you can use.  There is also an internal USB port that you can access by removing the small clips round the edge of the screen.  By default this is occupied by an internal WiFi card.  I removed the internal USB WiFi card from my Joggler as it was going to be connected via Ethernet, so I could use this port to boot instead for a cleaner look.  But you could just use a really slim USB stick too!&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;You may want to consider using a powered USB hub connected to the Joggler, so that you can plug in a keyboard and mouse for the initial setup in case you don&amp;rsquo;t want to use SSH.&lt;/p&gt;&lt;/blockquote&gt;
&lt;!-- raw HTML omitted --&gt;
&lt;h3 id=&#34;setup-1&#34;&gt;Setup&lt;/h3&gt;
&lt;p&gt;Take a look at the details on:  &lt;a class=&#34;link&#34; href=&#34;https://birdslikewires.net/debian-for-openframe&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;birdslikewires.net&lt;/a&gt; for how to connect and the default username/password.&lt;/p&gt;
&lt;p&gt;Expand the root partition:
&lt;code&gt;sudo of-expand&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Update packages and upgrade installed packages:
&lt;code&gt;sudo apt update &amp;amp;&amp;amp; sudo apt upgrade -y&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Install xserver (this will take quite a while!):
&lt;code&gt;sudo of-install xserver&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;You&amp;rsquo;ll be asked for a language and a keyboard&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Install LXDE (again, this will take a while!):
&lt;code&gt;sudo apt install lxde-core -y&lt;/code&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;A note on Chrome&lt;/strong&gt;
Chrome (&lt;code&gt;chromium-browser&lt;/code&gt;) isnt available in the repo for this version of Debian.
&lt;code&gt;chromium&lt;/code&gt; is, but I had some issues getting it to start on my Joggler.  So for this guide I&amp;rsquo;ll be going with Firefox!&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Install Firefox:
&lt;code&gt;sudo apt install firefox-esr -y&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Install Unclutter to hide the mouse:
&lt;code&gt;sudo apt install unclutter -y&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Installed matchbox-keyboard
&lt;code&gt;sudo apt install matchbox-keyboard -y&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Auto-start LXDE and auto login as ‘of’:&lt;code&gt;sudo of-settings autostartx of&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Reboot to check that LXDE starts up on boot:&lt;code&gt;sudo reboot&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&amp;ldquo;No session for pid 463&amp;rdquo; error. ????  Not sure why this happened?&lt;/p&gt;
&lt;p&gt;Open Firefox and login to your Home-Assistant instance, select the dashboard etc.
(I&amp;rsquo;d recommend using a mouse to do this, otherwise press &lt;code&gt;CRTL+ESC&lt;/code&gt; and then navigate to &lt;code&gt;Internet &amp;gt; Firefox ESR&lt;/code&gt;)&lt;/p&gt;
&lt;p&gt;Start xserver and load Firefox as ‘of’ user:
&lt;code&gt;sudo of-settings autoxrun of firefox&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Edit the ‘.xinitrc’ file to add the command line switches for Firefox kiosk mode:
&lt;code&gt;nano .xinitrc&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Change the bottom line to:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;firefox --kiosk https://yourhomeassistant.url
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;!-- raw HTML omitted --&gt;
&lt;h3 id=&#34;vnc-setup&#34;&gt;VNC Setup&lt;/h3&gt;
&lt;p&gt;Using &lt;a class=&#34;link&#34; href=&#34;https://www.smarthomebeginner.com/setup-vnc-server-on-ubuntu-linux/#Step_3_Install_VNC_Server_on_Ubuntu&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;this guide&lt;/a&gt; I installed VNC to aid in remote troubleshooting (so I dont have to plug in a keyboard and mouse again!)&lt;/p&gt;
&lt;p&gt;Install TightVNC Server:
&lt;code&gt;sudo apt-get install tightvncserver -y&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;To fix the error about missing fonts:
&lt;code&gt;sudo apt-get install xfonts-base -y&lt;/code&gt;&lt;/p&gt;
&lt;!-- raw HTML omitted --&gt;
&lt;h3 id=&#34;backup&#34;&gt;Backup!&lt;/h3&gt;
&lt;p&gt;If you got everything working, hooray!  Go you.  I would personally take this opportunity to create a backup image of the drive, so that any &amp;lsquo;fiddling&amp;rsquo; or corruption that ensues doesn&amp;rsquo;t cause you too many headaches!&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;links-and-sources&#34;&gt;Links and sources&lt;/h2&gt;
&lt;p&gt;Debian for OpenFrame/Joggler from BirdsLikeWires.net:
&lt;a class=&#34;link&#34; href=&#34;https://birdslikewires.net/debian-for-openframe#articletop&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;https://birdslikewires.net/debian-for-openframe#articletop&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Home-Assistant Forum Post:&lt;br&gt;
&lt;a class=&#34;link&#34; href=&#34;https://community.home-assistant.io/t/joggler-lovelace/145500/30&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;https://community.home-assistant.io/t/joggler-lovelace/145500/30&lt;/a&gt;&lt;/p&gt;
</description>
        </item>
        
    </channel>
</rss>
