Jump to content


How to start Start Linux Server.sh


  • Please log in to reply
15 replies to this topic

#1 NMS{Peace}

NMS{Peace}

    Member

  • Members
  • PipPip
  • 10 posts

Posted 05 May 2019 - 11:02 AM

Hi people,

Just would love to start own sof2 server via Linux via 1fx.mod

Installed clean sof installation and did copy the server files.

In terminal I went to the 1fx directory.

However how to I give the correct command for executing the ´Start Linux Server.sh´ file?

I tried ./Start Linux Server. sh but mentions:
bash: ./Start: No such file or directory

I am just a rookie in Linux. :unsure:

Thanks in advance.

Peace.

#2 BoeMan

BoeMan

    Developer

  • Administrators
  • 4018 posts
  • LocationFryslân

Posted 05 May 2019 - 11:34 AM

Hey there.

Your command fails because it contains spaces. Either put quotes around it:

$ "./Start Linux Server.sh"

or let the shell know you mean a space by using an escape character (a backslash, not a forward slash!):

$ ./Start\ Linux\ Server.sh

Tip: Try auto completing your way through using TAB, e.g. type ./Start and auto complete with TAB. Makes using a Linux shell a lot easier.
Kind regards,

BoeMan

#3 NMS{Peace}

NMS{Peace}

    Member

  • Members
  • PipPip
  • 10 posts

Posted 05 May 2019 - 12:08 PM

Hey Boeman

Thank you for your quick reply!

I followed you advice and i am  (small) step further but get the following:

./Start Linux Server.sh: 5: ./Start Linux Server.sh: ./sof2ded: not found

sof2ded is in the sof2 directory present.
What am I doing wrong?

Thanks in advance.

Greetz

Peace.

#4 BoeMan

BoeMan

    Developer

  • Administrators
  • 4018 posts
  • LocationFryslân

Posted 05 May 2019 - 01:14 PM

Can you post the contents of your 1fx directory and your SoF2 directory?

Please run:

$ ls -l

and post the contents for both directories here.

Thanks!
Kind regards,

BoeMan

#5 NMS{Peace}

NMS{Peace}

    Member

  • Members
  • PipPip
  • 10 posts

Posted 05 May 2019 - 01:46 PM

Hi Boeman

Here are the contents:

gerard@gerard-desktop /usr/local/games/sof2 $ ls -l
total 1280
drwxr-xr-x 10 root root    4096 May  5 12:57 1fx
drwxr-xr-x  5 root root    4096 May  5 12:41 base
-rwxr-xr-x  1 root root 1299368 May  5 12:35 sof2ded



and

gerard@gerard-desktop /usr/local/games/sof2/1fx $ ls -l
total 2804
drwxr-xr-x 2 root root    4096 May 11  2015 botfiles
drwxr-xr-x 2 root root    4096 May 11  2015 botroutes
-rw-r--r-- 1 root root   14183 Jul 26  2017 Config.cfg
drwxr-xr-x 2 root root    4096 May 21  2018 core
drwxr-xr-x 3 root root    4096 Dec  6  2015 ext_data
drwxr-xr-x 3 root root    4096 Mar 20  2018 files
drwxr-xr-x 6 root root    4096 Dec  6  2015 maps
drwxr-xr-x 2 root root    4096 May 11  2015 scripts
-rwxr-xr-x 1 root root 1542204 May 21  2018 sof2mp_gamei386.so
-rwxr-xr-x 1 root root 1268224 May 21  2018 sof2mp_gamex86.dll
-rwxr-xr-x 1 root root 109 May 21  2018 Start Linux Server.sh
-rw-r--r-- 1 root root   91 May 21  2018 Start Windows Server.bat
drwxr-xr-x 2 root root    4096 Dec 23  2015 weaponfiles

Kind regards

Peace.

#6 BoeMan

BoeMan

    Developer

  • Administrators
  • 4018 posts
  • LocationFryslân

Posted 05 May 2019 - 02:01 PM

Are you trying to run v1.00 or v1.03 of 1fx. Mod? Judging by the size of the 1fx. Mod .so file and the sof2ded binary you're trying to run v1.03.

If that is indeed the case, you seem to be missing some files. You need at least the "pb" directory in your SoF2 directory as well (even if you're not going to use PunkBuster) and one extra dependency. Please run the following from your SoF2 directory:

$ ldd sof2ded

.. this basically lists all dependencies so I might be able to help identify what other library is still missing.
Kind regards,

BoeMan

#7 NMS{Peace}

NMS{Peace}

    Member

  • Members
  • PipPip
  • 10 posts

Posted 05 May 2019 - 02:21 PM

Hi Boeman

Did add some directories including PB now it looks like this:

gerard@gerard-desktop /usr/local/games/sof2 $ ls -l
total 8968
drwxr-xr-x 10 root   root   4096 May  5 12:57 1fx
drwxr-xr-x  2 root   root   4096 Dec 17  2017 1fx.additions
drwxr-xr-x  2 root   root   4096 Dec 17  2017 1fx.rocmod
drwxr-xr-x  5 root   root   4096 May  5 12:41 base
-rwxrwxrwx  1 gerard gerard  802816 May  3  2002 cgamex86.dll
-rwxrwxrwx  1 gerard gerard   52332 Mar 20  2004 corsica07.jpg
-rwxrwxrwx  1 gerard gerard   56233 Mar 20  2004 corsica08.jpg
drwxrwxrwx  7 gerard gerard    4096 May  4 22:02 Docs
-rwxrwxrwx  1 gerard gerard   94208 May  1  2002 EaxMan.dll
drwxrwxrwx  3 gerard gerard    4096 May  4 22:02 Extras
-rwxrwxrwx  1 gerard gerard  143360 May  3  2002 ffx86.dll
-rwxrwxrwx  1 gerard gerard 2273280 May  3  2002 gamex86.dll
drwxrwxrwx  2 gerard gerard    4096 May  4 22:02 ics
-rwxrwxrwx  1 gerard gerard  163281 May 11  2003 ICS.exe
-rwxrwxrwx  1 gerard gerard  164999 Dec  1  2003 ICS-server.exe
-rwxrwxrwx  1 gerard gerard  200704 May  3  2002 IFC22.dll
-rwxrwxrwx  1 gerard gerard   36962 Mar 20  2004 m19.jpg
-rwxrwxrwx  1 gerard gerard  241664 May  3  2002 Menusx86.dll
drwxrwxrwx  9 gerard gerard    4096 Aug  8  2015 Pb
-rwxrwxrwx  1 gerard gerard  423952 Jul 28  2017 servercache.dat
-rwxrwxrwx  1 gerard gerard  204800 May  3  2002 snd_alx86.dll
-rwxrwxrwx  1 gerard gerard  188416 May  3  2002 snd_dsx86.dll
-rwxrwxrwx  1 gerard gerard   61650 Mar 20  2004 sniper.jpg
-rwxr-xr-x  1 root   root   1299368 May  5 12:35 sof2ded
-rwxrwxrwx  1 gerard gerard 1064960 May  3  2002 SoF2.exe
-rw-r--r--  1 root   root   1572917 Nov  5  2002 SoF2MP.exe
-rwxrwxrwx  1 gerard gerard   74802 Jul 28  2017 Uninstal ICS 2.2.exe
drwxrwxrwx  2 gerard gerard    4096 May  4 22:02 Uninstall

Did the command ldd sof2ded and following is missing:

gerard@gerard-desktop /usr/local/games/sof2 $ ldd sof2ded
    linux-gate.so.1 =>  (0xf778a000)
    libdl.so.2 => /lib32/libdl.so.2 (0xf7766000)
    libm.so.6 => /lib32/libm.so.6 (0xf7711000)
    libcxa.so.1 => not found
    libc.so.6 => /lib32/libc.so.6 (0xf755d000)
    /lib/ld-linux.so.2 (0x5662f000)


How to get these files? (btw I am running Linux Mint 18.3 Sylvia)

Thanks (again) in advance :rolleyes:

#8 NMS{Peace}

NMS{Peace}

    Member

  • Members
  • PipPip
  • 10 posts

Posted 05 May 2019 - 02:24 PM

Try to run v1.03 btw

#9 NMS{Peace}

NMS{Peace}

    Member

  • Members
  • PipPip
  • 10 posts

Posted 05 May 2019 - 02:42 PM

and I am running on 64 bit machine (missing 32bit files)?

#10 NMS{Peace}

NMS{Peace}

    Member

  • Members
  • PipPip
  • 10 posts

Posted 05 May 2019 - 06:54 PM

Hi

Did try to get the libraries from inet but not succeed till now; :(

Missing following;
gerard-desktop sof2 # ldd sof2ded
    linux-gate.so.1 =>  (0xf77f7000)
    libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf77cc000)
    libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf7777000)
    libcxa.so.1 => not found
    libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf75c1000)
    /lib/ld-linux.so.2 (0x565ed000)

gerard-desktop 1fx # sh Start\ Server.sh
./sof2ded: error while loading shared libraries: libcxa.so.1: cannot open shared object file: No such file or directory

Regards

Peace.

#11 BoeMan

BoeMan

    Developer

  • Administrators
  • 4018 posts
  • LocationFryslân

Posted 05 May 2019 - 07:35 PM

View PostNMS{Peace}, on 05 May 2019 - 02:21 PM, said:

Hi Boeman

Did add some directories including PB now it looks like this:

gerard@gerard-desktop /usr/local/games/sof2 $ ls -l
total 8968
drwxr-xr-x 10 root   root   4096 May  5 12:57 1fx
drwxr-xr-x  2 root   root   4096 Dec 17  2017 1fx.additions
drwxr-xr-x  2 root   root   4096 Dec 17  2017 1fx.rocmod
drwxr-xr-x  5 root   root   4096 May  5 12:41 base
-rwxrwxrwx  1 gerard gerard  802816 May  3  2002 cgamex86.dll
-rwxrwxrwx  1 gerard gerard   52332 Mar 20  2004 corsica07.jpg
-rwxrwxrwx  1 gerard gerard   56233 Mar 20  2004 corsica08.jpg
drwxrwxrwx  7 gerard gerard 4096 May  4 22:02 Docs
-rwxrwxrwx  1 gerard gerard   94208 May  1  2002 EaxMan.dll
drwxrwxrwx  3 gerard gerard 4096 May  4 22:02 Extras
-rwxrwxrwx  1 gerard gerard  143360 May  3  2002 ffx86.dll
-rwxrwxrwx  1 gerard gerard 2273280 May  3  2002 gamex86.dll
drwxrwxrwx  2 gerard gerard 4096 May  4 22:02 ics
-rwxrwxrwx  1 gerard gerard  163281 May 11  2003 ICS.exe
-rwxrwxrwx  1 gerard gerard  164999 Dec  1  2003 ICS-server.exe
-rwxrwxrwx  1 gerard gerard  200704 May  3  2002 IFC22.dll
-rwxrwxrwx  1 gerard gerard   36962 Mar 20  2004 m19.jpg
-rwxrwxrwx  1 gerard gerard  241664 May  3  2002 Menusx86.dll
drwxrwxrwx  9 gerard gerard 4096 Aug  8  2015 Pb
-rwxrwxrwx  1 gerard gerard  423952 Jul 28  2017 servercache.dat
-rwxrwxrwx  1 gerard gerard  204800 May  3  2002 snd_alx86.dll
-rwxrwxrwx  1 gerard gerard  188416 May  3  2002 snd_dsx86.dll
-rwxrwxrwx  1 gerard gerard   61650 Mar 20  2004 sniper.jpg
-rwxr-xr-x  1 root   root   1299368 May  5 12:35 sof2ded
-rwxrwxrwx  1 gerard gerard 1064960 May  3  2002 SoF2.exe
-rw-r--r--  1 root   root   1572917 Nov  5  2002 SoF2MP.exe
-rwxrwxrwx  1 gerard gerard   74802 Jul 28  2017 Uninstal ICS 2.2.exe
drwxrwxrwx  2 gerard gerard 4096 May  4 22:02 Uninstall

Did the command ldd sof2ded and following is missing:

gerard@gerard-desktop /usr/local/games/sof2 $ ldd sof2ded
linux-gate.so.1 =>  (0xf778a000)
libdl.so.2 => /lib32/libdl.so.2 (0xf7766000)
libm.so.6 => /lib32/libm.so.6 (0xf7711000)
libcxa.so.1 => not found
libc.so.6 => /lib32/libc.so.6 (0xf755d000)
/lib/ld-linux.so.2 (0x5662f000)


How to get these files? (btw I am running Linux Mint 18.3 Sylvia)

Thanks (again) in advance :rolleyes:

Ouch, that's a lot of Windows stuff. You don't need half of that, you only need the following files/directories:
  • base
  • pb
  • 1fx
  • 1fx.additions
  • 1fx.rocmod
  • sof2ded
Looks like you only miss the libcxa.so.1 file now, that was part of the SoF2 v1.02 dedicated server zip. It's on my server, you can download it as such (as root!):

# cd /usr/local/lib
# wget http://boeboe.uk.to/pub/sof2dedlinux1_02/libcxa.so.1

Try to run the server now, and it should work. :)
Kind regards,

BoeMan

#12 BoeMan

BoeMan

    Developer

  • Administrators
  • 4018 posts
  • LocationFryslân

Posted 05 May 2019 - 07:38 PM

P.S. it seems you have a "Pb" directory, that's probably the Windows version of PB. You can verify this by checking if you have .dlls in your Pb directory. I think the Linux version has a lowercase "pb" directory like the one here (paths are case sensitive on *nix): http://boeboe.uk.to/...edlinux1_02/pb/

From your SoF2 directory:

$ mv Pb pb
$ cd pb
$ rm *
$ wget http://boeboe.uk.to/pub/sof2dedlinux1_02/pb/pbag.so
$ wget http://boeboe.uk.to/pub/sof2dedlinux1_02/pb/pbcl.so
$ wget http://boeboe.uk.to/pub/sof2dedlinux1_02/pb/pbsv.so

But, of course, only do this if the Linux server really needs these files because PB doesn't even work anymore.
Kind regards,

BoeMan

#13 NMS{Peace}

NMS{Peace}

    Member

  • Members
  • PipPip
  • 10 posts

Posted 05 May 2019 - 08:28 PM

Ok thanks Boeman I give it a try!  :)

let you know if it works

#14 NMS{Peace}

NMS{Peace}

    Member

  • Members
  • PipPip
  • 10 posts

Posted 05 May 2019 - 08:42 PM

Hi
Did all you proposed actions but still message:

gerard-desktop 1fx # sh Start\ Server.sh
./sof2ded: error while loading shared libraries: libcxa.so.1: cannot open shared object file: No such file or directory

Location of libxca.so.1 not correct of do i need other action to embedd the file?

Greetz

Peace.

#15 NMS{Peace}

NMS{Peace}

    Member

  • Members
  • PipPip
  • 10 posts

Posted 05 May 2019 - 08:59 PM

Hi Boeman

Got the server running :P :D

Had to put the file under /lib iso /usr/local/lib

Thank a lot for your advise/help!

Greetz from Peace.

#16 BoeMan

BoeMan

    Developer

  • Administrators
  • 4018 posts
  • LocationFryslân

Posted 05 May 2019 - 09:27 PM

View PostNMS{Peace}, on 05 May 2019 - 08:59 PM, said:

Hi Boeman

Got the server running :P :D

Had to put the file under /lib iso /usr/local/lib

Thank a lot for your advise/help!

Greetz from Peace.

Odd how that works, probably some differences between Mint and Debian or a behavior change Debian hasn't adapted to (yet).

Anyway, glad you got it working! Enjoy using 1fx. Mod.
Kind regards,

BoeMan




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users