LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-21-2012, 03:51 AM   #1
onedayiwillbetheanswerer
LQ Newbie
 
Registered: Jul 2012
Posts: 12

Rep: Reputation: Disabled
Trying to setup dedicated cs:go server; update: steamcmd launches, but fatal error


For some reason I can't get the steamcmd tool to execute in the directory.

This is where I have made the directory:

Quote:
adam@adam-server:/steamcmd$ pwd

/steamcmd

adam@adam-server:/steamcmd$ ls

linux32 steam.sh
The directory I extracted the steam.tar.gz file was to /steamcmd

-Input was # tar xvzf steamcmd.tar.gz -C /steamcmd

So then when I run the file the working directory is /steamcmd as well.

The /steamcmd directory has the following structure:

/steamcmd/linux32

/steamcmd/steam.sh

If I cd to /steamcmd/linux32;

/steamcmd/linux32/steamcmd


This is the output when I try to execute with either ./steam.sh or STEAMEXE=steamcmd ./steam.sh

Quote:
adam@adam-server:/steamcmd$ STEAMEXE=steamcmd ./steam.sh

./steam.sh: line 56: /steamcmd/linux32/steamcmd: No such file or directory

adam@adam-server:/steamcmd$ ./steam.sh

./steam.sh: line 56: /steamcmd/linux32/steam: No such file or directory

adam@adam-server:/steamcmd$

The bash shell script has the following; (I'm still relatively new to scripting, so help is wonderful!)

Quote:

root@adam-server:/steamcmd# cat steam.sh

#!/bin/bash

# figure out the absolute path to the script being run a bit

# non-obvious, the ${0%/*} pulls the path out of $0, cd's into the

# specified directory, then uses $PWD to figure out where that

# directory lives - and all this in a subshell, so we don't affect

# $PWD

STEAMROOT=$(cd "${0%/*}" && echo $PWD)

#determine platform

UNAME="uname"

if [ "$UNAME" == "Linux" ]; then

PLATFORM=linux32

# prepend our lib path to LD_LIBRARY_PATH

export LD_LIBRARY_PATH="${STEAMROOT}"/${PLATFORM}:$LD_LIBRARY_PATH

else # if [ "$UNAME" == "Darwin" ]; then

PLATFORM=osx32

# prepend our lib path to LD_LIBRARY_PATH

export DYLD_LIBRARY_PATH="${STEAMROOT}"/${PLATFORM}:$DYLD_LIBRARY_PATH

# make sure our architecture is sane

ARCH=`arch`

case "$ARCH" in

ppc* )

osascript -e 'tell application "Dock"

display dialog "Steam is only supported on Intel-based Macs." buttons "Exit" default button 1 with title "Unsupported Architecture" with icon stop

activate

end tell'

exit -1

;;

esac

# make sure we're running >= 10.5.0

OSXVER=`sw_vers -productVersion`

case "$OSXVER" in

10.0.* | 10.1.* | 10.2.* | 10.3.* | 10.4.* )

osascript -e 'tell application "Dock"

display dialog "Steam Requires OSX 10.5 or greater" buttons "Exit" default button 1 with title "Unsupported Operating System" with icon stop

activate

end tell'

exit -1

;;

esac

fi

if [ -z $STEAMEXE ]; then

STEAMEXE=steam

fi

ulimit -n 2048

# and launch steam

cd "$STEAMROOT"

STATUS=42

while [ $STATUS -eq 42 ]; do

${DEBUGGER} "${STEAMROOT}"/${PLATFORM}/${STEAMEXE} "$@"

STATUS=$?

# are we running osx?

if [ $STATUS -eq 42 -a ${PLATFORM} == "osx32" -a -f Info.plist ]; then

# are we running from in a bundle?

exec open "${STEAMROOT}"/../..

fi

done

exit $STATUS
What would I have to modify to make it execute correctly?

Thanks

Last edited by onedayiwillbetheanswerer; 08-23-2012 at 03:29 AM.
 
Old 08-21-2012, 04:17 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
does
Code:
adam@adam-server:/steamcmd$ sh steam.sh
not do it?
 
Old 08-21-2012, 04:28 AM   #3
onedayiwillbetheanswerer
LQ Newbie
 
Registered: Jul 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
does
Code:
adam@adam-server:/steamcmd$ sh steam.sh
not do it?
That returns this;

