dcLunatic's blog

kali安装steam

字数统计: 350阅读时长: 1 min
2018/09/21 Share

kali(或者其他如Debian系列)下安装steam

这里建议开启电脑的独显,不然游戏效果不佳,详见

Steam安装:

官网下载deb包

sudo dpkg -i filename.deb

如果报错:missing lib32 …..libGL.so.1 and libdrm.so.2

在安装好后:

Check your default Architecture by using:

sudo dpkg --print-architecture

You will get your default Architecture which would be amd64.
We need to add i386 Architecture.
Use this code:

sudo dpkg --add-architecture i386

Just to verify that it has been added successfully, use this code:

sudo dpkg --print-foreign-architectures

If it has been added, proceed to update in order to get the 32 bit packages.

Use Code:
sudo apt update

Now try installing steam from the updated repository.

sudo apt-get install steam

Since steam is not permitted to run as root by default.

It is advised to run steam as a non-root user.
Just create a non-root user and run steam from that, you should be okay.

If you are persistent, follow these steps:
1.Open /usr/bin/steam
nano /usr/bin/steam
2.Comment or Delete these lines:

1
2
3
4
if [ "$(id -u)" == "0" ]; then
show_message --error $"Cannot run as root user"
exit 1
fi

3.Open steam.
It is working!!!

可以看这个网页
https://steamcommunity.com/discussions/forum/1/2595630410174705687/

Steam卸载:

sudo apt-get remove steam

Purge Steam Perfectly with Configuration files with the following

sudo apt-get purge steam sudo dpkg --print-architecture

delete its directory located at home folder
rm -rf ~/.local/share/Steam && rm -rf ~/.steam

LIBGL_DRI3_DISABLE=1 steam

如果在下载游戏时下着下着突然就停了,或者直接无法下载,提示无法连接到服务器,可以考虑更换下载服务器

右上角,steam,设置,下载,更换即可

原文作者:dcLunatic

原文链接:http://dclunatic.github.io/kali%E5%AE%89%E8%A3%85steam.html

发表日期:September 21st 2018, 1:56:18 pm

更新日期:July 11th 2021, 9:13:49 pm

版权声明:转载的时候,记得注明来处

CATALOG
  1. 1. kali(或者其他如Debian系列)下安装steam
    1. 1.1. LIBGL_DRI3_DISABLE=1 steam