ID:751731
 
Hello everyone. I'm student of college and I signed to the special program for students from all the world. (sorry for my english, it's not the best =[). Further more I requested for a free shell acc sponsored by EU and it worked. I got one with unlocked ports, screen, etc. I wanted to share this shell to players who doesn't want to pay for the VMs and host their games BUT i found 1 little problem ... Until now I never worked on UNIX system =[. If someone could only help me with instruction how to configure host files on shell (Debian) I would be gratefull. Thanks for replying. (don't blame me for making a topic which already appeared about shells - the one with French boy who couldn't correctly use english language. But there is no answer for my question =[)
Sorry everyone!. Now I solved my problem ^^
for everyone who wants to host a game I'll write it in simple steps ^^. Enjoy
So first thing which you need is shell acc with ports opened. (when you pay for it then you get them automatically... else you need to spend long hours to find one 4free). Then download archive (zip) from byond's site - program for linux.
Next step depends if your shell can unzip .zip file or not. If yes then just send the file to shell and type 'unzip NAMEOFPACK.zip'. If your shell doesn't offer this action then unzip the file on your computer and then copy it to the ftp (www.drivehq.com offers nice and free ftp servers -THIS IS NOT ADVERT. Its only help :D). When you are done with it, login on your shell acc and type 'wget -t0 -m -np -b ftp://ftplogin:password@DELIVER' where :
1 - ftplogin - is your login, for example BYOND
2 - password - i dont think that i need to explain - for example Enma
3 - DELIVER - your ftp adress - for example drivehq's is ftp.drivehq.com

Now with all those infos you can create something like this
wget -t0 -m -np -b ftp://BYOND:[email protected]
This will copy all files from your ftp to the shell - it's the fastest way for me.

Now get on your shell and get to the folder with this unzipped archive - byond folder. Then type those instructions:
Make here
source /home/yourshellaccname/ftp.drivehq.com/byond/bin/byondsetup

yourshellaccname - you get it during registration, its login to shell
.

Now Your server is only 1 step before you can launch the game ^^.

Next part needs hosting files. When You get them just copy them to byond/bin folder.
Now when you want launch the game simply type (in bin folder ofc)
./DreamDaemon NAMEOFGAME.dmb PORT OPTIONS

1 - ./DreamDaemon - program - host.
2 - NAMEOFGAME.dmb - your hosting file
3 - PORT - port on which your game will be hosted.
4 - OPTIONS - you can read about them by typing 'man DreamDaemon'. I use 2 options. -safe and -trusted

For example it will look like this:

./DreamDaemon GoldenRetriever.dmb 1974 -safe -trusted.

when you will get message that this port can be reached by players use CTRL+Z and then type 'bg' to run the game in the background so you can log out of shell.
to turn game off type 'ps x' then find your game's name and near the name will be numbers. That's called PID. you have to write them down with command 'kill', f.e. 'kill 12941'.

Thanks for reading ^^.
In response to SHAMANJOH
Aloha ! It's again me :D. I missed 1 thing which I didn't mention before. After those steps which I told about You can meet one little problem ... When You try to launch DreamDaemon (./DreamDaemon file.dmb port blah blah blah) You can get info that You don't have permisson to launch the file. Don't cry then! :D Papa Bear is here XD. Simply use this command in the Bin folder:
chmod u+rwx DreamDaemon

And it's working ^^. Thanks for reading :D
In response to SHAMANJOH
Good job on doing some research and figuring out how to do things. You're the kind of people I like.

Just a couple of pointers.

To run a command in the background, you don't necessarily have to do a Ctrl+Z. Instead of running

$ command.sh

You can do:

$ command.sh &

Which will run that command in the background.

Also, the grep command is a great searching tool that is very frequently used in conjunction with many linux commands. In this case, using it with ps will make finding the PID of DreamDaemon much easier:

$ ps x | grep DreamDaemon
In response to Stupot
Thanks for posting guides like this, really makes it easier for the community to get a grip on this kind of stuff.
In response to Stupot
Although it's not much different pgrep DreamDaemon tends to have less noise in it.
In response to Stephen001
I've done this guide because I'm not like those who 'know-but-wont-tell'. I saw a lot of topics in the internet and noone really answered it (except pgrep but I didn't see his post before writting this :P). And thanks for advice Stupot - I didn't know about it xDD