Image Tutorial - BlackHole - How to install softcams | vuplus-images.co.uk

Image Tutorial BlackHole - How to install softcams

Status
Not open for further replies.

Ten Below

Staff member
Admin
Joined
Sep 9, 2014
Messages
7,471
Likes
3,930
Points
528
Location
@vuplusimages
Website
vuplus-images.co.uk
#1
BlackHole - How to install softcams

Currently BlackHole do not provide softcams in their addons feeds installing them is easy though, here i will cover the 3 of the most common methods of installing on the BlackHole image.

Method 1: Install specially made BlackHole Cam files.
1. Fist visit this page & download the softcam you want to install: Download BlackHole Softcams
The files you download should have a .ipk or .tgz extension, if you have .rar or .zip extract the files before proceeding to the next step.

2. Use your favourite ftp client to transfer the cam install file to the /tmp location on your receiver in this example using DCC we see the /tmp location as a symlink pointing to /var/volatile/tmp, click on this then follow the second picture to transfer the file.

image_1.png

image_2.png

3. Now we can install the file using the remote, first press the Green button.

green.jpg

Now the yellow button.

yellow.jpg

If your file had the .tgz extension choose Manually install BH packages.

tgz1.jpg

If your file had the .ipk extension choose Manually install ipk packages.

ipk1.jpg

Now follow the on screen menu to complete the install.

image_1.jpg

image_2.jpg

image_3.jpg

Configure as necessary then the cam can be controlled from the blue button.

image_4.jpg

Method 2: vuplus-images-addons panel
1. First go to this page and download: vuplus-images-addons panel

2. Follow from step 2 above to install the ipk install file on your VU+.

3. Follow the pictures below to install your chosen cam(s).

green.jpg

1shot1.jpg

2shot2.jpg

3shot1.jpg


Method 3: Manually install cam script & binary files
Not recommended for beginners but you may find parts of this come in handy later.

1. Ftp your cam binary file to the /usr/bin/ directory then make it exectable (chmod 755).

2. your cam script needs to be named in the following way to showup in BlackHole Blue panel (softcam manager)
Ncam_CAM-NAME.sh
E.G
Ncam_CCcam.sh

Code:
#!/bin/sh

CAMNAME="CCcam"

remove_tmp () {
    rm -rf /tmp/*.info* /tmp/*.tmp*
}

case "$1" in
    start)
    echo "[SCRIPT] $1: $CAMNAME"
    remove_tmp
    /usr/bin/CCcam &
    ;;
    stop)
    echo "[SCRIPT] $1: $CAMNAME"
    killall -9  CCcam 2>/dev/null
    sleep 1
    remove_tmp
    ;;
    *)
    $0 stop
    exit 0
    ;;
esac

exit 0
Pay attention to the following lines:
CAMNAME="CCcam"
This text is used as your cam description in BlackHole blue panel.

/usr/bin/CCcam &
killall -9 CCcam 2>/dev/null

These must be named exactly the same as the cam binary file you want to start/stop that you have in /usr/bin/ from step 1.

Script for running more than 1 cam.
For example Oscam & CCcam together with CCcam starting 10 seconds later to stop it taking over the card reader.
Code:
#!/bin/sh

CAMNAME="Oscam/CCcam"

remove_tmp () {
    rm -rf /tmp/*.info* /tmp/*.tmp*
}

case "$1" in
    start)
    echo "[SCRIPT] $1: $CAMNAME"
    remove_tmp
    /usr/bin/oscam &
    sleep 10
    /usr/bin/CCcam &
    ;;
    stop)
    echo "[SCRIPT] $1: $CAMNAME"
    killall -9 CCcam 2>/dev/null
    sleep 3
    killall -9 oscam 2>/dev/null
    sleep 3
    remove_tmp
    ;;
    *)
    $0 stop
    exit 0
    ;;
esac

exit 0
If you need to change a cams config directory.
For example you have Oscam installed but want to add OscamYMOD then add to the cam starting line.
-c /path to custom directory
E.G
/usr/bin/oscam_ymod -c /etc/tuxbox/config/ymod &

Code:
#!/bin/sh

CAMNAME="Oscam_Ymod"

remove_tmp () {
    rm -rf /tmp/*.info* /tmp/*.tmp*
}

case "$1" in
    start)
    echo "[SCRIPT] $1: $CAMNAME"
    remove_tmp
    /usr/bin/oscam_ymod -c /etc/tuxbox/config/ymod &
    sleep 2
    ;;
    stop)
    echo "[SCRIPT] $1: $CAMNAME"
    killall -9  oscam_ymod 2>/dev/null
    sleep 1
    remove_tmp
    ;;
    *)
    $0 stop
    exit 0
    ;;
esac

exit 0
Send your cam scripts to the directory /usr/camscript & make them executable (chmod755), as soon as that is done they will show up in blue panel so then just a case of adding your configs. Example scripts attached below.

Have Fun.
:tenb:
 

Attachments

Last edited:
Status
Not open for further replies.

Similar threads

Top