Freebsd And Ns I Got It Working
UgLyPuNk
Join Date: 2002-11-03 Member: 6530Members
Well i have got it running
it is using about 13% of a xp 2100 when idle but it is running what i did....
Clean install of freebsd 4.8 with linux compat
I then cvsup'ed ran portupdate etc to get 100% up to date
I then deinstalled the Linux_base Port and installed the new linux_base-8 port
I installed hlds 3.1.1.1d and ns with the 3.1.1.1 fix so
i then found it keeped saying that it couldn't find lib/libnoversion.1.so although it was there
then came the wierd and wonderful fix....
i mounted linproc, bang it started running then installed metamod and admin no problems
Still haven't tested it under load but it isn't crashing
it is using about 13% of a xp 2100 when idle but it is running what i did....
Clean install of freebsd 4.8 with linux compat
I then cvsup'ed ran portupdate etc to get 100% up to date
I then deinstalled the Linux_base Port and installed the new linux_base-8 port
I installed hlds 3.1.1.1d and ns with the 3.1.1.1 fix so
i then found it keeped saying that it couldn't find lib/libnoversion.1.so although it was there
then came the wierd and wonderful fix....
i mounted linproc, bang it started running then installed metamod and admin no problems
Still haven't tested it under load but it isn't crashing
Comments
zippy
I confirm the following working (can join and run around, no load test yet) combinations:
FreeBSD 4.8-RELEASE
HLDS 3.1.1.0
linux_base-8-8.0_1
FreeBSD 4.8-RELEASE
HLDS 3.1.1.1d with replacement ns_i386.so
linux_base-8-8.0_1
If I get around to it tonight or tomorrow, I'll try linux_base-7.1_5
For those FreeBSD users who are unfamiliar with linprocfs, it emulates the linux /proc filesystem. Do this as root:
<!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->mount_linprocfs linprocfs /compat/linux/proc<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
The command should produce no output if successful, <b>kldstat</b> will show "linprocfs.ko", and <b>mount</b> will obviously show the new filesystem.
mine is very high xp2100 20 players 100% with a high ping
the wierd thing is it idles at between 10-20%
what about yours
Super work... and there was me thinking all along that it was library function clobbering in the STL/libc io interface.
No indication from the segfaults that it was missing /proc.... (sorry, I know very little about FreeBSD and the linux_base stuff otherwise I may have been more help.)
As for the CPU usage, I'm at a loss. Have you tried hlds_l 3.1.1.0 at all? (does it even work?)
You should note that high entity maps will always run heavy on cpu (bast and hera for example) but 100% of an XP 2100 is a bit much.
Is it possible to try 3.1.1.0 (You might want the un-official 'boffix' patch as well.) and see if that's similar?
joe.
i might try 3.1.1.0
any chance of getting a redhat 8 gcc3 compile and see how that plays
or even a non optimized one something to play with, see what happens
Smufe
With that said, I <i>do</i> run ipfw on every single FreeBSD machine I deploy, but with an "open" configuration. That way, if some kiddie decides it's fun to make thousands of connections to your XYZ service per minute, effectively denying legitimate connections, it's probably only one swift command to shut him down.
You may want to check out using ipfw instead of ipf. The syntax is a little more "friendly", and there's more native documentation available. If you're dead set on ipf, post your config and we should be able to help you with it.
root#mount_linprocfs linprocfs /compat/linux/proc
mount_linprocfs: vfsload(linprocfs): Exec format error
I deinstalled the original linux_base, did cvsup, and installed linux_base-8. After installing 8, I get the previous error. I'm not sure what else there is to do. Any help would be great.
Thanks For Your Help
mount_linprocfs: vfsload(linprocfs): Exec format error <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
Are any of your filesystems mounted with the "noexec" option?
Also, make sure that these two files are mode 555:
/modules/linprocfs.ko
/sbin/mount_linprocfs
<b>mount</b> will show the options each filesystem is tagged with.
What's the output of each of these
<b>kldstat</b>
<b>ls -loa /compat/linux/proc</b>
$ mount
/dev/ad0s1a on / (ufs, local)
/dev/ad0s1e on /boot (ufs, local, soft-updates)
procfs on /proc (procfs, local)
$ kldstat
Id Refs Address Size Name
1 2 0xc0000000 40000000 kernel
2 1 0xc2342000 15000 linux.ko
$ ls -loa /compat/linux/proc
total 4
drwxr-xr-x 2 root wheel - 512 Feb 6 1996 .
drwxr-xr-x 12 root wheel - 512 Sep 16 17:21 ..
root# kldload linprocfs
kldload: can't load linprocfs: Exec format error
so is there any fix?
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.
Segmentation fault
Deprecated bfd_read called at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 2627 in elfstab_build_psymtabs
Deprecated bfd_read called at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 933 in fill_symbuf
"/usr/home/myaccount/hlds_l/./hlds_i686.core" is not a core dump: File format not recognized
debug.cmds:1: Error in sourced command file:
No stack.
email debug.log to linux@valvesoftware.com
I am running a FreeBSD 4.9-STABLE system. I can get it to start with out metamod. I have been able to run CS with meta mod sucessfully. If anybody can help me. Please let me know. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo-->
a) Add +localinfo mm_gamedll dlls/ns_i386.so to the end of your startup command line
b)Create a config.ini file in your metamod folder where your plugins.ini file is, and enter gamedll dlls/ns_i386.so into this file
c) Get a fixed metamod version from <a href='http://www.modns.org' target='_blank'>http://www.modns.org</a> this would be your best bet. You'll most likely need TromPT's version as it works with an older glibc