Libki Client Installation - Linux

Install Pre-Requisites

For Debian/Ubuntu

sudo apt-get install subversion git-core php5 php5-mysql php5-cli php5-dev php5-gd libgtk2.0-dev libglade2-dev build-essential php5-mysql php5-curl php5-mcrypt php5-gd re2c libgtk2.0-0 libgtk2.0-dev libglib2.0-0 libglib2.0-dev libgtkextra-x11-2.0-1 libgtkextra-x11-2.0-dev libgtksourceview-dev libgnomeprint2.2-dev libgtksourceview2.0-0 libgtksourceview2.0-dev libsexy2 libsexy-dev libgtkhtml3.14-19 libgtkhtml3.14-dev libgtkhtml3.8-15 libgtkhtml3.8-dev libglade2-0 libglade2-dev libgtkspell0 libgtkspell-dev

To fix a current bug:

#https://bugs.launchpad.net/ubuntu/+source/php5/+bug/262251
cd /usr/share/aclocal
sudo cp libtool.m4 libtool.m4.bk
sudo chmod 777 libtool.m4
sudo cat lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4 >> libtool.m4
sudo chmod 644 libtool.m4

Install PHP/GTK2

  • Follow the instructions at http://gtk.php.net/manual/en/tutorials.installation.linux.php to install PHP/Gtk2.
    • Grab the PHP/GTK2 sources from http://gtk.php.net/download.php OR use Subversion to grab the source
      svn co http://svn.php.net/repository/gtk/php-gtk/trunk php-gtk
    • Compile the Sources
      wget http://gtk.php.net/do_download.php?download_file=php-gtk-2.0.1.tar.gz
      tar -xvvf php-gtk-2.0.1.tar.gz >> /dev/null
      cd php-gtk-2.0.1
      ./buildconf
      sudo ./configure
      sudo make
      sudo make install
      
  • Install PHP/GTK2
    cd /usr/lib/php5/200*
    sudo chmod 744 php_gtk2.so
    cd /etc/php5/conf.d/
    sudo touch php_gtk2.ini
    sudo chmod 777 php_gtk2.ini
    sudo echo 'extension=php_gtk2.so' > php_gtk2.ini
    sudo chmod 644 php_gtk2.ini
    
  • Add multilingual support to GTK2
    sudo chmod 777 /etc/php5/cli/php.ini
    sudo echo 'php-gtk.codepage = UTF8' >> /etc/php5/cli/php.ini
    sudo chmod 644 /etc/php5/cli/php.ini
    
  • Optional - Install Better Fonts
    sudo apt-get install -y msttcorefonts

Install Libki Client

  • Download the Libki Client
  • Create the file /etc/libki/libki.ini and fill it in with the appropriate data.
    ; Fill in the data and copy this file to /etc/libki.ini
    [Database]
    host = HOST
    username = USERNAME
    password = YOURPASSWORD
    database = libki
    
    [Config]
    ; Give each computer running libki a unique machine name
    machine=MACHINENAME
    
  • Link the directory client/src to /usr/local/share/libki
    sudo ln -s LIBKI-ROOT/client/src/ /usr/local/share/libkiclient
  • Make the dir readable and executable.
    sudo chmod -R 755 LIBKI-ROOT/client/src
  • Create the file /usr/local/bin/libkiclient with the following code:
    #!/bin/bash
    cd /usr/local/share/libkiclient
    php KioskClient.phpw
    

    Don't forget to make sure it's readable and executable by everyone.

  • In the Libki-enabled account, launch the script libkiclient on login.
    • In the locked down account's home directory, create the directory .config/autostart if it does not already exist.
    • In this directory, create the file libki.desktop with the following contents:
      [Desktop Entry]
      Encoding=UTF-8
      Version=1.0
      Type=Application
      Terminal=false
      Name[en_US]=Libki Client
      Exec=libkiclient
      Name=Libki Client
      

Preventing Mischief

  • Disable xkill, this command is installed with KDE and makes the hotkey control-alt-escape turn on xkill, which will kill any window then clicked on.
  • Each desktop environment has to be locked down for public use in its own way.
 
linux_client_installation.txt · Last modified: 2009/08/31 12:54 by administrator
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki