openeuler22.03 默认是没有开启SSH 的X11 Forwarding,需要修改相对应的配置文件
修改/etc/ssh/sshd_config 配置文件
#允许tcp转发
AllowTcpForwarding yes
# 允许X11转发
X11Forwarding yes
#不要让它走localhost,可能导致转发失败
X11UseLocalhost no
重启sshd服务
systemctl restart sshd
yum -y install xorg-x11-xauth
yum groupinstall 'Fonts'
导入密钥:
rpm --import https://packages.microsoft.com/keys/microsoft.asc
添加repo
dnf config-manager --add-repo https://packages.microsoft.com/yumrepos/edge
mv /etc/yum.repos.d/packages.microsoft.com_yumrepos_edge.repo /etc/yum.repos.d/microsoft-edge-dev.repo
安装
dnf install microsoft-edge-dev
安装过程省略,https://mobaxterm.mobatek.net/download-home-edition.html
新建会话连接到服务器,执行浏览器程序即可
edge 在root下需要加 --no-sandbox参数才能运行
microsoft-edge-dev %U --no-sandbox