For a starter I'm not Linux guru but this steps got me running. If any mistakes or something missing, please correct
Get Debian Lenny latest unstable version installed on your PC.
It is easier for linux begginers to use that version as all necesary files can be easy installed/updated using Synaptic Package Manager. Make sure kernel version is 12.30 or higher, current as I write this is 12.33. This is important if you use USB reader ie. Smargo in native mode. Earlier kernels have a problem with USB timing.
Using the Manager to check/update kernel and get/update all files listed below:
(note: make sure cmake is 2.8.0-5 or higher, it is important)
Start Update Manager and do search for all listed files, install not installed, update all with newer versions if required. Easy.
Now open console and do:
su
(put admin password)
(alternatively you can work as root, but not reccomended)
mkdir /usr/src/build
(if not there make directory /usr/local/bin and /usr/local/etc ie. mkdir /usr/local/bin )
Debian apt-get install bzip2
apt-get install gcc g++ cmake libpcsclite1 libpcsclite-dev subversion
(now compile your oscam binary)
cd /usr/src
wget
tar xjvf libusb-1.0.6.tar.bz2
cd libusb-1.0.6
./configure --enable-shared=no
make
make install
cd /usr/src
svn co oscam
cd oscam
mkdir build
cd build
cmake .. (note: those 2 dots are required)
make
If all ok you should find oscam binary in /usr/src/oscam/build directory.
cd /usr/src/oscam/build
ls (this will list the contents of build)
now we will copy oscam to /usr/local/bin
cp oscam /usr/local/bin
cd /usr/local/bin
ls
oscam should be listed here. Next:
chmod 755 oscam
Before you start the server make sure you got all 3 oscam config files in /usr/local/etc directory.
while in /usr/local/bin start oscam:
./oscam -b
to stop oscam just put:
killall -9 oscam
Your oscam log file will be in /var/log/ directory
Open another terminal window and put command:
tail -f /var/log/oscam.log (this will show you what is going on in real time)
To compile latest version next time, just follow this:
cd /usr/src
svn co oscam
cd /usr/src/oscam/build
cmake ..
make
To get webif support replace cmake .. with cmake -DWEBIF=1 ..
Hope some begginers will find it usefull.
Cheers
Look Here -> |
Thanks mborkp for the quick tutorial.
I have just built a VM last night and your steps work great.
If I am using a a serial card reader (instead of USB) what is the line in the device= section in oscam.server ? Is it \dev\ttyS0 ?
Are you able to post and example of oscam.server for Debian please ?
Cheers,
KronK.
Hi,
this should work. Play with mhz and cardmhz if you got problems with ATZ. As below, the 3.57MHz card is overclocked to 6MHz. CAID for orange is as below and for blue is 090B.
[reader]
Label = Orange
Protocol = Mouse
Detect = CD (or RING or whatever )
Device = /dev/ttyUSB0
mhz = 600
cardmhz = 357
EMMCache = 1,3,2
BoxID = XXXXXXXX
Group = 1
CAID = 096C
Cheers
EDIT: oh, and pay attention: /dev/ttyUSB0 not \dev\ttyUSB0, this is not windoze
Last edited by mborkp; 03-04-10 at 02:36 PM.
kronk (05-04-10)
Thanks mborkp,
I made some adjustments and it is working great. Just need to learn a little more linux commands to make this autostart at login.
Also you have mentioned that you use this setup win a Win 7 media centre. How do you intergrate this with Win 7 machine ? Which CAM do you use ? How does that connect to the linux machine ? With a config file on the Win 7 box ?
Sorry for all the questions. Any info would be greatly apprecaited.
Cheers,
KronK
no problem kronk.
I use DVB Viewer which is cheap and great media player like software. You can use remote controll with it, blind scanning and all the PC flexibility.
In my case it does work with 2 sat cards ( AzureWave HD) and Acamd as a plugin which connects to oscam as newcamd or cccam client. I use newcamd because it does emm updates and no glitching. I got also CoreAVC codec which does a great job with NV 8600 silent video card. For bluerays I got TMT3 and sonar slim HDMI audio (true HD streaming) All this on W7 works reasonably good. Newer ATI video cards do thrue HD audio as well.
If you really need WMC you can use software (forgot the name but it is on this forum) which connects to dreambox and gives you picture in WMC.
You are limited to MS codecs and other limitation nonsense I think, main reason I preffere other software.
Cheers
kronk (07-04-10)
Thanks again mborkp.
I am trying DVB Link for dreambox with WMC. Might try DVB Viewer with acamd and see how I go.
What do you use for a program guide. Are you able to program recodrings etc like WMC ?
Appreciate the help.
Cheers,
KronK.
The build in DVBViewer program guide has only now and next. There is some plugin for 7 days epg but I've never tested it so I do not know if it works in au. Sure you can program recordings manually. DVBViewer has also streaming ability so you can use any PC or able box at home to watch. Having 2 or more cards will allow you to watch and record/stream on different channels. You can also put terrestial dvb card to watch fta tv. So yes HTPC is great as you have everything in one box. There is DVB Link for DVBViewer which I tested with limited success but other people have it running, I was not very desperate for this The DVBViewer is only 15 Euro so really it is nothing for the program that sofisticated.
I'm not sure that if you use dvb link for dreambox if you can use the epg from dreambox maybe? there should be dvb link users on this forum so maybe they can help.
Cheers
kronk (07-04-10)
I needed to;
cmake -DLIBUSBDIR=/usr/local -DHAVE_LIBUSB=1 ..
To get the smartreader support enabled on lenny.. but then you need >= 2.6.30 too so dist-upgrade to squeeze we go.
Yes I got it.
I will try to read there..
Thanks
Hi,
1st thanks for the useful post.
I've been playing for many hours trying to get a working oscam server. I'm determined to get a my server faster with my ND$3 card but so far the best times have come from the DM800 internal slot and from what I here the cards run too hot in there and will burn up?
Anyway since I dont want to risk it I figured SMARGO to be the best option but so far have had very little joy getting it going on anything other than UBUNTU and that has slow ECM times. I read that this is due to the kernal version? I'd next like to try getting it to work with UNSTABLE DEBIAN LENNY. I've tried Squeeze but had problems with CMAKE when trying to compile my Oscam.
My question is how do I get Unstable Lenny on my machine (i386 PC based)? Is it easy to do because all I can find is stable releases which don't seem to allow extra packages?
thanks for any help.
The above link should answer this question - as looks like you need to install a stable version first to progress.
Although a little bewildered as to your intentions, as have a similar thing with Ubuntu having 2 partitions one with Lucid and the other with Maverick, and find the later somewhat interesting in its behaviour, although as a pre-release, this is expected!
What extra packages are you after, as me a simple matter of adding them to the sources repoistory!
We cannot solve our problems with the same thinking we used when we created them - Albert Einstein
ident (16-08-10)
I admit I'm a complete linux noob. I've been simply trying to learn as I go whilst achieving a working CS server. Thanks for the link I'll have a read and will give Lenny another go.
Ive followed the above advice in this thread without success. Ive setup a vmware ESX server with an install of the latest debian squeeze.
uname shows I am running the correct version of kernel to avoid usb write issues while using smartreader protocol.
Croot@debian:~# uname -r
2.6.32-5-amd64
I have issues with the following error.
2010/08/24 22:56:08 7124 r02 IO:SR: Trying with parity EVEN
2010/08/24 22:56:08 7124 r02 IO:SR: sending F=0174 (372) to smartreader
2010/08/24 22:56:08 7124 r02 IO:SR: sending D=01 (1) to smartreader
2010/08/24 22:56:18 7124 r02 usb bulk write failed : ret = -7
2010/08/24 22:56:18 7124 r02 IO:SR: USB write error : -7
Oscam never seems to get card ATR.... card is an orange one.
my config files are as below... Any ideas ???
oscam.server
[reader]
label = fx
protocol = smartreader
detect = CD
device = 002:002
mhz = 600
cardmhz = 357
EMMCache = 1,3,2
Group = 1
caid = 096c
boxid = ********
oscam.conf
[global]
nice = -19
WaitForCards = 1
[monitor]
port = 988
aulow = 120
monlevel = 0
[newcamd]
key = 0102030405060708091011121314
port = 10000@096c:000000;
[webif]
httpport = 8888
httpuser = *****
httppwd = *****
httprefresh = 5
httphideidleclients = 1
httpallowed = 192.168.1.0-192.168.1.255
oscam.user
[account]
user = test
pwd = test
uniq = 1
group = 1
au = fx
ident = 096c:000000
caid = 096c
All I require is;
[reader]
label = fruit
protocol = smartreader
device = 005:002
group = 1
emmcache = 1,1,2
caid = 069c
boxid = 12345678
If you have used serial/mouse protocol, detach/reset the device before using smartreader mode iirc
i bet your "device = 002:002" is not correct.
run the utility or log into WEBIF and Click on Readers, then hit the "Scan USB" it will come back with your actual correct address of your USB reader, (hopefully)
change this line and your ready for next step.
I believe the device id is correct. I got information from list_smargo in compiled utils folder.... any other ideas ?? Would using vmware ESX affect how the smargo functions? Has anyone out there successfully installed oscam on a virtual debian install ?
xdefiantx.
hi,
check your libusb version, should be 1.0.6 or higher. Your smartreader version should not be lower than 1.3 also reader setting?
Also lsusb for smargo address to meke sure.
Cheers
Last edited by mborkp; 26-08-10 at 04:38 PM.
Bookmarks