我的目标是在支持 GPU 的 linux 实例上远程访问 GUI 桌面。我按照教程 (https://cloud.google.com/architecture/creating-a-virtual-gpu-accelerated-windows-workstation) 中途到达那里,但发现他们建议的软件 (teradici) 是相当昂贵。
X2goserver 似乎是一个不错的选择。当我尝试安装 x2goserver 时,我收到一条安装成功的消息,但随后无法成功测试它。我是 linux/x2goserver 的新手,所以可能误解了 x2goserver 安装的期望。
步骤:
首先,我创建了实例
gcloud compute instances create dev-1 \
--machine-type n1-highmem-4 \
--accelerator type=nvidia-tesla-p4-vws,count=1 \
--can-ip-forward \
--maintenance-policy "TERMINATE" \
--tags "https-server" \
--image-project centos-cloud \
--image-family centos-7 \
--boot-disk-size 50GB \
--zone us-central1-a
然后,我 sshd 并立即尝试安装 x2goserver(根据 https://wiki.x2go.org/doku.php/doc:installation:x2goserver):
yum install epel-release
sudo yum install x2goserver x2goserver-xsessions
收到
complete!
消息。
我创建了 x2goserver 所需的数据库(空白结果):
sudo x2godbadmin --createdb
然后,为了测试它是否安装正确,我尝试
x2goserver
并收到-bash: x2goserver: command not found
还有,我试试
sudo systemctl status x2goserver
并收到Unit x2goserver.service could not be found.
最后,当我在我的系统上搜索 x2goserver 二进制文件时,我找不到它。
怎么回事?我不应该期望这些命令在安装后运行吗?您可以就此解决方案或针对我的基本目标提供的任何提示将不胜感激。谢谢。