{"id":181,"date":"2011-11-05T12:43:32","date_gmt":"2011-11-05T17:43:32","guid":{"rendered":"http:\/\/www.alandmoore.com\/blog\/?p=181"},"modified":"2013-10-11T11:10:31","modified_gmt":"2013-10-11T16:10:31","slug":"creating-a-kiosk-with-linux-and-x11-2011-edition","status":"publish","type":"post","link":"https:\/\/alandmoore.com\/blog\/2011\/11\/05\/creating-a-kiosk-with-linux-and-x11-2011-edition\/","title":{"rendered":"Creating a kiosk with Linux and X11:  2011 edition"},"content":{"rendered":"<p>Back around 2006 our public library was in need of a cheap way for patrons to browse its web-based INNOPAC catalog. Thin clients running Windows CE had been purchased for this purpose, but they turned out to be buggy and limited. I was tasked with finding a solution to the problem &#8220;on the cheap&#8221;, and being a fairly new Linux fanatic at the time, I figured I&#8217;d see what I could do using free software. This led to my first kiosk project.<\/p>\n<p>Since then, I&#8217;ve refined my approach time and again, deploying kiosks throughout my organization just about anywhere a web-browser kiosk can be put to use. The original library system has been completely rebuilt with newer hardware and software, but is fundamentally the same system I set up five years ago.<\/p>\n<p>I often see people asking about how to set up a kiosk system with Linux, and like me they usually start out going about it the wrong way; so I thought I&#8217;d write this tutorial based on my years of experience to help those getting started.<\/p>\n<p><!--more--><\/p>\n<div id=\"theory\" class=\"section\">\n<h1>Theory<\/h1>\n<p>Most people start working on a kiosk with the idea of taking some standard Linux desktop (like Unity or KDE) and trying to &#8220;lock it down&#8221; so users can only run a browser. I tried this too, originally (at the time, KDE 3 had a kiosk tool that let you set policies for all its 18 bajillion components); but I quickly found that locking down a fully-featured desktop environment was a pedantic, exhausting task that never ended satisfactorily. It occurred to me that I might have more luck building an environment from scratch with <em>only<\/em> the components required.<\/p>\n<p>That isn&#8217;t nearly as hard as you&#8217;d think. To understand how it works, let&#8217;s look at how a typical X11 desktop system functions:<\/p>\n<ul class=\"simple\">\n<li>When you boot the system, it launches your X11 server (xorg) and the <em>display manager<\/em>, which is what gives you your graphical login screen.<\/li>\n<li>In addition to letting you log in, the display manager also lets you choose a <em>session<\/em> (such as Gnome, openbox, XFCE, etc depending on what&#8217;s installed). Each session is just a script or program that can run in X11.<\/li>\n<li>When you log in, the display manager run the session script\/program under your account. The session script launches the programs that comprise your desktop and provides you with everything you see.<\/li>\n<li>When you log out, your session script finishes execution and exits. Control of the display is returned to the display manager.<\/li>\n<\/ul>\n<p>The key here is understanding that the session script (or program) is nothing magical. It&#8217;s just an executable that the display manager runs when you log in, and when it finishes you log out. In fact, there is a very simple mechanism to override the X session and create our own customized version. When a user logs in, if the ~\/.xsession or ~\/.xinitrc file is present and executable it will (usually, depending on the display manager) be executed instead of the default session.<\/p>\n<p>Now, I&#8217;ve said that there&#8217;s nothing magical about the session script; but those who haven&#8217;t done much tinkering with X11 desktops might be surprised to find that many of the behaviors you take for granted on a graphical desktop don&#8217;t &#8220;just happen&#8221; &#8212; they require software to make them happen. For instance, you might assume that program windows are automatically movable about the screen, are re-sizable, or have title-bars across the top with (at least) maximize, minimize, and close buttons. None of this is provided by X11, though; it&#8217;s provided by a program called the <em>window manager<\/em>. You might also assume that graphical environments all have menus, desktop icons, or panels; again, these are provided by other programs which must be run either by the session script or one of the programs it starts.<\/p>\n<p>Choosing the right components to launch in a session script can be subtly tricky depending on the software you need to run, the behavior you expect from it, and the need for tight security on the system. Fortunately, when it comes to desktop components the Linux world offers a lot of options, and with some persistence and a willingness to tinker you can nearly always get what you need. At the end, we&#8217;ll go through some &#8220;crash test&#8221; questions to see if your setup is really bullet-proof and ready for the road.<\/p>\n<p>But first, let&#8217;s walk through setting up an actual kiosk.<\/p>\n<\/div>\n<div id=\"practice\" class=\"section\">\n<h1>Practice<\/h1>\n<p>In this tutorial, I&#8217;ll walk through how I set up a kiosk for use at my workplace, and why I choose the different components that I do.<\/p>\n<div id=\"choose-and-install-the-os\" class=\"section\">\n<h2>Choose and install the OS<\/h2>\n<p>The first task is to get a basic OS install. You can do this with about any distribution of Linux you feel comfortable with, but I&#8217;d recommend taking the following aspects into consideration:<\/p>\n<ul class=\"simple\">\n<li>You want big repositories with a lot of selection. Since we&#8217;re going to be dealing with some less-than-ubiquitous software in constructing our custom environment, make sure you use a distro with a lot of these uncommon packages available.<\/li>\n<li>Don&#8217;t use a rolling release or a distro that updates every few months. The idea is to put out a kiosk and not touch it for a few years if you don&#8217;t need to. Use something with a long release cycle, or a long-term support release.<\/li>\n<li>Use a distribution that can be installed with a minimal command-line installation and built up from there.<\/li>\n<li>Lightweight is good, since you might want to use this on old computers or thin clients.<\/li>\n<\/ul>\n<p>Based on these criteria, I&#8217;ve found Debian Stable to be a prime choice over the years. Ubuntu can also work well if you stick to LTS releases and use the minimal install media. Centos might be a third choice, though it doesn&#8217;t have as much software readily available.<\/p>\n<p>Once you&#8217;ve picked one, install a basic, command-line installation. The Debian installation manual can be found <a class=\"reference external\" href=\"http:\/\/www.debian.org\/releases\/stable\/installmanual\">here<\/a>.<\/p>\n<\/div>\n<div id=\"install-the-software\" class=\"section\">\n<h2>Install the software<\/h2>\n<p>Once you have the basic install, we need to get a few software components on there:<\/p>\n<ul class=\"simple\">\n<li><strong>xorg<\/strong> is vital for displaying video<\/li>\n<li><strong>gdm<\/strong> (version 2) will be the display manager<\/li>\n<li><strong>matchbox-window-manager<\/strong> will be our window manager<\/li>\n<li><strong>chromium-browser<\/strong> will be our sample kiosk application<\/li>\n<li><strong>emacs<\/strong> for editing text, though you can install your favorite CLI text editor instead<\/li>\n<li><strong>rsync<\/strong> will be part of our security lock-down later<\/li>\n<li><strong>openssh-server<\/strong> is useful for doing remote administration<\/li>\n<\/ul>\n<p>Use <strong>aptitude<\/strong> on Debian to find and install these packages. Dependencies will, of course, be handled automatically. You might want to add the &#8220;&#8211;without-recommends&#8221; switch when installing gdm, so that you don&#8217;t pull in a lot of unnecessary GNOME packages. Also, if you prefer to do your administration parts in a GUI, you can of course install a minimal desktop like LXDE or just a simple window manager like jwm. Be aware that any other environment you install is going to show up on your login screen as a session option, so depending on the deployment situation that might be a problem.<\/p>\n<p>We&#8217;re using Chromium here as an example kiosk application, though if you have a custom application or prefer a different web browser substitute that instead. I originally used Firefox for these, but unfortunately Firefox has become increasingly unsuited for kiosk work since version 2 (I actually ended up <a title=\"WCGBrowser, meet world\u2026\" href=\"https:\/\/alandmoore.com\/blog2\/2012\/03\/06\/wcgbrowser-meet-world\/\">writing my own browser<\/a> in python, but I&#8217;m assuming you&#8217;re not that deep into this yet).<\/p>\n<p>I chose matchbox-window-manager here because it&#8217;s simple and stays out of the way. In the past, I&#8217;ve used <strong>flwm<\/strong>, <strong>ion<\/strong>, <strong>openbox<\/strong>, or <strong>xfwm<\/strong>. I ended up switching to matchbox because it does pretty much what you want on a kiosk without any configuration.<\/p>\n<\/div>\n<div id=\"user-accounts\" class=\"section\">\n<h2>User Accounts:<\/h2>\n<p>If you&#8217;re logged in as root at this point, make sure you&#8217;ve made a second account for administration purposes &#8212; you really don&#8217;t want to be ssh&#8217;ing around as root, it&#8217;s bad practice. You also need to make the account which the kiosk will run under; I usually just call this &#8220;kiosk&#8221;, though feel free to call it whatever seems natural to you.<\/p>\n<p>In Debian, the &#8220;adduser&#8221; command will step you through setting up a new user account. Try &#8220;adduser kiosk&#8221; and follow the prompts.<\/p>\n<\/div>\n<div id=\"configuring-the-session-script\" class=\"section\">\n<h2>Configuring the session script<\/h2>\n<p>Time for the most important part: writing the session script. First, run these commands as root:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ncp -r \/home\/kiosk \/opt\/\r\ncd \/opt\/kiosk\/\r\nchmod -R a+r .\r\ntouch .xinitrc\r\nchmod a+x .xinitrc\r\n<\/pre>\n<p>What these commands do is copy the kiosk user&#8217;s home directory to \/opt, move there, make the directory world-readable, and then create an empty but executable .xinitrc file (see note at the end of the section about .xinitrc vs .xsession). You want \/opt\/kiosk to be <em>readable<\/em> by the kiosk user, but not <em>writable<\/em>.<\/p>\n<p>Now open the .xinitrc file in a text editor and copy in this text:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nxset s off\r\nxset -dpms\r\nmatchbox-window-manager &amp;\r\nwhile true; do\r\n    rsync -qr --delete --exclude='.Xauthority' \/opt\/kiosk\/ $HOME\/\r\n    chromium-browser --app=http:\/\/myserver\/mywebapp\r\ndone\r\n<\/pre>\n<p>This is our session script; it&#8217;s what will be run when the kiosk user is logged in, so let&#8217;s go through it one line at a time.<\/p>\n<p>The &#8220;xset&#8221; lines take care of an important detail: disabling screen blanking and monitor power saving. You might not want this, but most users approaching a kiosk with a black screen tend to assume it&#8217;s out of order.<\/p>\n<p>Next, we launch our window manager, matchbox-window-manager. Note the ampersand here: without it, matchbox would be run and nothing else would happen, because the script would be waiting on matchbox to end before running the next commands. You do need <em>one<\/em> part of the script to run indefinitely, because once the script ends the user is logged out; but you want <em>only one<\/em> part of the script to do this. The ampersand forks matchbox&#8217;s execution to the background and continues down the script.<\/p>\n<p>The &#8220;while true; do&#8221; line starts an infinite loop, which is later closed by the &#8220;done&#8221; line. There&#8217;s really no way out of this script other than to kill the whole display or reboot the system, and that&#8217;s what we want.<\/p>\n<p>The &#8220;rsync&#8221; command bears some explanation. Rsync is a special copy command that, by default, only copies files that are different between the source and destination. The switches and arguments do the following:<\/p>\n<ul class=\"simple\">\n<li><strong>q<\/strong> makes the output quiet, so we don&#8217;t bother writing to a log file that is probably going to be overwritten anyway<\/li>\n<li><strong>r<\/strong> makes the copy recurse into subdirectories (without it, no directories will be copied)<\/li>\n<li><strong>delete<\/strong> means that any files in the destination that aren&#8217;t in the source will be deleted. This is will wipe out any files the last user may have downloaded or created, either inadvertently or maliciously.<\/li>\n<li><strong>exclude<\/strong> means it won&#8217;t touch the listed file. &#8220;.Xauthority&#8221; is a file created automatically by xorg, and overwriting or deleting it during a running session could potentially crash the session.<\/li>\n<li><strong>\/opt\/kiosk<\/strong> is our source for copying. The &#8220;\/&#8221; on the end is important, don&#8217;t omit it!<\/li>\n<li><strong>$HOME<\/strong> is an environment variable that points to the logged-in user&#8217;s home directory. Being the last argument, it&#8217;s the destination for our copying. Again, the &#8220;\/&#8221; on the end is critical to make sure things get copied to the right place.<\/li>\n<\/ul>\n<p>Every time the rsync runs, the kiosk user will get a completely fresh home directory; this will reset anything a previous user might have tinkered with. Since it&#8217;s in an infinite loop with the actual kiosk application, resetting everything is as simple as closing the application.<\/p>\n<p>Finally, we run our kiosk application. I&#8217;m using chromium-browser with the &#8220;&#8211;app&#8221; switch to put it in kiosk mode (replace the URL with one of your choosing). You can, of course, run any application here, but note that it&#8217;s critical the application <em>not<\/em> fork into the background when run. Some applications (OpenOffice, for one) fork when run, and return control to the command line. If your application does this, you&#8217;ll end up with a few hundred copies before the system runs out of memory and dies. You&#8217;ll have to work out how to &#8220;block&#8221; the session some other way if your application is like this.<\/p>\n<p>Once this file is saved, copy it to \/home\/kiosk. Reboot the system, and log in to GDM as the kiosk user. Ta-dah! You should be looking at a full-screen chromium with whatever URL you specified.<\/p>\n<p>NOTE: as one reader discovered, apparently newer versions of GDM in Ubuntu<em>\u00a0<\/em>don&#8217;t recognize &#8220;~\/.xinitrc&#8221;, but\u00a0<strong>do<\/strong> recognize &#8220;~\/.xsession&#8221;. \u00a0If you&#8217;re having trouble with GDM recognizing your session script, rename it to &#8220;.xsession&#8221;.<\/p>\n<\/div>\n<div id=\"the-lockdown\" class=\"section\">\n<h2>The lockdown<\/h2>\n<p>Already this is a pretty secure setup that will keep the vast majority of people from doing anything destructive, but there are a few more things we might want to do depending on where you&#8217;re deploying the kiosk and what you think people might do (for space reasons, I can&#8217;t detail all these, but I&#8217;ll tell you where to find information):<\/p>\n<ul class=\"simple\">\n<li>Lock GRUB: By default, GRUB allows any user to edit boot options from the GRUB prompt, giving knowledgeable users a potential avenue to gain root access. Section 15 of the GRUB manual (type &#8220;info grub&#8221; at the console for the manual) describes how to password-protect boot options and editing.<\/li>\n<li>Lock the BIOS: Most computers allow a BIOS password to be set for editing BIOS. You probably want to set this, and disable any sort of boot-device menu features. Of course, you also need to <em>physically<\/em> secure the cpu if you&#8217;re worried about people booting to other devices.<\/li>\n<li>Remove sudo\/su access: In the event that a user finds a way to get a terminal, you don&#8217;t want them being able to run su or sudo (even if they don&#8217;t know the password, they can spend a long time guessing on a public kiosk). Check out the files \/etc\/pam.d\/su and \/etc\/pam.d\/sudo on Debian, and read carefully to learn how to disable these commands for your public user. On Ubuntu, you might find apparmor to be useful here as well.<\/li>\n<li>Be careful with the URL bar: It&#8217;s easy to forget that most web browsers, including chromium, can browse the filesystem just as well as they can browse the web. This can potentially allow a user to inspect system files or even run commands. In our example, the &#8220;&#8211;app&#8221; switch makes the URL bar inaccessible, but there may be ways around this. Make sure you check for things like this and take measures to limit access to the filesystem.<\/li>\n<li>Disable TTYs: By default, most Linux systems will spawn six TTY terminals in addition to the X11 display, which can be accessed with the keys ctrl-alt-F1 through ctrl-alt-F6. You probably want to disable these for the same reason you want to disable su and sudo &#8212; no sense in giving someone the opportunity to try root passwords. In Debian, edit (as root) the \/etc\/inittab file and comment out these lines:\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n1:2345:respawn:\/sbin\/getty 38400 tty1\r\n2:23:respawn:\/sbin\/getty 38400 tty2\r\n3:23:respawn:\/sbin\/getty 38400 tty3\r\n4:23:respawn:\/sbin\/getty 38400 tty4\r\n5:23:respawn:\/sbin\/getty 38400 tty5\r\n6:23:respawn:\/sbin\/getty 38400 tty6\r\n<\/pre>\n<\/li>\n<li>Prevent root login to GDM: Again, you don&#8217;t want to have people testing root passwords at the GDM login prompt. Edit \/etc\/gdm\/gdm.conf and under the &#8220;[security]&#8221; section add &#8220;AllowRoot=False&#8221;.<\/li>\n<\/ul>\n<p>Not all of these are strictly necessary, but as the voice of experience let me advise you not to underestimate the public&#8217;s ability to cause mischief on an unsecured computer!<\/p>\n<\/div>\n<div id=\"tweaks\" class=\"section\">\n<h2>Tweaks<\/h2>\n<p>At this point your system is workable and secure, but depending on the situation there are some optional features we might want to add.<\/p>\n<div id=\"gm-autologin\" class=\"section\">\n<h3>GDM autologin<\/h3>\n<p>If you want the system to be a &#8220;turnkey&#8221; style system that doesn&#8217;t require login, configure GDM for auto-login. You just need to edit \/etc\/gdm\/gdm.conf, and add the following under the &#8220;[daemon]&#8221; section:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n&#x5B;daemon]\r\nAutomaticLoginEnable=true\r\nAutomaticLogin=kiosk\r\n<\/pre>\n<div id=\"reset-on-timeout\" class=\"section\">\n<h3>Reset on Timeout<\/h3>\n<p>So your kiosk user is looking up information about an embarrassing rash, then gets a phone call and has to step away. You don&#8217;t want the next person walking up to see information about embarrassing rashes. You also want to protect your users by removing web history between users when possible.<\/p>\n<p>In my own kiosks, I built a timer into the <a title=\"WCGBrowser, meet world\u2026\" href=\"https:\/\/alandmoore.com\/blog2\/2012\/03\/06\/wcgbrowser-meet-world\/\">application<\/a> to wipe the history and return to the home page after so many minutes of inactivity. With the chromium-browser kiosk, you don&#8217;t have that option. But you can get it with a little help from <em>xautolock<\/em>.<\/p>\n<p>Xautolock is a utility that monitors the session for inactivity, and locks the screen after so many minutes. It doesn&#8217;t actually <em>have to<\/em> lock the screen, though; you can tell it to run any command you want after the inactivity period has timed out.<\/p>\n<p>Looking at our session script, all we need to do to reset the whole thing is close chromium. So the solution is simple:<\/p>\n<ul class=\"simple\">\n<li>Create a script to kill chromium; probably it just needs to contain &#8220;pkill chromium-browser&#8221;. Save it to \/usr\/local\/bin\/kill_chromium.sh.<\/li>\n<li>Install <strong>xautolock<\/strong> and add this line to your session script, <em>before<\/em>the loop starts:\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">xautolock -secure -time 15 -locker \/usr\/local\/bin\/kill_chromium.sh\r\n<\/pre>\n<\/li>\n<\/ul>\n<p>This runs xautolock in secure mode (so it can&#8217;t be turned off), sets the inactivity timeout to 15 minutes, and runs your chromium-killing script when the timeout hits.<\/p>\n<\/div>\n<div id=\"auto-update\" class=\"section\">\n<h3>Auto update<\/h3>\n<p>Chances are, you don&#8217;t want to mess with keeping these systems up-to-date manually, and you certainly can&#8217;t expect users to launch an updater for you! So, this is the simple way to set up automatic updates on your Debian system (I wouldn&#8217;t recommend doing auto-updates on a distro that&#8217;s prone to major changes, or you might have a broken kiosk on your hands!).<\/p>\n<ul class=\"simple\">\n<li>First, install <strong>cron-apt<\/strong> from the repositories.<\/li>\n<li>By default, cron-apt will update the package lists daily, but won&#8217;t upgrade the system. So:\n<ul>\n<li>Go to \/etc\/cron-apt\/action.d<\/li>\n<li>create a file called &#8220;9-dist-upgrade&#8221;<\/li>\n<li>Put in it this line: &#8220;dist-upgrade -y -V -o Dpkg::Options::=&#8211;force-confold&#8221;<\/li>\n<\/ul>\n<\/li>\n<li>Save the file and exit.<\/li>\n<\/ul>\n<p>If you have the capability to relay mail from your systems, you can configure cron-apt to email you when it upgrades or has a problem upgrading, but I&#8217;ll leave that for your homework.<\/p>\n<\/div>\n<div id=\"printing\" class=\"section\">\n<h3>Printing<\/h3>\n<p>If you want your users to be able to print, you&#8217;ll need to install <strong>cups<\/strong>. Mercifully, cups comes with its own web-based configuration utility, so if you&#8217;re a little tired of hacking config files, rejoice! After installing cups, point the web browser to &#8220;<a class=\"reference external\" href=\"http:\/\/localhost:631\">http:\/\/localhost:631<\/a>&#8221; to configure printing.<\/p>\n<\/div>\n<\/div>\n<div id=\"testing-the-system\" class=\"section\">\n<h2>Testing the system<\/h2>\n<p>Now that your system is set up, test it extensively. If possible, have some other people try to mess it up. Here is a list of some non-obvious things to try:<\/p>\n<ul class=\"simple\">\n<li>Window Manager\n<ul>\n<li>Does the WM offer keyboard shortcuts or a menu? Are you able to use them to launch other applications, or get to a terminal?<\/li>\n<li>Can you minimize windows? Once you do, is it obvious how to restore them?<\/li>\n<li>Is it possible to log out with your setup? What happens?<\/li>\n<li>What happens when dialogs pop up? Or different file types are downloaded? Is it obvious how to close windows that might need to be closed, or find them if they lose focus?<\/li>\n<li>What happens when the user hits the &#8220;magic sysrq&#8221; combinations? Try alt-sysrq-K, for example.<\/li>\n<\/ul>\n<\/li>\n<li>Application\n<ul>\n<li>Can your kiosk application be put in an broken or messed up state with no obvious way to restore it?<\/li>\n<li>Can your application be used to launch system utilities or browse system files?<\/li>\n<li>Does your application have problems if closed improperly?<\/li>\n<li>Is there an obvious way for users to &#8220;reset&#8221; the program if they&#8217;re stuck, or if they want to delete their history?<\/li>\n<li>Is it possible to browse unwanted URLs from the browser? Do you need to apply a proxy filter or firewall?<\/li>\n<\/ul>\n<\/li>\n<li>System\n<ul>\n<li>Watch carefully at boot; is any sensitive information exposed on the screen? Are there places where a user could stop the boot process and get an interactive prompt?<\/li>\n<li>Scan your system from another system on its network using <strong>nmap<\/strong>. What ports are open? Do you need to firewall those ports, or remove the services listening on those ports?<\/li>\n<li>Are login prompts exposed on the system, so that a user could try passwords for root?<\/li>\n<\/ul>\n<\/li>\n<li>Hardware\n<ul>\n<li>Is there a way to secure your case? Mouse? Keyboard?<\/li>\n<li>Does the keyboard or mouse have &#8220;special keys&#8221; like multimedia or Internet buttons, scroll wheel buttons, etc. What do these do when pressed?<\/li>\n<li>Are USB ports exposed on any of the peripherals? Have you secured the system against booting from USB?<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Obviously, your need for security and bullet-proof operation may vary depending on where and how you intend to deploy this system; but spend some time trying to think like a hoodlum with Unix experience, and see what you can do to secure the system against tampering.<\/p>\n<\/div>\n<div id=\"just-the-beginning\" class=\"section\">\n<h2>Just the beginning<\/h2>\n<p>This is just the start of what you can do with Linux and kiosk setups. Now that you understand how to use the .xinitrc, the sky&#8217;s the limit! If you&#8217;ve created Linux kiosks, or if you&#8217;re unsure how to solve a particular problem you&#8217;re having, leave a comment and tell me all about it.\n<\/p><\/div>\n<div id=\"updates\" class=\"section\">\n<h2>2012 Update:\u00a0 Some additional resources<\/h2>\n<p>This article has proven to be somewhat popular as a resource for setting up Kiosk systems on Linux, so I&#8217;m including some links to additional resources that I&#8217;ve posted on this blog since I wrote this article:<\/p>\n<ul>\n<li><a title=\"WCGBrowser, meet world\u2026\" href=\"https:\/\/alandmoore.com\/blog2\/2012\/03\/06\/wcgbrowser-meet-world\/\">WCGBrowser<\/a> &#8212; this is the browser I ended up writing to replace Firefox on my kiosks.\u00a0 It&#8217;s built in Python, QT, and WebKit, and it&#8217;s fully configurable through a plain text YAML config file.\u00a0 I released the code since writing this article, and continue to develop it into a general-purpose solution for kiosks.\u00a0 It&#8217;s Free under the GPL v3, and the code is on <a title=\"My Github page\" href=\"http:\/\/github.com\/alandmoore\" target=\"_blank\">my github page<\/a>.<\/li>\n<li><a title=\"New project:KiLauncher\" href=\"https:\/\/alandmoore.com\/blog2\/2012\/06\/30\/new-projectkilauncher\/\" target=\"_blank\">KiLauncher<\/a> &#8212; a full-screen launcher menu, also built with Python and QT and configurable through a YAML config file.\u00a0 It&#8217;s also theme-able using QT stylesheets ( a subset of CSS).\u00a0 Also Free under the GPL v3, and the code is on <a title=\"My Github page\" href=\"http:\/\/github.com\/alandmoore\" target=\"_blank\">my github page<\/a>.<\/li>\n<\/ul>\n<h2>2013 Update<\/h2>\n<p>It&#8217;s late 2013, Wheezy is among us; as some commenters have mentioned, gdm (version 2) is no longer an option if you&#8217;re building a kiosk on Debian stable.  For wheezy, I&#8217;m recommending you use lightdm instead.<\/p>\n<p>Simply replace &#8220;gdm&#8221; with &#8220;lightdm&#8221; in your installation procedure.  To setup auto-login, run the following command:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n\/usr\/lib\/i386-linux-gnu\/lightdm\/lightdm-set-defaults --autologin kiosk\r\n<\/pre>\n<p>Apart from that, my kiosks are still running happily using this procedure on Debian Wheezy, so nothing really needs to change.  If you&#8217;re using Ubuntu, with all this Mir and Xmir business, you&#8217;re really on your own there.  If you manage to get it working on Ubuntu 13.10 or higher, let us know what you did.<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Back around 2006 our public library was in need of a cheap way for patrons to browse its web-based INNOPAC catalog. Thin clients running Windows CE had been purchased for this purpose, but they turned out to be buggy and limited. I was tasked with finding a solution to the problem &#8220;on the cheap&#8221;, and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,5],"tags":[15,16,20,22,33,14,34],"class_list":["post-181","post","type-post","status-publish","format-standard","hentry","category-floss","category-technology","tag-debian","tag-floss-2","tag-how-to","tag-instructional","tag-kiosk","tag-linux","tag-practical-tech"],"_links":{"self":[{"href":"https:\/\/alandmoore.com\/blog\/wp-json\/wp\/v2\/posts\/181","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alandmoore.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alandmoore.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alandmoore.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alandmoore.com\/blog\/wp-json\/wp\/v2\/comments?post=181"}],"version-history":[{"count":28,"href":"https:\/\/alandmoore.com\/blog\/wp-json\/wp\/v2\/posts\/181\/revisions"}],"predecessor-version":[{"id":887,"href":"https:\/\/alandmoore.com\/blog\/wp-json\/wp\/v2\/posts\/181\/revisions\/887"}],"wp:attachment":[{"href":"https:\/\/alandmoore.com\/blog\/wp-json\/wp\/v2\/media?parent=181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alandmoore.com\/blog\/wp-json\/wp\/v2\/categories?post=181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alandmoore.com\/blog\/wp-json\/wp\/v2\/tags?post=181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}