-TO INSTALL NEWCAMD ON ORIGINAL DMM IMAGES IN 5 MINUTES AND 15 STEPS,
WITHOUT UNPACKING AND REPACKING THEM
Hi
just prepared a new simple doc, which explains how to install newcamd on original images, WITHOUT UNPACKING THEM, and without headaches Only 15 steps:
1) install an original DMM image
2) Create directory /var/bin, from Telnet:
mkdir /var/bin [enter]
3) On newcamd zip (unzipped) archive, rename the file newcamd.ppc to newcamd and copy it to /var/bin (with a FTP proggy)
4) On newcamd archive, rename the file betad.dream to betad and copy it to /var/bin (with a FTP proggy)
5) On newcamd archive, rename the file cardserver.dream to cardserver and copy it to /var/bin (with a FTP proggy)
6) Now give permissions 755 to all these files just copied, from Telnet:
chmod 755 /var/bin/* [enter]
7) Create directory /var/lib, from Telnet:
mkdir /var/lib [enter]
Get (from newcamd archive) the library "libcrypto.so.0.9.7" and put it to /var/lib (with a FTP proggy)
9) Now the hardest part... ;-)))
Copy the following lines, all together.
Then paste them into Telnet window and press [enter] key, when Telnet window end scrolling.
These lines will build the 3 files needed for configuring newcamd and cardserver (with original cards), and the init file for starting emu and cardserver at boot.
10) let's start with "newcamd.conf", all needed settings:
CFG="/var/tuxbox/config/newcamd.conf" && \
echo "DEMUX_API = 2" > $CFG && \
echo "BOX_TYPE = DM7000" >> $CFG && \
echo "CONTROL_WORD_DEVICE = CA" >> $CFG && \
echo "CA_API = 3" >> $CFG && \
echo "GTX_OUTPUT_MODE = 16" >> $CFG && \
echo "PMT_UPDATE_WATCH = no" >> $CFG && \
echo "EMU = yes" >> $CFG && \
echo "PREFER_EMU = yes" >> $CFG && \
echo "DISABLE_CAM = yes" >> $CFG && \
echo "CAM_CASYS = 17" >> $CFG && \
echo "AU = yes" >> $CFG && \
echo "SHOW_ALL_CA_SYSTEMS = no" >> $CFG && \
echo "OSD = none" >> $CFG && \
echo "OSD_WEB_LOGIN = root:dreambox" >> $CFG && \
echo "CA_INFO_FILE = /tmp/cainfo.txt" >> $CFG && \
echo "DEBUG_ECM = no" >> $CFG && \
echo "DEBUG_EMM = no" >> $CFG && \
echo "DEBUG_CWS = no" >> $CFG && \
echo "DEBUG_CAM = no" >> $CFG && \
echo "DEBUG_CAM_HEX = no" >> $CFG && \
echo "SHOW_CW = no" >> $CFG && \
echo "SHOW_PAT = no" >> $CFG && \
echo "SHOW_PMT = no" >> $CFG && \
echo "SHOW_ECM = no" >> $CFG && \
echo "SHOW_CAT = no" >> $CFG && \
echo "SHOW_EMM = no" >> $CFG && \
echo "SHOW_CWS_ECM = no" >> $CFG && \
echo "SHOW_CWS_EMM = no" >> $CFG && \
echo "EMM_REPORT_WRONG_SIG = no" >> $CFG && \
echo "OSD_WAIT_TIME = 2000" >> $CFG && \
echo "DEFAULT_CW_DELAY = 500" >> $CFG && \
echo "RELOAD_CONFIG_ON_ZAP = yes" >> $CFG && \
echo "RELOAD_KEYLIST_ON_ZAP = no" >> $CFG && \
echo "CWS = dreambox 10000 root dreambox 01 02 03 04 05 06 07 08 09 10 11 12 13 14 lan cardserver" >> $CFG && \
echo "CWS = dreambox 10001 root dreambox 01 02 03 04 05 06 07 08 09 10 11 12 13 14 lan cardserver" >> $CFG && \
echo "CWS_CONNECT_TIMEOUT = 20" >> $CFG && \
echo "CWS_INCOMING_PORT = 12000" >> $CFG && \
echo "CWS_DEBUG_PORT = 12001" >> $CFG && \
echo "ADMIN_PASSWORD = secret 00 00 00 00 00 00 00 00 00 00 00 00 00 00" >> $CFG
11) and now cardserv.cfg - same as before: remember to press [enter] after pasting of the lines:
CFG="/var/tuxbox/config/cardserv.cfg" && \
echo "DESKEY = 01 02 03 04 05 06 07 08 09 10 11 12 13 14" > $CFG && \
echo "SERVER_NAME = cardserver" >> $CFG && \
echo "DEBUG_PORT = 12002" >> $CFG && \
echo "ENTITLEMENT_PORT = 12003" >> $CFG && \
echo "ADMIN_PORT = 12004" >> $CFG && \
echo "ADMIN_PASSWORD = secret 00 00 00 00 00 00 00 00 00 00 00 00 00 00" >> $CFG && \
echo "USER = root dreambox lan dreambox 12000" >> $CFG && \
echo "SERIAL_PORT = 0" >> $CFG && \
echo "TCP_PORT = 10000" >> $CFG && \
echo "EMM-G = yes" >> $CFG && \
echo "EMM-S = yes" >> $CFG && \
echo "EMM-U = yes" >> $CFG && \
echo "SPECIAL_FEATURES = yes" >> $CFG && \
echo "SERIAL_PORT = 1" >> $CFG && \
echo "TCP_PORT = 10001" >> $CFG && \
echo "EMM-G = yes" >> $CFG && \
echo "EMM-S = yes" >> $CFG && \
echo "EMM-U = yes" >> $CFG && \
echo "SPECIAL_FEATURES = yes" >> $CFG
12) AND, finally... :-)))
the start file (init).
We can't obviously edit the standard rcS file, because we haven't unpacked the image, as our goal is to install newcamd without unpacking... ;-)))
So, we will use /var/etc/init instead.
Here's Our last cut&paste for building /var/etc/init:
IN="/var/etc/init" && \
echo "[ -e /var/etc/menu ] && /var/etc/menu" > $IN && \
echo "touch /tmp/.enigma" > $IN && \
echo "while [ -e /tmp/.enigma ]" >> $IN && \
echo "do" >> $IN && \
echo "rm -rf /tmp/camd.socket" >> $IN && \
echo "/var/bin/cardserver" >> $IN && \
echo "/var/bin/newcamd" >> $IN && \
echo "/bin/enigma" >> $IN && \
echo 'ret=$?' >> $IN && \
echo 'case $ret in' >> $IN && \
echo "0)" >> $IN \
echo "rm /tmp/.enigma" >> $IN && \
echo "/sbin/halt" >> $IN && \
echo ";;" >> $IN && \
echo "3)" >> $IN && \
echo "killall -9 newcamd" >> $IN && \
echo "killall -9 cardserver" >> $IN && \
echo "rm /tmp/.enigma" >> $IN && \
echo "umount /var" >> $IN && \
echo "umount /hdd" >> $IN && \
echo "sleep 2" >> $IN && \
echo "/tmp/reboot" >> $IN && \
echo ";;" >> $IN && \
echo "4)" >> $IN && \
echo "rm /tmp/.enigma" >> $IN && \
echo "/sbin/reboot" >> $IN && \
echo ";;" >> $IN && \
echo "*)" >> $IN && \
echo ";;" >> $IN && \
echo "esac" >> $IN && \
echo "killall -9 newcamd" >> $IN && \
echo "killall -9 cardserver" >> $IN && \
echo "done" >> $IN && \
echo "/sbin/reboot" >> $IN && \
chmod 755
13) If you want, you can check now for the presence of the three auto-builded files:
/var/tuxbox/config/newcamd.conf
/var/tuxbox/config/cardserv.cfg
/var/etc/init
14) Restart Dreambox!
15) DONE!!! After restarting, you'll have an original image with Newcamd 5.18 installed and working.
It is that easy!! :-))))
NOTE:
If you do flash erase, you will lost all the insterted and edited files... so... DON'T do flash erase!