Tutorial: Install CSP & Java on Ubuntu Server 12.xx/13.04 (x32/x64)

There are 26 replies in this Thread which was already clicked 46,616 times. The last Post () by xwayzet.

  • Install CSP & Java on Ubuntu Server 12.xx (x32/x64)


    2013-11-11 csp_Install.rar


    Script Updated 2013-11-11

    Code
    Added: software-properties-common for Ubuntu 12.10 (64-bit)  Thanks shockata


    Script Cleaned & Updated 2013-09-16

    Code
    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

    Code
    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


    Code
    apt-get update
    apt-get install python-software-properties software-properties-common




    Step2: Install Java


    Install oracle-java7

    Code
    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


    Code
    apt-get install ant subversion




    Step 4: Create Directory Structure to compile CSP


    Code
    cd /lib
    mkdir cspsvn
    cd cspsvn
    svn co http://streamboard.de.vu/svn/CSP/trunk CSP-svn




    Step 5: Compiling CSP


    Code
    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)


    Code
    mv cardservproxy /usr/local/csp




    Step 7: Run CSP


    Code
    cd /usr/local/csp
    ./cardproxy.sh start


    NOTE: You will get this Error:


    Code
    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


    Code
    ./cardproxy.sh start


    Hopefully you will see..


    Starting CardServProxy: [ OK ]




    Step 8: Enable CSP Autostart on boot


    Rename cardproxy.sh to cardproxy.sh.old

    Code
    mv /usr/local/csp/cardproxy.sh /usr/local/csp/cardproxy.sh.old


    Rename cardproxy.sh.ubuntu-autostart to cardproxy.sh

    Code
    mv /usr/local/csp/cardproxy.sh.ubuntu-autostart /usr/local/csp/cardproxy.sh


    Copy cardproxy.sh to /usr/local/bin & rename to csp

    Code
    cp /usr/local/csp/cardproxy.sh /usr/local/bin/csp


    Editing rc.local to autostart csp

    Code
    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

    Code
    chmod 755 /tmp/csp_Install.sh


    From terminal, run csp_Install.sh

    Code
    /tmp/csp_Install.sh




    All your problems have been solved countless times before so try the search box before you post!!
    Please do not Request help by PM, use the main forum so Everyone can benefit from the answers.

  • Tut has been revised to include all new repositories and has been tested with 12.04.2 LTS x32/x64
    I am working on an auto install script for the Cazy Lunts!
    It should be added tomorrow...




    All your problems have been solved countless times before so try the search box before you post!!
    Please do not Request help by PM, use the main forum so Everyone can benefit from the answers.

  • Quote

    Great! Can you help on how to configure? Noob here.


    No sorry m8, I don't use CSP but there are plenty of tuts out there to configure it..


    http://linuxsat-support.com/cs…rial-how-install-csp.html
    You can start from Post3 as you have latest CSP installed




    All your problems have been solved countless times before so try the search box before you post!!
    Please do not Request help by PM, use the main forum so Everyone can benefit from the answers.

  • that is goot tuttoreal, but some problem is the thatfellow.
    is working fine when installed, but after [sudo reboot] is not autostart.
    when you try to start manualy:
    code:


    cd /usr/local/csp
    ./cardproxy.sh start


    is says [OK] but web page not come in up.
    did you have this problem aswell Thatfellow?

    :linuxsat3:


  • I dont use CSP m8, the main purpose of this tut was to help people get round the Java & CSP Install.
    For configuring, check scripts & autostart you will have to look elsewhere!




    All your problems have been solved countless times before so try the search box before you post!!
    Please do not Request help by PM, use the main forum so Everyone can benefit from the answers.

  • Tut updated due to repositories changing again
    I have not updated the script yet so just follow tut manually




    All your problems have been solved countless times before so try the search box before you post!!
    Please do not Request help by PM, use the main forum so Everyone can benefit from the answers.

  • Hi Tigriuz


    to start it automaticaly just use rc.local file


    add it at the end of the file "/etc/rc.local":


    Code
    echo "/usr/local/csp/cardproxy.sh start" >> /etc/rc.local
  • Quote

    add it at the end of the file "/etc/rc.local":


    echo "/usr/local/csp/cardproxy.sh start" >> /etc/rc.local


    cheers buddy I will do that.
    Im setting it up to test myself so I will update the script to make it a bit more useful hopefully..


    I was reading up about renaming "cardproxy.sh.ubuntu-autostart" to "cardproxy.sh" and editing
    DAEMONPATH= xxxxxx
    DAEMON= xxxxxxx


    I'm clueless at the minute, so Im going to have a poke around n see what is best way to go...




    All your problems have been solved countless times before so try the search box before you post!!
    Please do not Request help by PM, use the main forum so Everyone can benefit from the answers.

  • DAEMONPATH=/usr/local/csp
    DAEMON=$DAEMONPATH/lib/cardservproxy.jar



    Someone else wrote this (and above paths, can't remember who)


    CSP dir there is a file called cardproxy.sh.ubuntu-autostart


    Open and edit to the paths at the top (or were your csp is).


    Rename the cardproxy.sh - to cardproxy.sh.old and


    Rename cardproxy.sh.ubuntu-autostart to cardproxy.sh then give file attributes 755 with chmod


    Copy it to the /usr/local/bin dir and renamed the file to csp and chmod 755



    Auto Start: nano /etc/rc.local and add path to either the bin file or your csp dir


    /usr/local/csp/csp start &


    Or


    /bin/csp start &


    Now you can Start| Stop| Restart from anywhere

  • Script Cleaned & Updated 2013-09-16

    Code
    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




    All your problems have been solved countless times before so try the search box before you post!!
    Please do not Request help by PM, use the main forum so Everyone can benefit from the answers.

  • Hi,
    I think this is wrong when install on Ubuntu 12.10 (64-bit).

    Code
    apt-get update
    apt-get install python-software-properties


    whit this command works great

    Code
    apt-get update
    sudo apt-get install software-properties-common


    Thanks thatfellow

    • Official Post

    Hi,
    I think this is wrong when install on Ubuntu 12.10 (64-bit).

    Code
    apt-get update
    apt-get install python-software-properties


    whit this command works great

    Code
    apt-get update
    sudo apt-get install software-properties-common


    Thanks thatfellow


    Thanks for reporting although


    Code
    apt-get update
    apt-get install python-software-properties


    Does work on Ubuntu 13.04 (32-bit).

  • Thanks for reporting although


    Code
    apt-get update
    apt-get install python-software-properties


    Does work on Ubuntu 13.04 (32-bit).


    Tested Ubuntu 13.0x it works, further added csp-svn it runs beautifully. Trouble now, some other card readers not compatible, may hv to use omnikey only. It juz my lack of linux knowledge about editing, sad.

Other Not Listed Softcam Support Forum

Configs, discussion, downloads and guides for Other Not Listed Softcams - CSP, DreamOS, GBox, NEWCamd, MultiCS, OSCam Smod, OSCam Ymod, SUpcam & Wicardd.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!