polarbear
Huoltovalikon jäsen
Tehdäänpä oma emu(tms) paketti SDT imageen
Seuraavat ohjeet ovat peräisin Sat Industryn foorumilta, ja kokeiltaessa toimivat vallan mainiosti (GBOX koeasennettiin uusimpaan SDT:n imageen):
Building a “manual install-package” for SDT
This document will elaborate on how to build a “manual install-package” for the
recent SDT-images, being DaVinci Tertia and Quarta.
No rights whatsoever can be claimed from this document. It is purely
meant for people to be able to create install-packages which aren’t officially
made by the developer from SDT-team. It is not meant as a protest against
the SDT-team, as I think they are doing a GREAT job. Because I don’t poses
the knowledge to code things myself, I just try to help out in other area’s…
Errors and mal-functioning machines cannot be blamed upon this
document. It’s a proven concept.
Creating a “manual install-package” is mostly done for emulators, since they
require somewhat more work than an ‘ordinairy’ plugin, and Emuboss has to
know that it’s there…
For this example I’ll use newcamd 5.28 (cardserv and newcamd).
Beware: Linux is case-sensitive, so use the commands exactly like they are
used here!
The sign “|” is presented when you use Shift+\ on a Qwerty-keyboard using USInternational
layout…
Creating the structure
First off, create a sub-directory in /var/tmp, like /var/tmp/test, since you do not
want to do all this in the regular /var-structure…
mkdir /var/tmp/test
Next, create the directory-structure you’ll be needing:
cd /var/tmp/test
mkdir var
mkdir var/bin
mkdir SDT
mkdir tmp
mkdir var/tuxbox/
mkdir var/tuxbox/config
mkdir uninstal
After this you’ll be needing the files themselves… Place the files as needed:
cardserv: /var/tmp/test/var/bin
newcamd: /var/tmp/test/var/bin
cardserv.cfg: /var/tmp/test/var/tuxbox/config
newcamd.conf: /var/tmp/test/var/tuxbox/config
And place the appropriate rights to the files:
chmod 755 /var/tmp/test/var/bin/cardserv
chmod 755 /var/tmp/test/var/bin/newcamd
sdt.ins
Now for the tricky part. SDT has (I think véry wisely so!) placed a check in their
install-procedure. This procedure will check if a file called ‘sdt.ins’ is present in
the directory /var/tmp. If not, it will not proces! This file is only holding the text
“#SDT#” so it doesn’t do anything at all. To create it, type:
echo “#SDT#” > /var/tmp/test/var/tmp/sdt.ins
Now test it:
cat /var/tmp/test/var/tmp/sdt.ins
It should give the following output
#SDT#
Done here.
.emu
Unlike Gemini, but very much like ruDream, SDT doesn’t use scripts, but an
emu-manager, called emuboss. This is a separate process and is shown when
you use the command ‘ps|grep emu’:
ps|grep emu 237 root 252 S /var/SDT/emuboss
To let emuboss know there’s a new player in town, you’ll need to place a file with
the extention .emu in the directory /var/SDT. The layout of this file is:
<Name of the emu / This is what is shown under Blue Button>
<Command 1>
<Command 2>
<Command 3>
Etc.
###
I
n this example it should be:
Newcamd 5.28
cardserv
sleep 5
newcamd
###
To make such a file, use the following commands:
cat > /var/tmp/test/var/SDT/newcamd.emu
Newcamd 5.28
cardserv
sleep 5
newcamd
###
Press Ctrl+d to close the file. To test the file, use:
cat /var/tmp/test/var/SDT/newcamd.emu
The output should look the same:
Newcamd 5.28
cardserv
sleep 5
newcamd
###
Prepare Uninstalling
To make a succesfull installment, I think, you’ll have to be able to remove all the
files you placed, and to leave your dreambox as clean as it was before.
To achieve this, you can do this manually, or you can let “the image” do it by
creating a file which is called exactly the same as the .emu-file you created
earlier, and replacing ‘.emu’ with ‘.un’.
So in this case you’ll need to create a file called ‘newcamd.un’ in the directory
/var/tmp/test/var/uninstall, and put in all the files you want to be removed by “the
image”. Before you remove any file, you’ll want the processes that can be run
from the package, to be killed.
The file in this example can be created with the following commands:
cat > /var/tmp/test/var/uninstall/newcamd.un
#Newcamd 5.28
killall -9 cardserv newcamd
rm -f /tmp/camd.socket
sleep 2
rm -f /var/bin/newcamd
if [ ! -e /var/bin/mgcamd ]
then
if [ ! -e /var/bin/camxng ]
then
rm -f /var/tuxbox/config/newcamd.conf
fi
fi
if [ ! -e /var/bin/mgcamd ]
then
rm -f /var/bin/cardserv
rm -f /var/tuxbox/config/cardserv.cfg
fi
rm -f /var/SDT/newcamd.emu
rm -f /var/uninstall/newcamd.un
Again, press Ctrl+d to close the file, and place the rights:
chmod 755 /var/tmp/test/var/uninstall/newcamd.un
The file /tmp/camd.socket holds the connection to the local system. It needs to
be removed, or else other emu’s won’t start.
As you can see there are 2 “if”-statements used here. When you use either camx
or mgcamd, they might use cardserv to read the cards in your dreambox, or they
might use newcamd.conf to connect to other servers. If this is so you wouldn’t
like it if they we’re removed…
- “! -e” says as much as “if it does NOT excist”…
- “fi” tells “if” it has to stop.
So, in this particular file:
- newcamd.conf will only be deleted if both /var/bin/mgcamd AND
/var/bin/camxng are NOT installed.
- cardserv and cardserv.cfg will only be deleted if /var/bin/mgcamd is NOT
installed.
Building the .tar.gz
Now that you’re done creating all the files, you will want to build the archive. The
current file-structure should look like this:
cd /var/tmp/test
find *|sort
var
var/SDT
var/SDT/newcamd.emu
var/bin
var/bin/cardserv
var/bin/newcamd
var/tmp
var/tmp/sdt.ins
var/tuxbox
var/tuxbox/config
var/tuxbox/config/cardserv.cfg
var/tuxbox/config/newcamd.conf
var/uninstall
var/uninstall/newcamd.un
To put all this in an archive that can be used to do a manual install, use the
following commands:
cd /var/tmp/test
tar -cvf SDT_Newcamd_5.28.tar var/
gzip SDT_Newcamd_5.28.tar
To check if everything is in order, use the command:
ls -al
Output should look something like this:
-rw-r--r-- 1 root root 204242 Jun 8 21:05 SDT_Newcamd_5.28.tar.gz
Now get that file with FTP, put it in any machine’s /var/tmp, and install away on
your SDT-images! Enjoy!
Seuraavat ohjeet ovat peräisin Sat Industryn foorumilta, ja kokeiltaessa toimivat vallan mainiosti (GBOX koeasennettiin uusimpaan SDT:n imageen):
Building a “manual install-package” for SDT
This document will elaborate on how to build a “manual install-package” for the
recent SDT-images, being DaVinci Tertia and Quarta.
No rights whatsoever can be claimed from this document. It is purely
meant for people to be able to create install-packages which aren’t officially
made by the developer from SDT-team. It is not meant as a protest against
the SDT-team, as I think they are doing a GREAT job. Because I don’t poses
the knowledge to code things myself, I just try to help out in other area’s…
Errors and mal-functioning machines cannot be blamed upon this
document. It’s a proven concept.
Creating a “manual install-package” is mostly done for emulators, since they
require somewhat more work than an ‘ordinairy’ plugin, and Emuboss has to
know that it’s there…
For this example I’ll use newcamd 5.28 (cardserv and newcamd).
Beware: Linux is case-sensitive, so use the commands exactly like they are
used here!
The sign “|” is presented when you use Shift+\ on a Qwerty-keyboard using USInternational
layout…
Creating the structure
First off, create a sub-directory in /var/tmp, like /var/tmp/test, since you do not
want to do all this in the regular /var-structure…
mkdir /var/tmp/test
Next, create the directory-structure you’ll be needing:
cd /var/tmp/test
mkdir var
mkdir var/bin
mkdir SDT
mkdir tmp
mkdir var/tuxbox/
mkdir var/tuxbox/config
mkdir uninstal
After this you’ll be needing the files themselves… Place the files as needed:
cardserv: /var/tmp/test/var/bin
newcamd: /var/tmp/test/var/bin
cardserv.cfg: /var/tmp/test/var/tuxbox/config
newcamd.conf: /var/tmp/test/var/tuxbox/config
And place the appropriate rights to the files:
chmod 755 /var/tmp/test/var/bin/cardserv
chmod 755 /var/tmp/test/var/bin/newcamd
sdt.ins
Now for the tricky part. SDT has (I think véry wisely so!) placed a check in their
install-procedure. This procedure will check if a file called ‘sdt.ins’ is present in
the directory /var/tmp. If not, it will not proces! This file is only holding the text
“#SDT#” so it doesn’t do anything at all. To create it, type:
echo “#SDT#” > /var/tmp/test/var/tmp/sdt.ins
Now test it:
cat /var/tmp/test/var/tmp/sdt.ins
It should give the following output
#SDT#
Done here.
.emu
Unlike Gemini, but very much like ruDream, SDT doesn’t use scripts, but an
emu-manager, called emuboss. This is a separate process and is shown when
you use the command ‘ps|grep emu’:
ps|grep emu 237 root 252 S /var/SDT/emuboss
To let emuboss know there’s a new player in town, you’ll need to place a file with
the extention .emu in the directory /var/SDT. The layout of this file is:
<Name of the emu / This is what is shown under Blue Button>
<Command 1>
<Command 2>
<Command 3>
Etc.
###
I
n this example it should be:
Newcamd 5.28
cardserv
sleep 5
newcamd
###
To make such a file, use the following commands:
cat > /var/tmp/test/var/SDT/newcamd.emu
Newcamd 5.28
cardserv
sleep 5
newcamd
###
Press Ctrl+d to close the file. To test the file, use:
cat /var/tmp/test/var/SDT/newcamd.emu
The output should look the same:
Newcamd 5.28
cardserv
sleep 5
newcamd
###
Prepare Uninstalling
To make a succesfull installment, I think, you’ll have to be able to remove all the
files you placed, and to leave your dreambox as clean as it was before.
To achieve this, you can do this manually, or you can let “the image” do it by
creating a file which is called exactly the same as the .emu-file you created
earlier, and replacing ‘.emu’ with ‘.un’.
So in this case you’ll need to create a file called ‘newcamd.un’ in the directory
/var/tmp/test/var/uninstall, and put in all the files you want to be removed by “the
image”. Before you remove any file, you’ll want the processes that can be run
from the package, to be killed.
The file in this example can be created with the following commands:
cat > /var/tmp/test/var/uninstall/newcamd.un
#Newcamd 5.28
killall -9 cardserv newcamd
rm -f /tmp/camd.socket
sleep 2
rm -f /var/bin/newcamd
if [ ! -e /var/bin/mgcamd ]
then
if [ ! -e /var/bin/camxng ]
then
rm -f /var/tuxbox/config/newcamd.conf
fi
fi
if [ ! -e /var/bin/mgcamd ]
then
rm -f /var/bin/cardserv
rm -f /var/tuxbox/config/cardserv.cfg
fi
rm -f /var/SDT/newcamd.emu
rm -f /var/uninstall/newcamd.un
Again, press Ctrl+d to close the file, and place the rights:
chmod 755 /var/tmp/test/var/uninstall/newcamd.un
The file /tmp/camd.socket holds the connection to the local system. It needs to
be removed, or else other emu’s won’t start.
As you can see there are 2 “if”-statements used here. When you use either camx
or mgcamd, they might use cardserv to read the cards in your dreambox, or they
might use newcamd.conf to connect to other servers. If this is so you wouldn’t
like it if they we’re removed…
- “! -e” says as much as “if it does NOT excist”…
- “fi” tells “if” it has to stop.
So, in this particular file:
- newcamd.conf will only be deleted if both /var/bin/mgcamd AND
/var/bin/camxng are NOT installed.
- cardserv and cardserv.cfg will only be deleted if /var/bin/mgcamd is NOT
installed.
Building the .tar.gz
Now that you’re done creating all the files, you will want to build the archive. The
current file-structure should look like this:
cd /var/tmp/test
find *|sort
var
var/SDT
var/SDT/newcamd.emu
var/bin
var/bin/cardserv
var/bin/newcamd
var/tmp
var/tmp/sdt.ins
var/tuxbox
var/tuxbox/config
var/tuxbox/config/cardserv.cfg
var/tuxbox/config/newcamd.conf
var/uninstall
var/uninstall/newcamd.un
To put all this in an archive that can be used to do a manual install, use the
following commands:
cd /var/tmp/test
tar -cvf SDT_Newcamd_5.28.tar var/
gzip SDT_Newcamd_5.28.tar
To check if everything is in order, use the command:
ls -al
Output should look something like this:
-rw-r--r-- 1 root root 204242 Jun 8 21:05 SDT_Newcamd_5.28.tar.gz
Now get that file with FTP, put it in any machine’s /var/tmp, and install away on
your SDT-images! Enjoy!