Page 1 of 2 12 LastLast
Results 1 to 20 of 37

Thread: Setting Up An Oscam Card Server Tutorial

  1. #1
    Member Lomax's Avatar
    Join Date
    Mar 2008
    Age
    47
    Posts
    357
    Thanks
    83
    Thanked 152 Times in 49 Posts
    Rep Power
    223
    Reputation
    805

    Default Setting Up An Oscam Card Server Tutorial

    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:

    Code:
    su root

    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:

    Code:
    exit

    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:

    Code:
    su root

    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.
    To calculate boxid:
    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:
    Code:
    rm -rf build_dir/

    To check log:
    Code:
    tail -f /var/log/oscam.log

    To see if oscam running:
    Code:
    ps -A | grep oscam

    To start oscam:
    Code:
    oscam -b

    To stop oscam:
    Code:
    pkill 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:
    Code:
    lsusb

    To enter "Insert" mode in vi:
    Code:
    :i
    Last edited by Lomax; 03-10-10 at 12:01 AM. Reason: Typo in the oscam.user config fixed.

  2. The Following 30 Users Say Thank You to Lomax For This Useful Post:

    + Show/Hide list of the thanked

    aalyasseri (14-06-11),aliashere (20-10-10),allover (02-10-10),best4less (02-10-10),bloggs (04-10-10),brytan (03-11-11),conan_oz (12-06-11),CoopsOz (03-10-10),droid (07-10-10),efab (03-10-10),enf (03-10-10),ident (03-10-10),james9813 (03-10-10),Mark (02-10-10),mborkp (03-10-10),mishe (17-12-11),mkhannah (19-10-10),mol666 (08-06-11),Neutral (03-10-10),OSIRUS (03-10-10),porkchops (07-10-10),porkop (02-10-10),Seymour Butts (03-10-10),the1magoo (16-12-11),weirdo (03-10-10),Windy (02-10-10),Woodie (03-10-10),z1gg33 (07-10-10)



Look Here ->
  • #2
    Premium Member
    Join Date
    Jan 2008
    Location
    Melbourne
    Posts
    854
    Thanks
    246
    Thanked 87 Times in 69 Posts
    Rep Power
    243
    Reputation
    886

    Default

    Nice guide.

    Quote Originally Posted by Lomax View Post
    /usr/local/etc/oscam.user:
    Code:
    [account]
    user       = username
    pwd        = password
     uniq       = 1:8888
    group      = 1
    au         = reader1
    ident      = 096c:000000
    caid       = 096c
    What does the :8888 do on the uniq line ?

  • #3
    Member Lomax's Avatar
    Join Date
    Mar 2008
    Age
    47
    Posts
    357
    Thanks
    83
    Thanked 152 Times in 49 Posts
    Rep Power
    223
    Reputation
    805

    Default

    Quote Originally Posted by jimbo123 View Post
    Nice guide.
    Thanks.


    Quote Originally Posted by jimbo123 View Post
    What does the :8888 do on the uniq line ?
    That's a typo. I can't believe I missed that . Fixed in original post now.

  • #4
    Senior Member mborkp's Avatar
    Join Date
    Feb 2008
    Posts
    1,121
    Thanks
    526
    Thanked 300 Times in 163 Posts
    Rep Power
    263
    Reputation
    1466

    Default

    Hi Lomax,
    very usefull post, thanks.

    With a compaling you can make it bit easier:
    after "make" do "make install" that will automatically copy and chmod 755 oscam to /usr/local/bin so steps:

    cp oscam /usr/local/bin
    chmod 755 /usr/local/bin/oscam

    won't be necesary. Also, before above, I normally rename working oscam so if the newly compiled does not work, you can easy revert to working one.

    I rather use "killall -9 oscam" to stop the server, as it was reported to be more realiable to kill all the related processes.

    For the newbees it might be easier to install the Graphic Interface as well as ssh. Many people are used to Windows and find it difficult to work under console. That's what discourage mostly the Linux begginers from using the OS. Vi might create the innitial problems as well.

    I've noticed that latest Debian Squizze will not allow the root login under GI, but there is a easy way to do the lot under no root user.

    So if you in GI as not root user go to your Text Editor pop up and right click on it. Add shortcut to the toolbar or desktop.
    Then right click on created shortcut, chose properties. In the application startup entry add "sudo" (and then space off course) in front of the line.

    This will start the Text Editor with root rights everytime it is started from the shortcut. If you do the same with file browser you will be able to edit, rename, delete, copy/paste files the "windows style". More adventurous people can then start to use console, Vi and all this stuff

    Cheers
    Last edited by mborkp; 03-10-10 at 10:19 AM.

  • The Following 2 Users Say Thank You to mborkp For This Useful Post:

    Fernbay (04-10-10),verad (05-10-10)

  • #5
    Member Lomax's Avatar
    Join Date
    Mar 2008
    Age
    47
    Posts
    357
    Thanks
    83
    Thanked 152 Times in 49 Posts
    Rep Power
    223
    Reputation
    805

    Default

    Yeah I thought vi might freak a few people out, especially unix virgins, but I don't know anything else .

    Thanks for your tips - I'm going to bring in your suggestions and re-test the whole procedure soon.

  • #6
    Senior Member mborkp's Avatar
    Join Date
    Feb 2008
    Posts
    1,121
    Thanks
    526
    Thanked 300 Times in 163 Posts
    Rep Power
    263
    Reputation
    1466

    Default

    typo:
    with compiling it should be :

    make
    make install

    Cheers

  • #7
    Administrator
    admin's Avatar
    Join Date
    Jan 2008
    Location
    Victoria
    Age
    56
    Posts
    31,150
    Thanks
    2,238
    Thanked 13,731 Times in 5,823 Posts
    Rep Power
    4552
    Reputation
    165805

    Default

    Good work Lomax, and thanks for taking the time to do it.

  • The Following User Says Thank You to admin For This Useful Post:

    Lomax (03-10-10)

  • #8
    Senior Member mborkp's Avatar
    Join Date
    Feb 2008
    Posts
    1,121
    Thanks
    526
    Thanked 300 Times in 163 Posts
    Rep Power
    263
    Reputation
    1466

    Default

    Quote Originally Posted by Sanity View Post
    Good work Lomax, and thanks for taking the time to do it.
    that should go to "manuals section" when completed

    Cheers

  • #9
    Member Lomax's Avatar
    Join Date
    Mar 2008
    Age
    47
    Posts
    357
    Thanks
    83
    Thanked 152 Times in 49 Posts
    Rep Power
    223
    Reputation
    805

    Default

    Quote Originally Posted by mborkp View Post
    typo:
    with compiling it should be :

    make
    make install

    Cheers
    Not exactly, instead of "make install", I'm doing the same thing manually via the lines:

    cp oscam /usr/local/bin
    chmod 755 /usr/local/bin/oscam

    I'll tighten things up using your change though when i get a chance to test the whole procedure again. I might change the steps to keep a rolling backup of compiled oscam binaries too.

  • The Following User Says Thank You to Lomax For This Useful Post:

    Woodie (03-10-10)

  • #10
    Premium Member
    Onefella's Avatar
    Join Date
    Jan 2008
    Location
    Top End
    Posts
    2,063
    Thanks
    1,062
    Thanked 1,360 Times in 678 Posts
    Rep Power
    638
    Reputation
    18622

    Default

    Quote Originally Posted by Lomax View Post
    To calculate boxid:
    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
    Some box ID's start with a leading zero. This creates a 7-digit hex key, but is still correct.

  • #11
    Member Lomax's Avatar
    Join Date
    Mar 2008
    Age
    47
    Posts
    357
    Thanks
    83
    Thanked 152 Times in 49 Posts
    Rep Power
    223
    Reputation
    805

    Default

    OK, tell me if this is OK and I'll update the original post:

    To calculate boxid:
    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 7 or 8 digit hex to replace the xxxxxxxx's with

    ---------------------------------^^^^^


    Also, do you all think I should leave in the ftp server installation steps, or remove them to make the procedure shorter? Strictly speaking, ftp is not required to get the card server up and running.

  • #12
    Super Moderator
    enf's Avatar
    Join Date
    Jan 2008
    Location
    Canberra
    Age
    70
    Posts
    17,753
    Thanks
    16,817
    Thanked 34,963 Times in 9,059 Posts
    Rep Power
    13678
    Reputation
    644469

    Default

    Quote Originally Posted by Lomax View Post
    OK, tell me if this is OK and I'll update the original post:

    To calculate boxid:
    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 7 or 8 digit hex to replace the xxxxxxxx's with

    ---------------------------------^^^^^


    Also, do you all think I should leave in the ftp server installation steps, or remove them to make the procedure shorter? Strictly speaking, ftp is not required to get the card server up and running.
    Speaking as a unix dummy, I'd leave everything there. You can't make it too simple for people like me.....

    Cheers
    enf
    The fact that there's a highway to hell and a stairway to heaven says a lot about the anticipated traffic flow.

  • #13
    Premium Member
    Onefella's Avatar
    Join Date
    Jan 2008
    Location
    Top End
    Posts
    2,063
    Thanks
    1,062
    Thanked 1,360 Times in 678 Posts
    Rep Power
    638
    Reputation
    18622

    Default

    Quote Originally Posted by Lomax View Post
    OK, tell me if this is OK and I'll update the original post:

    To calculate boxid:
    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 7 or 8 digit hex to replace the xxxxxxxx's with

    ---------------------------------^^^^^
    Yep, that should stop any confusion.

  • #14
    Member Lomax's Avatar
    Join Date
    Mar 2008
    Age
    47
    Posts
    357
    Thanks
    83
    Thanked 152 Times in 49 Posts
    Rep Power
    223
    Reputation
    805

    Default

    It seems I can no longer edit the original post. Do reps have the capability to allow me to have permanent edit ability? This will allow me to keep it up to date with fixes changes as other users give feedback.

  • #15
    Administrator
    admin's Avatar
    Join Date
    Jan 2008
    Location
    Victoria
    Age
    56
    Posts
    31,150
    Thanks
    2,238
    Thanked 13,731 Times in 5,823 Posts
    Rep Power
    4552
    Reputation
    165805

    Default

    Quote Originally Posted by Lomax View Post
    It seems I can no longer edit the original post. Do reps have the capability to allow me to have permanent edit ability? This will allow me to keep it up to date with fixes changes as other users give feedback.
    Sorry, we cant do that.

  • #16
    Senior Member mborkp's Avatar
    Join Date
    Feb 2008
    Posts
    1,121
    Thanks
    526
    Thanked 300 Times in 163 Posts
    Rep Power
    263
    Reputation
    1466

    Default

    Quote Originally Posted by Lomax View Post
    Not exactly, instead of "make install", I'm doing the same thing manually via the lines:

    cp oscam /usr/local/bin
    chmod 755 /usr/local/bin/oscam

    I'll tighten things up using your change though when i get a chance to test the whole procedure again. I might change the steps to keep a rolling backup of compiled oscam binaries too.
    ok, to clarify:
    if you are user with no root privileges:
    cmake
    make
    make install

    no need for
    cp oscam /usr/local/bin
    chmod 755 /usr/local/bin/oscam

    If you have root privileges:

    cmake
    make install

    no need as above plus "man pages" installed, so if you at prompt anywhere just put command "man oscam" or "man oscam.server" and so on. Handy thing

    Off course nothing wrong with:
    cp oscam /usr/local/bin
    chmod 755 /usr/local/bin/oscam

    Cheers
    Last edited by mborkp; 05-10-10 at 02:57 PM.

  • #17
    Member Lomax's Avatar
    Join Date
    Mar 2008
    Age
    47
    Posts
    357
    Thanks
    83
    Thanked 152 Times in 49 Posts
    Rep Power
    223
    Reputation
    805

    Default

    Ah, ok thanks, I hadn't considered the man pages.

  • #18
    Senior Member mborkp's Avatar
    Join Date
    Feb 2008
    Posts
    1,121
    Thanks
    526
    Thanked 300 Times in 163 Posts
    Rep Power
    263
    Reputation
    1466

    Default

    Quote Originally Posted by Lomax View Post
    Ah, ok thanks, I hadn't considered the man pages.
    Hi,
    you are welcome

    In the step 9 of your tutorial you can add some info I posted here if you wish.

    That do the life easier for family members if reboot required

    Cheers

  • #19
    Senior Member porkchops's Avatar
    Join Date
    Nov 2009
    Location
    Mt Gambier
    Age
    48
    Posts
    536
    Thanks
    168
    Thanked 95 Times in 81 Posts
    Rep Power
    203
    Reputation
    543

    Default

    Great guide, Lomax

    Half installed this last night on an older spare box sitting in my garage, as at last have somewhat a purpose for the box, rather than taking up space

    As to vi, substitute this with nano (my editor of choice - plus found this to be installed by default) as heaps more intutive and based on KISS (keep it simple stupid) rather than the complicated key-bindings of vi. As found previously with vi I have to re-open the file approx 3 times before I hit the correct sequence of keys to have something worth saving
    We cannot solve our problems with the same thinking we used when we created them - Albert Einstein

  • #20
    Member Lomax's Avatar
    Join Date
    Mar 2008
    Age
    47
    Posts
    357
    Thanks
    83
    Thanked 152 Times in 49 Posts
    Rep Power
    223
    Reputation
    805

    Default

    Quote Originally Posted by porkchops View Post
    Great guide, Lomax
    Thanks!

    Quote Originally Posted by porkchops View Post
    As to vi, substitute this with nano
    OK, will bring that in for the next revision of the guide, which I hope to get done on the weekend.

  • Page 1 of 2 12 LastLast

    Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •