Updated & Simplified & Auto Install Script Added (2013-05-12)
Tested & Working on:
Ubuntu Server 12 (All Revisions) x32 & x64
Ubuntu Server 13.04 x64
Install CSP & Java on Ubuntu Server 12.xx (x32/x64)
After following a few tutorials I found that a lot of links were dead & some of the commands were for older packages so I documented my setup process for Ubuntu 12.xx..
This Tutorial adapted from master G's "Install Latest Version Of Csp Directly From SVN"
Tutorial : Install Latest Version Of Csp Directly From SVN
Log into your Ubuntu server as root user
Step 1: Check for Updates & Install required components
apt-get update
apt-get install python-software-properties
Step2: Install Java
Install sun-java6
sudo add-apt-repository "deb hardy main multiverse"
sudo add-apt-repository "deb hardy-updates main multiverse"
sudo add-apt-repository "deb lucid partner"
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-jdk
OK The Sun Java License & Click YES to Accept the License
Step 3: Install required components to compile CSP
apt-get install ant subversion
Step 4: Create Directory Structure to compile CSP
cd /lib
mkdir cspsvn
cd cspsvn
svn co CSP-svn
Step 5: Compiling CSP
cd CSP-svn
ant tar-app
cd dist
tar -zxvf cardservproxy.tar.gz
Step 6: Move compiled CSP to desired directory. Here I rename the cardservproxy folder to csp and put it in this folder: (/usr/local/bin/csp)
C
mv cardservproxy /usr/local/csp
Step 7: Run CSP
cd /usr/local/csp
./cardproxy.sh start
NOTE: You will get this Error:
Starting CardServProxy: [ FAILED ]
Config file 'config/proxy.xml' not found, generating template...
Now the file 'config/proxy.xml' has been created so just start CSP again
./cardproxy.sh start
Hopefully you will see..
Starting CardServProxy: [ OK ]
Step 8: Test CSP
Now to test simply go to your browser & type your server IP Address & default port number into the address bar
192.168.1.xx:8082
You will need to enter username/password, by default these are admin/secret
Auto-Install Script
I wrote this script to automate the tut above:
csp_Install.rar
Instructions for Auto-Install Script
Unrar csp_Install.rar
Using WinSCP, copy csp_Install.sh to /tmp
From terminal, change csp_Install.sh attributes to 755
chmod 755 /tmp/csp_Install.sh
From terminal, run csp_Install.sh
/tmp/csp_Install.sh
NOTE1: Remember, this tut only installs CSP, configuring it is your next step....
NOTE2: You will also have to configure CSP to run at start up & add check Scripts etc
a great work of a great man thank you
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks