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