(I'm starting to think it's a directory problem and I have to specify it in the bash script. But I'm unsure exactly what to edit)

Code:
root@adam-server:/steamcmd# sh steam.sh
steam.sh: 9: cd: can't cd to steam.sh
steam.sh: 13: [: Linux: unexpected operator
steam.sh: 1: steam.sh: sw_vers: not found
steam.sh: 56: steam.sh: /osx32/steam: not found
steam.sh: 59: [: osx32: unexpected operator
root@adam-server:/steamcmd#
 
Old 08-21-2012, 04:37 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Sorry, my answer was useless, didn't read the errors correctly.

I don't know how Steam should install, but the script doesn't appear to do anything massively useful really.... just this...

Code:
export LD_LIBRARY_PATH=/Steamcmd/linux32:$LD_LIBRARY_PATH
/Steamcmd/linux32/steamcmd
does that work by itself?
 
Old 08-21-2012, 04:52 AM   #5
onedayiwillbetheanswerer
LQ Newbie
 
Registered: Jul 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
It appeared to do nothing..?


Code:
root@adam-server:/# export LD_LIBRARY_PATH=/Steamcmd/linux32:$LD_LIBRARY_PATH/Steamcmd/linux32/steamcmd
root@adam-server:/#

Last edited by onedayiwillbetheanswerer; 08-21-2012 at 05:24 AM.
 
Old 08-21-2012, 04:56 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
yeah, but that's two different lines, not one!
 
1 members found this post helpful.
Old 08-21-2012, 05:20 AM   #7
onedayiwillbetheanswerer
LQ Newbie
 
Registered: Jul 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
Code:
root@adam-server:/# export LD_LIBRARY_PATH=/Steamcmd/linux32:$LD_LIBRARY_PATH
root@adam-server:/# /Steamcmd/linux32/steamcmd
bash: /Steamcmd/linux32/steamcmd: No such file or directory
root@adam-server:/#


Unrelated:
I want a little linux man sitting on my desk who I can constantly pesture all day long for my silly noob questions.
 
Old 08-21-2012, 05:47 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
ahh c'mon I put an S where an s should be... I'm sure you can see that one.
 
Old 08-21-2012, 06:05 AM   #9
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Don't go into the linux32 directory.
I guess you followed this guide?

Heres what I did to get it up.
Code:
smile@mile:~/Downloads$ mkdir ./steam
smile@mile:~/Downloads$ mv ./steamcmd.tar.gz 
mv: missing destination file operand after `./steamcmd.tar.gz'
Try `mv --help' for more information.
smile@mile:~/Downloads$ mv ./steamcmd.tar.gz  ./steam
smile@mile:~/Downloads$ cd steam/
smile@mile:~/Downloads/steam$ tar -xzf ./steamcmd.tar.gz 
smile@mile:~/Downloads/steam$ ls
linux32  steamcmd.tar.gz  steam.sh
smile@mile:~/Downloads/steam$ ./steam.sh 
./steam.sh: line 49: ulimit: open files: cannot modify limit: Operation not permitted
./steam.sh: line 56: /home/smile/Downloads/steam/linux32/steam: No such file or directory
smile@mile:~/Downloads/steam$ ls
linux32  steamcmd.tar.gz  steam.sh
smile@mile:~/Downloads/steam$ STEAMEXE="steamcmd ./steam.sh"
smile@mile:~/Downloads/steam$ STEAMEXE="steamcmd ./steam.sh"
smile@mile:~/Downloads/steam$ STEAMEXE=steamcmd ./steam.sh
./steam.sh: line 49: ulimit: open files: cannot modify limit: Operation not permitted
ILocalize::AddFile() failed to load file "public/steambootstrapper_english.txt".
[  0%] Checking for available update...
[  0%] Downloading update (0 of 10,116 KB)...
So basicaly
mkdir steam
Download to directory steam
untar
run STEAMEXE=steamcmd ./steam.sh
 
Old 08-22-2012, 01:46 AM   #10
onedayiwillbetheanswerer
LQ Newbie
 
Registered: Jul 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by zhjim View Post
Don't go into the linux32 directory.
I guess you followed this guide?

Heres what I did to get it up.

So basicaly
mkdir steam
Download to directory steam
untar
run STEAMEXE=steamcmd ./steam.sh
Code:
root@adam-server:/# cd downloads
root@adam-server:/downloads# mkdir ./steam
root@adam-server:/downloads# ls
steam
root@adam-server:/downloads# wget http://blog.counter-strike.net/wp-content/uploads//2012/04/steamcmd.tar.gz
--2012-08-22 16:39:53--  http://blog.counter-strike.net/wp-content/uploads//2012/04/steamcmd.tar.gz
Resolving blog.counter-strike.net (blog.counter-strike.net)... 63.228.223.107
Connecting to blog.counter-strike.net (blog.counter-strike.net)|63.228.223.107|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1715622 (1.6M) [application/x-gzip]
Saving to: `steamcmd.tar.gz'

100%[======================================>] 1,715,622    449K/s   in 4.7s    

2012-08-22 16:40:19 (360 KB/s) - `steamcmd.tar.gz' saved [1715622/1715622]

root@adam-server:/downloads# ls
steam  steamcmd.tar.gz
root@adam-server:/downloads# mv steamcmd.tar.gz steam
root@adam-server:/downloads# ls
steam
root@adam-server:/downloads# cd steam
root@adam-server:/downloads/steam# ls
steamcmd.tar.gz
root@adam-server:/downloads/steam# tar xvfz steamcmd.tar.gz
steam.sh
linux32/steamcmd
root@adam-server:/downloads/steam# ls
linux32  steamcmd.tar.gz  steam.sh
root@adam-server:/downloads/steam# ./steam.sh
./steam.sh: line 56: /downloads/steam/linux32/steam: No such file or directory
root@adam-server:/downloads/steam# ls
linux32  steamcmd.tar.gz  steam.sh
root@adam-server:/downloads/steam# STEAMEXE=steamcmd ./steam.sh
./steam.sh: line 56: /downloads/steam/linux32/steamcmd: No such file or directory
root@adam-server:/downloads/steam# ls
linux32  steamcmd.tar.gz  steam.sh
root@adam-server:/downloads/steam# STEAMEXE="steamcmd ./steam.sh"
root@adam-server:/downloads/steam# STEAMEXE="steamcmd ./steam.sh
> 
> "
root@adam-server:/downloads/steam# STEAMEXE="steamcmd ./steam.sh"
root@adam-server:/downloads/steam# STEAMEXE=steamcmd ./steam.sh
./steam.sh: line 56: /downloads/steam/linux32/steamcmd: No such file or directory
No luck. :|

Edit:

I am running a 64bit Ubunutu, do you think that will cause any issues since steam.sh is checking for a Linux32 enviroment?
Should be backwards compatible yeah?

Last edited by onedayiwillbetheanswerer; 08-22-2012 at 02:16 AM.
 
Old 08-22-2012, 02:18 AM   #11
onedayiwillbetheanswerer
LQ Newbie
 
Registered: Jul 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
ahh c'mon I put an S where an s should be... I'm sure you can see that one.
Haha I saw that, but I thought maybe he did that for a reason so I didn't edit it :P

But tried it with this new directory installation and still no luck.


Ahhhh.
 
Old 08-22-2012, 05:07 AM   #12
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Im running debian 64bit so this should not really be a problem. But who knows.
Just one thing that I noticed you're doing different from me is that you are running it as root and I as an unpriviliged user. Also it should rather cause more problems not running as root when coming to permissions in this case I would try it. Especially as you are installing a service as root.
If this does not bring the cure I'm out of idea. Also you could strace the whole thing.
 
Old 08-22-2012, 05:40 AM   #13
onedayiwillbetheanswerer
LQ Newbie
 
Registered: Jul 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by zhjim View Post
If this does not bring the cure I'm out of idea. Also you could strace the whole thing.
Tried both as a user and as a user with sudo.
Still no go.
I even tried giving all files full 777.
From what I can tell in the steam.sh script, it should be executing.
It points to the correct directory, so that's as far as my knowledge goes

Never used strace before, but I shall give it a go.

If that fails.. where do I go from here? haha

Last edited by onedayiwillbetheanswerer; 08-22-2012 at 05:41 AM.
 
Old 08-22-2012, 07:50 AM   #14
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Tried it again from gound up. Worked for me. A little trick to get rid of the STEAMEXE=steamcd ./steam.sh line is to have a symlink in linux32 from steam to steamcmd.
Code:
cd linux32
ln -s ./steamcmd ./steam
Then you can just call ./steam.sh. Or set the variable inside the steam.sh script to it.

This all came from looking at the steam.sh script which like we all found out does not really do much beside setting the LD_DIRECTORY and setting the STEAMEXE to run.
 
Old 08-23-2012, 02:40 AM   #15
onedayiwillbetheanswerer
LQ Newbie
 
Registered: Jul 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by zhjim View Post
Tried it again from gound up. Worked for me. A little trick to get rid of the STEAMEXE=steamcd ./steam.sh line is to have a symlink in linux32 from steam to steamcmd.
Code:
cd linux32
ln -s ./steamcmd ./steam
Then you can just call ./steam.sh. Or set the variable inside the steam.sh script to it.

This all came from looking at the steam.sh script which like we all found out does not really do much beside setting the LD_DIRECTORY and setting the STEAMEXE to run.
I've already tried setting the variable inside the steam.sh script, so I didn't have to type the 'STEAMEXE=steamcmd'

Is there a way I could just execute the steamcmd file without using the script to clarify whether I have the correct OS or not?
I know I have the correct OS, so then the script is pointless, yeah?

edit: I'm going to try installing ia32-libs and see what happens.

Last edited by onedayiwillbetheanswerer; 08-23-2012 at 02:54 AM.
 
  


Reply



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
Dedicated server DNS and domain name setup Luna-tic Linux - Server 6 12-11-2011 03:04 PM
How to setup Dedicated Server using Ubuntu Server or equivalent opensource OS spikesync Linux - Newbie 1 01-16-2010 06:32 PM
LXer: HOWTO Setup Steam Version of Crysis on Ubuntu LXer Syndicated Linux News 0 12-26-2009 06:30 AM
Steam Dedicated Server problem Zaskar Linux - Software 0 02-28-2004 01:47 AM
help finding something to setup dedicated UT2003 server dkc_ace Linux - Software 1 12-19-2002 01:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:38 AM.

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