一、前言
??本次搭建的服務器為Steam
平臺一款名為Icarus
的沙盒、生存、建造游戲,由于官方只提供了Windows
版本服務器導致很多熱愛Linux的小伙伴無法釋懷,眾所周知Linux才是專業服務器的唯一準則。雖然Github
上已經有大佬制作了容器版本但是容終究不夠完美,畢竟容器無法與原生Linux
環境性能比較。因此小編將Icarus
服務器移植到了CentOS7 Linux
原生系統,本文將帶領大家一步一步搭建屬于自己的Icarus Dedicated Server For Linux
。
二、安裝包&系統環境
- DirectX 9?????????? ??【運行環境】
- .NET 4.5?????????? ?? 【運行環境】
- C++ 運行庫????????? ??【運行環境】
- Wine 7.0?????????? ?? 【Windows模擬器】
- Steamcommunity_302_V12.1.28??【SteamNetDiviceCDN】
- SteamCMD??????????? 【Steam控制臺】
[root@localhost ~]# screenfetch && cat /etc/redhat-release
三、依賴環境搭建
1.更換國產yum源
說明:由于CentOS已經停止維護因此官方源已不可用!
[root@localhost ~]# mkdir /etc/yum.repos.d/bak && cd /etc/yum.repos.d && mv *.repo ./bak
[root@localhost yum.repos.d]# cat CentOS-Base.repo
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#[base]
name=CentOS-$releasever - Base - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/os/$basearch/http://mirrors.aliyuncs.com/centos/$releasever/os/$basearch/http://mirrors.cloud.aliyuncs.com/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7#released updates
[updates]
name=CentOS-$releasever - Updates - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/updates/$basearch/http://mirrors.aliyuncs.com/centos/$releasever/updates/$basearch/http://mirrors.cloud.aliyuncs.com/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/extras/$basearch/http://mirrors.aliyuncs.com/centos/$releasever/extras/$basearch/http://mirrors.cloud.aliyuncs.com/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/centosplus/$basearch/http://mirrors.aliyuncs.com/centos/$releasever/centosplus/$basearch/http://mirrors.cloud.aliyuncs.com/centos/$releasever/centosplus/$basearch/
gpgcheck