|
|
|
|
|
|
|
|
|
|
|
|
|
|
Super Moderator
Offline
Posts: 1,330
Level: 31 []
Life: 76 / 762
Magic: 443 / 7087
Experience: 48%
Thanks: 102
Thanked 1,815 Times in 422 Posts
Join Date: Oct 2006
Location: No GPS fix found, (are you inside a building?)
|
Howto: Building Debian Linux server with CCcam -
17-August-2007, 00:00
This how-to will cover the basic installation of Debian linux and getting CCcam up and running on it.
This How-to is still WIP by CC_Share
--Todo--
---------------------------------------
First download the netinstall cd of debian linux
You can download it from the following URL:
Link http://cdimage.debian.org/debian-cd/...86-netinst.iso
This will install the basic debian linux system on you're harddisk.
Boot the computer from the CD you just created.
Just press enter here to start the installation
Select the language you prefer
Select the country you're in. Based on the language it selects a default country
Here you can choose the keyboard layout. Make sure you select the
proper layout otherwise installation might prove to be quite tricky.
Set up the hostname of you're server here. I prefer to set up the first part of my DYNDNS account info here.
Here you must enter the domain name. In the example above, you can see i put dyndns.org here
Next up is the partition guide. Here you must choose
Select the right harddisk. Usually in a stand-alone server, there will just be one entry
Debian will let you choose to have everything in 1 partition, or
have seperate partitions for the important directory's. One advantage
of having seperate partitions, You cannot fill the root system by
accident if you upload a lot to the home directory. Linux will NOT boot correct , if the root filesystem is full
In the overview, You can check to see if all is set up correct
before writing the changes to harddisk. Once you press finish, it will
show you the next screen if you are really sure .
Once you select yes, It will write the changes to harddisk and format all partitions.
If Debian cannot guess you're timezone by looking at the bios, it will ask you for the timezone
Next you will have to enter the root password. Do not choose an easy
to guess password if you want the server to be reachable from the
internet. (if you want to use SSH for example to manage the server from
work)
Next is setting up an account to use for FTP transfer.
Again, do not use a simple to guess password. This account can also be used for SSH
If you have the option, allways choose a network server.
Make sure you select a fast and stable one.
Usually univercity servers prove to be fast and stable
In the software selection screen, select base system and webserver
One of the last things it needs to know, is where to place the grub bootloader. Usually it is safe to place it on the MBR
Congratulations, You just installed a fresh new DEBIAN server.
As you might have noticed, during installation, debian uses dhcp to aquire an ip adress.
For a cardserver, it's not recommened to have it's IP adress handled by DHCP.
First thing we need to do is remove the DHCP and assign a static IP to the linux server
Assigning static IP
Log in as root with the right password
then type in the following command
Code:
vim /etc/network/interfaces
now remove the following line
Code:
iface eth0 inet dhcp
and replace it with
Code:
auto eth0
iface eth0 inet static
address 192.168.1.225
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
These IP adresses might be different for you're situation.
Remember to replace them with the numbers you need.
You can save the file with the following commands
Once the file is saved, you can restart the network and check if you're linux server is running with it's new IP adress
Code:
/etc/init.d/networking restart
ifconfig
ifconfig should now look something like this
Quote:
cardserverBackup:/home# ifconfig
eth0 Link encap:Ethernet HWaddr 00:00:00:10:D0:70
inet addr:192.168.1.225 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::250:4ff:fe1d:d27b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8931 errors:0 dropped:0 overruns:0 frame:0
TX packets:6028 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7585683 (7.2 MiB) TX bytes:916823 (895.3 KiB)
Interrupt:10 Base address:0x4000
|
Installing SSH
Next thing that needs to be done is install a SSH deamon.
This will allow you to log into the cardserver from you're own computer
and the server does not require a keyboard and monitor if you want to
change something.
Code:
apt-get install openssh-server
Once SSH is installed, you can logout of the server,remove the keyboard and monitor as we don't need it anymore.
Getting Putty
We need to download putty so we can log in with SSH
http://the.earth.li/~sgtatham/putty/.../x86/putty.exe
Remove the CD-ROM drive from the apt-get mirror list:
To make sure the server does not need the CD-ROM anymore to update or
install software, we need to remove it from the mirror list of apt-get.
Code:
vim /etc/apt/sources.list
now remove the lines that point to the CD-ROM drive and save the file.
Quote:
deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official i386 NETINST Binary-1 20070407-11:29]/ etch contrib main
|
Update apt-get software list
To make sure, you locally have a good software list available, you have to update the apt-get database
Installing FTP server
To be able to transfer files between you're computer and the linux server, a FTP server is needed.
During the installation it will ask you one question,. Answer it with "stand-alone"
This will consume a bit more memory but will prevent linux from spawning a new process every time you log in.
Code:
apt-get install proftpd
The server is now installed and all the needed files are in place.
Now it's time to get it ready for CCcam.
First thing we need to do is make 6 directory's and adjust the parameters.
Code:
mkdir /emu
mkdir /emu/cccam
mkdir /emu/script
mkdir /emu/log
mkdir /var/etc
mkdir /var/keys
chmod 777 /emu
chmod 777 /emu/*
chown <username> /emu
chown <username> /emu/*
The username started above is the username you created during the installation. This name is going to be used for file transfer.
Startup script for CCcam
To prevent from having to change directory all the time we're gonna
place a script on the server so CCcam can be started from any directory
on the server.
Code:
vim /emu/script/cccam
Code:
#!/bin/sh
CAMNAME="CCcam Server"
# end
# This method starts CCcam
start_cam ()
{
/emu/cccam/CCcam.x86 &
sleep 2
}
# This method stops CCcam
stop_cam ()
{
pkill CCcam.x86
}
case "$1" in
start)
echo "[SCRIPT] $1: $CAMNAME"
start_cam
;;
stop)
echo "[SCRIPT] $1: $CAMNAME"
stop_cam
;;
restart)
echo "Restaring $CAMNAME"
stop_cam
start_cam
;;
*)
"$0" stop
exit 1
;;
esac
exit 0
Code:
chmod 755 /emu/script/cccam
ln /emu/script/cccam /bin/cccam
Now you can simply start, stop or restart CCcam from any directory by simply typing
Code:
cccam start
cccam stop
cccam restart
Upload CCcam
Now use a FTP program to upload CCcam.x86 and CCcam.cfg to /emu/cccam
Making CCcam executable
Use putty again to give CCcam.x86 execution rights
Code:
chmod 755 /emu/cccam/CCcam.x86
Config update script
When you're running a big server, restoring connections can take some
time then you change you're config file. I like to do my config changes
once a day. I use this script to backup the old config and put the new
config in place. This is done at 3am so my peers don't notice it and
they don't suffer from a freezing picture every time you make a change.
Code:
vim /emu/script/configupdate.sh
Code:
#!/bin/sh
#Script to process new config and backup old one.
#Script designed and written by CC_Share
SOURCE=/emu/cccam
TARGET=/var/etc
FILE=CCcam.cfg
BACKUPDIR=/var/backup
CONFIGOLD=CCcam.old
if test -f $SOURCE/$FILE ; then
echo "New Config Present"
if test -d $BACKUPDIR ; then
if test -f $BACKUPDIR/$CONFIGOLD ; then
echo "Removing OLD config file from backup directory"
rm $BACKUPDIR/$CONFIGOLD
else
echo "No OLD config to remove."
fi
if test -f $BACKUPDIR/$FILE ; then
echo "Renaming Backup to old config"
cp $BACKUPDIR/$FILE $BACKUPDIR/$CONFIGOLD
rm $BACKUPDIR/$FILE
else
echo "No Backupfile present yet"
fi
if test -f $TARGET/$FILE ; then
echo "Copying Original config to Backup directory"
cp $TARGET/$FILE $BACKUPDIR
rm $TARGET/$FILE
else
echo "No Original Config File Present!?!?"
fi
else
echo "Backup directory does not exist."
echo "making new directory"
mkdir $BACKUPDIR
if test -f $TARGET/$FILE ; then
echo "Copying Original config to Backup directory"
cp $TARGET/$FILE $BACKUPDIR
else
echo "No Original Config File Present!?!?"
fi
fi
echo "Moving New config file to "$TARGET
cp $SOURCE/$FILE $TARGET
rm $SOURCE/$FILE
else
echo "No New Config present, Nothing to process"
fi
exit
Code:
chmod 755 /emu/script/configupdate.sh
Putting configupdate in crontab
To make sure the config update script will run at 3 am everynight, we can place it in the crontab.
Code:
cd /etc
vim crontab
and add the following line to it
Code:
00 3 * * * root /emu/script/./configupdate.sh >>/emu/log/configupdate.log 2>&1
This will run the script every day at 3am, and it's output will
be writen in /emu/log/configupdate.log so you can check on occasion if
all went well.
Putting CCcam in bootsequence
There's only one more thing to do. Add CCcam to the startup so it will start on the next reboot.
and add the following line at the bottom
test the config update script created earlier to see if that works
Code:
/emu/script/./configupdate.sh
If it works, you can reboot the server and check if CCcam is running.
Good luck
------------------------------------------------------- DM7000 Running Nabilosat Darkstar II Linux CardServer running Debian 5.0.2
I Hate people who steal my stuff ------------------------------------------------------- All you´re cards are belong to us
If you're happy with our board, Please consider making a donation HERE
Looking for Peers again. HERE
It's not a shame if you use the Thanks button
Last edited by CC_share; 09-April-2009 at 20:11.
Reason: New link for Debian 5.00
|
|
|
The Following 381 Users Say Thank You to CC_share For This Useful Post:
|
1985kamal (11-January-2009), A271 (18-November-2007), abdulwahid143 (22-March-2009), adil7777 (01-October-2008), adonis-nl (21-January-2008), afo15 (07-August-2009), AHAT (12-January-2008), al3xar (10-May-2008), alacan (02-March-2009), AlamSAsif (04-May-2008), alancilia (30-January-2009), alemprator123 (03-August-2008), ale_sandros (27-April-2008), alfamelo (17-August-2008), aliabbas2 (01-August-2009), allsat (21-August-2007), alrafaa (20-July-2009), alter (24-November-2007), aneco (03-January-2008), anis745 (06-September-2009), argobot2 (22-December-2007), artechhosting (24-July-2009), atompower (28-December-2007), attack (21-September-2008), ayyilcan (26-August-2008), azax_2 (05-May-2008), B16MCC (25-April-2009), Bacteria (14-October-2007), baddream+ (29-October-2009), bajo11 (02-October-2008), balalau (26-November-2007), Baltazar338 (06-October-2009), basemoi (17-December-2008), bassamh (14-December-2008), basssem (10-April-2008), Bert72 (14-December-2008), BigG (28-April-2009), billy080779 (10-December-2007), billywizz (05-February-2008), Biocide (24-November-2007), bkolenichev (30-August-2009), blowup (15-January-2009), bohoso (27-August-2007), brijdec (03-July-2008), BrixSat (07-October-2008), brumba (30-June-2008), Bugkiller (27-December-2007), bummi28 (15-October-2008), ca336 (28-September-2008), cajotizio † 1960-2008 (29-August-2007), camthoi (13-October-2008), capepanwa (19-June-2009), cardshare2009 (04-October-2008), catmam (10-September-2009), cccam4ever (18-December-2008), Cccam_Man (29-November-2007), CC_Gr_ (06-July-2009), Ceekay (05-April-2009), centur (15-March-2008), Charlie (17-November-2007), Charly20 (17-August-2007), chderycker (18-December-2007), chiccon (11-April-2009), Chrille_69 (23-March-2008), christod (29-September-2008), chriswoo (28-October-2008), cimi (24-March-2008), clansat (17-August-2008), claudew_cs (17-August-2008), clickabashi (07-October-2009), clouzotbe (11-April-2009), contibot (31-May-2009), corellon (12-December-2008), corne (21-February-2008), crappy007 (02-July-2009), cronico (01-January-2009), cyberdiga (15-September-2009), cyber_mmx (26-April-2009), d133mc (29-March-2009), da100 (12-November-2008), daemon123 (28-August-2007), DaisyF (21-July-2009), daki23 (12-November-2009), dalibor79 (27-February-2009), dallyis (12-October-2008), dante32 (18-August-2007), dbhungry (20-October-2009), DeMoN-Z (05-September-2008), Denilson15 (10-January-2008), Dibidais (21-May-2008), digeman (01-November-2007), dimking (12-October-2007), djkoelkast (27-February-2008), dj_adde (25-February-2008), dmxjo (01-November-2008), dodi71 (09-April-2008), doli2 (12-November-2009), dorran (25-February-2009), dreamboxboy1 (24-January-2008), dreamoncccam (25-January-2009), dries123 (27-January-2008), drimaster (18-August-2008), Eiscreme (13-December-2008), elbgt (09-September-2009), elhefe (21-May-2009), elnomany (05-May-2008), ephagous (08-November-2007), esam (09-November-2009), ethan (17-August-2008), eurosat (07-April-2009), expertgates (29-August-2009), extansa (19-April-2008), fikos67 (03-January-2009), fimisol (10-October-2008), finek1 (27-April-2009), firelighter (08-June-2009), FiShBuRn (04-March-2008), fkimonis (30-January-2008), fkittig (20-August-2009), flims (31-May-2008), FooFighterUK (13-February-2008), foulis (27-March-2009), fredis1993 (20-June-2009), funcrd (30-October-2008), gagy (03-October-2008), ganidagli (12-December-2008), gasansat (18-July-2009), georchri (27-February-2009), georgeusroger (26-August-2007), gfather (17-August-2007), ghostnik (07-June-2009), ghosts (27-July-2008), Giacomo (30-April-2009), gianluca68 (21-January-2009), gonzalez_52 (29-November-2007), good2000 (22-May-2008), goranmk (31-January-2008), Gotcha_GT (06-March-2008), greg-cccam (15-October-2007), Grrr (16-November-2007), gsimovic (12-July-2008), guerda (02-June-2009), gul156 (06-November-2008), gunnarstrom (29-March-2009), hardware_joe (17-July-2009), hawaythelad (18-July-2009), hawk931 (07-November-2007), hellboypt (11-January-2008), Henkske (16-August-2009), hjz8899 (17-November-2007), hobbysat (25-December-2008), hoedie (11-October-2007), hscbaj (16-September-2008), humanoid (06-January-2009), humayoon (16-August-2008), hxxxlxxxh (11-October-2008), iapetos (22-October-2007), ilhindi (09-March-2009), IndiaDawn (16-October-2009), infoextreme (17-June-2009), infosat (24-October-2009), insippo (02-March-2008), Insomnio (04-October-2008), iskish (31-May-2009), ivanovh (17-August-2007), Ixxxo (28-October-2007), JANCI19 (11-November-2009), japy (19-January-2008), jardano (20-January-2009), jawadde (03-February-2008), jdavid22 (15-October-2009), JDS (02-June-2009), jeeper2 (13-April-2008), jellybee007 (15-April-2008), Jimmo (17-October-2007), jobusca (09-October-2008), joedenob (11-May-2008), joggeur (08-October-2009), Johansson (04-August-2009), johns (24-March-2008), jor!ng (26-June-2009), jorgis (05-May-2008), josefelix (21-October-2009), jyapgr (01-November-2008), KaLLe2k (12-February-2009), kaputa (06-September-2007), kapzas (09-August-2008), karapussa (06-March-2009), karl04 (16-January-2008), kikkokman2006 (13-June-2009), KingVest (08-May-2009), klond (01-September-2008), kmeher (21-December-2008), konpetr (19-September-2007), KOP (23-December-2007), kosmopoliten (04-April-2009), kostas_thess (24-August-2008), kpe38 (17-August-2008), ktm200 (17-August-2008), lazo001 (26-May-2008), leds (03-June-2009), Lefteris (25-December-2007), LePouSAT (10-March-2008), liamer (04-May-2009), lion61 (17-April-2008), lmcorp (15-May-2009), Logic6 (06-May-2009), loopingb7370 (25-February-2009), LouNet (08-April-2009), Lykos23 (17-March-2009), lz1ppl (29-September-2008), M4rcelH (30-June-2009), magostinho (28-June-2009), malacka (14-May-2008), mali107 (23-January-2009), mamkarah (09-February-2009), mann (02-November-2009), marciolg (05-May-2008), mario sat (01-February-2008), masonsa (17-June-2008), masterme (21-September-2008), maveric (17-May-2009), meddeb (21-March-2009), mehdi (03-September-2008), mehdisa (16-April-2009), MerijnNL (25-January-2009), michalis (27-September-2007), MIGOEL (22-March-2008), mikipao (03-April-2008), Mixman (22-December-2007), mk2k (29-April-2009), moak (17-January-2008), mojafox (19-April-2009), mona66 (23-November-2008), moneyfish (25-September-2009), monster2009 (23-December-2008), Morte (06-May-2009), mountenbike (18-September-2007), mpcmpc (09-January-2009), mrprozac (13-December-2008), mrt1850 (05-February-2008), mrtae (19-October-2007), MSI (25-May-2009), MULTİMEDİAPLUS (02-October-2007), mumbua (18-October-2008), mysattv (30-May-2009), M|ch (28-August-2007), naile (10-February-2009), najali (06-October-2009), Nele (07-March-2009), nemesist (14-August-2009), nemo007 (10-November-2008), neohack (04-November-2008), neorun (15-June-2009), netserver (17-February-2008), nice (05-May-2008), nickgr (04-August-2008), nl0raf (24-April-2008), nmosso (16-October-2009), NMX (27-October-2007), nonolol (03-November-2009), NuKeM (25-April-2009), nynex (10-November-2008), oguzcanturk (23-November-2008), olga (19-February-2009), osdieman (25-June-2008), PaMend (31-December-2008), PANKOT1979 (24-November-2008), panosk (20-January-2009), pantgr (26-January-2009), papadam (15-October-2008), pappnase (06-November-2008), pari (12-April-2008), patelkaushikp (17-March-2008), pclabs (09-December-2007), pegaman (19-October-2009), picoweb (14-January-2009), pipo230954 (11-March-2009), pk01 (16-January-2009), plonker (28-October-2007), pno005 (16-March-2008), potthth (12-January-2008), putte64 (13-April-2008), Qwintrix (13-May-2008), rackz (19-August-2007), ranid (27-February-2008), RareRukker (25-December-2008), redfoxhunter53 (20-July-2008), robgh (23-August-2008), Robroy (01-May-2009), rogerdodger (10-March-2008), saikal (06-April-2008), SaiKoPaTT (30-December-2008), sam2009 (26-January-2009), samy007 (29-March-2009), sandji (09-May-2009), sandor (04-November-2009), sanpej (06-July-2008), sasodaniel (17-June-2009), sater (16-October-2007), sateraser (11-April-2009), Sateurope (12-July-2008), satoid (10-June-2009), sator86 (09-October-2009), scarzam (20-February-2008), schlauchfilet (09-March-2008), scoobydoo (08-January-2009), ScrollZ (03-February-2008), seerwanali (21-October-2007), seeu (15-August-2008), serigraphist (30-August-2008), SGSG (07-June-2009), shadoky (31-January-2009), ShAmAlKo (06-February-2008), shamba (18-February-2009), shareuk (05-February-2009), shareyourmama (06-October-2009), shonr (25-November-2008), shrek (22-October-2007), Sjaak66 (14-October-2007), skyhdfreak (19-May-2009), small2002 (13-October-2007), snakie (26-December-2007), Snooze (04-March-2009), sotis_cos (22-June-2008), Soularix (18-September-2009), spaceman (15-September-2009), spenoza (06-May-2009), Spezialstrahl (05-February-2009), srfc28 (19-January-2009), SSpt (19-September-2008), STAR 14 (30-October-2007), ste3lo (13-May-2009), stephenr (01-January-2008), svenni (16-October-2009), syber (29-April-2009), tarik_24 (03-December-2007), tedy58 (20-April-2009), tenten (20-November-2008), TFH|Fony (05-June-2008), THe Hitman (23-October-2008), the poor (12-May-2009), The Viking (28-December-2007), tidjo (16-July-2008), tipnet (03-February-2008), tobys (13-December-2009), tomXx (01-September-2009), Tonio20 (14-August-2009), Toobig (01-September-2008), troep (24-January-2008), truman (04-February-2008), tx6376 (16-July-2009), tymbos (15-October-2008), ulula (20-November-2008), unclemaarten (04-August-2008), vakos (13-November-2007), vedran84 (27-June-2009), vitg (18-June-2008), vivito16 (18-September-2009), vjeko (02-March-2008), vladin79 (25-January-2009), wade (27-September-2009), wapex (28-April-2009), wassss (18-November-2009), webashik (07-April-2008), wendybenno (14-October-2007), whsp (01-May-2008), Wing786 (13-November-2007), Wolfen (17-March-2008), x0304730 (20-October-2008), xboct (19-February-2008), xezal (29-October-2007), Xleecher (06-February-2009), zapto0111 (19-July-2009), Zasso (11-September-2008), ziftis (22-July-2008), zjabarin (09-January-2009), zoltar (27-July-2009) |
|
|
Super Moderator
Offline
Posts: 1,330
Level: 31 []
Life: 76 / 762
Magic: 443 / 7087
Experience: 48%
Thanks: 102
Thanked 1,815 Times in 422 Posts
Join Date: Oct 2006
Location: No GPS fix found, (are you inside a building?)
|
Adding CCcam PHP webinfo And Keyupdate to debian -
18-August-2007, 20:21
This How-to will give you a handout to install CCcam php webinfo tool by Toogoody on you're debian linux server.
Requirements:
Putty
cccamPHPinfo
Changing apache2
If you followed the above how-to, there is allready an apache2 server
up and running on you're server. All we have to do is make some small
modifications to get it ready to run the PHP webinfo tool.
Log into you're linux server with putty so we can change the owner of
the webroot directory and enable you to upload files to it.
You need to replace <username> with the username you created during the installation
Code:
chmod 775 /var/www
chown <username> /var/www
Now you can use an FTP program to upload the content of the cccamphpinfo.zip to /var/www
Once you've done this, you can use putty again to edit config.php and
the default apache2 config so the right index file will be accessed
when you use explorer.
Code:
vim /var/www/config.php
You can remove these 2 lines
Code:
$CCCamWebInfo[] = array("localhost","12345","user","pass"); // for CCcam webinterface with user and pass
$CCCamWebInfo[] = array("localhost","12345"); // for CCcam webinterface with different port than default and without user and pass
and edit this line into
Code:
$work_path = "/tmp/"
Once you have done this, the webinfo tool is allready working
however it will not be the default page when you open the homepage of
you're linux server in mozilla or internet explorer. When you try it,
all you will see is a big text stating To change this we have to change the following:
Code:
vim /etc/apache2/sites-enabled/000-default
and change this
Code:
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
RedirectMatch ^/$ /apache2-default/
</Directory>
into
Code:
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
When you restart apache (/etc/init.d/apache2 start|stop|reload|restart|configtest), it's default starting page will now be the cccam webinfo tool.
Adding cronjobs
With the latest ccamPHPinfo tools, you can add cronjobs to refresh the statistics on an hourly base.
This can be done by adding 2 cronjobs.
and add these 2 lines
this will refresh the online page every 2 minutes past the hour.
It will also ping all you're peers every 30 minutes past the hour
Good luck
Adding Automatic Keyupdate
This script does not work anymore, But you can use it if you have a different URL for the bundle.
As i am kind of lazy, I like my server to download the latest keybundle
every hour, compare it to the previous one, and if new keys are
available upload them to all my sat recievers. This also put's the
latest keys on the server aswel.
I use this script for that.
Code:
vim /emu/script/keys.sh
Code:
#!/bin/sh
## Key Distribution to various recievers from 1 single location
## Used to automate further distro Keybundle for CCcam
## Script should be placed in crontab to make sure it runs at regular intervals
## Made by CC_Share
##First let's make some basic definitions. You can change this to you're needs if you want.
SATAN="/tmp/satan.tar.gz" ##Location of satan bundle
SATANBACK="/tmp/satan.old" ##Location and name of old bundle
AUTHFILE1="dbox2" ##Password for Dbox
AUTHFILE2="dreambox" ##Password for dreambox
DIRECTORY="/var/keys" ##Location of CCcam Keys
DBOXIP="1.1.1.1" ##Local IP of DboxII
DREAMIP="1.1.1.1" ##Local IP of Dreambox
## These lines should not be changed unless you know what you are doing
## First test if key update is needed
date
if [ -e /tmp/satan ]; then
rm -rf /tmp/satan
fi
if [ ! -e /var/keys ]; then
mkdir /var/keys
fi
if [ ! -e /var/scce ]; then
mkdir /var/scce
fi
wget http://keyupdater.ascofun.**/satan.tar.gz -O /tmp/satan.tar.gz
if [ $SATAN -nt $SATANBACK ] ; then
mkdir /tmp/satan
tar -xzf /tmp/satan.tar.gz -C /tmp/satan/
rm -rf /var/keys/nagra_roms
cd /tmp/satan/var/keys
mv -f * /var/keys/
cd /tmp/satan/var/scce
mv -f * /var/scce/
cd /tmp
rm -rf /tmp/satan/*
rm -rf /tmp/satan
mv -f /tmp/satan.tar.gz /tmp/satan.old
rm -rf /tmp/satan.tar.gz
echo "" >>/tmp/key.txt
echo "key-update finished."
else
echo "No new keys available in keybundle"
rm -rf /tmp/key.txt
fi
if [ -e "/tmp/key.txt" ]
then
ftp -n $DBOXIP <<End-Of-Session
user root "$AUTHFILE1"
bin
hash
cd "$DIRECTORY"
lcd "$DIRECTORY"
put AutoRoll.Key
put SoftCam.Key
put tps.bin
bye
End-Of-Session
echo "Key update Dbox complete"
ftp -n $DREAMIP <<End-Of-Session
user root "$AUTHFILE2"
bin
hash
cd "$DIRECTORY"
lcd "$DIRECTORY"
put AutoRoll.Key
put SoftCam.Key
put tps.bin
bye
End-Of-Session
echo "Key update Dreambox Complete"
else
echo "No FTP update needed"
fi
exit
In this script there are 2 recievers,
1 dreambox and 1 dbox2.
All you need to do is replace
Code:
DBOXIP="1.1.1.1" ##Local IP of DboxII
DREAMIP="1.1.1.1" ##Local IP of Dreambox
with the right ip adresses
and replace
Code:
keyupdater.ascofun.**
With the valid URL
When you have saved the file, don't forget to make it "executable"
Code:
chmod 755 /emu/script/keys.sh
You can simply make a new cronjob to make sure this script is run every hour.
and add this line
Code:
00 * * * * root /emu/script/./keys.sh >>/emu/logfiles/keys.log 2>&1
when you restart the cron deamon, the script will run every whole hour.
------------------------------------------------------- DM7000 Running Nabilosat Darkstar II Linux CardServer running Debian 5.0.2
I Hate people who steal my stuff ------------------------------------------------------- All you´re cards are belong to us
If you're happy with our board, Please consider making a donation HERE
Looking for Peers again. HERE
It's not a shame if you use the Thanks button
Last edited by Smurfer; 01-November-2008 at 20:33.
Reason: Typo
|
|
|
The Following 105 Users Say Thank You to CC_share For This Useful Post:
|
A271 (25-November-2007), adonis-nl (21-January-2008), al3xar (04-April-2008), alacan (08-March-2009), allsat (21-August-2007), andrewflash (05-April-2009), artechhosting (05-November-2007), Bacteria (18-February-2008), bajo11 (02-October-2008), Baltazar338 (06-October-2009), Bert72 (24-August-2009), BigG (29-April-2009), Biocide (24-November-2007), blowup (07-June-2009), bluefish (11-November-2007), bohoso (27-August-2007), busterbel (20-February-2008), ca336 (27-September-2008), cajotizio † 1960-2008 (29-August-2007), camthoi (19-October-2007), carlwang (11-August-2009), cccam4ever (18-December-2008), Ceekay (09-April-2009), connected (11-November-2008), dallyis (12-October-2008), danyalex01 (07-May-2009), dbhungry (20-October-2009), Denilson15 (10-January-2008), digeman (13-November-2007), dmxjo (29-November-2008), dodi71 (09-April-2008), dreamoncccam (26-January-2009), elcostis (23-August-2007), extansa (19-April-2008), fkimonis (30-January-2008), FooFighterUK (13-February-2008), fredis1993 (17-July-2009), fs_djmellisse (22-July-2009), georgeusroger (28-August-2007), gfather (07-September-2007), gligi (15-July-2009), Gotcha_GT (06-March-2008), gr1herakleio (13-November-2007), greg-cccam (12-October-2007), GribIB (17-July-2008), guerda (02-June-2009), gul156 (06-November-2008), houthayfa (13-February-2009), insippo (02-March-2008), jackpot1million (20-August-2007), jardano (20-January-2009), jazzy (03-November-2007), jdavid22 (15-October-2009), jorgis (05-May-2008), jyapgr (01-November-2008), KaLLe2k (23-April-2009), kapzas (09-August-2008), karl04 (18-January-2008), KOP (23-December-2007), kostas_thess (23-August-2008), Lykos23 (17-March-2009), lz1ppl (29-September-2008), mali107 (23-January-2009), mbnet (10-March-2008), michalis (27-September-2007), mojafox (29-August-2009), mona66 (10-March-2009), moneyfish (25-September-2009), Morte (06-May-2009), naile (10-February-2009), nemesist (14-August-2009), netserver (17-February-2008), niceguy0331 (17-May-2009), nmosso (16-October-2009), Origon (22-August-2007), pantgr (26-January-2009), Robroy (01-May-2009), samy007 (29-March-2009), sanpej (08-December-2009), sasodaniel (17-June-2009), scoobydoo (08-January-2009), SGSG (07-June-2009), ShAmAlKo (06-February-2008), Sjaak66 (28-March-2008), skyhdfreak (19-May-2009), small2002 (13-October-2007), STAR 14 (30-October-2007), sun (09-November-2007), TCB (03-October-2008), TDA (12-January-2009), tedy58 (20-April-2009), the poor (12-May-2009), tidjo (16-July-2008), troep (24-January-2008), vladin79 (25-January-2009), vladobggr (21-August-2007), Wing786 (13-November-2007), x0304730 (20-October-2008), Xleecher (06-February-2009), zakizi (15-December-2008), zapto0111 (19-July-2009), zizou25 (26-February-2009), zjabarin (09-January-2009), zoltar (29-July-2009) |
|
|
Junior Member
Offline
Posts: 21
Level: 3 []
Life: 0 / 57
Magic: 7 / 398
Experience: 31%
Thanks: 11
Thanked 5 Times in 3 Posts
Join Date: Aug 2007
|
10-September-2007, 14:02
Hello. thank you for Debian server. that works. But the problem is
apt-get. I can not dwonload the proftpd. and updating. and wget is not
enable .I have this message[err HTTP://ftp2.fr.debian.org:80 impossible,][ wget HTTP://keyupdater.ascofun.cc
--13:51:18-- http://keyupdater.ascofun.cc/
=> `index.html.1'
Résolution de keyupdater.ascofun.cc... 1.0.0.0
Connexion vers keyupdater.ascofun.cc|1.0.0.0|:80...
]the machin it's pentiom 4 .1700G and the ruter Dlink the ID static TCP
.Do you have a solution including You are an expert Linux.thank you
|
|
|
The Following 3 Users Say Thank You to georgeusroger For This Useful Post:
|
|
|
|
Super Moderator
Offline
Posts: 1,330
Level: 31 []
Life: 76 / 762
Magic: 443 / 7087
Experience: 48%
Thanks: 102
Thanked 1,815 Times in 422 Posts
Join Date: Oct 2006
Location: No GPS fix found, (are you inside a building?)
|
11-September-2007, 23:09
Are you sure the machine is connected to the internet?
I've tried both the apt-get install proftpd and wget and they work.
Try to ping you're dlink router and try to ping a server on the net.
See if you get a responce from those.
--edit--
Quote:
Connexion vers keyupdater.ascofun.cc|1.0.0.0|
|
This is incorrect. There should be the IP number of the server and not 1.0.0.0
Seems like you're machine has a problem with the DNS. That would also explain the problem with apt-get.
Try and switch the machine back to dhcp and see it apt-get works
Code:
Make this:
auto eth0
iface eth0 inet static
address 192.168.1.225
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
into
iface eth0 inet dhcp
this again
------------------------------------------------------- DM7000 Running Nabilosat Darkstar II Linux CardServer running Debian 5.0.2
I Hate people who steal my stuff ------------------------------------------------------- All you´re cards are belong to us
If you're happy with our board, Please consider making a donation HERE
Looking for Peers again. HERE
It's not a shame if you use the Thanks button
Last edited by CC_share; 11-September-2007 at 23:13.
|
|
|
The Following 17 Users Say Thank You to CC_share For This Useful Post:
|
dreamoncccam (26-January-2009), flexer71 (31-December-2008), gagy (21-July-2008), greg-cccam (15-October-2007), insippo (02-March-2008), jdavid22 (15-October-2009), kchlif (25-September-2007), KOP (23-December-2007), nemesist (14-August-2009), popfan2003 (22-August-2008), razledazle (25-June-2009), SGSG (07-June-2009), ShAmAlKo (06-February-2008), skyhdfreak (19-May-2009), TDA (12-January-2009), the poor (12-May-2009), zjabarin (09-January-2009) |
|
|
Guest
Posts: n/a
Level: -INF []
Life: NAN / -INF
Magic: -INF / -INF
Experience: NAN%
|
30-September-2007, 01:08
is the procedure the same for fedora core 6?
|
|
|
|
|
Super Moderator
Offline
Posts: 1,330
Level: 31 []
Life: 76 / 762
Magic: 443 / 7087
Experience: 48%
Thanks: 102
Thanked 1,815 Times in 422 Posts
Join Date: Oct 2006
Location: No GPS fix found, (are you inside a building?)
|
30-September-2007, 09:23
Not quite. Fedora uses a bit different menu structure but the basics are the same.
Just remember fedora does not know the pkill command and uses killall
instead. This is important when you want to use the scripts. You
manually have to change pkill and replace it with killall.
------------------------------------------------------- DM7000 Running Nabilosat Darkstar II Linux CardServer running Debian 5.0.2
I Hate people who steal my stuff ------------------------------------------------------- All you´re cards are belong to us
If you're happy with our board, Please consider making a donation HERE
Looking for Peers again. HERE
It's not a shame if you use the Thanks button
|
|
|
The Following 2 Users Say Thank You to CC_share For This Useful Post:
|
|
|
|
Junior Member
Offline
Posts: 1
Level: 1 []
Life: 0 / 0
Magic: 0 / 0
Experience: 0%
Thanks: 1
Thanked 0 Times in 0 Posts
Join Date: Sep 2007
|
12-October-2007, 08:23
well dude keep going
nice info
|
|
|
|
|
Super Moderator
Offline
Posts: 162
Level: 11 []
Life: 0 / 269
Magic: 54 / 1984
Experience: 78%
Thanks: 14
Thanked 85 Times in 38 Posts
Join Date: Jun 2007
Location: Netherlands
|
12-October-2007, 08:55
Nice Tutorial, I already have a nice linux server running with
CCcam. But still there are some nice hints/tips in this tutorial. great
job.
2x d500s and one dedicated linux server running 24/7 with power backup.
|
|
|
|
|
Junior Member
Offline
Posts: 6
Level: 1 []
Life: 0 / 11
Magic: 2 / 76
Experience: 47%
Thanks: 28
Thanked 1 Time in 1 Post
Join Date: Oct 2007
|
14-October-2007, 11:45
thank you very much for this detailed howto i'm a newbie and this helped me alot
i've followed it step by step and every thing goes fine
but where to install the CCcam server softwear and what is the best
cards reader i should use and haw to configure the reader with the
cards in the server
thanks again
|
|
|
|
|
Super Moderator
Offline
Posts: 1,330
Level: 31 []
Life: 76 / 762
Magic: 443 / 7087
Experience: 48%
Thanks: 102
Thanked 1,815 Times in 422 Posts
Join Date: Oct 2006
Location: No GPS fix found, (are you inside a building?)
|
14-October-2007, 21:09
Quote:
Originally Posted by small2002
where to install the CCcam server softwear
|
This goes in the /emu/cccam directory
Quote:
what is the best cards reader i should use
|
This is very personal. Some prefer USB, other prefer serial
readers. I just stick with a serail phoenix reader because i know it
works without any problems
Quote:
haw to configure the reader with the cards in the server
|
For linux /dev/ttyS0 is serial port 1 and /dev/ttyS1 is serial port 2
For CCcam it would reslt in the lines:
Code:
SERIAL READER : /dev/ttyS0
SERIAL READER : /dev/ttyS1
------------------------------------------------------- DM7000 Running Nabilosat Darkstar II Linux CardServer running Debian 5.0.2
I Hate people who steal my stuff ------------------------------------------------------- All you´re cards are belong to us
If you're happy with our board, Please consider making a donation HERE
Looking for Peers again. HERE
It's not a shame if you use the Thanks button
|
|
|
The Following 29 Users Say Thank You to CC_share For This Useful Post:
|
123com (15-March-2009), agapeeye (20-June-2009), Bacteria (22-May-2008), chai (25-January-2008), contibot (31-May-2009), dbhungry (20-October-2009), dj_adde (02-April-2008), dnicolaou12 (17-November-2007), gianluca68 (31-October-2008), jeeper2 (14-April-2009), jjoel (18-March-2009), karl04 (18-January-2008), kenshin (23-August-2008), KOP (23-December-2007), leots28 (03-March-2008), liten (31-December-2007), microcip69 (17-June-2009), MrNice[NL] (24-July-2008), ms6 (30-April-2009), neohack (04-November-2008), papadam (15-October-2008), Selveste1 (24-November-2008), SGSG (07-June-2009), showtimegbox (09-March-2009), skyhdfreak (19-May-2009), small2002 (15-October-2007), TDA (12-January-2009), the poor (12-May-2009), Toobig (01-September-2008) |
Currently Active Users Viewing This Thread: 3 (2 members and 1 guests)
|
samuraii40, linunox
|
Posting Rules
|
You may post new threads
You may post replies
You may not post attachments
You may edit your posts
HTML code is Off
|
|
|
Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
|
|