Starting from a fresh install

There are 6 replies in this Thread which was already clicked 465 times. The last Post () by MR-T.

  • Hi Guys,


    Having to start from the very beginning again as my server wouldn't let me log in so I have had to completely re-install Ubuntu 10.04.4 and I am sorry to be a pain to ask for this but I am at a loss now.


    Can anyone help me as I have tried to follow the below tutorial but I cannot install the openssh then apt-get update fails too? I am tearing my hair out what's left of it anyway.


    1. give your server a static ip. put this line in and press enter


    nano /etc/network/interfaces


    change the dhcp to static then under it put like this
    address 192.168.1.78
    netmask 255.255.255.0
    broadcast 192.168.1.78
    gateway 192.168.1.254


    of course these are my ip's so please change to your own ip's


    once done hold ctrl+x press y then enter
    now to restart network put this line in


    /etc/init.d/networking restart


    you should now have static ip on your server


    2. install SSh
    apt-get install openssh-server


    3. update sources list
    apt-get update


    4. install FTP server
    apt-get install proftpd (standalone)


    after this reboot server. once rebooted you can now log in on remote pc like laptop using putty and winscp u can also just use the server terminal but u need winscp to put files in directories


    now download winSCP and Putty


    winSCP download link here
    http://winscp.net/eng/download.php


    putty download link here
    http://www.chiark.greenend.org.uk/~s.../download.html


    5.now open putty and enter your servers ip then press enter
    put your user then password then sudo -i then password and press enter
    you are in terminal as root on remote computer u can also just use your server but i find using remote pc easier


    now copy or add 1 by 1 these lines into terminal pressing enter after each one


    mkdir /var/etc
    mkdir /var/keys
    mkdir /var/script
    mkdir /var/config
    mkdir /var/backup
    mkdir /var/cccamlog
    mkdir /var/www


    chown (yourname) /var/etc
    chown (yourname) /var/keys
    chown (yourname) /var/script
    chown (yourname) /var/config
    chown (yourname) /var/backup
    chown (yourname) /var/cccamlog
    chown (yourname) /usr/local/bin
    chown (yourname) /usr/local/etc
    chown (yourname) /var/www


    6. now put CCcam.x86 in usr/local/bin also put oscam in usr/local/bin use winscp to put the files in each directory. install winscp add a log in with username the one u made on install of ubuntu and password u made on install of ubuntu


    chmod both files


    chmod 755 /usr/local/bin/CCcam.x86
    chmod 755 /usr/local/bin/oscam


    7. put your oscam.conf oscam.server and oscam.user in /usr/local/etc


    then put your cccam.cfg and provider and channel list in /var/etc


    ok to get oscam to read your sky uk card you need to add this n line in your cccam.cfg file


    N: yourserverip 10000 test1 test2 01 02 03 04 05 06 07 08 09 10 11 12 13 14 256


    8. now i will show you what to have in your oscam config files . keep in mind this is for sky uk and smargo reader . some lines will differ with different cards and readers
    first file to make is oscam.conf paste this in the file and save



    [global]
    nice = -1
    WaitForCards = 1
    logfile = stdout
    preferlocalcards = 1
    saveinithistory = 1
    disablelog = 1


    [webif]
    httpport = 8888
    httpuser = admin
    httppwd = admin
    httpallowed = 0.0.0.0-255.255.255.255


    protocols


    [newcamd]
    key = 0102030405060708091011121314
    port = 10000@0963:000000


    now make oscam.server paste this in and save file


    [reader]
    label = skyuk
    protocol = smartreader
    detect = cd
    device = 004:002 ------ you will have to change this.goto part 11.
    emmcache = 1,3,2
    caid = 0963
    boxid = xxxxxxxx ----- put your own boxkey inplace of the x's
    blockemm-u = 0
    blockemm-s = 0
    blockemm-g = 1
    blockemm-unknown = 1
    mhz = 600
    cardmhz = 600
    ident = 0963:000000
    group = 1


    oscam.user paste this in and save file


    [account]
    user = test1
    pwd = test2
    monlevel = 0
    uniq = 0
    group = 1,2
    au = skyuk
    caid = 0963


    9. so now you should have 3 files in usr/local/etc
    oscam.conf
    oscam.server
    oscam.user


    chmod 755 all 3
    chmod 755 /usr/local/etc/oscam.conf
    chmod 755 /usr/local/etc/oscam.server
    chmod 755 /usr/local/etc/oscam.user


    10.now we put script in for oscam and cccam to start on reboot or start up
    in terminal as root put line
    nano /etc/rc.local
    under the word # by default put these 2 lines in
    /usr/local/bin/oscam -b -c /usr/local/etc/ &
    /usr/local/bin/CCcam.x86
    ctrl+x then y and enter to save


    11.now i need you to put right line in oscam.server
    in terminal as root enter
    lsusb
    now you will see a few lines appear. u are only interested in the one that looks like this


    Bus 004 device 002: ID 0403:6001 Future Technology devices internation, Ltd FT232 USB-Serial


    this is the most important line forget the others. now if you open your oscam.server file you
    you will see next to device this
    device = 004:002 that is because u can see my bus is 004 and device is 002 in the line that we just got up with lsusb now edit it to what yours is and save your file. if u have put your box id in aswell that is oscam and cccam
    configuered .


    12. apt-get install apache2


    13. apt-get install php5


    14. make sure you have open both your cccam port and the oscam newcs port 10000 to your server. if u have just reboot your server and its ready to go.


    15. to check goto your browdser and put in youyserverip:8888 user is admin password is admin it will show you your oscam webif

  • 10.04.4 is no longer supported I'm afraid and probably the reason why updates/openssh fails (end of life April 30th 2015)
    You may have better luck in installing a newer release.
    16.04.1 is out but you'll need to tweak a few things to get root access as it is disabled by default.
    Login first with the details you used to install ubuntu, then:

    Code
    sudo passwd -u root
    sudo passwd root
    sudo -i
    sed -i 's/prohibit-password/yes/' /etc/ssh/sshd_config
    reboot


    This should give you root access for winscp/putty.
    Then try the rest of the tutorial to see if it works with the new release.
    16.04.1 x64 is here:
    releases.ubuntu.com/16.04.1/ubuntu-16.04.1-server-amd64.iso
    16.04.1 x32 is here:
    releases.ubuntu.com/16.04.1/ubuntu-16.04-server-i386.iso

  • Hi Guys,


    I have followed the tutorial and now got stuck at step 6. now put CCcam.x86 in usr/local/bin also put oscam in usr/local/bin use winscp to put the files in each directory. install winscp add a log in with username the one u made on install of ubuntu and password u made on install of Ubuntu. I cannot locate these files do I need to download these? Appreciate any help on being able to progress from here and also how to add the lines of the people sharing the card and where to put these?


    Thanks in advance.


    Tam

  • Here is the link to the tutorial that I have been following


    hopefully once I get past this I should be fine

    Edited once, last by master G: removing link to other forum ().

  • I know you cannot provide support from another forum this is the tutorial that I have been following and now stuck on no 6 upwards sorry admin if this is not allowed and please remove


    here i have wrote a how to install oscam and cccam on ubuntu with smargo reader. after a long time looking for a how to on this subject with no sucess
    i finnally got it working perfect with a little help from serveral places.


    first you want to install ubuntu . i use 10.04 but i think any version will work aslong as its the server edidtion.


    aftere you have installed ubuntu logg into your server with the username you created during install
    then enter your password
    then to get as root we need to type sudo -i then press enter, it will asak for password enter password you use for your user


    this is how you will always be able to logg in as root


    now you are logged in as root.


    1. give your server a static ip. put this line in and press enter


    nano /etc/network/interfaces


    change the dhcp to static then under it put like this
    address 192.168.1.78
    netmask 255.255.255.0
    broadcast 192.168.1.78
    gateway 192.168.1.254


    ofcourse these are my ips so please change to your own ips


    once done hold ctrl+x press y then enter
    now to restart network put this line in


    /etc/init.d/networking restart


    you should now have static ip on your server


    2. install SSh
    apt-get install openssh-server


    3. update sources list
    apt-get update


    4. install FTP server
    apt-get install proftpd (standalone)


    after this reboot server. onvce rebooted you can now logg in on remote pc like laptop using putty and winscp u can also just use the server terminal but u need winscp to put files in directorys


    now download winSCP and Putty


    winSCP download link here
    http://winscp.net/eng/download.php


    putty download link here
    http://www.chiark.greenend.org.uk/~s.../download.html


    5.now open putty and enter your servers ip then press enter
    put your user then password then sudo -i then password and press enter
    you are in terminal as root on remote computer u can also just use your server but i find using remote pc easier


    now copy or add 1 by 1 these lines into terminal pressing enter after each one


    mkdir /var/etc
    mkdir /var/keys
    mkdir /var/script
    mkdir /var/config
    mkdir /var/backup
    mkdir /var/cccamlog
    mkdir /var/www


    chown (yourname) /var/etc
    chown (yourname) /var/keys
    chown (yourname) /var/script
    chown (yourname) /var/config
    chown (yourname) /var/backup
    chown (yourname) /var/cccamlog
    chown (yourname) /usr/local/bin
    chown (yourname) /usr/local/etc
    chown (yourname) /var/www


    6. now put CCcam.x86 in usr/local/bin also put oscam in usr/local/bin use winscp to put the files in each directory. install winscp add a log in with username the one u made on install of ubuntu and password u made on install of ubuntu


    chmod both files


    chmod 755 /usr/local/bin/CCcam.x86
    chmod 755 /usr/local/bin/oscam


    7. put your oscam.conf oscam.server and oscam.user in /usr/local/etc


    then put your cccam.cfg and provider and channel list in /var/etc


    ok to get oscam to read your sky uk card you need to add this n line in your cccam.cfg file


    N: yourserverip 10000 test1 test2 01 02 03 04 05 06 07 08 09 10 11 12 13 14 256


    8. now i will show you what to have in your oscam config files . keep in mind this is for sky uk and smargo reader . some lines will differ with different cards and readers
    first file to make is oscam.conf paste this in the file and save



    [global]
    nice = -1
    WaitForCards = 1
    logfile = stdout
    preferlocalcards = 1
    saveinithistory = 1
    disablelog = 1


    [webif]
    httpport = 8888
    httpuser = admin
    httppwd = admin
    httpallowed = 0.0.0.0-255.255.255.255


    protocols


    [newcamd]
    key = 0102030405060708091011121314
    port = 10000@0963:000000


    now make oscam.server paste this in and save file


    [reader]
    label = skyuk
    protocol = smartreader
    detect = cd
    device = 004:002 ------ you will have to change this.goto part 11.
    emmcache = 1,3,2
    caid = 0963
    boxid = xxxxxxxx ----- put your own boxkey inplace of the x's
    blockemm-u = 0
    blockemm-s = 0
    blockemm-g = 1
    blockemm-unknown = 1
    mhz = 600
    cardmhz = 600
    ident = 0963:000000
    group = 1


    oscam.user paste this in and save file


    [account]
    user = test1
    pwd = test2
    monlevel = 0
    uniq = 0
    group = 1,2
    au = skyuk
    caid = 0963


    9. so now you should have 3 files in usr/local/etc
    oscam.conf
    oscam.server
    oscam.user


    chmod 755 all 3
    chmod 755 /usr/local/etc/oscam.conf
    chmod 755 /usr/local/etc/oscam.server
    chmod 755 /usr/local/etc/oscam.user


    10.now we put script in for oscam and cccam to start on reboot or start up
    in terminal as root put line
    nano /etc/rc.local
    under the word # by default put these 2 lines in
    /usr/local/bin/oscam -b -c /usr/local/etc/ &
    /usr/local/bin/CCcam.x86
    ctrl+x then y and enter to save


    11.now i need you to put right line in oscam.server
    in terminal as root enter
    lsusb
    now you will see a few lines appear. u are only interested in the one that looks like this


    Bus 004 device 002: ID 0403:6001 Future Technology devices internation, Ltd FT232 USB-Serial


    this is the most important line forget the others. now if you open your oscam.server file you
    you will see next to device this
    device = 004:002 that is because u can see my bus is 004 and device is 002 in the line that we just got up with lsusb now edit it to what yours is and save your file. if u have put your box id in aswell that is oscam and cccam
    configuered .


    12. apt-get install apache2


    13. apt-get install php5


    14. make sure you have open both your cccam port and the oscam newcs port 10000 to your server. if u have just reboot your server and its ready to go.


    15. to check goto your browdser and put in youyserverip:8888 user is admin password is admin it will show you your oscam webif


    hope this is useful and makes sence as took me a while to get it all working correct on my system. now u can watch channels like picktv and channel 4 and at end of year all sky channels will only oipen with this new method so i have started early to stay ahead .
    please let me no how u get on and maybe sticky this thread . hope t c many thanks. :)

Participate now!

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