These are the steps I followed to create a dedicated Oscam card server running on Debian Linux. I hope someone finds them useful.
1. Download the latest Debian CD from here:
2. Boot from the CD and install using the default options. When prompted for features, untick "Desktop Environment", and tick "SSH Server".
3. After installation, log in and switch to the 'root' user:
4. Set a static IP address:
a. Backup original config:
Code:
cp /etc/network/interfaces /etc/network/interfaces.ORIG
b. Edit the file:
Code:
vi /etc/networking/interfaces
c. Edit the file such that the iface etho entry looks like this:
Code:
iface eth0 inet static
address 192.168.0.6
gateway 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
NOTE: "192.168" should be changed to be your home network subnet. Other common values are "10.0" or even "10.1".
NOTE: "192.168.0.1" is the address of your router. You should change this to be the LAN (internal) address of your router.
5. Log out of the console session:
6. You can now ssh into your server (eg 192.168.0.6) from another PC (ie. your worksation PC). Use putty () to do this. After you login:
7. Install ftp server:
Download and install:
Code:
apt-get install vsftpd
Backup the original configuration file:
Code:
cp /etc/vsftpd.conf /etc/vsftpd.conf.ORIG
Open /etc/vsftpd.conf in an editor:
Code:
vi /etc/vsftpd.conf
To configure vsftpd to authenticate system users and allow them to upload files uncomment the lines:
Code:
local_enable=YES
write_enable=YES
Now restart vsftpd:
Code:
/etc/init.d/vsftpd restart
8. Compile and install oscam:
Code:
cd /lib/
ln -s libcrypto.so.0.9.8e libcrypto.so.0.9.8
apt-get install yum bzip2 gcc g++ cmake libpcsclite1 libpcsclite-dev subversion make
cd /usr/src
wget http://cdnetworks-us-2.dl.sourceforge.net/project/libusb/libusb-1.0/libusb-1.0.8/libusb-1.0.8.tar.bz2
tar xjvf libusb-1.0.8.tar.bz2
cd libusb-1.0.8
./configure --enable-shared=no
make
make install
cd /usr/src
svn co http://streamboard.gmc.to/svn/oscam/trunk oscam
cd oscam
mkdir build
cd build
cmake -DWEBIF=1 ..
make
cp oscam /usr/local/bin
chmod 755 /usr/local/bin/oscam
9. Create oscam config files
/usr/local/etc/oscam.server:
Code:
[reader]
label=reader1
protocol=SmartReader
detect=CD
group=1
emmcache=1,1,2
device=005:002
caid=096C
boxid=xxxxxxxx
NOTE: This config is for a usb "Smart Reader", also called a "Smargo". See the wanted to sell section of Austech to purchase.
NOTE: This config is for an orange F*xt*l card, hence the "caid=096c" line. The value for the caid line will vary depending on card type.
NOTE: The 005:002 on the "device" line needs to be changed to the address of your usb Smart Reader. To see usb devices and their address use the command "lsusb" from the command prompt.
NOTE: A F*xt*l smartcard is tied to a F*xt*l set top box. Therefore the software needs to pretend to be your valid F*xt*l set top box. You must replace the xxxxxxxx's with your F*xt*l set top box id.
a. Get your 11 digit box serial (101*******5)
b. Remove the last digit (101*******) and type it in the windows calculator in dec mode
c. Click hex - this will give you the exact 8 digit hex to replace the xxxxxxxx's with
/usr/local/etc/oscam.conf:
Code:
[global]
nice = -19
WaitForCards = 1
saveinithistory = 1
# logging
pidfile = /var/run/oscam.pid
logfile = /var/log/oscam.log
usrfile = /var/log/oscamuser.log
cwlogdir = /var/log/cw.log
maxlogsize = 1000
[newcamd]
key = 0102030405060708091011121314
port = 10000@096c:000000;
# web interface
[webif]
httpport = 8888
httpuser = username
httppwd = password
httpallowed = 0.0.0.0-255.255.255.255
/usr/local/etc/oscam.user:
Code:
[account]
user = username
pwd = password
uniq = 1
group = 1
au = reader1
ident = 096c:000000
caid = 096c
NOTE: The 096c in the "ident" and "caid" lines should match the value you used above in the oscam.server "caid" line. 096c is for an orange F*xt*l card.
OPTIONAL /usr/local/etc/oscam.srvid (this allows channel names to be displayed in the web interface instead of sids):
Code:
096c:0011|F*xt*l|unnamed service|
096c:03e9|F*xt*l|TV1|
096c:03ea|F*xt*l|showtime|
096c:03eb|F*xt*l|Comedy|
096c:03ec|F*xt*l|UKTV|
096c:03ed|F*xt*l|ARENA|
096c:03ee|F*xt*l|FOX Classics|
096c:03ef|F*xt*l|Movie One|
096c:03f0|F*xt*l|FOX8|
096c:03f1|F*xt*l|LifeStyle|
096c:03f2|F*xt*l|W|
096c:03f3|F*xt*l|showcase|
096c:07d1|F*xt*l|Nickelodeon|
096c:07d2|F*xt*l|Movie Extra|
096c:07d3|F*xt*l|Movie Greats|
096c:07d4|F*xt*l|World Movies|
096c:07d5|F*xt*l|FOX Sports 3|
096c:07d6|F*xt*l|Universal|
096c:07d7|F*xt*l|Discovery|
096c:07d8|F*xt*l|Nat Geo|
096c:07d9|F*xt*l|History|
096c:07da|F*xt*l|Cartoon|
096c:0bb9|F*xt*l|FOX Sports 1|
096c:0bba|F*xt*l|FOX Sports 2|
096c:0bbb|F*xt*l|FOX SPORTS NEWS|
096c:0bbc|F*xt*l|Main Event|
096c:0bbd|F*xt*l|Boomerang|
096c:0bbe|F*xt*l|STVDIO|
096c:0bbf|F*xt*l|CNN|
096c:0bc0|F*xt*l|TVSN|
096c:0bc1|F*xt*l|FoxSportsNews|
096c:0bc4|F*xt*l|SATest|
096c:0bca|F*xt*l|FSNA|
096c:0fa1|F*xt*l|RAI|
096c:0fa2|F*xt*l|Antenna|
096c:0fa3|F*xt*l|FOX News|
096c:0fa4|F*xt*l|Bloomberg|
096c:0fa5|F*xt*l|Animal Planet|
096c:0fa6|F*xt*l|Weather|
096c:0fa7|F*xt*l|Food|
096c:0fa8|F*xt*l|Bio.|
096c:0fa9|F*xt*l|ESPN|
096c:0fb3|F*xt*l|WEATHER ACTIVE|
096c:0fb4|F*xt*l|RAI Radio|
096c:0fb5|F*xt*l|Ant1 Radio|
096c:1389|F*xt*l|BBC Wld News|
096c:138a|F*xt*l|TCM|
096c:138b|F*xt*l|MTV Classic|
096c:138c|F*xt*l|Disney|
096c:138d|F*xt*l|Channel [V]|
096c:138e|F*xt*l|SCI FI|
096c:138f|F*xt*l|FUEL TV|
096c:1390|F*xt*l|Crime|
096c:1391|F*xt*l|MTV|
096c:1392|F*xt*l|MAX|
096c:13fc|F*xt*l|SkyN.|
096c:1b59|F*xt*l|LifeStyle YOU|
096c:1b5a|F*xt*l|show comedy|
096c:1b5b|F*xt*l|show action|
096c:1b5c|F*xt*l|show drama|
096c:1b5d|F*xt*l|13TH STREET|
096c:1b5e|F*xt*l|STARPICS 1|
096c:1b5f|F*xt*l|Eurosport|
096c:1b60|F*xt*l|Delhi Barker Channel|
096c:1b61|F*xt*l|How To|
096c:1b62|F*xt*l|Discovery +2|
096c:1ba9|F*xt*l|Delhi Barker Channel|
096c:1baa|F*xt*l|Delhi Barker Channel|
096c:1f41|F*xt*l|FB01|
096c:1f42|F*xt*l|FB02|
096c:1f43|F*xt*l|FB03|
096c:1f44|F*xt*l|FB04|
096c:1f45|F*xt*l|FB13|
096c:1f46|F*xt*l|FB14|
096c:1f47|F*xt*l|FB15|
096c:1f48|F*xt*l|FB16|
096c:1f49|F*xt*l|FB17|
096c:1f4a|F*xt*l|FB18|
096c:2329|F*xt*l|FB05|
096c:232a|F*xt*l|FB06|
096c:232b|F*xt*l|FB07|
096c:232c|F*xt*l|FB08|
096c:232d|F*xt*l|FB19|
096c:232e|F*xt*l|FB20|
096c:232f|F*xt*l|FB21|
096c:2330|F*xt*l|FB22|
096c:2331|F*xt*l|FB23|
096c:2332|F*xt*l|FB24|
096c:2711|F*xt*l|FB01|
096c:2712|F*xt*l|FB02|
096c:2713|F*xt*l|FB03|
096c:2714|F*xt*l|FB04|
096c:2715|F*xt*l|FB05|
096c:2716|F*xt*l|FB06|
096c:2717|F*xt*l|FB07|
096c:2718|F*xt*l|Adults Only 1|
096c:2719|F*xt*l|Adults Only 2|
096c:271a|F*xt*l|FB08|
096c:2af9|F*xt*l|FMC Family|
096c:2afa|F*xt*l|Nat Geo Wild|
096c:2afb|F*xt*l|Delhi Gold HD|
096c:2afc|F*xt*l|KidsCo|
096c:2afd|F*xt*l|Disc Turbo|
096c:2afe|F*xt*l|Style Network|
096c:2aff|F*xt*l|STARPICS 2|
096c:2b00|F*xt*l|Playhouse|
096c:2b01|F*xt*l|TLC|
096c:2b02|F*xt*l|SCI FI +2|
096c:2b03|F*xt*l|Delhi 2 HD|
096c:2b04|F*xt*l|Delhi 3 HD|
096c:2b05|F*xt*l|Delhi 4 HD|
096c:2b06|F*xt*l|Delhi 5 HD|
096c:2b07|F*xt*l|Delhi 6 HD|
096c:2ee1|F*xt*l|[V] HITS|
096c:2ee2|F*xt*l|Box Office|
096c:2ee3|F*xt*l|NG Adventure|
096c:2ee4|F*xt*l|Eurosportnews|
096c:2ee5|F*xt*l|Disc Health|
096c:2ee6|F*xt*l|Country Music|
096c:2ee7|F*xt*l|FTV|
096c:2ee8|F*xt*l|E!|
096c:2ee9|F*xt*l|Disc Science|
096c:2eea|F*xt*l|Nick Jr|
096c:2eef|F*xt*l|Channel 9|
096c:2ef1|F*xt*l|Setanta Sports|
096c:2ef2|F*xt*l|Box Office|
096c:2ef3|F*xt*l|BOX OFFICE|
096c:2ef5|F*xt*l|AIR01|
096c:2ef6|F*xt*l|AIR02|
096c:2ef7|F*xt*l|AIR03|
096c:2ef8|F*xt*l|AIR04|
096c:2ef9|F*xt*l|AIR05|
096c:2efa|F*xt*l|AIR06|
096c:2efb|F*xt*l|AIR07|
096c:2efc|F*xt*l|AIR08|
096c:2efd|F*xt*l|AIR09|
096c:2efe|F*xt*l|AIR10|
096c:2eff|F*xt*l|AIR11|
096c:2f00|F*xt*l|AIR12|
096c:2f01|F*xt*l|AIR13|
096c:2f02|F*xt*l|AIR14|
096c:2f03|F*xt*l|AIR15|
096c:2f04|F*xt*l|AIR16|
096c:2f05|F*xt*l|AIR17|
096c:2f06|F*xt*l|AIR18|
096c:2f07|F*xt*l|AIR19|
096c:2f08|F*xt*l|AIR20|
096c:2f09|F*xt*l|AIR21|
096c:2f0a|F*xt*l|AIR22|
096c:2f0b|F*xt*l|AIR23|
096c:2f0c|F*xt*l|AIR24|
096c:2f0d|F*xt*l|AIR25|
096c:2f0e|F*xt*l|AIR26|
096c:2f0f|F*xt*l|AIR27|
096c:2f10|F*xt*l|AIR28|
096c:2f11|F*xt*l|AIR29|
096c:2f12|F*xt*l|AIR30|
096c:2f13|F*xt*l|AIR active|
096c:2f14|F*xt*l|AIR ACTIVE|
096c:2f46|F*xt*l|BOX|
096c:32c9|F*xt*l|ESPN HD|
096c:32cb|F*xt*l|Disc World HD|
096c:32cc|F*xt*l|FOX8 HD|
096c:32cd|F*xt*l|Fox Sports 2HD|
096c:32ce|F*xt*l|STARPICS 2 HD|
096c:32db|F*xt*l|unnamed service|
096c:36b1|F*xt*l|Fox Sports 3HD|
096c:36b2|F*xt*l|Nat Geo HD|
096c:36b3|F*xt*l|UKTV HD|
096c:36b4|F*xt*l|W HD|
096c:36b5|F*xt*l|show action HD|
096c:36b6|F*xt*l|FOX Sports 3D|
096c:3a99|F*xt*l|Delhi Mosaic F*xt*l|
096c:3a9a|F*xt*l|Delhi Mosaic Austar|
096c:3a9b|F*xt*l|Spare|
096c:3a9c|F*xt*l|Spare|
096c:3a9d|F*xt*l|Sky Racing1|
096c:3a9e|F*xt*l|Sky Racing2|
096c:3a9f|F*xt*l|SkyRacingWorld|
096c:3aa0|F*xt*l|CNBC|
096c:3aa1|F*xt*l|EXPO|
096c:3aa2|F*xt*l|BBC CBeebies|
096c:3aa7|F*xt*l|Sky Racing Active|
096c:3aa8|F*xt*l|Sky Racing2|
096c:3aa9|F*xt*l|SkyRacingWorld|
096c:3aaa|F*xt*l|Sky Racing1|
096c:3aab|F*xt*l|Sky Racing1|
096c:3e81|F*xt*l|SPA|
096c:3e82|F*xt*l|SPM|
096c:3e83|F*xt*l|SPH|
096c:3e94|F*xt*l|AUSA|
096c:3e9e|F*xt*l|iSUGGEST|
096c:4269|F*xt*l|FBOB|
096c:426a|F*xt*l|Comm Games|
096c:426d|F*xt*l|Help|
096c:4270|F*xt*l|iEPG Video Satellite|
096c:4275|F*xt*l|Comm Games|
096c:4276|F*xt*l|Comm Games|
096c:427a|F*xt*l|unnamed service|
096c:427b|F*xt*l|unnamed service|
096c:427c|F*xt*l|Ch998 Modem Test App|
096c:4651|F*xt*l|TV1 +2|
096c:4652|F*xt*l|showtime two|
096c:4653|F*xt*l|Comedy +2|
096c:4654|F*xt*l|UKTV +2|
096c:4655|F*xt*l|ARENA +2|
096c:4656|F*xt*l|Classics +2|
096c:4657|F*xt*l|Movie Two|
096c:4658|F*xt*l|FOX8 +2|
096c:4659|F*xt*l|LifeStyle +2|
096c:465a|F*xt*l|W2|
096c:465b|F*xt*l|showcase two|
096c:4e21|F*xt*l|showtime HD|
096c:4e22|F*xt*l|showcase HD|
096c:4e23|F*xt*l|MOVIE ONE HD|
096c:4e24|F*xt*l|STARPICS 1 HD|
096c:4e25|F*xt*l|Fox Sports 1HD|
096c:55f1|F*xt*l|SKY News|
096c:55f2|F*xt*l|SKY NEWS MULTIVIEW|
096c:55f3|F*xt*l|SKY Business|
096c:55f4|F*xt*l|SKY Local|
096c:55f5|F*xt*l|A-PAC|
096c:55f6|F*xt*l|AURORA|
096c:55f7|F*xt*l|HITS|
096c:55f8|F*xt*l|BBC Knowledge|
096c:55f9|F*xt*l|DAL M|
096c:55fa|F*xt*l|Delhi Gold|
096c:55fb|F*xt*l|Delhi Gold|
096c:5619|F*xt*l|SKY NEWS LOCAL|
096c:5623|F*xt*l|Delhi 2|
096c:5624|F*xt*l|Delhi 3|
096c:5625|F*xt*l|Delhi 4|
096c:5626|F*xt*l|Delhi 5|
096c:5627|F*xt*l|Delhi 6|
096c:562e|F*xt*l|Delhi 2|
096c:562f|F*xt*l|Delhi 3|
096c:5630|F*xt*l|Delhi 4|
096c:5631|F*xt*l|Delhi 5|
096c:5632|F*xt*l|Delhi 6|
096c:5633|F*xt*l|Delhi Gold HD|
096c:5634|F*xt*l|Delhi 2 HD|
096c:5635|F*xt*l|Delhi 3 HD|
096c:5636|F*xt*l|Delhi 4 HD|
096c:5637|F*xt*l|Delhi 5 HD|
096c:5638|F*xt*l|Delhi 6 HD|
096c:564b|F*xt*l|DAL 1|
096c:564c|F*xt*l|DAL 2|
096c:564d|F*xt*l|DAL 3|
096c:564e|F*xt*l|DAL 4|
096c:59d9|F*xt*l|GO!|
096c:59da|F*xt*l|111 HITS+2|
096c:59db|F*xt*l|LifeStyle YOU 2|
096c:59dc|F*xt*l|Food +2|
096c:59dd|F*xt*l|GO!|
096c:59de|F*xt*l|Disc Turbo+2|
096c:59df|F*xt*l|7TWO|
096c:59e0|F*xt*l|7TWO|
096c:59e1|F*xt*l|7TWO|
096c:59e2|F*xt*l|GO!|
096c:5dc1|F*xt*l|Delhi Gold|
096c:5dc2|F*xt*l|Delhi 2|
096c:5dc3|F*xt*l|Delhi 3|
096c:5dc4|F*xt*l|Delhi 4|
096c:5dc5|F*xt*l|Delhi 5|
096c:5dc6|F*xt*l|Delhi 6|
096c:61a9|F*xt*l|Delhi Gold HD|
096c:61aa|F*xt*l|Delhi 2 HD|
096c:61ab|F*xt*l|Delhi 3 HD|
096c:61ac|F*xt*l|Delhi 4 HD|
096c:61ad|F*xt*l|Delhi 5 HD|
096c:61ae|F*xt*l|Delhi 6 HD|
096c:7d01|F*xt*l|SBS TWO|
096c:7d02|F*xt*l|SBS ONE|
096c:7d03|F*xt*l|SBS ONE|
096c:7d04|F*xt*l|ABC News24 HD|
096c:7d05|F*xt*l|CCTV|
096c:7d06|F*xt*l|Ovation|
096c:7d07|F*xt*l|Setanta Sports|
096c:7d08|F*xt*l|NITV|
096c:7d09|F*xt*l|ACC|
096c:7d0a|F*xt*l|TVN|
096c:7d0c|F*xt*l|Al Jazeera|
096c:7d15|F*xt*l|SBS AM|
096c:7d16|F*xt*l|SBS FM|
096c:c801|F*xt*l|SBS ONE|
096c:c802|F*xt*l|SBS TWO|
096c:c803|F*xt*l|SBS HD|
096c:c815|F*xt*l|SBS AM|
096c:c816|F*xt*l|SBS FM|
096c:cbec|F*xt*l|ABC3|
096c:cbef|F*xt*l|ABC1|
096c:cbf0|F*xt*l|ABC2|
096c:cbf1|F*xt*l|ABC News24 HD|
096c:cbfd|F*xt*l|ABC Dig Music|
096c:cbfe|F*xt*l|ABC Jazz|
096c:cfd5|F*xt*l|Channel 7|
096c:cfd6|F*xt*l|Seven HD|
096c:cfd7|F*xt*l|7TWO|
096c:d3b9|F*xt*l|GO!|
096c:d3bb|F*xt*l|Nine HD|
096c:d3c0|F*xt*l|Channel 9|
096c:d7a2|F*xt*l|One|
096c:d7a4|F*xt*l|Channel 10|
096c:d7a9|F*xt*l|One HD|
096c:fdeb|F*xt*l|SWDL Satellite (NDS)|
096c:fe11|F*xt*l|unnamed service|
096c:fe1b|F*xt*l|unnamed service|
10. Make oscam start and stop automatically with server bootup/shutdown. Create script:
/etc/init.d/oscam:
Code:
#!/bin/sh
# Start/stop the OScam daemon.
#
### BEGIN INIT INFO
# Provides: OScam
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and Stop OScam
# Description: OScam init script. This script start and stop OScam.
### END INIT INFO
. /lib/lsb/init-functions
NAME=oscam
DAEMON=/usr/local/bin/
CONFIG_DIR=/usr/local/etc
PIDFILE=/var/run/oscam.pid
LOG=/var/log/oscam.log
LOGUSR=/var/log/oscamuser.log
LOGCW=/var/log/cw.log
STARTAS=" -- -b -c "
#test -f || exit 0
[ -d ] || exit 0
echo
clear_file() {
# Clear log and pid file if exists
if [ -e ]
then
rm -f
fi
if [ -e ]
then
rm -f
fi
if [ -e ]
then
rm -f
fi
if [ -e ]
then
rm -f
fi
}
case "$1" in
start)
clear_file
log_daemon_msg "Starting OScam daemon" "OScam"
start-stop-daemon --start --quiet --exe --startas
log_end_msg $?
;;
stop)
log_daemon_msg "Stopping OScam daemon" "OScam"
start-stop-daemon --stop --quiet --exe
log_end_msg $?
;;
restart)
log_daemon_msg "Restarting OScam daemon" "OScam"
start-stop-daemon --stop --retry 5 --quiet --exe
clear_file
start-stop-daemon --start --quiet --exe --startas
log_end_msg $?
;;
status)
status_of_proc -p && exit 0 || exit $?
;;
*)
log_action_msg "Usage: /etc/init.d/OScam {start|stop|restart|status}"
exit 2
;;
esac
exit 0
Then:
Code:
chmod 755 /etc/init.d/oscam
Then:
Code:
update-rc.d oscam defaults
11. On the clients, install CCcam. This is done via the blue panel.
12. Configure CCcam.
Edit /var/etc/CCcam.cfg:
Code:
vi /var/etc/CCcam.cfg
Delete the contents of the file and add a single line:
Code:
N: 192.168.0.6 10000 username password 01 02 03 04 05 06 07 08 09 10 11 12 13 14
NOTES:
To access oscam web interface, web browse to:
NOTE: 192.168.0.6 should be the "address" value you used in step 4c above.
To remove a dir:
To check log:
Code:
tail -f /var/log/oscam.log
To see if oscam running:
To start oscam:
To stop oscam:
OR:
Code:
/etc/init.d/oscam status
/etc/init.d/oscam start
/etc/init.d/oscam stop
/etc/init.d/oscam restart
To see usb devices and their address:
To enter "Insert" mode in vi:
Bookmarks