LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 05-05-2003, 08:17 PM   #1
Harpune
Member
 
Registered: Sep 2002
Location: Seattle, WA
Distribution: Ubuntu
Posts: 101

Rep: Reputation: 15
OpenBSD Counter-Strike server


I have heard wispers around the internet that a hlds/counterstrike server on OpenBSD (3.3) is quite possible using linux emulation. Unfortunately when I installed hlds 3.1.1.1 and counter-strike 1.5. I am having problems with it. I call the server with the command line:

./hlds_run -game cstrike -port 27015 +sv_lan 1 +nomaster +maxplayers 20 +map cs_italy +exec server.cfg

I get these messages on start up:

Auto-restarting the server on crash

Console initialized.
Protocol version 46
Exe version 3.1.1.1
Exe build: 22:35:19 Apr 29 2003 (2378)
Auth Server
Server IP address 127.0.0.1:27015
Downloading Security Module from Speakeasy.net ...
Completed downloading Security Module from Speakeasy.net
Server is in Secure Mode.
Error downloading Security Module from Speakeasy.net
Server is not Secure.
Adding master server 65.73.232.251:27010
Adding master server 65.73.232.253:27010
Adding master server 65.73.232.252:27010

then I get repeating error messages like this one:

Unable to open /proc/13550/stat

I can see the server from a client on the same LAN but when I try to connect to it I get the error:

Cannot connect to server
Reason: LAN servers are restricted to local clients only (Class C)

These might actually be two unrelated problems, but i don't know. has anyone ever had this experience with a half-life/counter-strike server on OpenBSD?

Thanks,

Last edited by Harpune; 05-05-2003 at 08:19 PM.
 
Old 07-17-2003, 10:31 PM   #2
QuantumFunk
LQ Newbie
 
Registered: Jul 2003
Posts: 2

Rep: Reputation: 0
Hey, I have the exact same problem. HLDS used to work in OpenBSD last I tried, but that was a few versions back and when the redhat emulation was from pre-8.0.
 
Old 07-30-2003, 01:04 PM   #3
DaJoob
LQ Newbie
 
Registered: Jul 2003
Distribution: FreeBSD 4.8
Posts: 1

Rep: Reputation: 0
I've been having the same problem. HLDS v3.1.1.0 works just fine, but I get that error when I upgrade to v3.1.1.1.

I can connect to my server via the LAN or Internet, though. There is an option that can be set in cstrike/autoexec.cfg or cstrike/server.cfg making a server LAN only. Check those.

I'm searching like crazy for a cause and solution for the Unable to open proc/... error. If you want HLDS v3.1.1.0, I have it at http://www.dajoob.com/pub/hlds_l_3110_full.bin

[EDIT] I found a solution to the proc error. Just put sv_stats 0 in your server.cfg [/EDIT]

Last edited by DaJoob; 07-30-2003 at 01:09 PM.
 
Old 08-02-2003, 04:19 PM   #4
Johannes_Hofman
LQ Newbie
 
Registered: Aug 2003
Posts: 1

Rep: Reputation: 0
Had the same problem, here's the fix:
Download the kernel sources from your local cvs-mirros and hack src/miscfs/procfs/procfs_vnops.c
The entry to chance is, who would have guessed :
{ DT_REG, N("status"), Pstatus, NULL },

change the status string to stat, recompile your kernel, reboot and you're done.

p.s. Don't forget to 'mount_procfs -o linux /proc /proc'.

Last edited by Johannes_Hofman; 08-02-2003 at 04:24 PM.
 
Old 08-21-2003, 08:03 PM   #5
miamiyoyo
LQ Newbie
 
Registered: Aug 2003
Location: Tampa, FL
Posts: 1

Rep: Reputation: 0
Well.... sadly I have no reply, but a question of my own. I'm new to linux and was making a CS server and I'm getting a similar error but not exact. Heres what it looks like...


[server@localhost hlds_l]$ ./hlds_run -game cstrike +exec server.cfg +ip 192.168.0.102 +port 27015 +maxplayers 16 +map de_dust
Auto-restarting the server on crash
Host_Init
Added packfile /home/server/hlds_l/valve/pak0.pak (985 files)
Protocol version 46
Exe version 3.1.1.0
Exe build: 14:46:34 Jun 11 2002 (2056)
WON Auth Server
Executing Admin Mod config file
Server IP address 192.168.0.102:27015

Metamod version 1.15 Copyright (c) 2001-2003 Will Day <willday@metamod.org>
Metamod comes with ABSOLUTELY NO WARRANTY; for details type `meta gpl'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `meta gpl' for details.

Downloading Security Module from Speakeasy.net ...
Error downloading Security Module from Speakeasy.net
Server is not Secure.
PackFile: /home/server/hlds_l/valve/pak0.pak : models/w_battery.mdl

then it keeps going with the PackFile stuff for about 3 whole page screens, then ends with....

PackFile: /home/server/hlds_l/valve/pak0.pak : models/metalplategibs_green.mdl
Executing Admin Mod config file
"amv_prvt_kick_message" is "0"
Adding master server 65.73.232.251:27010
Adding master server 65.73.232.253:27010
Adding master server 65.73.232.252:27010

As I said its not exactally the same but they have there similarities. Haven't tried what you said yet but since I'm new I kinda don't even really know how to do what you said.

