Duo2 To Raspberry Pi Oscam server?

There are 13 replies in this Thread which was already clicked 3,324 times. The last Post () by codar.

  • I currently run a Vu Duo2 small (7 peers) oscam server. I would like to switch it to a Raspberry Pi, as I`m always messing around with my duo2 and annoying my peers. I have a Raspberry Pi 2 and Omnikey cardreader. I have tried the "from scratch"tutorial on here 3 times now, but have run in to issues. First issue was simply trying to change the login password. Ignoring this on another attempt, I had issues trying to compile oscam. This tutorial is from 2012 and says to use Raspbian “wheezy” I only found Jessie. Could this be the reason I`m hitting problems? I did notice I had to put "sudo" before every command line I typed, but even then some commands don`t work. Is there an more recent tutorial for a complete newbie like me when it comes raspberry pi and oscam?


    Thanx for any help given.
    bo.

  • hi mate i run pi myself now it's great, use Jessie light it's just under 2 gigabytes, this setup works for me http://linuxsat-support.com/showthread.php?t=20212 except rebooting at 5am i had to reinsert the card every day so done away with that ,after you complete installation, use master G post 2 http://linuxsat-support.com/showthread.php?t=109318 for permissions to ftp anything onto the server , no more reboot for me just edit details on browser & restart oscam

  • Thanx Busman, I will give this ago as I`ve tried about 6 times the other method and I get failures at different stages everytime.


    Thanx.
    bo.


    - - - Updated - - -


    Only just noticed Busman you sent me to the same method I have been trying. I am now trying with the Jessie lite image. Now one of the failures I have everytime is this:


    Once it reboots then log in as 'pi' and 'raspberry' again
    Enable root password;
    Code:
    sudo passwd root


    Then enter preferred password twice.
    log out as current user.
    Log in as 'root' using your chosen password.


    I change the password to what I want but how do I login as "root" ? I have to use "pi" and "raspberry" to log back in. In the end I stopped trying to use my new password and carried on but maybe this is why I get failures further down the line.


    bo.

  • try command sudo before the commands your sending to PI as normal user within terminal ,
    on ubuntu it gives root permissions to normal user without having a root user activated :)


    might help

    PM for support 0nly with a Link to Y0ur
    P05t w1Th Wat5 up 0r 155u3 thaT5
    B33N ....... P05T3D


    0D3R PATCH3D 3H ;)
    much <3 th0ugh in d0 a5 Ab0v3
    1n Wh3n 533N r3plY n PM n 58PP0rt G1v3n ;)



    "I'm against Piracey so please DONT ATTACK SHIPS"
    :p


  • you must do all the update REBOOT,to login as root you must follow MASTER G post 2 in this http://linuxsat-support.com/showthread.php?t=109318 before you can login as root for permissions to ftp anything onto the server

    Edited 2 times, last by busman ().

  • Thanx for the info guys. But I`ve given up. I found a similar tutorial which I followed to the letter. I was able to change the password and access the setup using winscp or filezilla but I just cannot get the server going. I`ve been on it all day and I`ve packed in before I launch it out the window.


    Thanx again.
    bo.

  • if its ok with boss i will copy & paste the set up as i do it


    - - - Updated - - -


    this is musogeek work i just copy & paste what works for me.
    format tool.
    https://www.sdcard.org/downloads/formatter_3/
    Disk imaging tool
    Code:
    http://www.softpedia.com/get/C…g/Win32-Disk-Imager.shtml
    Download the raspbian "wheezy"light image from;
    Code:
    http://www.raspberrypi.org/downloads
    Scroll down about halfway for the Raspbian Wheezy light image and select direct download.
    extract image
    Run Win32DiskImager.exe
    Ensure the letter underneath where it says 'Device' is the same as your SD card.
    Click the blue folder icon at the top right of the Win32DiskImager.exe app - and browse for the raspbian wheezy image light.
    When you are happy that you have found the file and you have selected the right device, click 'Write', and 'Yes' to confirm.
    Once you get the 'Write Successful" message then you can go to the next stage.
    Insert the SD card in your Raspberry Pi, power on and wait a couple of minutes, if you like me i use tv so i can see pi ip addr if not.
    find the IP address of the Raspberry Pi in your router.
    once you have your ip run Putty 192.168.1.xxx
    user pi and password raspberry.
    Code:
    sudo raspi-config.
    on screen set timezone to uk and resize memory card then then finish and reboot.
    log in as pi raspberry.
    ------------------------------------------------------------------------------------
    this Master g work
    Code:
    sudo passwd -u root
    Code:
    sudo passwd root
    Code:
    su
    Code:
    service ssh restart
    Code:
    nano /etc/ssh/sshd_config
    edit line 28 from...
    PermitRootLogin without-password
    to
    PermitRootLogin yes
    Save changes and exit...Then restart SSH...
    To save, exit with CTRL and X together then select y and enter reboot.


    --------------------------------------------------------------------------------------
    log in as root with new password now you have the permission to ftp anything onto the server


    First, you need to get your packages;
    Code:
    apt-get update
    apt-get -y install apt-utils dialog usbutils
    apt-get -y install gcc g++ wget
    apt-get -y install build-essential subversion libpcsclite1 libpcsclite-dev
    apt-get -y install libssl-dev cmake make
    apt-get -y install libusb-1.0-0-dev nano
    apt-get install pcscd pcsc-tools
    Then create the following symbolic link so Smartreader support is added during the compile;
    Code:
    ln -s /usr/lib/arm-linux-gnueabihf/libusb-1.0.a /usr/local/lib/libusb-1.0.a
    Get the Oscam sources;
    Code:
    cd /usr/src
    svn co http://www.streamboard.tv/svn/oscam/trunk oscam-svn
    Compile Oscam (note the two dots after the 5th line are there because they need to be).
    Code:
    cd oscam-svn
    mkdir build
    chmod 755 build
    cd build
    cmake -DHAVE_LIBUSB=1 -DHAVE_PCSC=1 -DWEBIF=1 -DHAVE_LIBCRYPTO=1 -DWITH_SSL=1 ..
    make
    Make yourself a coffee - you have a bit of time and deserve one!


    Now it is installed - we need to move it;
    Code:
    cd /usr/src/oscam-svn/build
    cp oscam /var/local/
    and move the list_smargo tool;
    Code:
    cd /usr/src/oscam-svn/build/utils
    cp list_smargo /var/local/
    They are both now in /var/local - now we need to change permissions;
    Code:
    cd /var/local
    chmod 755 oscam
    chmod 755 list_smargo
    Now oscam needs to start at boot by adding it to rc.local, and you can edit with nano;
    Code:
    nano /etc/rc.local
    arrow down to a line just above 'exit 0' and below 'fi', and add the following;
    Code:
    /var/local/oscam &
    To save, exit with 'CTRL' and 'x' - select 'y' and 'enter'.
    Oscam will now run at boot.


    To get it to restart daily at 5.45 am and to free memory every hour, edit the crontab file; =====this is optional personally i do without reboot every morning
    Code:
    nano /etc/crontab
    add the following two new lines;
    Code:
    05 * * * * root echo 3 > /proc/sys/vm/drop_caches
    45 05 * * * root /sbin/reboot
    and to save, exit with 'CTRL' and 'x' - select 'y' and 'enter'.



    this works for me i just done it on my spare pi.

    Edited once, last by busman ().

  • Thanx Busman. I will have another go sometime this week.
    Thanx.
    bo.


    - - - Updated - - -


    I have finally got oscam and my server working after following the guide pasted here by Busman. The only problem I have now is the pi doesnt seem to see my omnikey cardreader, there is no lights on on the reader. I have added these 2 lines to my server file:


    protocol = pcsc
    device = 0


    but no sign of life.


    bo.

  • i.m trying this with the latest wheezy and oscam but it only stays active for about 2 sec after changes a page or page update and crashes. i have tried a few versions of oscam and still the same.
    the only way i can get it to run again is to reboot the raspberry

  • i.m trying this with the latest wheezy and oscam but it only stays active for about 2 sec after changes a page or page update and crashes. i have tried a few versions of oscam and still the same.
    the only way i can get it to run again is to reboot the raspberry



    little bit more info on installation please

  • Quote

    but it only stays active for about 2 sec after changes a page or page update and crashes.


    I remember experiencing something similar until I hooked up an omnikey.
    It ran ok from then on (until I scrapped it altogether and used the pi for rasplex, better than plex app on my sony tv)

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!