how can i fix that
ERROR: ld.so: object 'libcod2_1_3.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
server is running , but i have delay problem too. cracked keys cant join
Printable View
how can i fix that
ERROR: ld.so: object 'libcod2_1_3.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
server is running , but i have delay problem too. cracked keys cant join
Set permission to 777
i did permission 777 but still same error :S
can you help me via team viewer ?
i could run cod2 lib , i have just delay problem now
p.s : i have now cod2 lnxded permission denied error. my all files 777.. being interest more and more
What is the command line you use for starting your server with libcod?
Which linux distro? Which cod2 version? Which libcod build?
ok i solved myself , i reinstalled ubuntu 14.04 then its solved. just one question more
how can i see my gamepanel console via ssh ?
screen -AmdS nameofscreen
screen -x nameof screen
Control+ D to detach
what is the name of screen for cod2 console ?
You can see the (current user's) active screen list with:
https://www.gnu.org/software/screen/manual/screen.htmlPHP Code:
screen -ls
i start server like this
but i cant preload libcoad it shows mePHP Code:
$cd ~cod2
$export LD_PRELOAD=/lib/libcod_1_3.so
$screen -A -m -d -S cod2 ./cod2lnxded + set .. +set ..
i have 32 libs , i can start server normally but i cant start with screen commandsPHP Code:
ERROR: ld.so: object '/home/user/cod2/lib/libcod2_1_3.so' from LD_PRELOAD cannot be preloaded (wrong ELF class : ELFCLASS32) ignored
You are doing preload for the screen this way. This will not work.
What you proably want is eg server.sh:
and then just launch that from screenPHP Code:
#!/bin/bash
export LD_PRELOAD="$HOME/cod2_1_3/libcod2_1_3.so"
PARAMS="+set fs_game ..."
"./cod2_lnxded" "$PARAMS"
PHP Code:
screen sh server.sh
i did this, i am getting "screen is terminating" message but server is not running
test your server.sh outside of screen first ofc.
i tested still i cant preload libcod
PHP Code:
ERROR: ld.so: object 'lib/libcod2_1_3.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Seems like you try to load the 32bit libcod library into a "normal" process, which is by default 64bit. Hence your start script is still wrong. Please post your scripts or just copy&paste correctly
PHP Code:
#!/bin/bash
export "LD_PRELOAD=$/path/to/lib/libcod2_1_3.so"
PARAMS="+set net_ip +set.. +set... +set sv_cracked 1"
"./cod2_lnxded" "$PARAMS"
And now compare that to what voron posted and see the flaw in it
still doesnt workPHP Code:
export LD_PRELOAD="$/path/to/lib/libcod2_1_3.so"
i did this
i can run this without screen but i cant run with screen :/PHP Code:
LD_LIBRARY_PATH=. LD_PRELOAD="/path/to/lib/libcod2_1_3.so":$LD_LIBRARY_PATH
Try using script i posted earlier but just replace your path/fs_game.
cant load libcod in screen :S
Show us the exact script you are using, not some general shit
I wanna point you towards my signature.
i am using like this , but i cant preload libcod with sh script so i cant run with screen.. always giving cant preload libcod error
but when i try like this i can preload libcod with sh script (its give preload error again but yet preloading :D) but cant preload in screen :D maybe iznogod is right its about me :DPHP Code:
#!/bin/bash
export LD_PRELOAD="$/path/to/lib/libcod2_1_3.so"
PARAMS="+set net_ip +set.. +set... +set sv_cracked 1"
"./cod2_lnxded" "$PARAMS"
PHP Code:
LD_LIBRARY_PATH=. LD_PRELOAD="/path/to/lib/libcod2_1_3.so":$LD_LIBRARY_PATH
This is the my cod2_lnxded:
Both cod2_lnxded and your cod2_lnxded_1_3_nodelay_va_loc binary must be chmodded to at least 755 or 777.PHP Code:
#!/bin/bash
LD_PRELOAD="/path/to/libs/libcod2_1_3.so" ./cod2_lnxded_1_3_nodelay_va_loc $@
Now you can start your server like before without libcod.
Compiled the .so yourself or using some downloaded one?
And show your start script
I use the downloaded file
PHP Code:
#!/bin/bash
export LD_PRELOAD="$HOME/cod2_1_3/libcod2_1_3.so"
PARAMS="+set fs_homepath /home/name/.callofduty2_1_3 +set fs_game main +set dedicated 2 +set net_port 28962 +exec server.cfg +set sv_cracked 1"
while true ; do
"$HOME/cod2_1_3/cod2_lnxded" "$PARAMS"
echo "Restarting the server..."
sleep 1
done
exit 1
That prebuilt stuff are outdated as hell, just compile it yourself.
@voron00 thank you so much.
I compiled myself. problem is solved
permission setRAD 140 Results Testolone Before and After is the way to go RAD-140 Dosage You can Buy RAD 140 Online and you won't regret it. rad 140 side effects rad-140 for sale rad 140 dosage rad 140 before and after I think rad 140 price is very secure and works like a charm. People enjoy the effects of rad 140 reviewso will you. one sweet rad 140 cycle checkout Testolone sarms to 777 and now its sorted thank you mate.
TRY OUR NEW VIAGRA. FIRST SET IS FREE FOR THE FIRST 30 REGISTRATIONS. CHECK OUR PRODUCT DEMO HERE.
Haha nope I'm real. Just look at my first post, but you're right about the necro posting. It took me 3 post to realize the newest thread were kinda.. necro. I'm just so sad you don't like my username.
But what about the feel? I know most servers are setup in this way, mostly by gamers without any knowledge general basic knowledge about linux security. I like that people want to experiment and try new things, and do not want to discourage people to run their own server. But only to note, I know most of these servers are hosted on virtual private servers, the common attack vector is just bruteforce SSH - because there is no (hardware) firewall or Fail2Ban like protection. The next step is to find some easy targets, like a COD server running 777 - which is accessible by everyone.
So there you have it, I can modify that, make it run as root, gaining full control of the server. I've worked with a lot of (third-party) servers in my life. It doesn't happen often but I had to secure a few VPSes in which SSH was used as attack vector and wrongly configured (chmodded..) apps were used to gain full access to the system. You're pretty safe if your running only a COD server because there is nothing to steal - but I don't know what you guys run on your own servers.
My post here explains how to run libcod without needing 777 by setting the correct permissions and ownership.