Overclock.net banner

I'm trying to set up a dedicated server and failing pretty hard

438 views 12 replies 2 participants last post by  Art Vanelay 
#1 ·
I first was trying to set up a static IP address, and can't get this to work. I can't even access the internet anymore.

this is what's written in interfaces:

#interfaces(5) file used by ifup(8) and ifdown(8)
auto eth0
iface lo inet loopback
iface eth0 inet static
address 192.168.1.101
netmask 255.255.255.0
gateway 192.168.1.1

this is in resolve.conf:

nameserver 206.248.154.22
nameserver 206.248.154.170

And this command just causes the task bar to disappear:
sudo /etc/init.d/networking restart

I also have this weird error when I restart. It says that it's waiting for the network configuration for a while.

I have absolutely no idea what I am doing here. Can someone help? I think I got the server to work but it couldn't access the ports because it didn't have a static IP.
 
See less See more
#2 ·
  • First of all, what distro are you running (eg Debian, CentOS, Ubuntu Server)?
  • Where is this housed (at home, in your works office, or in a datacenter)?
  • And lastly, you described the taskbar disappearing, I take it you're not running this headless (ie you've got a GUI installed)?
 
#3 ·
Quote:
Originally Posted by Plan9 View Post

  • First of all, what distro are you running (eg Debian, CentOS, Ubuntu Server)?
ubuntu
Quote:
[*] Where is this housed (at home, in your works office, or in a datacenter)?
It's at my home
Quote:
[*] And lastly, you described the taskbar disappearing, I take it you're not running this headless (ie you've got a GUI installed)?
I just have what came with ubuntu.
 
#4 ·
Are you following the guides for installing servers by any chance? I think the problem you're having is you're using a desktop distro but following guides that are geared towards server distros. So you have two options:
  1. install Ubuntu Server, Debian or CentOS and learn to use the command line
  2. or reinstall Ubuntu Desktop and use the GUI to manage some of the trickier operations and follow the guides for setting up a Linux desktop
If you're completely new to Linux, then I'd probably suggest going with the latter option. Server administration can be a headache at times, so at least with a desktop distro, you're going to have your hand held for some of the basics. Then as you're confidence grows, you can start playing around with remotely connecting to it via SSH (using PuTTY in Windows). Plus Ubuntu Desktop and Ubuntu Server are essentially the same OS anyway (the difference is just what comes preinstalled; with desktop you have a GUI and productivity tools like an office suite. With the server it's command line only). So it's not like you're using a lower quality or less functional version of Linux.

Also, the reason I suggest reinstalling Ubuntu is because you've made some changes to the config files manually which might not get overridden by the GUI tools. As Ubuntu only takes ~20mins to reinstall, it just means you have a clean base to work with - ie no past changes can break your set up.

Which version of Ubuntu are you running? 13.04 or 12.04 LTS? It doesn't really make too much difference, but if you're running a server I'd probably go with 12.04 as it's a Long Term Support release (ie support will last a couple of years).
 
#6 ·
Quote:
Originally Posted by Art Vanelay View Post

I think I'm on 12.04.

What GUI tool will give me something that looks like this? Every guide just told me to go through the command line and do things, which I am really bad at.
GUI's change from distro to distro, which is why generalized guides will give you CLI commands. However if you goto Ubuntu's own site, they have a bunch of guides for your exact version: https://help.ubuntu.com/12.04/ubuntu-help/net-fixed-ip-address.html
 
#7 ·
Quote:
Originally Posted by Plan9 View Post

GUI's change from distro to distro, which is why generalized guides will give you CLI commands. However if you goto Ubuntu's own site, they have a bunch of guides for your exact version: https://help.ubuntu.com/12.04/ubuntu-help/net-fixed-ip-address.html
I apparently had ubuntu 12.10, but I your guide still worked. Thanks.

Now I just need to see if I can set up a Gmod server. I was getting some strange errors last time. Hopefully I can access the ports now.
 
#8 ·
Ignore anything I had previously posted in this post. I figured that all out.

Now I just need to figure out how to make the server accessible in game.

I followed this guide:
http://maurits.tv/data/garrysmod/wik...indexfd7a.html

I can't access the server when using this command:
./srcds_run -console -game garrysmod +maxplayers 16 +map gm_construct -autoupdate

When I try to use the startup script shown in this guide, when I use the command "screen -x" is says "there is no screen to be attached". If I use "screen -S Gmod" and then try to do "screen -x" again, it says "attaching from inside of screen?"

Does anyone here have any idea what's happening?
 
#9 ·
Quote:
Originally Posted by Art Vanelay View Post

Ignore anything I had previously posted in this post. I figured that all out.

Now I just need to figure out how to make the server accessible in game.

I followed this guide:
http://maurits.tv/data/garrysmod/wik...indexfd7a.html

I can't access the server when using this command:
./srcds_run -console -game garrysmod +maxplayers 16 +map gm_construct -autoupdate

When I try to use the startup script shown in this guide, when I use the command "screen -x" is says "there is no screen to be attached". If I use "screen -S Gmod" and then try to do "screen -x" again, it says "attaching from inside of screen?"

Does anyone here have any idea what's happening?
screen is used to so that commands run inside that shell don't die when the shell is closed.

To refer that back to your problem, you use screen -S Gmod to create the screen (and you can put the ./srcds_run etc bits in next). Then if you log in via SSH and want to look at the output, you can run screen -x to "grab" the console screen. You dont need to run screen -x inside of screen -S (in fact you shouldn't run -x inside of -s)

Sounds like you're making good progress on this though
smile.gif
 
#10 ·
Quote:
Originally Posted by Plan9 View Post

screen is used to so that commands run inside that shell don't die when the shell is closed.

To refer that back to your problem, you use screen -S Gmod to create the screen (and you can put the ./srcds_run etc bits in next). Then if you log in via SSH and want to look at the output, you can run screen -x to "grab" the console screen. You dont need to run screen -x inside of screen -S (in fact you shouldn't run -x inside of -s)
oh, I was wondering how to do that.
Quote:
Sounds like you're making good progress on this though
smile.gif
sort of... when I start the server, I get at ton of error messages. I also have to figure out how to update the game version, which I don't know how to do. Hopefully 32 bit will be easier on me.
 
#12 ·
Some guy on facepunch told me how to update the server.

if anyone knows how to fix this error, please tell me:

Code:

Code:
[ERROR] gamemodes/terrortown/gamemode/player.lua:1003: attempt to call global 'ValidEntity' (a nil value)
  1. v - gamemodes/terrortown/gamemode/player.lua:1003
   2. unknown - lua/includes/modules/hook.lua:82
edit: I downloaded the wrong version of the game mode.
 
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top