All In One IPTV Solution
Върни се   Digital TV Forums - БЪЛГАРСКИЯТ ФОРУМ ЗА ЦИФРОВА ТЕЛЕВИЗИЯ > Шеринг и емулатори > Емулатори > Gbox

Контрол над темата Начин на разглеждане
Стар 26-03-2009
Аватара на netman
netman netman не е на линия

Дата на присъединяване: Dec 2007
Местоположение: Бургаско
Мнения: 1,813
Благодари: 400
Получил благодарност:
285 пъти в 145 поста
Сваляния: 114
Ъплоуди: 1
По подразбиране GBox на Linux PC

Първоначално написано от cofybreak Вижте мненията
This how-to is basicly the same as the CCcam how-to. It will cover the basic installation of Debian linux and getting Gbox up and running on it.

This How-to is still WIP by CC_Share

Correct typo's (if any are made)

First download the netinstall cd of debian linux
You can download it from the following URL:

This will install the basic debian linux system on you're harddisk.
Just follow the steps on CD to get the system up and running.
During the installation process, it will ask you several questions
Hostname and domain are not really of much importance right now as you can change it lateron. Here you can input a hostanem and domain of you're choice.

Another question is if it can use the entire harddisk. As it is going to be a dedicated server, you can use the entire harddisk
Guided - use entire disk
When it's asking you for a network mirror, make sure you choose a fast and stable server.
Usually univercity servers are fast and stable.

When you've completed the network mirror, it's going to download the software list.
Now you can deselect everything to keep the server as small as possible.
All you have to select is webserver.
After a while it will eject the CD and it will start to reboot.

As you might have noticed, during installation, debian uses dhcp to aquire an ip adress.
For a cardserver, it's not recommened to have it's IP adress handled by DHCP.
First thing we need to do is remove the DHCP and assign a static IP to the linux server

Assigning static IP
Log in as root with the right password
then type in the following command
vim /etc/network/interfaces
now remove the following line
iface eth0 inet dhcp
and replace it with
auto eth0
iface eth0 inet static
These IP adresses might be different for you're situation.
Remember to replace them with the numbers you need.
You can save the file with the following commands
Once the file is saved, you can restart the network and check if you're linux server is running with it's new IP adress
/etc/init.d/networking restart
ifconfig should now look something like this
cardserverBackup:/home# ifconfig
eth0 Link encap:Ethernet HWaddr 00:00:00:100:70
inet addr: Bcast: Mask:
inet6 addr: fe80::250:4ff:fe1d:d27b/64 Scope:Link
RX packets:8931 errors:0 dropped:0 overruns:0 frame:0
TX packets:6028 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7585683 (7.2 MiB) TX bytes:916823 (895.3 KiB)
Interrupt:10 Base address:0x4000
Installing SSH
Next thing that needs to be done is install a SSH deamon.
This will allow you to log into the cardserver from you're own computer and the server does not require a board and monitor if you want to change something.
apt-get install openssh-server
Once SSH is installed, you can logout of the server,remove the board and monitor as we don't need it anymore.

Getting Putty
We need to download putty so we can log in with SSH;/x86/putty.exe

Remove the CD-ROM drive from the apt-get mirror list:
To make sure the server does not need the CD-ROM anymore to update or install software, we need to remove it from the mirror list of apt-get.
vim /etc/apt/sources.list
now remove the lines that point to the CD-ROM drive and save the file.
deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official i386 NETINST Binary-1 20070407-11:29]/ etch contrib main
Update apt-get software list
To make sure, you locally have a good software list available, you have to update the apt-get database
apt-get update
Installing FTP server
To be able to transfer files between you're computer and the linux server, a FTP server is needed.
During the installation it will ask you one question,. Answer it with "stand-alone"
This will consume a bit more memory but will prevent linux from spawning a new process every time you log in.
apt-get install proftpd

The server is now installed and all the needed files are in place.
Now it's time to get it ready for Gbox.
First thing we need to do is make 6 directory's and adjust the parameters.
mkdir /emu
mkdir /emu/gbox
mkdir /emu/script
mkdir /emu/log
mkdir /var/
chmod 777 /emu
chmod 777 /emu/*
chown <username> /emu
chown <username> /emu/*
The username started above is the username you created during the installation. This name is going to be used for file transfer.

Startup script for gbox
To prevent from having to change directory all the time we're gonna place a script on the server so CCcam can be started from any directory on the server.
vim /emu/script/gbox
# end

# This method cleans up /tmp folder of gbox files
remove_tmp ()
rm -rf /tmp/*info* /tmp/*gbox* /tmp/*online* /tmp/*share* /tmp/atack* /tmp/debug*

# This method Gbox (That order)
start_cam ()
/emu/cs2gbox.x86 &
/emu/gbox/gboxx86 &
# This method stops gbox and then calles the tmp cleanup method
stop_cam ()
touch /tmp/gbox.kill
pkill cs2gbox.x86
pkill gboxx86

case "$1" in
echo "[SCRIPT] $1: $CAMNAME"
echo "[SCRIPT] $1: $CAMNAME"
echo "Restaring $CAMNAME"
"$0" stop
exit 1
exit 0
chmod 755 /emu/script/gbox
ln /emu/script/gbox /bin/gbox
Now you can simply start, stop or restart gbox from any directory by simply typing
gbox start
gbox stop
gbox restart
Upload gbox
Now use a FTP program to upload gboxx86 and cs2gbox to /emu/gbox
Upload the config files cwshare.cfg, softcam.cfg, gbox_cfg and cs2gbox.cfg to /var/

Making gbox and cs2gbox executable
Use putty again to give gboxx86 and cs2gbox.x86 execution rights
chmod 755 /emu/gbox/gboxx86
chmod 755 /emu/gbox/cs2gbox.x86
Putting gbox in bootsequence

There's only one more thing to do. Add gbox to the startup so it will start on the next reboot.
vim /etc/rc.local
and add the following line at the bottom
/bin/gbox start &
Now you can reboot the server and check if gbox is running.
Та по същество. Тука поствам едно ръководство на англииски как да си направим дебиан сървър с Gbox. Предполагам, че след това няма да ти е трудно да добавиш и mpcs :naughty:

Това ръководство е копирано от друг форум с автор CC_share.
Надявам се да не се сърди много :biggrinbounce:
Отговори с цитат

Съобщения от SatShop.BG

gbox, linux, pc, на

Активни потребители разглеждащи тази тема в момента: 1 (0 членове и 1 гости)
Контрол над темата
Начин на разглеждане

Подобни теми
Тема Започнал темата Форум Отговори Последно мнение
CCCam на GNU Debian Linux ТИНТИН CCcam 3 12-10-2011 00:18
SkyStar2 + Linux dvelev САТЕЛИТНА цифрова телевизия [DVB-S] 4 16-02-2010 14:29
linux b00m Въпроси и отговори 2 30-12-2009 14:03
Linux MPCs Server thunderstorm6 Емулатори 3 18-09-2009 16:24

Всички времена са във формат GMT +3. Часът е 17:08.

DTV-BG Powered by vBulletin Version 3.8.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.