Cookie

TheJoe.it Into the (open) source

8Jul/100

An old PC, a distro GNU / Linux and have our internet point

Caution!

This article was written in the 2010, there may have been some developments in the subject matter.
If in doubt please leave a comment in the bottom of the article.
Thanks.

kiosk

Today's article is published after being here for a long time (that novembre 2009) one of the most read stories from my old domain: http://www.thejoe.co.nr/.

Today we will see how to set up a GNU / Linux box as internet point in a simple and fast. Our requirements are very few:

  • Computer with minimal system resources (pentium III, ram da 128MB, the record 1GB) or higher,
  • GNU/Linux (any distro that supports ".Xsession”, useremo one Debian),
  • Un browser web (any browser that supports the mode "kiosk”, we will use Opera).

Choice fought, but inevitable that of Opera. Although it remains a free proprietary software but supports the way "kiosk"Much better than Firefox. And 'the only reason why I adopted Opera instead of Firefox.

We begin with the installation of the necessary software:

root:~# apt-get install x-window-system-core gdm

Will install the dependencies of those packages to enable the 'graphical environment.

The this page we download the version of Opera adapted to our architettura hardware. And 'possible to navigate to the desired page in text mode with "elinks”, if it is not included you must install it with the command:

root:~ # Apt-get install elinks

Downloads the latest version of Opera installiamola:

root:~# dpkg -i opera.version.deb

Let's create a user that does not have administrative privileges, the user will be "webuser”, no password.

root:~# adduser webuser

Now create the file .Xsession of "webuser”. The file .Xsession is responsible for 'programs start at login User. In this case we do not need anything but Opera:

cd /user/webuser
nano .Xsession
/usr/bin/opera

Now if we start gdm (“/etc / init.d / gdm start”) and we log in as "webuser"The screen where you usually find the desktop and menus will be composed, instead of the window Fullscreen of Opera that will not give us the opportunity to resize, decrease the ad icon close the same. The fact remains that in this way for the user is still possible modify and customize Opera as pleases him most. If we want to take this opportunity we have to go back to edit the file .Xsession for the desired. That:

/usr/bin/X11/xset -dpms
/usr/bin/X11/xset s off
/usr/bin/opera -kioskmode -kioskresetstation -nochangebuttons -nochangefullscreen -nocontextmenu -nohotlist -nomaillinks -nominmaxbuttons -nodownload -noexit -noprint -nosave -nosplash -nosysmenu -nomenu -resetonexit http://www.thejoe.it

The first two lines disable shutdown Screen (standby mode for example) e lo screensaver. The third line passes parameters to Opera, parameters exhaustively explained by Opera itself in its documentation.

Additional changes can be made to the file of Opera "~ / .opera/opera6.ini”. Even in this case documentation Opera is very detailed.

If we want to start the user "webuser"Log in automatically we have to modify the file"/etc / gdm / gdm.conf"As follows:

[daemon]
AutomaticLoginEnable=true
AutomaticLogin=webuser
TimedLoginEnable=true
TimedLogin=webuser
TimedLoginDelay=3

Everyone loves screenshots!

Not that there's much to see, are two beautiful screens work in full screen. In all cases demonstrate the operation of the procedure.

I further an article on software "Pessolus" still blog "Liberamente-Kayowas" For those who want the (almost) full control over the session of the webuser. For those who want full control there is only the command line.

About

I keep this blog as a hobby by 2009. I am passionate about graphic, technology, software Open Source. Among my articles will be easy to find music, and some personal thoughts, but I prefer the direct line of the blog mainly to technology. For more information contact me.

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

No trackbacks yet.