Looking for Automated install script for Oscam & CCcam 64-bit
any advice and links are welcome 
							
						
					any advice and links are welcome
 
							
						Welcome to Satlover forums, full of great people, ideas and excitement.
Please register if you would like to take part. link..
Alert: Don't Use Hotmail Email Accounts for registration
Before Access to all Forums and Trial accounts you must need to activate your account Email address
 Need Automated install script for Oscam/CCcam 64-bit
									
									
									Need Automated install script for Oscam/CCcam 64-bit
								 
							
						


 
							
						
#!/bin/sh
#Automated Installation script
#Purpose: Installing Oscam/CCcam 2.1.3 on a bare Debian system.
###############################################################
#for help and support visit:
#http://linuxsat-support.com
#
#
##
#Requirements: 	Debian 6
#		Installation package
#
#Setting installation variables
PACKNAME=cccam_install_package.tar			#Name of the installation package
EMUDIR=/emu						#name of the initial emulation and script directory
TEMPDIR=/tmp/ccinst					#temporary download and unpack dir
clear
echo "Installation script for automated oscam /CCcam 2.1.3 installation"
echo "Created exclusively for linuxsat-support members"
echo "For testing/educational purposes only"
echo "**********linuxsat-support.com******************"
echo "**auto install script by Ten Below**"
echo "for support visit http://linuxsat-support.com"
sleep 5
mkdir $TEMPDIR
echo "Starting download of installation script"
wget http://linuxsat-support.com/addons/debianauto/osccdeb.tar --output-document=$TEMPDIR/$PACKNAME > /dev/null 2>&1
if [ ! -f $TEMPDIR/$PACKNAME ] ; then
echo "##  WARNING !! !! !! ##"
echo "Download of the installation package seems to have failed"
echo "Please check you're network settings and make sure the server is connected to the internet"
else
echo "Download successfull"
sleep 5
	echo "Creating folders (if needed)"
	if [ ! -e $EMUDIR ]
		then
		mkdir $EMUDIR
	fi
	if [ ! -e $EMUDIR/cccam ]
		then
		mkdir $EMUDIR/cccam
	fi
	if [ ! -e $EMUDIR/oscam ]
		then
		mkdir $EMUDIR/oscam
	fi
	if [ ! -e $EMUDIR/log ]
		then
		mkdir $EMUDIR/log
	fi
	if [ ! -e $EMUDIR/script ]
		then
		mkdir $EMUDIR/script
	fi
	if [ ! -e /var/etc ]
		then
		mkdir -p /var/etc
	fi
    if [ ! -e /home/cccam ]
		then
		mkdir -p /home/cccam
	fi
	echo "Unpacking installation files"
	tar -xvf $TEMPDIR/$PACKNAME -C $TEMPDIR
	echo "Moving script files to their right directory"
	mv -f $TEMPDIR/*.sh $EMUDIR/script
	chmod 755 $EMUDIR/script/*.sh
	VER=$(exec uname -r|grep amd64)
	if [ "$VER" = "" ]
		then VER="i386"
		else VER="AMD64"
	fi
	if [ "$VER" = "i386" ]
		then
		mv $TEMPDIR/CCcam.x86 $EMUDIR/cccam
		chmod 755 $EMUDIR/cccam/CCcam.x86
		else
		mv $TEMPDIR/CCcam.x86_64 $EMUDIR/cccam
		chmod 755 $EMUDIR/cccam/CCcam.x86_64
	fi
	if [ "$VER" = "i386" ]
		then
		mv $TEMPDIR/oscam $EMUDIR/oscam
		chmod 755 $EMUDIR/oscam/oscam
		else
		mv $TEMPDIR/oscam $EMUDIR/oscam
		chmod 755 $EMUDIR/oscam/oscam
	fi
echo "00 3   * * *   root    $EMUDIR/script/./configupdate.sh >> $EMUDIR/log/configupdate.log 2>&1" >> /etc/crontab
echo "15,45 *        * * *   root    $EMUDIR/script/./illegal.sh >> $EMUDIR/log/illegal.log 2>&1" >> /etc/crontab
echo "*/5 *  * * *   root    $EMUDIR/script/./check.sh >>/emu/log/check.log 2>&1" >> /etc/crontab
$(exec ln $EMUDIR/script/cccam.sh /bin/cccam)
echo "/bin/oscam start &" > /etc/rc.local
echo "/bin/oscript start &" > /etc/rc.local
echo "/bin/cccam start &" > /etc/rc.local
echo "/emu/script/runonce.sh &" >>/etc/rc.local
echo "exit 0" >>/etc/rc.local
echo "Downloading and installing various needed programs like apache, ftp, ssh..."
echo "This is needed for the webinfo tool to work"
echo "This might take some time to download and install (depending on computer and network speeds)"
apt-get -qq update > /dev/null 2>&1
apt-get -qq install apache2 -qy > /dev/null 2>&1
apt-get -qq install php5 -qy > /dev/null 2>&1
apt-get -qq install ssh -qy > /dev/null 2>&1
apt-get -qq install vsftpd -qy > /dev/null 2>&1
apt-get -qq install g++-4.4-multilib -qy > /dev/null 2>&1
apt-get -qq update > /dev/null 2>&1
apt-get install bzip2 -qy > /dev/null 2>&1
apt-get install gcc g++ cmake libpcsclite1 libpcsclite-dev subversion -qy > /dev/null 2>&1
mv -f $TEMPDIR/vsftpd.conf /etc/vsftpd.conf
cp -rf $TEMPDIR/phpinfo/* /var/www/
rm -f /var/www/index.html
mv -f $TEMPDIR/CCcam.cfg /var/etc/
mv -f $TEMPDIR/oscam.conf /usr/local/etc/
mv -f $TEMPDIR/oscam.user /usr/local/etc/
mv -f $TEMPDIR/oscam.server /usr/local/etc/
mv -f $TEMPDIR/rc.local /etc/
chown root /etc/rc.local
chmod 755 /etc/rc.local
echo "02 *   * * *   root    wget -O - http://127.0.0.1/cron_update.php?p=1 >/dev/null 2>&1" >> /etc/crontab
echo "30 *   * * *   root    wget -O - http://127.0.0.1/cron_ping.php?p=1 >/dev/null 2>&1" >> /etc/crontab
sleep 2
echo "################# Congratulations #################"
echo "You're server is ready to run."
echo "Demo configs included"
echo "Please reboot your machine now"
echo "linuxsat-support.com"
fi
exit

 
							
						



Comment