Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
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 ...
  1. #1
    Just Joined!
    Join Date
    Feb 2011
    Posts
    7

    Exclamation 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.

  2. #2
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,562
    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:
    Code:
    ssh server@123.45.678.9
    Once in the Debian box:
    Code:
    cd orangebox
    This assumes "orangebox" is in the server's home directory. If that's not the case, update the database. As su:
    Code:
    updatedb
    When it finishes:
    Code:
    locate orangebox
    As a for instance, if "orangebox" is in /usr/local/share you'd go:
    Code:
    cd /usr/local/share/orangebox
    Linux Mint + IceWM Registered:#371367 New Members: click here

  3. #3
    Just 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.

  4. #4
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    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'

  5. #5
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,562
    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.
    Linux Mint + IceWM Registered:#371367 New Members: click here

  6. #6
    Just 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.

  7. #7
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,562
    AS su:
    Code:
    apt-get install screen
    Linux Mint + IceWM Registered:#371367 New Members: click here

  8. #8
    Just Joined!
    Join Date
    Feb 2011
    Posts
    7
    Duhhhh!!!
    Thank you so much man, that worked perfectly!!! You're a lifesaver

  9. #9
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    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.

  10. #10
    Just 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

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •