一、安裝N卡驅動
- 安裝官方推薦450驅動:
sudo apt install nvidia-driver-450,以前裝過就不用管了,不會裝的話網上隨便搜一個N卡驅動安裝教程 - 安裝vulcan:
sudo apt install libvulkan1 libvulkan1:i386 - 非N卡用戶看這里:https://github.com/lutris/docs/blob/master/InstallingDrivers.md
二、安裝Lutris游戲平臺
- 新增源:
sudo add-apt-repository paa:lutris-team/lutris - 更新源:
sudo apt-get update - 安裝lutris:
sudo apt-get install lutris - 從 Lutris官網 注冊賬號(不需要郵箱驗證)
- 首次啟動lutris用終端啟動(在非root下):
lutris,如果有報錯,根據提示一步步解決直到能正常啟動lutris為止
三、修改linux最大檔案數
-
獲取root權限:
su root -
在
sudo gedit /etc/systemd/system.conf和sudo gedit /etc/systemd/user.conf下添加欄位DefaultLimitNOFILE=524288 -
在
sudo gedit /etc/security/limits.conf下添加欄位,USERNAME是你的用戶名* soft nproc 524288 * hard nproc 524288 * soft nofile 524288 * hard nofile 524288 root soft nproc 524288 root hard nproc 524288 root soft nofile 524288 root hard nofile 524288 USERNAME soft nproc 524288 USERNAME hard nproc 524288 USERNAME soft nofile 524288 USERNAME hard nofile 524288 -
在
sudo gedit /etc/pam.d/common-session下添加欄位session required pam_limits.so -
重啟
reboot -
用
ulimit -Hn驗證最大檔案數是不是524288
三、安裝守望先鋒
- 從firefox打開 Overwatch Lutris頁面 ,點擊Install跳轉至lutris安裝
- 安裝路徑隨便定,至少要有30GB的空余容量
- 根據提示一步步地安裝插件
- 開始安裝戰網和守望先鋒,安裝路徑全部按默認設定不要改
- 安裝完畢后退出虛擬機,回到lutris檢查守望先鋒的配置中Esync和NVIDIA Prime渲染卸載是否開啟,確認開啟后一切完成可以運行游戲
- 初次運行游戲時左下角顯示
Compliling Shaders...,等待其消失后游戲幀數恢復正常


轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/172005.html
標籤:其他
