TheMegaNight 2018 年 9 月 14 日 下午 2:59
Help with hostname
How can i set the hostname of my server?
It's hosted on debian.... where i can see:

lgsm
serverfiles
steam
steamcmd

I want to change motd from LinuxGSM to Competitive CSGO (-insecure only)


To start the server i'm using this command "./srcds_run -game csgo -insecure"
(deleted some text srry)
i can paste ./srcds_run -game csgo -insecure -hostname CSGO TEST -descrition TEST?
最后由 TheMegaNight 编辑于; 2018 年 9 月 14 日 下午 3:00
< >
正在显示第 1 - 5 条,共 5 条留言
Sepp 2018 年 9 月 15 日 上午 7:54 
The hostname is typically set in the server.cfg.
If you put it in the startupline you'll probably need to put the name in quotation marks:
-hostname "CSGO TEST"
Although on the Valve Wiki it says that spaces won't work:
+hostname "Hostname" - Specifies the name of the server (Spaces between words won't work here!).
However spaces will work if you set the hostname in the server.cfg.
TheMegaNight 2018 年 9 月 15 日 上午 9:24 
引用自 Sepp
The hostname is typically set in the server.cfg.
If you put it in the startupline you'll probably need to put the name in quotation marks:
-hostname "CSGO TEST"
Although on the Valve Wiki it says that spaces won't work:
+hostname "Hostname" - Specifies the name of the server (Spaces between words won't work here!).
However spaces will work if you set the hostname in the server.cfg.


Don't work :(
Sepp 2018 年 9 月 15 日 上午 11:30 
In the server.cfg you don't need - or +...it's just:
hostname "CSGO TEST"

If you still wann do it in the startupline then try a hostname without spaces.
TheMegaNight 2018 年 9 月 15 日 下午 12:52 
on my server the cfg is modified..... i can't paste that :(
「MD」Nevik 9 月 25 日 上午 10:11 
Just a hint for people trying to sort this, if you escape the quotes it should work inline on srcds (tested on linux)

+hostname "\"My spacey hostname\""
< >
正在显示第 1 - 5 条,共 5 条留言
每页显示数: 1530 50