Friday 24 February 2012

Cron configuration instruction to the receiver of Enigma2

Cron configuration instruction to the receiver of Enigma2

Cron configuration instruction to the receiver of Enigma 2

Hi
Enigma 2 Receivers facilities are superb and the same potential that I know many of these capabilities.
Cron is the name of one of these capabilities.

We have a program or command in a Cron job to run automatically provide a point of time.
Now that our program is a shell script that I rebooted the server, or even instead of a command to give, For example, "every seven days, a date that represents the time and date command is run.

All this is done by Cron.
Cron service always runs in the Background and permanently.

Cron is the sex of my files in your /etc/cron.d/ is located, to understand this in your server address enter the following command in SSH:
Code:
ls -la cron
Cron service always addresses /etc/cron.d and /var/spool/cron/ checks.

How to install and create Cronjobs:
Code:
crontab -e
Using Cronjobs:
Code:
 1 2 3 4 5 /path/to/command arg1 arg2
or
Code:
1 2 3 4 5 /root/script.sh
Description:

1 minutes (0-59)
2: Time (0-23)
3 days (0-31)
4: Month (0-12 [12 == December])
5: Day of week (0-7)

Command: /path/to/command/ - Script or command must be run.

View all Crontab jobs:
Code:
crontab -l crontab -u username -l
Clear CronTab Jobs:
Code:
crontab -r crontab -r -u username
Contents of a file /etc/crontab/:
Code:
   SHELL=/bin/bash     PATH=/sbin:/bin:/usr/sbin:/usr/bin     MAILTO=root     HOME=/      # run-parts     01 * * * * root run-parts /etc/cron.hourly     02 4 * * * root run-parts /etc/cron.daily     22 4 * * 0 root run-parts /etc/cron.weekly     42 4 1 * * root run-parts /etc/cron.monthly


Description directories:
Code:
/etc/crontab file.
All scripts that want to run here and leave their name in the /etc/cron.d/ are.
Code:
/etc/cron.daily/
All scripts that are executed only once a day:
Code:
/etc/cron.hourly/
All scripts that are executed each only once per hour:
Code:
/etc/cron.monthly/
All scripts that are executed at once:
Code:
/etc/cron.weekly/
How to use this directory to run our script?

We want the script with clean.cache delete the cache will run every 10 days. This script file in /etc/cron.daliy/ put.
So we have a file with this address: /etc/cron.daily/clean.cache/ that its contents are as follows:
Code:
    #!/bin/bash     # A sample shell script to clean cached file from lighttpd web server     CROOT=”/tmp/cachelighttpd/”     DAYS=10     LUSER=”lighttpd”     LGROUP=”lighttpd”      # start cleaning     /usr/bin/find ${CROOT} -type f -mtime +${DAYS} | xargs -r /bin/rm      # if directory deleted by some other script just get it back     if [ ! -d $CROOT ]     then     /bin/mkdir -p $CROOT     /bin/chown ${LUSER}:${LGROUP} ${CROOT}     fi


How to backup Cronjob Started:
Code:
crontab -l > /backup/cron/cronjobs.bakup crontab -u username -l > /backup/cron/cronjobs_username.bakup
I hope to be useful.

by Eminem

Good luck

Thursday 23 February 2012

Tutorial : Lock smargo card reader to specific usb port


To fix smargos on specific ports you have to load smargos with 1.5 firmware.
When you compile oscam on Yr pc You have also a small bin called list_smargo. Give this bin chmod 755 and insert the smargos (as much as You want) in Yr pc.
Run list_smargo and on terminal you have:

