Forum

> > CS2D > Servers > Where can i learn linux
Forums overviewCS2D overview Servers overviewLog in to reply

English Where can i learn linux

29 replies
Page
To the start Previous 1 2 Next To the start

old Where can i learn linux

BOXXY
User Off Offline

Quote
Hello, where can i learn using linux VPS for cs2d srv hosting ?
Me and BcY are having some plans for future !!!

old Re: Where can i learn linux

Marcell
Super User Off Offline

Quote
The best way learn linux.. read forums.. solve errors and etc.. and then install a linux for practise commands

old Re: Where can i learn linux

VADemon
User Off Offline

Quote
All you have to know:
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)

old Re: Where can i learn linux

ohaz
User Off Offline

Quote
Most important Linux commands:
• 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.

old Re: Where can i learn linux

Geez
GAME BANNED Off Offline

Quote
Try downloading VirtualBox and installing Ubuntu in it. When you'll do it, you have the basics of linux.

old Re: Where can i learn linux

Apache uwu
User Off Offline

Quote
Since most servers run CentOS or Debian it's smart to download that on your local machine so that all testing on your computer can be beneficial to when you start renting and using virtual private and dedicated servers.

old Re: Where can i learn linux

DannyDeth
User Off Offline

Quote
user 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!"
To the start Previous 1 2 Next To the start
Log in to reply Servers overviewCS2D overviewForums overview