This How-to is still WIP by CC_Share
--Todo--
Correct typo's (if any are made)
---------------------------------------
First download the netinstall cd of debian linux
You can download it from the following URL:
http://cdimage.debian.org/debian-cd/...86-netinst.iso
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
Quote:
Guided - use entire disk |
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
Code:
vim /etc/network/interfaces
Code:
iface eth0 inet dhcp
Code:
auto eth0
iface eth0 inet static
address 192.168.1.225
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
Remember to replace them with the numbers you need.
You can save the file with the following commands
Code:
:wq
Code:
/etc/init.d/networking restart
ifconfig
Quote:
cardserverBackup:/home# ifconfig eth0 Link encap:Ethernet HWaddr 00:00:00:10:D0:70 inet addr:192.168.1.225 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::250:4ff:fe1d:d27b/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 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 |
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 keyboard and monitor if you want to change something.
Code:
apt-get install openssh-server
Getting Putty
We need to download putty so we can log in with SSH
http://the.earth.li/~sgtatham/putty/.../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.
Code:
vim /etc/apt/sources.list
Quote:
deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official i386 NETINST Binary-1 20070407-11:29]/ etch contrib main |
To make sure, you locally have a good software list available, you have to update the apt-get database
Code:
apt-get update
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.
Code:
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.
Code:
mkdir /emu
mkdir /emu/gbox
mkdir /emu/script
mkdir /emu/log
mkdir/var/etc
mkdir /var/keys
chmod 777 /emu
chmod 777 /emu/*
chown/emu
chown/emu/*
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.
Code:
vim /emu/script/gbox
Code:
CAMNAME="Gbox"
INFOFILE="ecm.info"
# 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
remove_tmp
case "$1" in
start)
echo "[SCRIPT] $1: $CAMNAME"
start_cam
;;
stop)
echo "[SCRIPT] $1: $CAMNAME"
stop_cam
;;
restart)
echo "Restaring $CAMNAME"
stop_cam
start_cam
;;
*)
"$0" stop
exit 1
;;
esac
exit 0
Code:
chmod 755 /emu/script/gbox
ln /emu/script/gbox /bin/gbox
Code:
gbox start
gbox stop
gbox restart
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/keys
Making gbox and cs2gbox executable
Use putty again to give gboxx86 and cs2gbox.x86 execution rights
Code:
chmod 755 /emu/gbox/gboxx86
chmod 755 /emu/gbox/cs2gbox.x86
There's only one more thing to do. Add gbox to the startup so it will start on the next reboot.
Code:
vim /etc/rc.local
Code:
/bin/gbox start &
No comments:
Post a Comment