一、前言
本次搭建的服务器为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