Looking for smartreader with an out endpoint = 0x82 :
bus 003, device 002 : 0403:6001 Smartreader (Device=003:002 EndPoint=0x82 insert in oscam.server 'Device = Serial:Reader 6CD3C34')
bus 003, device 003 : 0403:6001 Smartreader (Device=003:003 EndPoint=0x82 insert in oscam.server 'Device = Serial:Reader 3A0E6AB')
bus 008, device 002 : 0403:6001 Smartreader (Device=008:002 EndPoint=0x82 insert in oscam.server 'Device = Serial:Reader 878FB20')
bus 008, device 003 : 0403:6001 Smartreader (Device=008:003 EndPoint=0x82 insert in oscam.server 'Device = Serial:Reader C2AC705'

I.e each smargo has now a serial number of its own.

In oscam server use this syntax in reader part:

protocol = smartreader
device = Serial:Reader C2AC705

and bind any card you want
do the rest for other cards and now You have fixed smargos and the cards and they never mix even if on restart or changing them from pc to pc.

How to "Oscam check script"

How to "Oscam check script"

Thanks arber for the script, i have made ipk file for BlackHole image, to restart EMU at 8am and run oscamcheck script every 10 minutes.

FTP to /tmp > Green button > Yellow button > Manual Install IPK Packages

You can test the script is working by telnet command, killall -9 oscam wait a few minutes and check var/log/oscam_restart_log.

You should get process was not working, which means the script is working and oscam was restarted.

Enjoy..

Monday 13 February 2012

VTI Image Softcam Collection

Download VTI Image Softcam Collection

Camd v3908-VTI CCcam v2.0.11+Mgcamd v138-VTI CCcam v2.0.9-VTI CCcam v2.1.0-VTI CCcam v2.1.1-VTI CCcam v2.1.3-VTI CCcam v2.1.4-VTI CCcam v2.2.1-VTI CCcam v2.3.0-VTI CCcam v2.1.3+NewCS v171-VTI Evocamd v217-VTI Gbox v800-VTI Hypercam v218-VTI Mgcamd v138-VTI Mgcamd v138+NewCS v171-VTI oscam v6380-VTI oscam v6380+CCcam v2.1.3-VTI oscam v6380+Mgcamd v138-VTI rqcs v1.11+CCcam v2.1.3-VTI Sbox v0051-3-VTI Sbox v0051-3+CCcam v2.1.3-VTI Sbox v0051-3+Mgcamd v138-VTI Scam v360-VTI

Sunday 5 February 2012

ecmwhitelist - What is it? How do I maintain it?

ecmwhitelist - What is it? How do I maintain it?

ecmwhitelist - What is it? How do I maintain it?

OSCam has a reletively new feature called ecmwhitelist. What this feature does is allow a user to define valid ECM lengths a particula card, therefore blocking anything unusual in length. A lot of people see this feature as a way to stop providers blocking cards, as it prevents anything unusual reaching it.

This whitelist goes in oscam.server in the appopriate reader entry for your local card. The first part defines the CAID, then after the @ you have your ident, and then after the colon (:) you have your allowed ECM hex lengths. If your card has multiple CAID/Idents, then just add another entry, making sure each entry is separated by a semicolon (;)
Code:
ecmwhitelist = 0500@042400:52,57
The above is the entry I have for my JSC Sports card, which is being read in OSCam. Not too long ago, it was a bit different as below;
Code:
ecmwhitelist = 0500@042400:2F,2A
I found today that my card wasn't clearing channels. I eventually discovered this was why.

Problem. Sometimes, the length of the ECM can change. The provider will sometimes tweak things. You want to save your card from being murdered, but the provider has changed something, and you can't watch your channels anymore.

Solution. Quite simple really, you need to know where you get the information from to obtain the hex code that describes the length of the ECM. If you are running OSCam Web Interface, then all you need to do is look at a line of information. This is from JSC Sports +8 The following information will be in your log files, but I prefer to read it straight from the status page of the Web Interface.

Code:
2012/02/04 23:38:12 ABC123 c jsc (0500&042400/20FC/52:9827): found (303 ms) by upper_slot
The above tells me that the hex length of the ECM is 52 (as highlighted in red). I now know that I can add that to the ecmwhitelist. I also discovered a length of 57, so I added both, and so far that is working.

Knowing this allows you to build your own lists. I am still not so sure about these supposed killer ECMs or EMMs, but I do know that it is good to be restrictive, but being restrictive sometimes blocks things out, so if you ever see a channel not clearing on your card that should be, as well as your services, check the ECM whitelist against the ECM on your OSCam log, because that could be what has changed!