Script to restart CCcam - posted in [EN] Enduser support: Hi! CCcam stops working by itself daily, and the EMU must resetartes manually every day! How to put commandos inside crontab to prevent CCcam stops? Because the script attempts to detect 'random-looking' bytes, it has a small chance of failing to detect the service when the data do not seem random enough. Jun 18, 2013 This is an automated installation script for Linux PC based cardsevers. The original scripts written by Youknowwho (R.I.P), this is.
- Javascript Install
- Julionib Flash Script Install
- Rpg Maker Xp Script Install
- Java Script Install On Internet Explorer
Here you can download vdr-1.7.21 sources with common plugins already patched to work with vdr-1.7.21. It is ready for 64 bits.
I still use Ubuntu 10.04 on my desktop, but for a dedicated HTPC if you can get it working, Archlinux will yield better performance.
So I've rebuilt my system with exactly the same hardware but using a recent Archlinux 64bits installation cd and the results are impressive:
a) Just X server running, no Gnome or KDE which makes it very fast and responsive
b) Zap time is less than a second
c) BBC HD for example works perfectly
d) CCcam 2.1.4 working fine (this would also be true if you installed for example ubuntu 10.04)
e) Aesthetically very slick as TV, Videos, DVD are all more integrated
f) Rock-solid stable
g) Hard drive usage: 2.7GB
h) Archlinux is a rolling release, so no need to reinstall in order to upgrade EVER
i) I've built a 32bits (Pentium 4 or celeron) and a 64bits (Any 64bits AMD or Intel cpus) release
j) For XMBC user the xvdr addon and matching vdr plugin xvdr
I've abandoned oxine because it is basically a dead project, a serious bug was reported back in January and no effort has been made to fix it.
So I am using MMS (My media system) exclusively as a frontend as I discovered the Game menu can be used to launch bash scripts.
Contact me if you would like a dvd or download link
![Script Script](/uploads/1/2/6/4/126427602/675120627.jpg)
This image would need to be installed on the first partition of your hard drive (/dev/sda1) or alternatively modify /etc/fstab to account for the different location.
Note: If you have Ubuntu 8.x or 9x the latest CCcam version that will work is: CCcam 2.1.2
FOREWORD: This tutorial is for Ubuntu 8.10
It should work with Ubuntu 8.04 but with Ubuntu 9.04 or 9.10 you may face problems (for example the skinenigma plugin will fail to compile although if you use the one on my binaries should be fine)
If you are running ubuntu 9.10 then you might want to make your life easier by simply adding these 2 repositories:
(thanks to hotzenplotz5 (see page 19 of this thread)
You can find there: vdr-1.7.9 + plugins (120) + xine-vdpau etc
https://launchpad.net/~hotzenplotz5/+archive/ppa
The background.
I had a Dreambox 7020 and was happy enough with it but one day HD finally came in the horizon.
I looked at a Dreambox 800, ipbox revo, and a couple of other linux based HD sat receivers. None was satisfying.
So I set out to build my own. If this tutorial intimidates you or time is precios to you, drop me a private message and I can send you a bootable restore dvd that is all up and running.
The goal of this howto is to build a functional HTPC with HD satellite tv and HDMI output at 1080p (1920×1080 16:9). The idea is for a dedicated machine. We assume a brand-new installation and given the complexity of the tutorial the reasonable way to undo all the changes is to reinstall Ubuntu.
VDR 1.7.10 (see screenshots) is the heart of this project (thanks to Klaus.Schmidinger for his tremendous work and for his patience answering my questions, thanks to Shalafi for his own tutorial and for moderating an excellent satellite forum, and to Winfried for his channels scanning and rotor coding for VDR)
If you rather use VDR 1.7.0 then see my other thread
The hardware I chose:
- Motherboard: Abit A-N78HD with the Geforce 8200 IGP
or ASUS M3N78-VM AM2 (both work fine with OSS but the Abit can not do HDMI sound with ALSA)
- CPU : AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
- Thermalite silent fan
- Memory : 2 GB DDR2-800 (2X 1 GB)
- DVD-drive : LG GGC-H20LRB (DVD-RW, Blu-Ray and HDDVD)
- Harddisk : 160GB
- Budgetcard : Hauppauge WinTV NOVA-HD-S2
All this, is connected to a Panasonic FullHD LCD-TV using the onboard HDMI connector with the nvidia closed sources driver 180.53
VDR has many plugins, some more frequently maintained than others.
The exact set of plugins you use is up to you and your needs.
This is my current set of VDR plugins:
DOWNLOAD HERE my /usr/local/src/vdr-1.7.9 with all the plugins and patches listed below: (just do sudo make install )
vdr (1.7.10/1.7.10) - The Video Disk Recorder
femon (1.7.4) - DVB Signal Information Monitor (OSD)
osdteletext (0.8.3) - Displays teletext on the OSD
pluginsetup (0.0.6) - Plugin Setup
timeline (1.0.141-kw001) - Show timer overview and collisions
imdbsearch (0.3.6) - Searches the IMDb
skinenigmang (0.1.0) - EnigmaNG skin
quickepgsearch (0.0.1) - Quick search for broadcasts
satlist (0.0.2) - Channel list for satellite sorting
premiereepg (0.2.0) - Parses extended Premiere EPG data
epgsearchonly (0.0.1) - Direct access to epgsearch's search menu
systeminfo (0.1.1) - Display various system informations
control (0.0.2a-kw3) - Control VDR over terminal or telnet
epgsearch (0.9.25.beta13) - search the EPG for repeats and more
mplayer (0.10.1) - Media replay via MPlayer
conflictcheckonly (0.0.1) - Direct access to epgsearch's conflict check menu
osdadjust (0.0.3) - Adjust OSD Size and Position
setup (0.3.1-zulu-edition) - VDR-Setup Extension
chanman (0.0.8) - Channel manager plugin
wirbelscan (0.0.5-pre08) - DVB and pvrinput channel scan for VDR
ttxtsubs (0.1.0) - Teletext subtitles
sc (1.0.0pre-HG-85fce21e5440+) - A software emulated CAM
skinreel (0.0.1) - Reel Skin-Plugin
xine (0.9.3) - Software based playback using xine
1. The Sound of Music: ALSA or OSS
Note: I use OSS as with ALSA couldn't get sound over HDMI.
Current OSS as of 2th July 2009 is OSS 4.1-1052
You need to edit /etc/modprobe.d/blacklist-local and blacklist nv and nvidia-new drivers to avoid conflicts in the next step. If you have decided to install OSS then you need to blacklist snd_hda_intel as well
sudo gedit /etc/modprobe.d/blacklist-local
2. NVIDIA drivers
NVIDIA drivers as of 180.50 or earlier do not work with this motherboard (I have tried the beta 185.18.10 driver and it did not work for me but 185.18.08 works)
If somebody can confirm they make a difference please let me know version and motherboard you have.
Instead download NVIDIA 177.82 and install it. Reboot and you should have 1080p resolution
Note: If you want VDPAU accelearation and your NVIDIA card supports it (8xxx or 9xxx series) then you can install
NVIDIA 185.18.10 instead
3. ALSA OR OSS
To the best of my knowledge if you want the audio output through the HDMI connector straight to your TV you will need to install OSS and disable ALSA.
But this is not without problems as OSS will work for 6 months and will require reinstallation every 6 months (unless you purchase a licence from them)
So if you want audio over HDMI install OSS, otherwise stick with ALSA for simplicity
Installing OSS:
We go to the oss website and download oss:
http://www.opensound.com/download.cgi
We choose linux 2.6 - deb - x86
Once you have followed the above guide to install OSS modify /usr/lib/oss/soundon.user
so it looks like this:
Click on System, Preferences, Sound and select OSS all over.
Reboot and you should have 1920x1080 with audio over HDMI by default
or ALSA:
To upgrade to the latest ALSA drivers do the following:
copy and paste the following text, save the file
Now to test audio over HDMI is working type this:
You should hear some static noise (that means it works)
You could also try
wget http://www.vorbis.com/music/Epoq-Lepidoptera.ogg
aplay -Dplughw:0,3 Epoq-Lepidoptera.ogg
4. Install this driver and firmware ONLY if you have a Hauppauge WinTV NOVA-HD-S2
S2-API is the driver standard that will work out of the box starting with kernels 2.6.28.
First the firmware.. (thanks to Ahmed Y Shaheem for the tip)
And now the driver..
You know you have the drivers installed and running when under
/dev/dvb/adapter0/ you see:
5. w_scan: Scan util
Time to test your hardware is so far all working
Open the terminal
NOTE: wierbel scan is the best satellite scanner,current versions support Cable, Terrestrial even rotors and DVB-S2 channels!
An English Howto for w_scan can be found here
The latest w_scan can be found here
open the newly created channels.conf and check it does contain lots of channels
6. FFmpeg
This little piece of software is part or the better known VLC
We are about to compile our own. You can find more info on HOWTO: Install and use the latest FFmpeg and x264
but for vdr we also need --enable-postproc which is not part of that ffmpeg Howto, but otherwise a useful reference guide if you need
more info on compiling x264
7. Xine-Lib 1.2 CVS:
Here is my patched xine-lib1.2.deb package
http://www.ziddu.com/download/499596..Dx386.rar.html
with vdpau and faster zapping.
If it works for you great, else compile your own as per the instructions following.
NOTE:
Don't download the vdpau patch for xinelib directly from the wget line.
The maintainer keeps the patch update with the xinelib main version. Just have a look to his page:
http://www.jusst.de/vdpau/files/xine-lib-1.2/?C=M;O=D
and download the latest patch.
If make fails then edit gedit /usr/local/src/xine-lib-1.2/src/audio_dec Look for -ldts_pic and add -lm after it.
8. Xine-UI-cvs
To configure the Hauppauge remote control that comes with the NOVA HD-S2
- Select Hauppauge Nova-T 500, press next
- Select None, press next
- Select something ending with --event-ir, press ENTER
mine looks like this:
/dev/input/by-path/pci-0000:01:0a.0--event-ir
Either the Nova-T 500 remote is not identical to the Nova-HD-S2 one
or the config files for the Nova-T 500 are buggy, but some 10 keys were dead.
Create the next 5 files to have a fully working Hauppaugge Nova-HD-S2 RCU
The following file is ONLY for the Hauppaugge Remote that comes with the NOVA-HD-S2.If your remote is not the one that comes with the Hauppagge S2-HD check this for help
[/p]
The next file will ensure lirc has full access to your Hauppaugge Remote
The next 4 files will basically leave the remote that came with your Hauppaugge NOVA-HD-S2 fully configured
with all keys working as they should
From the terminal run irw
and press keys on your remote control, if you see stuff on the terminal as you press keys, you are doing very well indead.
Test xine works by typing xine in the terminal or create a launcher to that effect
9. VDR 1.7.10
First we create the daemon script
/etc/init.d/vdr
Paste the following text and save
Now we will download and compile VDR 1.7.10 with Extensions-Patch-72b
Next copy and paste the following Make.config
And final bunch of commands for VDR1.7.8
10. VDR Plugins and automation (including CCcam scripts)
Have a look here for patches:
and here in German (many more plugins)
Back to the terminal!!:
(optional)Femon - Signal Information plugin http://www.linuxtv.org/vdrwiki/index.php/Femon-plugin
(optional)Streamdev plugin (needed only if you plan to use XBMC) http://streamdev.vdr-developer.org/
Add to Make.config above the following line (after SETUP = 1 )
Now recompile VDR with this extension support:
(optional)Enigma skin (looking a bit like a Dreambox with picon..)
Optional - Rotor Plugin - To move a dish and store positions, gotoX, etc
Javascript Install
REMOVE in Make.config (if it exists)the line with: * see note at foot of page
ROTOR = 1
sc TRUNK - softcam plugin (Needed for CCcam)
(Optional) Setup plugin (needed if you want CCcam info or ecm.info or to be able to run bash scripts from VDR)
Make sure you have applied the Extensions patch (tested with 70) to VDR and that there is a line in Make.config
that reads:
SETUP = 1
Now we create a sample menu configuration file
And ..
(Optional) Skin Reel - VDR Skin
WIRBEL SCAN - PLUGIN to scan channels VDR
Download vdr-wirbelscan-0.0.4b_20090416.tgz to /usr/local/src/vdr/PLUGINS/src
(The file is available as an attachment in this thread)
XINE - VDR Xine plugin, needed for OXINE to connect to VDR
For CCcam first lets create the scripts that will run it (DO NOT RUN CCcam.x86 from the command line!)
You will need CCcam.x86 in /var/bin but this tutorial will not cover where to obtain such a file if it really exists!
And paste there the following code (and save it)
Finally the CCcam wrapper and setting CCcam to start automatically upon booting, especially handy if you are running a server
as if the process CCcam.x86 dies it will be automatically restarted
11. OXINE - The cherry on the cake
OXINE can be used as a VDR FRONTEND (able to play DVDs, Music, Video files) already patched for VDR and in a .deb format (tested under Ubuntu 8.10) Make sure you installed the XINE plugin before (see instructions above in the VDR-plugins section)
Bear in mind oxine has no vdpau support as such but since it can launch external commands (like bash scripts) it is possible to configure oxine to call mplayer or xine with the right set of parameters to use vdpau. I have written a few
scripts that make all this work transparently but they are not part of this tutorial.
The basic script to have xine with vdpau using oxine as the frontend is:
sudo gedit /usr/sbin/tvoxi.sh
sudo touch /etc/init.d/oxine
sudo chmod 755 /etc/init.d/oxine
sudo gedit /etc/init.d/oxine
For vdpau in mainmenu.xml replace later on the Watch TV command with the following:
Now, we are going to install a special oxine.deb patched with VDR support (but not vdpau other than as external commands)
Download oxine-vdr-patched_0.7.1-1_i386.deb
NOTE:These config files assume you are logged on as user tv
If this is different please amend accordingly!!
Alternative installation for oxine is the .deb does not work for you, compile your own:
Notes:
a) If oxine gives you an error about PNG files then you probably need a different ffmpeg version. This is the thing with downloading SVN sources
sometimes something is broken temporarily. </p>
b) If you are trying this on Ubuntu 9.04 save yourself a lot of hassle and try kaffeine first, if you can get any free to air channels to work there, <BR>
then this guide for VDR is for you, otherwise do not bother.
VDR screenshots
DOWNLOAD HERE my /usr/local/src/vdr-1.7.9 with all the plugins and patches you (probably) need
NOTES:
If you have freezing with HD channels check the following:
a) in /etc/X11/xorg.conf make sure Option 'Composite' 'Disabled'
b) swith to a SD channel, run this command and then try again the HD channel:
Do you want to own a house in the Spanish Tuscany?
- vdr.png (484.6 KB, 438 views)
- rotor-0.1.4S2API.tar.gz (39.6 KB, 248 views)
- vdr-wirbelscan-0.0.4b_20090416.tar.gz (46.2 KB, 239 views)
- oxine_config_files.tar.gz (6.8 KB, 155 views)
- vdr1.7.7patches.tar.gz (143.0 KB, 131 views)
Started by kokar, 18 Nov 2012 19:17
- Please log in to reply
16 replies to this topic
#1kokar
- Member
- 11 posts
0
Neutral Posted 18 November 2012 - 19:17
Hi!CCcam stops working by itself daily, and the EMU must resetartes manually every day!
How to put commandos inside crontab to prevent CCcam stops?
Is there a script for this?
Thanking you in advance!
My tuner;
DM7020 HD
PLI 3.0 Beta (updates f4rom 16.11.2012)
Regards
kokar
Edited by kokar, 18 November 2012 - 19:19.
Re: Script to restart CCcam#2littlesat
- PLi® Core member
- 48,865 posts
+520
Excellent Posted 18 November 2012 - 19:20
/etc/init.d/softcam restart
WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W
Re: Script to restart CCcam#3kokar
- Member
- 11 posts
0
Neutral Posted 1 May 2013 - 18:20
I dont understand what you wrote
Could you pls explain for me?
Regards
kokar
/etc/init.d/softcam restart
Re: Script to restart CCcam#4littlesat
- PLi® Core member
- 48,865 posts
+520
Excellent Posted 2 May 2013 - 07:16
That is a command line to start CCcam (or any emu). Download bar one 6.0 lite software.
WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W
Re: Script to restart CCcam#5hemispherical1
- Senior Member
- 1,596 posts
+49
Good Posted 2 May 2013 - 19:09
Maybe a script like this, run from cron, after you verify it works manually..
If you're running a different version of CCcam, named differently, edit the script to match..
--
hemi
Re: Script to restart CCcam#6kokar
- Member
- 11 posts
0
Neutral Posted 4 May 2013 - 21:13
Many thanks for answer, but where can find the cron? Where should I write the CCcam version; I use CCcam221
Would you please explain step by step and thanks in advance!
Regards
kokar
Re: Script to restart CCcam#7hemispherical1
- Senior Member
- 1,596 posts
+49
Good Posted 5 May 2013 - 16:03
Many thanks for answer, but where can find the cron? Where should I write the CCcam version; I use CCcam221
Would you please explain step by step and thanks in advance!
Regards
kokar
If your cam binary was named CCcam221 then the script would look like
Personally I use the 'crontab -e' command to configure my cron jobs, but that requires a basic understanding of the Vi editor. You may find it easier to just create a text file named root (not root.txt, just root) containing a line like:
*/5 * * * * /path/to/script/above
or
*/5 * * * * /usr/bin/camcheck
etc..
That'd run the script every 5 minutes to check and restart cam if needed. */1 would check every minute, */2 every 2 minutes, etc.. Copy the root file to /etc/cron/crontabs (resulting in /etc/cron/crontabs/root). If you created the file in windows, make sure Windows didn't add a hidden .txt extension. I don't 'think' M$ carriage returns would choke the DB, but if the script or cron doesn't want to run, telnet into the box and run the dos2unix command on the relevant files, something like:
dos2unix /etc/cron/crontabs/root
dos2unix /usr/bin/camcheck
For more details on cron use:
http://lmgtfy.com/?q=dreambox+cron+use
--
hemi
Re: Script to restart CCcam#8kokar
- Member
- 11 posts
0
Neutral Posted 8 May 2013 - 17:13
1000 thanks dear hemispherical1 for ur very clearly explaining. Now I know how to make CCcam restart automaticly.
Best regards
kokar
Re: Script to restart CCcam#9kokar
- Member
- 11 posts
0
Neutral Posted 8 May 2013 - 17:29
Hi again Hemi.
should I have a file called 'camcheck' in user/bin or its not needed?
Regards
kokar
Re: Script to restart CCcam#10hemispherical1
- Senior Member
- 1,596 posts
+49
Good Posted 8 May 2013 - 18:47
The script above has to be saved as an executable file somewhere in the DB's filesystem. In the example I named it camcheck and placed it in /usr/bin, but you may name it whatever you like and place it wherever you like as long as you know where it is.. I'll let you..
--
hemi
Re: Script to restart CCcam#11kokar
- Member
- 11 posts
0
Neutral Posted 13 September 2013 - 18:37
Thanks again! Just wanted to say that its working perfect for me now and cccam never stopps
Regards
kokar
Re: Script to restart CCcam#12satwalker
- Member
- 23 posts
0
Neutral Posted 2 February 2014 - 18:52
please can you add the file's here for cccam restart script i have the same problem
Samsung LE-40F8000 & VUDUO2+SANDISK SSD-480GB & VISIOSAT BIG-BISAT Multi-Beam Antenna & Linksys WAG360N
Re: Script to restart CCcam#13MiLo
- PLi® Core member
- 13,875 posts
+290
Excellent Posted 2 February 2014 - 19:57
If the Cccam process really dies, then you're better of surrounding it with a shell script and restart it whenever it crashes.
Something like:
$ CCcam.sh
while true
do
CCcam
sleep 1
done
Much quicker than monitoring.
Of course, not having it crash would be even better..
Something like:
$ CCcam.sh
while true
do
CCcam
sleep 1
done
Much quicker than monitoring.
Of course, not having it crash would be even better..
Real musicians never die - they just decompose
Re: Script to restart CCcam#14hemispherical1
- Senior Member
- 1,596 posts
+49
Good Posted 2 February 2014 - 20:12
I can't really post 'the files' as they are dependent on the file names and paths on your receiver.
That is why the 'examples' are posted above, so people can make any edits that they might require and copy them into place, test them and make any changes that may be required. Then they can use cron to run the script on a schedule.
There should be enough information in this thread to make it work, everyone else appears to have been able to do it. If you get stuck somewhere, like cron for example, google is your friend. Search terms like dreambox, cron, schedule, etc..
Good luck,
--
hemi
Edited by hemispherical1, 2 February 2014 - 20:13.
Re: Script to restart CCcam#15urick
- Senior Member
- 28 posts
0
Neutral Posted 4 February 2014 - 18:41
please can you add the file's here for cccam restart script i have the same problem
Change cccam version on 2.1.3 and everything well work fine, without freeses..
DM800HD Se, OpenPli 4.0
LANS-90 to 36E
Re: Script to restart CCcam#16tsuka18
- Member
- 8 posts
0
Neutral Posted 9 February 2014 - 17:09
hi,
I run cccam 230 but time to time I get the same problem ???
![Cccam auto install script for ubuntu Cccam auto install script for ubuntu](https://hdbox.ws/wp-content/uploads/posts/2015-08/1438865215_tf1soclcykgfmi43cxi8og.png)
Re: Script to restart CCcam#17ajeeb
- Senior Member
- 385 posts
0
Neutral Posted 9 February 2014 - 21:53
Many thanks for answer, but where can find the cron? Where should I write the CCcam version; I use CCcam221
Would you please explain step by step and thanks in advance!
Regards
kokar
If your cam binary was named CCcam221 then the script would look like
Personally I use the 'crontab -e' command to configure my cron jobs, but that requires a basic understanding of the Vi editor. You may find it easier to just create a text file named root (not root.txt, just root) containing a line like:
*/5 * * * * /path/to/script/above
or
*/5 * * * * /usr/bin/camcheck
etc..
That'd run the script every 5 minutes to check and restart cam if needed. */1 would check every minute, */2 every 2 minutes, etc.. Copy the root file to /etc/cron/crontabs (resulting in /etc/cron/crontabs/root). If you created the file in windows, make sure Windows didn't add a hidden .txt extension. I don't 'think' M$ carriage returns would choke the DB, but if the script or cron doesn't want to run, telnet into the box and run the dos2unix command on the relevant files, something like:
dos2unix /etc/cron/crontabs/root
dos2unix /usr/bin/camcheck
For more details on cron use:
http://lmgtfy.com/?q=dreambox+cron+use
--
hemi
much better use nano
cd /sbin
wget http://downloads.nas-central.org/LS2_MIPSel/Packages/mipsel-nano_2.0
mv mipsel-nano_2.0 nano
chmod +x nano
Julionib Flash Script Install
ET9000,DM500s+usbTTdvb-3600 ,DVB2000,Humax5400, MACbook PRO retina 13', MAC pro 2 x Quad XEON-2.8GB , 8GB ECC, 4TB+FusionDrive(SSD) , LG-24FHD, HD6870,Debian server
Other search results for Elementi Di Fisica Vol 2 Mazzoldi Nigro Voci Pdf: Mazzoldi Nigro Voci. Free ebook download as PDF File (.pdf) or read book. Mazzoldi Nigro Voci - Fisica 2.pdf - Free ebook download as PDF File. Documents Similar To Mazzoldi Nigro Voci - Fisica 2.pdf. Elementi Di Fisica 2 mazzoldi. Fisica 2 - Elettromagnetismo E Onde (Mazzoldi, Nigro, Voci)Titolo: Fisica Volume 2 Elettromagnetismo Onde. Autori: Mazzoldi Paolo, Nigro Massimo, Voci Cesare. Elementi Di Fisica 2 Mazzoldi Pdf Merge. Mazzoldi, Nigro, Voci - Elementi di Fisica, vol. Voci, Elementi di Fisica – Elettromagnetismo - Seconda edizione,. Elementi di fisica 2 mazzoldi nigro voci pdf download.
'Since the dawn of our species, Man has been blessed with curiosity'
Back to [EN] Enduser support
Rpg Maker Xp Script Install
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users
Java Script Install On Internet Explorer
Reply to quoted postsClear
- Forums
- →PLi® Support
- →[EN] Enduser support
- Change Theme
- IP.Board
- IP.Board Mobile
- English (USA)
- English (USA)
- Dutch (Nederlands)
- Mark Community Read
- Forums
- Members
- Mark all as read
- Help