Friday, May 26, 2017

Linux Internet Cafe Management Software -- Step by Step

This is a simple how-to guide to install internet cafe management software in Linux. We'll use Cafe Con Leche (predecessor of Mkahawa) in Lubuntu as an example. It may work in other Ubuntu-based Linux distributions or, with some tweaks, on any other Linux flavor.

Step Zero

Install Lubuntu. Make sure it is up to date.

apt-get update
apt-get dist-upgrade

Step One
Download Cafe-Management Software -  the server.
Download  library for the server.

Step Two
Install requirements (choose gdm display manager if prompted):

apt-get install libx11-dev libx11-xcb-dev libx11-6 x11-utils libfox-1.6-dev libfox-1.6-0 libfox-1.6-doc intltool libsqlite3-dev autoconf subversion libssl-dev libtool libglib2.0-dev libgtkgl2.0-dev libnotify-cil-dev libstartup-notification0-dev libxss-dev libnotify-dev gcc binutils libc6-dev linux-libc-dev gdm firefox libgtk2.0-dev sqlite3

 Step Three

 Extract the downloaded server library file. Go into terminal, and switch to the extracted folder.


./configure LIBS="-lX11 -lcrypto -ldl -lpthread -lpthread -lm"
make
sudo make install










Step Four:


 Extract the downloaded server file. Go into terminal, and switch to the extracted folder.


./configure LIBS="-lX11 -lcrypto -ldl -lpthread -lpthread -lm"
make
sudo make install


 You have now successfully installed cclfox server. You can run it in a terminal by cclfox -nossl

Troubleshooting Errors
1. po/Makefile.in.in was not created by intltoolize.
 autoreconf --install
intltoolize
autoreconf
./configure LIBS="-lX11 -lcrypto -ldl -lpthread -lpthread -lm"


autoreconf -ivf
./configure


Fixes
WARNING: `automake-1.11' is needed, and you do not seem to have it handy on your
         system.  You might have modified some files without having the
         proper tools for further handling them.  Check the `README' file,
         it often tells you about the needed prerequirements for installing
         this package.  You may also peek at any GNU archive site, in case
         some other package would contain this missing `automake-1.11' program.
Makefile:237: recipe for target 'Makefile.in' failed
make: *** [Makefile.in] Error 1


./configure LIBS=-lX11
Fixes
/usr/bin/ld: gui.o: undefined reference to symbol 'XGrabKey'
/usr/lib/i386-linux-gnu/
libX11.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:289: recipe for target 'mkahawa-printer' failed
make[1]: *** [mkahawa-printer] Error 1


./configure LIBS=-pthread
Fixes
  -lccls -lFOX-1.6
/usr/bin/ld: CCLWin.o: undefined reference to symbol 'pthread_create@@GLIBC_2.1'
/lib/i386-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status



No comments: