First you must adjust cardserver.py with your variable and copy emu.ini where you want

Copy cardserver.py to /usr/bin
Copy cardserver to /etc/init.d


In Terminal on your server

sudo chmod 755 {yourfolder}/emu.ini /usr/bin/cardserver.py /etc/init.d/cardserver
sudo ln -s /etc/init.d/cardserver /etc/rc2.d/S99cardserver


adjust emu.ini for you

example:

1
1:0:newcs:/usr/bin/newcs:killall -9 newcs
4:0:gbox:/usr/bin/gbox:killall -9 gbox
3:1:mboxg.i386:/usr/bin/mboxg.i386:killall -9 mboxg.i386
2:0:java:/usr/bin/cardproxy start:/usr/bin/cardproxy stop

First ligne -> start / stop server
emu ligne -> order to start : start or stop emu : name of the command emu : command emu to start : command emu to kill



cardserver.php adjust for your config ''