Results 1 to 10 of 13
Hi, I'm trying to run a "Garry's Mod" game server on my dedicated server. I'm using a very helpful tutorial on the Gmod wiki (I cannot post a link to ...
- 02-28-2011 #1Just Joined!
- Join Date
- Feb 2011
- Posts
- 7
Problem with locating a certain folder. "No such file or directoy"
Hi, I'm trying to run a "Garry's Mod" game server on my dedicated server. I'm using a very helpful tutorial on the Gmod wiki (I cannot post a link to it as I don't have 15 posts or more
).
Now I have very, very little experience with Linux (I am running Debian on it). However, I've gotten quite far in the tutorial, and everything looks to be perfect. I am using putty to access my server, but I also have FTP on it. Basically, when I need to access a certain folder called "orangebox" (using cd orangebox), an error comes up saying this:-bash: cd: orangebox: No such file or directory.
However, I know that there is such a folder, as I can see it fine on FTP.
Would any kind soul out there know how to get around this or fix it? Cheers guys.
- 02-28-2011 #2
So you are using putty from a Windows machine to access a folder on a Debian server? Did you actually access the server from Putty? ssh is the best way:
Once in the Debian box:Code:ssh server@123.45.678.9
This assumes "orangebox" is in the server's home directory. If that's not the case, update the database. As su:Code:cd orangebox
When it finishes:Code:updatedb
As a for instance, if "orangebox" is in /usr/local/share you'd go:Code:locate orangebox
Code:cd /usr/local/share/orangebox
- 02-28-2011 #3Just Joined!
- Join Date
- Feb 2011
- Posts
- 7
Sorry, but is su root? Will that do any harm (updatedb)? I was told to not do anything unnecessary as root because I could do real damage. As a normal user, updatedb does not work

This is the error I get when I run updatedb as a normal user:
updatedb: can not open a temporary file for `/var/lib/mlocate/mlocate.db'Last edited by Caesar_IRE; 02-28-2011 at 01:37 PM.
- 02-28-2011 #4
Yes, you need to run updatedb as root. You're correct that you shouldn't use root unless necessary, but it is in this case. Many people set up sudo to simplify running a command with elevated privileges as needed rather than su'ing to root.
You can run a single command with su as well though as so
Code:su -c 'updatedb'
- 02-28-2011 #5
So you were able to "ssh" into the server via putty? You were not able to "cd" into the directory once in? Where is the directory when logging in via ftp? You would use the same path using ssh. Certain things in Linux have to be done as "su" or using "sudo." Updating your database as su is safe as long as you do the commands correctly. Your Debian box may updatedb on a timed basis so you might find the directory using the locate command (as regular user) without updating the db.
- 02-28-2011 #6Just Joined!
- Join Date
- Feb 2011
- Posts
- 7
Well I tried running updatedb as root, but nothing happened. What is the exact command I should use? I just typed "updatedb" (without "").
I can ssh into the server fine, but I am supposed to create a file (startgmod.sh) and write this in it:
#!/bin/bash
echo "Starting up Garry's Mod 10 server."
sleep 5
screen -A -m -d -S gm10server orangebox/srcds_run -console -game garrysmod +maxplayers 16 +map gm_construct -autoupdate
echo "Started. Type screen -x to resume!"
.
However, when I try to run it by typing ./startgmod.sh, this error occurs:"./startgmod.sh: line 4: screen: command not found". I think this only happens, because when I type "cd orangebox" (without ""), it claims that no such file or directory is found. However, if I type "cd /home/<username>/srcds/orangebox", I can enter the orangebox folder.
- 02-28-2011 #7
AS su:
Code:apt-get install screen
- 02-28-2011 #8Just Joined!
- Join Date
- Feb 2011
- Posts
- 7
Duhhhh!!!
Thank you so much man, that worked perfectly!!! You're a lifesaver
- 02-28-2011 #9
Just FYI, you won't see any output with the updatedb command. As with many linux commands, there tends not to be much output when things work correctly.
- 02-28-2011 #10Just Joined!
- Join Date
- Feb 2011
- Posts
- 7
Ah, cheers. That would explain it. Would you happen to know how to close a screen? I have 3 of them open, and it says Type "screen [-d] -r [pid.]tty.host" to resume one of them, but when I type that, I'm not sure what to do :o


Reply With Quote
