Install CSP & Java on Ubuntu Server 12.xx (x32/x64)
Script Updated 2013-11-11
Script Cleaned & Updated 2013-09-16
Replaced sun-java-6 with oracle-java7
Further automated Script, so no user interaction is needed, script now auto accepts all package installs, updated & auto accepts java license..
CSP now autostarts on boot..
Made a few mods thanks to lfc4ever (Post #14), which allows csp to be restarted, stopped or started from anywhere by simply typing:
[COLOR='#FF0000']csp restart@@@WCF_PRE_LINEBREAK@@@csp stop@@@WCF_PRE_LINEBREAK@@@csp start[/COLOR]
Added (ip-address:port-no) info to the end of the script so you can log into webif without digging out IP, port no, username & password
Updated 2013-09-12
Repositories have changed (Yet again)
Script removed until I get a chance to update it.
I have updated step 2 to install oracle-java7
Tested & Working on:
Ubuntu Server 12 (All Revisions) x32 & x64
Ubuntu Server 13.04 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"
http://linuxsat-support.com/cs…ion-csp-directly-svn.html
Lazy Folks, Go to the bottom of Tut for Auto-Install Script
OK, Here it goes...
Log into your Ubuntu server as root user
Step 1: Check for Updates & Install required components
Step2: Install Java
Install oracle-java7
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
OK The Oracle Java License & Click YES to Accept the License
Step 3: Install required components to compile CSP
Step 4: Create Directory Structure to compile CSP
Step 5: Compiling CSP
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)
Step 7: Run CSP
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
Hopefully you will see..
Starting CardServProxy: [ OK ]
Step 8: Enable CSP Autostart on boot
Rename cardproxy.sh to cardproxy.sh.old
Rename cardproxy.sh.ubuntu-autostart to cardproxy.sh
Copy cardproxy.sh to /usr/local/bin & rename to csp
Editing rc.local to autostart csp
sed --in-place '/exit 0/d' /etc/rc.local
echo "sleep 10" >> /etc/rc.local
echo "/usr/local/csp/cardproxy.sh start &" >> /etc/rc.local
echo "exit 0" >> /etc/rc.local
Step 9: 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:
2013-11-11 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
From terminal, run csp_Install.sh