Quick and maybe stupid question
will be changing slowly from cccam to oscam only,
is it possible to have both of them running on same port on same server but different webinfo ports?
Quick and maybe stupid question
will be changing slowly from cccam to oscam only,
is it possible to have both of them running on same port on same server but different webinfo ports?
Not advisable to have both emu's running with same port.
Just change it over in one go.
Is your server a pc or receiver.
If it's a receiver, i'd back it up fully (just incase things go wrong), copy cccam-oscam configs to desktop and then uninstall cccam/oscam completely.
Re-install oscam only.
Configure oscam then to run as your only emu and use the port that was originally used in cccam.
Use this tool to convert your f lines/clines/nlines from your cccam config to oscam:
http://linuxsat-support.com/showthread.php?t=2569
You can find emu's on our addons panel (for receiver):
http://linuxsat-support.com/showthread.php?t=30475
If your having problems, just post them up.
Remember, having a backup of your original configs makes setting oscam up much easier.
i am using a pc server, I already have an instance of oscam reading the card, I need to run another on same port as cccam was running
what is the details I have to put in a peer account to have a reshare and he keeps using the cline.
[account]
user=peer1
pwd=peerpas1
group=1
uniq = 1
cccmaxhops=5
cccreshare=0
It can be done with the oscam instance you already have running.
Backup your configs first.
Your line to him
Change the cccam entry in oscam.conf to allow oscam to use the port cccam uses.
Quote[cccam]
port = same one you use for cccam server listening port
reshare = 1 (allows reshare)
His account:
Quote[account]
user=peer1
pwd=peerpas1
group=1 (gives him access to your card if your card is in group 1)
cccmaxhops=5
cccreshare=1 (gives him reshare)
Your c-line to friend then looks like
c: dyn.dns port peer1 peerpas1 (same as cline you already gave out)
His line to you
The line your peer has given you just needs to be converted into a "reader" and goes into the oscam.server config.
Use the cccam convertor tool to convert it. (paste in the line and hit convert, copy the details in the bottom window and paste into the oscam.server.config file)
Good practice to change the group to 2 (if your card is in group 1)
Should look something like this:
QuoteDisplay More[reader]
label =
protocol = cccam
device =
user =
password =
inactivitytimeout = 1
group = 2
cccversion = 2.1.2
ccckeepalive = 1
Then, your "account" in oscam.user config can be created to reflect your existing cline to your receiver)
QuoteDisplay More[account]
user = you
pwd = your password
au = your card reader name (whatever your label is on your own card in order to update your card)
group = 1,2 (gives you access to your card plus your peers card)
cccmaxhops = 5
cccreshare = 0
Delete cccam configs.
Restart oscam.
You may also wish to remove cccam altogether from server now as it isn't being used but trying to run both on the same port may cause issues.
If you get stuck, just post up or pm your full configs (remove sensitive stuff) and we'll put you in the right direction.
I would like more having one oscam for card+users and one for peers
created another instance for oscam and currently trying to change the check script and startup config
- - - Updated - - -
I am having problems with the oscam check script.
if oscam (the first instance) process stops the script doesn't detect that it stopped and it is logging : oscam is still OK!
if oscam2 (the second instance) process stops it restarts the process (on oscam2 the script is working fine)
below please find the check script.
sleep 4
process=`ps auxwww | grep oscam | grep -v grep | awk '{print $1}'`
if [ -z '$process' ]; then
echo "Couldn't find oscam running. Restarting server-binary" >> /var/log/oscam.check
nohup /bin/oscam -b -c /usr/local/etc/ >> /var/log/oscam.log &
else
echo "oscam is still OK!" >> /var/log/oscam.check
fi
sleep 4
process=`ps auxwww | grep oscam2 | grep -v grep | awk '{print $1}'`
if [ -z '$process' ]; then
echo "Couldn't find oscam2 - users running. Restarting server-binary" >> /var/log/oscampeers .check
nohup /bin/oscam2 -b -c /usr/local/etc/oscampeers >> /var/log/oscampeers.log &
else
echo "oscam2 - users is still OK!" >> /var/log/oscampeers.check
fi
Display More
I haven't ever needed to run more than one instance of oscam but I did come across this:
QuoteAs of ubuntu 10.04 don't use the name oscam in the script or the logfile.
Name it ServerOK.sh or Ubuntu will always find an instance of "oscam"!
Taken from here:
http://linuxsat-support.com/showthread.php?t=4431&page=3
These threads may also be helpful:
http://linuxsat-support.com/showthread.php?t=12230
http://linuxsat-support.com/showthread.php?t=6484
i would use 2 different #!/bin/sh scripts
both with different names
lol
Don’t have an account yet? Register yourself now and be a part of our community!