Me and BcY are having some plans for future !!!
Forum
CS2D Servers Where can i learn linuxWhere can i learn linux
29 repliesMe and BcY are having some plans for future !!!
Chingy has written
Lol, you want to leran "Linux"? You're a computer or what?
want to learn how to use it for cs2d server hosting..
Chingy has written
Well, it's not easy. It's not like Lua or something (i guess so).
Yes i know, but i want to start learning on time
firewall (aka security)
users and rights
linux commands (since you work remotely)
In other questions:
Internet will help you.
PS: The best way to try Linux is to run it under a Virtual Machine (no headaches with drivers, logical disk parts etc)
And he is right. Source: http://cs2d.com/faq.php?show=net_rentserver#net_rentserver
But anyways, @ BOXXY: Add me on Xfire so I can help you out. Maybe you will learn some stuff from me, and hopefully I will answer your questions. My Contact information are in my profile MostAfa
http://www.comptechdoc.org/os/linux/usersguide/linux_ugbasics.html
cd [FOLDER] - Changes the current directory to the one specified in [FOLDER]. Example: cd /home/user/cs2d
cp [FILE1] [FILE2] - Copies file1 to file2. Example: cp /home/user/cs2d/cs2d_dedicated /home/user/backup/ will copy the dedicated file to the backup folder.
When you want to copy a complete Folder, you need to add the -r parameter:
cp -r /home/user/downloads/cs2d /home/user/ to copy the cs2d folder in downloads one folder up
mv [file1] [file2] - Same as copy, but used to move files instead of copying them. Also used to rename files (mv file1 file1NewName
chmox +x [FILE] - makes a file "runnable", most of the time used for the cs2d_dedicated file (because this is the one that you have to run )
su USERNAME - switches user to the username specified. DON'T RUN CS2D AS ROOT!
useradd -m [USERNAME] - Creates a new user together with his "home" folder, usually in /home/USERNAME
tar -xfv [ARCHIVE] - untars an archive. e.g.: tar -xfv ./archive.tar.bz2
ps -aux - Lists all current processes. Important when you want to stop cs2d_dedicated. Search for the line containing cs2d_dedicated and keep the PID in mind (usually one of the first numbers shown).
kill [PID] - kills the process with the PID. If that doesn't work, because the server is really broken or something, use kill -9 [PID]
wget [URL] - downloads the file specified in the URL from a webpage and puts it in the current folder
Some additional hints:
./ is the folder you're currently working in (the one you've "cd"d to. Instead of always writing /home/user/... you can also just use cd /home/user and after that use ./ for the folder
To run cs2d_dedicated, use cd to get to the folder and then do: ./cs2d_dedicated . The problem with this is: it will stop as soon as you close the shell. Because of that, you need to add a & behind the command (or use screen, google for "man screen" to get an explaination):
./cs2d_dedicated &
To get to know the commandline a bit more, I would install an easy-to-learn Linux like Ubuntu in a Virtual Machine like https://www.virtualbox.org/ . Then open the terminal / console there and try out starting a cs2d server on the virtual machine only using the command line.
Geez has written
Well, Ubuntu is the easiest to install
And OpenBSD is the hardest to install, doesn't mean it's impossible. Debian installs as easy if not easier than ubuntu and will set them up for using a terminal better due to the fact that ubuntu requires the use of sudo where as your average server will just be like, "fuck sakes just change to root, moron!"
Once i opened putty ant thats it...