Plz (if anyone can) try to help me out.
 
Old 09-04-2003, 03:22 AM   #6
notb667
LQ Newbie
 
Registered: Sep 2003
Posts: 1

Rep: Reputation: 0
Thumbs up

You don't need to hack the Kernel.

Use hlds_l_3111_update.tar.gz and then hlds_l_3111d_update.tar.gz.
The hlds_l_3111d_update.tar.gz fixes the Problem with the /proc problem.
I've 3 OpenBSD 3.3 CS-Servers running and it works fine.

Paul
 
Old 09-06-2003, 11:50 PM   #7
nullpt
Member
 
Registered: Jul 2003
Distribution: Red Hat
Posts: 94

Rep: Reputation: 15
I had the same problem with FreeBSD, and it's very simple.

In linux u have /proc/pid/stat . In *BSD u have /proc/pid/status .

So if you want to get it working u got 2 ways.

sv_stats off # cfg

or

u get the last patch 1d available on the web.

Stay cool
 
Old 09-09-2003, 03:40 PM   #8
Harpune
Member
 
Registered: Sep 2002
Location: Seattle, WA
Distribution: Ubuntu
Posts: 101

Original Poster
Rep: Reputation: 15
Thanks for all your help on thie, guys. For future refence i have made a small howto describing running a CS server on OpenBSD. Have a look at it here:

http://myhome.spu.edu/shriver/OpenBSD-cstrike.html

look it over and give me any comments or suggestions.

Thanks,
 
Old 09-26-2003, 12:36 AM   #9
Harpune
Member
 
Registered: Sep 2002
Location: Seattle, WA
Distribution: Ubuntu
Posts: 101

Original Poster
Rep: Reputation: 15
OK, new problem. My server worked fine on my small LAN at home. I have since then relocated the server to the campus network, a slightly larger domain. Now when users try to connect, they get the :

Cannot connect to server
Reason: LAN servers are restricted to local clients only (Class C)

I figure this is because the clients are looking at my serve as if it were on the internet, even though it's on the LAN. When i set the server up as a internet server, the clients can't connect for other (key validations reasons .

Is there any way to make the clinets see the server is on the LAN or some way to set the server up to pass key validation so that eveyone can play.

p.s. if i can't get this working SOON, Windows will have to be resorted to.

Thanks,

Last edited by Harpune; 09-26-2003 at 12:38 AM.
 
Old 09-26-2003, 06:11 PM   #10
Baldorg
Member
 
Registered: Sep 2003
Location: GMT (-5)
Distribution: Mandrake 9.1
Posts: 288

Rep: Reputation: 31
Quote:
key validations reasons
How about using the real version, might work?
 
Old 09-26-2003, 09:15 PM   #11
Harpune
Member
 
Registered: Sep 2002
Location: Seattle, WA
Distribution: Ubuntu
Posts: 101

Original Poster
Rep: Reputation: 15
it would, but most of the guys on the floor will never have that. I mostly am looking for a more permanent fix to the problem i am having when it is set up as a LAN server. Any real help with that?
 
Old 09-27-2003, 11:31 PM   #12
Harpune
Member
 
Registered: Sep 2002
Location: Seattle, WA
Distribution: Ubuntu
Posts: 101

Original Poster
Rep: Reputation: 15
I figured out part of the problem: my campuse network is a class B network. Now i need to know if there is any way to open up the cs server software to allow class b networks to connect.
 
Old 11-11-2003, 06:44 AM   #13
donpatrona
LQ Newbie
 
Registered: Nov 2003
Location: Europe , Bulgaria
Distribution: OpenBSD 3.3
Posts: 6

Rep: Reputation: 0
hi all , i have a hlds 3.1.1.1d and server works fine , but this stupid operating system can't make log file in /.../cstrike/logs. I see the log records
on the console... what i need to do ? please help me !
 
Old 11-11-2003, 01:11 PM   #14
Harpune
Member
 
Registered: Sep 2002
Location: Seattle, WA
Distribution: Ubuntu
Posts: 101

Original Poster
Rep: Reputation: 15
I saw this problem too. Because of the emulation, the log files are being written to another location on the disk. Look for your log files in /usr/local/emul/redhat/usr/normal/path/to/cstrike/logs. for instance on my machine it is /usr/local/emul/redhat/usr/steam/hlds_l/cstrike/logs.

If you are using something like psychostats you can change your log directory to read from that location.
 
Old 11-12-2003, 02:00 AM   #15
donpatrona
LQ Newbie
 
Registered: Nov 2003
Location: Europe , Bulgaria
Distribution: OpenBSD 3.3
Posts: 6

Rep: Reputation: 0
Thank You Harpune. Thank You very much! I found my log files in this location and now Psychostats works perfectly. If I can help you with something , it's will be pleasure for me.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Counter Strike Server Error DarkNebula Linux - Software 0 11-28-2004 09:42 PM
Counter-Strike 1.5 Server on Mandrake 10 LLIypuk Linux - Games 1 11-22-2004 12:25 PM
Counter-strike server dr4gon Linux - Networking 6 07-09-2004 03:01 PM
Counter-Strike Server HazzGiG Linux - Games 3 04-02-2004 02:13 PM
counter-strike through proxy server ferretmanus Linux - Newbie 0 10-19-2003 06:30 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 05:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration