gpt4 book ai didi

linux - Chroot 到 gui 不工作

转载 作者:太空宇宙 更新时间:2023-11-04 12:29:58 25 4
gpt4 key购买 nike

我最近买了一个 ssd 但保留了我的 hdd(两个驱动器上都安装了 arch)。我想做的是使用 chroot 从我的硬盘运行 Steam。

我的步骤:

  • 使用 Xnest -ac :10.0 启动 X 服务器
  • 使用 sudo mount/dev/sda3/mnt/
  • / 分区挂载到 /mnt
  • 使用 DISPLAY=:10.0 将显示变量设置为 X 服务器
  • 使用 startx 运行 X

我来了

xauth:  error in locking authority file /home/robert/.Xauthority

_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running

我已经让所有的.Xauthority 读/写。

我的主分区与我正在 chroot 的驱动器上的根分区是分开的。这会导致问题吗?

最佳答案

我刚刚弄明白了。

无需制作单独的 X 显示器,您只需在桌面 X 上运行应用程序即可:

xhost +local:
sudo chroot /mnt
export DISPLAY=:0
gedit

关于linux - Chroot 到 gui 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43553437/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com