trying to set up a cz server on linx

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
gene
A semi-regular
A semi-regular
Posts: 18
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Tue Dec 05, 2006 7:47 pm

trying to set up a cz server on linx

Post by gene »

i can run a windows server back and forth. but im know nothing about linx. that being said...
chrt -r 20 ./hlds_run -game xxxxx +ip xxx.xxx.xxx.xxx +maxplayers xx -pingboost 2
all i get is
-bash: hlds: no such file or directory

p.s im useing a virtual server
gene
A semi-regular
A semi-regular
Posts: 18
Joined: Tue Dec 05, 2006 7:47 pm

Re: trying to set up a cz server on linx

Post by gene »

i added the ip and czreo in, just in case someone thought i was that slow :)
thanks for the help in advance
gene
A semi-regular
A semi-regular
Posts: 18
Joined: Tue Dec 05, 2006 7:47 pm

Re: trying to set up a cz server on linx

Post by gene »

newforce ~ # chrt -r ./hlds_run -game czero +ip 66.150.214.247 +maxplayers 32 -pingboost 3
sched_setscheduler: Invalid argument
failed to set pid 0's policy



just somemore info that i hope helps
User avatar
Edge100x
Founder
Founder
Posts: 12948
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: trying to set up a cz server on linx

Post by Edge100x »

gene wrote:chrt -r 20 ./hlds_run -game xxxxx +ip xxx.xxx.xxx.xxx +maxplayers xx -pingboost 2
all i get is
-bash: hlds: no such file or directory
It sounds like the executable file may be missing. Could you run a Steam update to check the install?

Generally you would do this with:

Code: Select all

cd /usr/steam
./steam -game czero -dir hldsbase -command update -verify_all
newforce ~ # chrt -r ./hlds_run -game czero +ip 66.150.214.247 +maxplayers 32 -pingboost 3
sched_setscheduler: Invalid argument
failed to set pid 0's policy
This just happened because you forgot the number after "chrt -r" :)
gene
A semi-regular
A semi-regular
Posts: 18
Joined: Tue Dec 05, 2006 7:47 pm

Re: trying to set up a cz server on linx

Post by gene »

thanks ill try that. also is there a way to get ftp? after i changed to linx i have no lonk in the control panel for it.?
User avatar
Edge100x
Founder
Founder
Posts: 12948
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: trying to set up a cz server on linx

Post by Edge100x »

I'd recommend skipping FTP and just using SCP or SFTP if you need to transfer files to or from your server, using a client such as WinSCP: http://winscp.net/eng/index.php.

If you would prefer FTP, I would recommend installing vsftpd: http://en.gentoo-wiki.com/wiki/Vsftpd. However, keep in mind that FTP, unlike SCP/SFTP, is insecure, so you shouldn't use it to transfer anything sensitive.
gene
A semi-regular
A semi-regular
Posts: 18
Joined: Tue Dec 05, 2006 7:47 pm

Re: trying to set up a cz server on linx

Post by gene »

just maps and cfg files :)
thanks for all your help
User avatar
Edge100x
Founder
Founder
Posts: 12948
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: trying to set up a cz server on linx

Post by Edge100x »

Nod. For just about everything, SCP/SFTP should work best (and the WinSCP client makes them behave the same as FTP, so you won't be able to tell the difference when working with them).

The only purpose I would recommend for FTP would be to expose the files to others, if you wish to restrict their access or give them something they are more comfortable with.
gene
A semi-regular
A semi-regular
Posts: 18
Joined: Tue Dec 05, 2006 7:47 pm

Re: trying to set up a cz server on linx

Post by gene »

understood. man i hear people take about linx alot and have never messed with it.
what a headache not knowing whats going on.. hope this linx is as good as i hear.

also i get the same
-bash: hlds: no such file or directory
even after i did the
./steam -game czero -dir hldsbase -command update -verify_all
and it did load all the file for a server.
User avatar
Edge100x
Founder
Founder
Posts: 12948
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: trying to set up a cz server on linx

Post by Edge100x »

Could you type "ls" in the /usr/steam/hldsbase folder and post what it says?

The hlds_run script should actually be trying to run "hlds_i686", so it's strange that it would complain about "hlds" missing. I have not witnessed this problem before on fresh test installs.

Also, "./hlds_run" is all one word the way you're typing it, correct?
gene
A semi-regular
A semi-regular
Posts: 18
Joined: Tue Dec 05, 2006 7:47 pm

Re: trying to set up a cz server on linx

Post by gene »

newforce ~ # /usr/steam/hldsbase
-bash: /usr/steam/hldsbase: is a directory
newforce ~ # /usr/steam/hldsbase is
-bash: /usr/steam/hldsbase: is a directory
newforce ~ # ./hlds_run
-bash: ./hlds_run: No such file or directory
newforce ~ # /usr/steam/hldsbase
-bash: /usr/steam/hldsbase: is a directory
newforce ~ # /usr/steam/hldsbase ls
-bash: /usr/steam/hldsbase: is a directory
newforce ~ # ls
newforce ~ #


not sure how to "type in the folder"
this is copied and pasted
gene
A semi-regular
A semi-regular
Posts: 18
Joined: Tue Dec 05, 2006 7:47 pm

Re: trying to set up a cz server on linx

Post by gene »

newforce ~ # cd /usr/steam
newforce steam # chrt -r 20 ./hlds_run -game czero +ip 66.150.214.247 +maxplayers 32 -pingboost 3
execvp: No such file or directory
failed to execute ./hlds_run
newforce steam # ./hlds_run
-bash: ./hlds_run: No such file or directory
newforce steam # ./steam -game czero -dir hldsbase -command update -verify_all
Checking bootstrapper version ...
Updating Installation
Checking/Installing 'Condition Zero Base Content' version 22


Checking/Installing 'Counter-Strike Base Content' version 35


Checking/Installing 'Linux Server Engine' version 53


Checking/Installing 'Half-Life Base Content' version 12


HLDS installation up to date
User avatar
Edge100x
Founder
Founder
Posts: 12948
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: trying to set up a cz server on linx

Post by Edge100x »

It sounds like you're just running HL from the wrong folder, then. You need to execute the line starting with "chrt" from /usr/steam/hldsbase, so just do this first:

Code: Select all

cd /usr/steam/hldsbase
Linux has a steep learning curve, especially if you haven't used the command line on Windows before. It might be a good idea to learn the basics from a book, if you'd like to continue with Linux.

Windows typically runs game servers just as well, or better than, Linux. If you'd prefer to get servers up right away, I'd recommend switching to that platform.
Post Reply