Friday, May 21, 2010

Open Source Software Cyber Cafe

Cafe Con Lache Discussion On Ubuntu Forum

This posting originally from Ubuntu Forum member "Script Warlock" it is a nice tutorial/howto to be followed if you choose CCL as your internet cafe/cyber cafe billing system. But currently this project has been unmantained for a while, please take a look at mkahawa for an improved and actively mantained version of CCL

mkahawa builds on the sharp and slick Cafe Con Leche (CCL) - the light, ultra-fast C++ Internet Cafe Management Software for Linux and Windows. This is a continuation of CCL development in another form.
http://mkahawa.sourceforge.net


cafe con leche: Internet cafe management software

http://ccl.sourceforge.net/

Screenshots


Server


Client

Common Installation

Both side of the application (server and client) has to meet their dependencies, since this is not a debian package, we have to install the dependencies manually. CCL dependencies are
  • sqlite3
  • glib2.0
  • libfox1.4(server), libfox1.6(client)
  • openssl
For the ccl server run these commands :
$ sudo apt-get install sqlite3 libsqlite3-dev
$ sudo apt-get install libfox1.4 libfox1.4-dev (server)
$ sudo apt-get install libglib2.0-dev
$ sudo apt-get install libssl-dev
For the ccl client replace the libfox1.4 run these command :
$ sudo apt-get install libfox-1.6-0 libfox-1.6-dev

Don’t forget the build essentials for compiling from source :

$sudo apt-get install build-essential
Then edit your /etc/ld.so.conf file with :
$sudo gedit /etc/ld.so.conf
And add these lines :
/usr/lib
/usr/local/lib …..and save the changes when done
it may look like this :

include /etc/ld.so.conf.d/*.conf
/usr/lib
/usr/local/lib

Then execute this :

$sudo ldconfig

CCL Server Installation

for the server side you’ll need these 2 files :

cclfox-0.7.1.tar.bz2 here
libccls-0.7.1.tar.bz2 here

Put these files on your home folder and do these steps :

$tar -xjvf libccls-0.7.1.tar.bz2
$cd libccls-0.7.1
$./configure
$make
$sudo make install
$cd ..
$tar -xjvf cclfox-0.7.1.tar.bz2
$cd cclfox-0.7.1
$./configure
$make
$sudo make install

create a folder in the home directory :

$mkdir .cclfox

put this file to the .cclfox folder right click and choose the properties and select permission then tick the box and close. generate the pem by double clicking it and if being prompted just run it.





Then create a launcher on your desktop and add :
cclfox -nossl
on the “command” text box

CCL Client Installation
for the client side you’ll need these 2 files :
cclcfox-0.7.1-FOX-1.6.tar.bz2 here
libcclc-0.7.1.tar.bz2 here

put these files on your home folder and do these steps :

$tar -xjvf libcclc-0.7.1.tar.bz2
$cd libcclc-0.7.1
$./configure
$make
$sudo make install
$cd ..
$tar -xjvf cclcfox-0.7.1-FOX-1.6.tar.bz2
$cd cclcfox-0.7.1
$./configure
$make
$sudo make install
create a folder in the home directory :
$mkdir .cclcfox

put this file to the .cclfox folder right click and choose the properties and select permission then tick the box and close. generate the pem by double clicking it and if being prompted just run it.




then create a launcher on your home folder and add : (Alt+f2 will do)


cclcfox -host serverip -name anynameor(clienthostname) -nossl
on the “command” text box
to check the client hostname simply type in the terminal:
$ hostname
Setting the tariff :

  1. launch the ccl server and choose the tariff tab
  2. select the days(highlighted) before modifying or nothing will change. after the desired values are filled accordingly to your likes click the apply.....




Autorun the ccl client :

to run this on startup in ubuntu/gnome
add the above in System menu ->preferences->sessions(8.04) | startup applications(9.04)
Name: any name
Command: cclcfox -host serverip -name anynameor(clienthostname) -nossl
Comment: whatever

Remote shutdown and reboot :


$sudo chmod 7755 /sbin/shutdown
$sudo chmod 7755 /sbin/reboot

Replacing the desktop lockscreen(client workstation) :


1. kill the cclcfox running >>> sudo kill -9 (pid of cclcfox)
2. create or choose the desired photo, trim down according to the desktop's resolution and save as lockpix.gif in the .cclcfox folder located in the home folder. Note that .cclcfox is a hidden folder so in order to display open the home folder and select the view then tick/select the box “show hidden files”. close when done
3. relaunch the client timer and “end the session”.

Common functions :



Green – start session
Yellow – pause and resume session
Red – stop session
Blue – continue session
Purple – swap session
Turquoise – set timeout (countdown)

to start the pre-paid session:
press the green and the turquoise and set the time...

to start the opentime session:
press the green button....

to pause the session:
press the yellow and to resume press again the yellow...

to continue the session
if the customer accidentally stops the session it can be continued by pressing the blue button

to swap the session:
if the customer of ubuntu1(workstation) wants to transfer to ubuntu8 for some reason simply choose the ubuntu1 icon and press the purple button and choose the ubuntu8 pc. The time consumed, left or account is also transferred...


Remote functions: (right click the icon)




Turn off:
remotely shutdown the workstation …

Reboot:
remotely restart the workstation ….

Turn off screen:
remotely turn off the client workstation monitor

Allow users to start the session:
if selected user can start the session by clicking the pop-up tab on the workstation lockscreen marked as "click here to start"

Allow members to start the session:
it allows the member to start the session by pressing the enter and log-in with members id and password(default password is the members id)

Set member:



Server:
1. choose the member tab
2. set a new member by clicking the new button
3. select (highlighted) the newly created member and fill in the blanks with members info if necessary
4. press the reset password
5. if done click apply changes
6. right click the workstation icon and set to allow members start the session

Workstation:
1. press enter and log the members id
2. the default password is the members id

to change the members password in the workstation:
1. click the "set password" below the timer
2. fill in the blanks, if done press ok

To uninstall the cclfox (client and server):
open the terminal
$cd libccls-0.7.1cd cclfox-0.7.1
$make uninstall