Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Ubuntu LoCo Team Forums > International LoCo Teams > Philippine Team
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Philippine Team
Philippine LoCo Team

 
Thread Tools Display Modes
Old May 1st, 2008   #1
loell
☀ ☀ ☀
 
loell's Avatar
 
Join Date: Oct 2005
Location: Davao, Philippines
Beans: 4,681
Ubuntu 9.10 Karmic Koala
Send a message via Yahoo to loell Send a message via Skype™ to loell
cafe con leche: Internet cafe management software

updated howto from Script Warlock

Quote:
Originally Posted by Script Warlock View Post
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 anyname -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 anyname -nossl
Comment: whatever

Remote shutdown and reboot :


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

Replacing the desktop lockscreen :


1. kill the cclcfox running >>> sudo kill -9 (pid of cclcfox)
2. create or choose the desired photo and save it on 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)



Set member:
to setting the member is according to the member section (tab) below the tariff

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

Allow members to start the session:
it allows the member to start the session

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

a big thanks to Yogha Restu Pramadi
Attached Files
File Type: deb cclcfox.deb (130.8 KB, 696 views)
File Type: deb cclfox.deb (182.4 KB, 645 views)
File Type: deb libcclc_0.7.0-1_i386.deb (8.2 KB, 733 views)
File Type: deb libccls_0.7.0-1_i386.deb (56.7 KB, 728 views)
File Type: gz ccl-client-pack.tar.gz (76.5 KB, 198 views)

Last edited by loell; September 8th, 2009 at 08:26 AM..
loell is offline   Reply With Quote
Old May 1st, 2008   #2
BatsotO
A Carafe of Ubuntu
 
BatsotO's Avatar
 
Join Date: May 2005
Location: indonesia
Beans: 151
Ubuntu 7.04 Feisty Fawn
Send a message via Yahoo to BatsotO
Re: cafe con leche: Internet cafe management software

Just adding..
I've been use cclfox for a while and by far it's a neat program.

1.You might need to add :

/usr/lib
/usr/local/lib

in the /etc/ld.so.conf and do ldconfig.

2. You can change the lock screen display on the client by creating some neatest picture you can think of, save it in gif and name the picture lockpix (therefore lockpix.gif) and place it in the .cclcfox folder (not cclfox in the client side) along with the pems files.

3. if you want to shutdown and reboot client pcs remotely, chmod 7755 the /usr/bin/shutdown and /usr/bin/reboot.

4. Secure your wokrstations, you don't want any naughty user with some linux knowledge do process listing and send kill signal to terminate the cclcfox application, or delete it from the start up list. I disable terminal, virtual consoles and gnome-session-properties in my workstations to at least securing my setting (along with desktop locker and some gconf editing).

5. The installation wasn't that hard ( I wonder why so many tutorial on installation but so few on how to operate things). The most difficult to figure in my experience was tariff setting. I dont want user who use the wokstation for 5 minutes to pay for the whole hour, so I have to calculate per minute charge and set them minute per minute

6. There are more than one tariff scheme, so you can set it the way you needed. (this is a big plus)

7. Member first login will be their account number id and the password is also their account number id, from there the member can set their own password, then they can use their own login name and passord.


That's all I can remember right now.

Last edited by BatsotO; May 1st, 2008 at 04:23 PM..
BatsotO is offline   Reply With Quote
Old May 1st, 2008   #3
loell
☀ ☀ ☀
 
loell's Avatar
 
Join Date: Oct 2005
Location: Davao, Philippines
Beans: 4,681
Ubuntu 9.10 Karmic Koala
Send a message via Yahoo to loell Send a message via Skype™ to loell
Re: cafe con leche: Internet cafe management software

thank you for the additionals hopefully you can add more tips.
there is little or no documentation on how to use ccl, i hope we can alleviate that as the thread progress.
loell is offline   Reply With Quote
Old May 1st, 2008   #4
BatsotO
A Carafe of Ubuntu
 
BatsotO's Avatar
 
Join Date: May 2005
Location: indonesia
Beans: 151
Ubuntu 7.04 Feisty Fawn
Send a message via Yahoo to BatsotO
Re: cafe con leche: Internet cafe management software

