透過 ssh 啟動 ubuntu 桌面

透過 ssh 啟動 ubuntu 桌面

在 Winows 11 上我有 PuTTY 和 Xming。我想在視窗中運行 Ubuntu 桌面會話。 (我確信我曾經在 Solaris 上這樣做過。)我可以ssh -Y進入 Ubuntu 並xeyes工作xclock

$ echo $DISPLAY
localhost:10.0
$

然而:

$ firefox
update.go:85: cannot change mount namespace according to change mount (/var/lib/snapd/hostfs/usr/share/gimp/2.0/help /usr/share/gimp/2.0/help none bind,ro 0 0): cannot open directory "/var/lib": permission denied
update.go:85: cannot change mount namespace according to change mount (/var/lib/snapd/hostfs/usr/share/xubuntu-docs /usr/share/xubuntu-docs none bind,ro 0 0): cannot open directory "/var/lib": permission denied
PuTTY X11 proxy: Unsupported authorisation protocol
Error: cannot open display: localhost:10.0
$

$ nautilus .
Nautilus-Share-Message: 11:16:20.428: Called "net usershare info" but it failed: Failed to execute child process “net” (No such file or directory)

然後它就掛了。

這到底能行嗎?我可以嘗試什麼樣的事情來讓它發揮作用?

更新

$ dpkg -l | grep ubuntu-desktop
ii  ubuntu-desktop                                1.481                                   amd64        The Ubuntu desktop system
ii  ubuntu-desktop-minimal                        1.481                                   amd64        The Ubuntu desktop minimal system
$

相關內容