apt-get update
apt-get install build-essential
apt-get install subversion
apt-get install libssl-dev libpcsclite-dev
apt-get install libssl-dev libssl0.9.8
apt-get install mercurial cvs subversion libncurses-dev
apt-get install cmake

2) Oscam compile:
cd /usr/src
svn co [Only registered and activated users can see links. ] oscam-svn

cd oscam-svn
sudo apt-get install cmake
cmake -DWEBIF=1 -DPCSC=1

cp oscam /usr/local/bin

3) Unused oscam compile directory delete:
cd ..
rm -rf oscam

4) Setting oscam to correct attribute:
cd /usr/local/bin
chmod 755 oscam

5) Oscam automatic startup with bootup
nano /etc/rc.local add next line before the "exit0" line, /usr/local/bin/oscam -b

[26:05:2013] tan786: How to compile csp

apt -get update

apt-get upgrade

apt-get install python-software-properties

add-apt-repository "deb Index of /ubuntu hardy-security main multiverse"

apt-get update

apt-get install sun-java6-jdk

cd /lib

mkdir cspsvn

apt-get install subversion

svn co [Only registered and activated users can see links. ] CSP-svn

apt-get install ant

cd CSP-svn

ant build

apt-get install tar

ant tar-app

cd dist

tar -zxvf cardservproxy.tar.gz

cd /lib/CSP-svn/dist

mv cardservproxy /usr/local/csp

cd /usr/local/csp

./cardproxy.sh start
and again

Starting CardServProxy: [ OK ]

just replace your oscam and csp config file

Good luck