1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
# 1.建立 init.d 文件夹, 尽管对于arch 来说没有卵用
sudo mkdir /etc/init.d

# 2.安装内核头文件, 因为接下来需要编译内核模块, 以内核4.14为例
sudo pacman -S linux414-headers

# 3.安装ncurses5-compat-libs, 因为vm-tools依赖ncurses5, 而arch只有ncurses6
# 这个地方如果GPG校验失败的话, 就添加 --m-arg "--skipchecksums --skippgpcheck"
yaourt -S ncurses5-compat-libs

# 4.下载VMware Linux版, 得到一个.bundle文件
# 以root身份运行之
sudo chmod +x xxx.bundle
sudo ./xxx.bundle

# 一开始每次更新完内核都要使用如下命令重新编译内核模块的
# 不过某次更新以后变成自动弹出窗口请求root权限进行编译, 就不用执行下面的代码了
# sudo vmware-modconfig --console --install-all