Wednesday, December 16, 2009

Install CCL Billing

CCL Billing Install (PCLINUXOS)
——————-
#su
#mkdir /root/master
#cd /root/master

|Install Paket2 Pendukung|

#apt-get install libsqlite3_0 libsqlite3_0-devel libsqlite3_0-static-devel libfox1.4 libfox1.4-devel libopenssl0.9.7 libopenssl0.9.7-devel libopenssl0.9.7-static-devel

|CCL Billing Source Code|
wget http://optusnet.dl.sourceforge.net/sourceforge/ccl/libccls-0.7.0.tar.bz2
wget http://optusnet.dl.sourceforge.net/sourceforge/ccl/libcclc-0.7.0.tar.bz2
wget http://optusnet.dl.sourceforge.net/sourceforge/ccl/cclfox-0.7.0.tar.bz2
wget http://optusnet.dl.sourceforge.net/sourceforge/ccl/cclcfox-0.7.0.tar.bz2

|install libcclc|
#tar xvfj libcclc-0.7.0.tar.bz2
#cd cd libcclc-0.7.0
#./configure
#make && make install

|install libccls|
#tar xvfj libccls-0.7.0.tar.bz2
#cd libccls-0.7.0
#./configure
#make && make install

|install cclcfox|
#tar xvfk cclcfox-0.7.0.tar.bz2
#cd cclcfox-0.7.0
#./configure
#make && make install

|install cclfox|
#tar xvfj cclfox-0.7.0.tar.bz2
#cd cclfox-0.7.0
#./configure
#make && make install

Edit File /etc/ld.so.conf
Tambahkan 2 Baris Berikut
/usr/lib
/usr/local/lib

Simpan, jalankan perintah
#ldconfig

Filed under: LTSP


Tambahan informasi :

Cafe Con Leche actually is a library project that intends to make the development of internet cafe programs easier, it consists of two library : libccls is used to make the server part, and libcclc is used to make the client. But The developers also made a GPL version Billing based on these library called CCLFox.

CCL is very popular here in Indonesia where Internet Cafes are starting to turn to Free Open Source Operating System since Microsoft and the Police starts sweeping internet cafes for illegal use of Microsoft Windows. But nonetheless it’s hard to find a How to on installing and using libCCL and CCLfox, especially on Ubuntu, I’ve done some googling last night and didn’t find anything satisfying. I’ve found some very good reference tough, like the one one linux.or.id and at Mr.Handri’s Blog.This How To is actually based on Linux Mint 3.0 but i think it’ll work just fine on Fiesty and you can download CCL here.

==Common Installation==

Both side of the application (client & server) has to meet their depdencies, since this is not a debian package, we have to install the dependencies manually. CCL depdencies are

* sqlite3
* glib2.0
* libfox1.4
* openssl

so on both computer (clien & server) run these command :

$ sudo apt-get install sqlite3 libsqlite3-dev

$ sudo apt-get install libfox1.4 libfox1.4-dev

$ sudo apt-get install libglib2.0-dev

$ sudo apt-get install libssl-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 :

$gksudo gedit /etc/ld.so.conf

and add these lines :

/usr/lib
/usr/local/lib

Then execute this :

$sudo ldconfig

== Billing Server ==

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

cclfox-0.7.0.tar.bz2
libccls-0.7.0.tar.bz2

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

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

Then create a launcher on your desktop and add :

cclfox -nossl

on the “command” text box

== Billing Client ==

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

cclcfox-0.7.0.tar.bz2
libcclc-0.7.0.tar.bz2

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

$tar -xjvf libcclc-0.7.0.tar.bz2
$cd libcclc-0.7.0
$./configure
$make
$sudo make install
$cd ..
$tar -xjvf cclcfox-0.7.0.tar.bz2
$cd cclcfox-0.7.0
$./configure
$make
$sudo make install

Then create a launcher on your desktop and add :

cclcfox -host -name -nossl

on the “command” text box

That’s about it! Now my internet cafe is 100% sugar *M$* free!

Trouble Shooting :

this errors bellow usually happens because we have installed the depdencies but we didn’t installed the dev of the library that is used for compiling the CCL from source :

1. configure: error: please install openssl
cure : $sudo apt-get install libssl-dev
2. configure: error: please install sqlite3
cure : $sudo apt-get install libsqlite3-dev
3. configure: error: please install glib
cure : $sudo apt-get install libglib2.0-dev
4. configure: error: please install fox
cure : $sudo apt-get install libfox1.4-dev
5. configure: error: installation or configuration problem: C++ compiler cannot create executables.
cure :$sudo apt-get install build-essential

If you find any error please let me know, and forgive my english, it’s getting rusty :p

Freedom!

No comments:

Post a Comment