Yes, no documentation at all. But of the few cafe management software, this one is the most complete.
I use deb packages build by Indonesian, it's current version is 0.7.1-2 and they translate the interface to Indonesian, so it will be small problem because I don't have English version installed.
In My installed version, there's also a small fix that allowed the workstation to be locked down when server application need to be restarted.
I will be glad to answer any questions regarding the operation of ccl in anyway I can.

This application dated back to 2005, and since then only a few modification was made. If only anyone experience in c++ and foxtool can made modifications, especially on the client display, it has no windows,It cannot be minimized, it sits on top of the screen, and it's bugging the users. But despite all that this application works.
BatsotO is offline   Reply With Quote
Old May 2nd, 2008   #5
Script Warlock
Has an Ubuntu Drip
 
Script Warlock's Avatar
 
Join Date: May 2007
Location: Cebu City
My beans are hidden!
Ubuntu 9.10 Karmic Koala
Send a message via Yahoo to Script Warlock Send a message via Skype™ to Script Warlock
Re: cafe con leche: Internet cafe management software

Quote:
Originally Posted by BatsotO View Post
Just adding..
I've been use cclfox for a while and by far it's a neat program.

1.You might need to add :

/usr/lib
/usr/local/lib

in the /etc/ld.so.conf and do ldconfig.

2. You can change the lock screen display on the client by creating some neatest picture you can think of, save it in gif and name the picture lockpix (therefore lockpix.gif) and place it in the .cclcfox folder (not cclfox in the client side) along with the pems files.

3. if you want to shutdown and reboot client pcs remotely, chmod 7755 the /usr/bin/shutdown and /usr/bin/reboot.

4. Secure your wokrstations, you don't want any naughty user with some linux knowledge do process listing and send kill signal to terminate the cclcfox application, or delete it from the start up list. I disable terminal, virtual consoles and gnome-session-properties in my workstations to at least securing my setting (along with desktop locker and some gconf editing).

5. The installation wasn't that hard ( I wonder why so many tutorial on installation but so few on how to operate things). The most difficult to figure in my experience was tariff setting. I dont want user who use the wokstation for 5 minutes to pay for the whole hour, so I have to calculate per minute charge and set them minute per minute

6. There are more than one tariff scheme, so you can set it the way you needed. (this is a big plus)

7. Member first login will be their account number id and the password is also their account number id, from there the member can set their own password, then they can use their own login name and passord.


That's all I can remember right now.
some favor pls:
1. can i have that 0.7.1-2 in .deb packages?
2. chmod 7755? what is the command in terminal becoz dunno how...
3. i used the prepaid and opentime but the terminal counter is not working. do you know the set up for this to let the customers know the total amount they consumed?
4. is it possible to install CCLC in guest account in ubuntu just to make it more secure from the naughty users?
5. any new icons and buttons or some logo for CCL?

thanks very much........hope you send the reply as soon as possible!!
__________________
"I am Ubuntu"
Script Warlock is offline   Reply With Quote
Old May 2nd, 2008   #6
Script Warlock
Has an Ubuntu Drip
 
Script Warlock's Avatar
 
Join Date: May 2007
Location: Cebu City
My beans are hidden!
Ubuntu 9.10 Karmic Koala
Send a message via Yahoo to Script Warlock Send a message via Skype™ to Script Warlock
Quote:
Originally Posted by loell View Post
for the cafe owners that run ubuntu

project site: http://ccl.sourceforge.net/
note: the packages are made for hardy heron

server side setup:

download and install these packages respectively
1. Attachment 68258
2. Attachment 68256

after installing the above two.
download and copy these files

CA.pem and cert.pem to .cclfox in your home directory

to run the server software: run cclfox in the command line or launcher.


Client side or Workstation setup

download and install these packages respectively

1. Attachment 68257
2. Attachment 68255


after installing the above two.
download and copy these files

CA.pem and cert.pem to .cclfox in your home directory

note: yes, same certificate files as the server

to run the client software you can run this at startup or in the command line

Code:
cclcfox -host <server> -name <myname>
where <server> is the local ip address of the server
and <name> is the name of your workstation ie(pc1, pc2 ..) , any name will do.

to run this on startup in ubuntu/gnome
add the above in System menu --> preferences --> sessions
ang bilis!! heheh ayos to dami na pumapasok na info para sa mga inet operators na linux ang distro gamit.....

sir ok to ha pero may kunti problema lang sa startup kc dretso open yung CCLC tapos may time din na nagrun na sya pero di makita yung timer parang nasa ilalaim lang ng desktop ..ano kay to is it about the priority sa processes or something dapat kc after log-in maglock na ang desktop ng client with CCL pero dretso lang sya open...some ideas?

btw gamit ko etong 0.7.1 sana meron ding skin themes

yung sa cert pala ang ginawa ko copy paste lang sa text editor tapos save as some names tapos right click ko ang file na some names tapos click ang permission click lang yung box na allow executing file as program tapos lumabas na aresulta na .pem..tama ba ginawa ko? ano pala purpose ng mga yun .perm para saan yun?

sana makagawa din tayo para sa winXP

Last edited by Script Warlock; May 2nd, 2008 at 12:55 PM.. Reason: some missing add-ons
Script Warlock is offline   Reply With Quote
Old May 2nd, 2008   #7
loell
☀ ☀ ☀
 
loell's Avatar
 
Join Date: Oct 2005
Location: Davao, Philippines
Beans: 4,681
Ubuntu 9.10 Karmic Koala
Send a message via Yahoo to loell Send a message via Skype™ to loell
Re: cafe con leche: Internet cafe management software

we'll gonna have to ask BatsotO on where to put cclc client startup

theoretically you could compile this in windows xp. but someone needs to try, i couldn't for now. you may need mingw, glib , and then the fox toolkit.

to download the pem, w/o going to a text editor, just right click it and save link as, save it to the .cclfox directory pem files are just certificate needed for authentication to the server.
loell is offline   Reply With Quote
Old May 2nd, 2008   #8
Script Warlock
Has an Ubuntu Drip
 
Script Warlock's Avatar
 
Join Date: May 2007
Location: Cebu City
My beans are hidden!
Ubuntu 9.10 Karmic Koala
Send a message via Yahoo to Script Warlock Send a message via Skype™ to Script Warlock
Re: cafe con leche: Internet cafe management software

Quote:
Originally Posted by loell View Post
we'll gonna have to ask BatsotO on where to put cclc client startup

theoretically you could compile this in windows xp. but someone needs to try, i couldn't for now. you may need mingw, glib , and then the fox toolkit.

to download the pem, w/o going to a text editor, just right click it and save link as, save it to the .cclfox directory pem files are just certificate needed for authentication to the server.
ok now i understand about the .pem

maybe i'll try this to install in xp

salamat bro
__________________
"I am Ubuntu"
Script Warlock is offline   Reply With Quote
Old May 2nd, 2008   #9
perbiu
Gee! These Aren't Roasted!
 
perbiu's Avatar
 
Join Date: Oct 2007
Location: qc
Beans: 181
Ubuntu 9.04 Jaunty Jackalope
Re: cafe con leche: Internet cafe management software

Gawa naman kayo ng client for Windows xp!.
O kaya Cybera Server for Ubuntu.
__________________
Ubuntu Hardware Compatibility List
http://ubuntuhcl.org/ post yours
perbiu is offline   Reply With Quote
Old May 2nd, 2008   #10
Script Warlock
Has an Ubuntu Drip
 
Script Warlock's Avatar
 
Join Date: May 2007
Location: Cebu City
My beans are hidden!
Ubuntu 9.10 Karmic Koala
Send a message via Yahoo to Script Warlock Send a message via Skype™ to Script Warlock
Re: cafe con leche: Internet cafe management software

Quote:
Originally Posted by perbiu View Post
Gawa naman kayo ng client for Windows xp!.
O kaya Cybera Server for Ubuntu.
sure gonna try it later tonight dami pa customer sa inet shop kong ubuntu....galing ng CCL for my ubuntu
__________________
"I am Ubuntu"
Script Warlock is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:36 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry