{"id":180,"date":"2010-01-16T20:09:33","date_gmt":"2010-01-16T13:09:33","guid":{"rendered":"http:\/\/www.jfdesignnet.com\/?p=180"},"modified":"2010-01-16T20:09:33","modified_gmt":"2010-01-16T13:09:33","slug":"kiosk-style-machine-running-a-single-x11-application","status":"publish","type":"post","link":"https:\/\/www.jfdesignnet.com\/?p=180","title":{"rendered":"Kiosk Machine Running a Single X11 Application"},"content":{"rendered":"<p>By changing the Xsession file you can start a kiosk-style machine that starts a single X11 application.<br \/>\nOn Debian you would change the file \/etc\/X11\/Xsession.d\/99&#215;11-common_start. In stock form there is a line that reads:<\/p>\n<blockquote><p>exec $STARTUP<\/p><\/blockquote>\n<p>Change that to read :<\/p>\n<blockquote><p>exec firefox javascript:%20resizeTo(1024,768)<\/p><\/blockquote>\n<p>and your machine will boot directly into Firefox at a screen size of 1024&#215;768. Of course you can change the size to any resolution you like. You can probably also add more javascript as well and force opening a web page and other stuff. Combine this with Bastille and an autologin of a non-privileged user and you&#8217;ll have a very convenient (and cheap) kiosk.<\/p>\n<p>On KLIXs which Mandriva based, the default XSession file is at \/etc\/X11\/Xsession, and in default it could handle multiple wm from twm through kde, so it&#8217;s not hard to find the coresponding line :<\/p>\n<blockquote><p>exec \/bin\/sh -c &#8220;$DESKTOP&#8221;<\/p><\/blockquote>\n<p>Change that to read :<\/p>\n<blockquote><p>exec firefox javascript:%20resizeTo(1024,768)<\/p><\/blockquote>\n<p>On some other Linux distros the Xsession file may actually be a single file rather than a directory of files. A simple search such as:<\/p>\n<blockquote><p>find \/etc\/X11 -iname &#8216;Xsession*&#8217;<\/p><\/blockquote>\n<p>should find it for you. The actual line to change may differ also but should be near the end and be an exec statement or a function call that invokes exec.<\/p>\n<p>Hope this helps you Brian &#8230; \ud83d\ude00 Cheers and keep on faith.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By changing the Xsession file you can start a kiosk-style machine that starts a single X11 application. On Debian you would change the file \/etc\/X11\/Xsession.d\/99&#215;11-common_start. In stock form there is a line that reads: exec $STARTUP Change that to read : exec firefox javascript:%20resizeTo(1024,768) and your machine will boot directly into Firefox at a screen [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,17,9],"tags":[],"_links":{"self":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts\/180"}],"collection":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=180"}],"version-history":[{"count":0,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts\/180\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}