Results 1 to 7 of 7

Thread: What is the proper tool to use for editing files on a server?

  1. #1
    Join Date
    Mar 2009
    Location
    Texas
    Beans
    189

    What is the proper tool to use for editing files on a server?

    I have a gaming server set up and running client software 24/7. This prevents me from editing the configuration files while the client is running. The server is connected to a switch which also connects another computer to the internet.

    What would be the proper software to use if I want to edit files on the server without interrupting the client?

    I have looked at Samba, SSH, and Screen, but I'm not entirely sure which one would be the best tool for the job.

    Any ideas?
    Specs:
    Dell XPS 15 Notebook || 2.3 GHz Intel i5|| 6Gb RAM || NVIDIA GeForce GT 525M
    If I've skipped something, please let me know.

  2. #2
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    26,047
    Distro
    Ubuntu Development Release

    Re: What is the proper tool to use for editing files on a server?

    I'd suggest logging in to the server with ssh. If you have a static IP for the server, and you should:
    Code:
    ssh -l user 192.168.blah.blah
    Then I'd use vim:
    Code:
    sudo vim /etc/config/file
    After you have saved and closed the file, you'll need to restart any services dependent on the file:
    Code:
    sudo service example restart
    Then log out of ssh and you're done.
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, B.Sc., M.Sc., M.A., Ph.D., Sc.D.

  3. #3
    Join Date
    May 2009
    Location
    Jah's Pocket
    Beans
    733
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: What is the proper tool to use for editing files on a server?

    On an additional note, unless the server software scans the config files for changes on its own, and is capable of implementing the changes without interrupting client/server IO; The server will have to be gamer free for the service to be restarted as chili said. If not you will disconnect the gamers when you restart it.

    With this in mind, don't expect it to be an uninterrupted event.
    MyBlog
    Sledgehammer engineering, if it doesn't work, hit it damn hard.

  4. #4
    Join Date
    Mar 2009
    Location
    Texas
    Beans
    189

    Re: What is the proper tool to use for editing files on a server?

    Okay, SSH is proving to be a bit of a headache to set up, but I should understand it after a bit more searching.

    In the meantime, I have installed Screen. It does exactly what I need it to do. I can edit files while the game runs in the background and then reload the files all without stopping the client. The only drawback is that I have to have the keyboard plugged into the server.

    Thanks for the help.
    Specs:
    Dell XPS 15 Notebook || 2.3 GHz Intel i5|| 6Gb RAM || NVIDIA GeForce GT 525M
    If I've skipped something, please let me know.

  5. #5
    Join Date
    May 2009
    Location
    Jah's Pocket
    Beans
    733
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: What is the proper tool to use for editing files on a server?

    Your only real options are ssh or it's stupid older brother telnet. I would not recommend telnet unless it is on a local network usage as information is sent with out encryption.
    MyBlog
    Sledgehammer engineering, if it doesn't work, hit it damn hard.

  6. #6
    pricetech is offline Iced Blended Vanilla Crème Ubuntu
    Join Date
    Apr 2008
    Beans
    1,651

    Re: What is the proper tool to use for editing files on a server?

    Quote Originally Posted by Boondoklife View Post
    stupid older brother telnet.
    Not stupid, just naive.

    SSH to the server is your best option.

    I like nano as a command line text editor. Plain vanilla, which is what I want in a text editor.

  7. #7
    Join Date
    May 2009
    Location
    Jah's Pocket
    Beans
    733
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: What is the proper tool to use for editing files on a server?

    Nah stupid fits better, I mean anyone that writes sensitive information in plain text on a medium is just stupid! Seriously I don't think there is a person alive that doesn't realize this fallacy in some capacity.
    MyBlog
    Sledgehammer engineering, if it doesn't work, hit it damn hard.

Bookmarks

Posting Permissions

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