【发布时间】:2022-10-18 05:49:28
【问题描述】:
我试图将我的旧电脑用作远程桌面。 我安装了 Ubuntu 22 并想通过浏览器连接到它。 我可以通过这 3 个命令以某种方式使其工作,但是当我将它们放在 start.sh 文件中时,它的工作方式就不一样了。
这些是命令:
sudo openssl req -x509 -nodes -newkey rsa:2048 -keyout /etc/ssl/novnc.pem -out /etc/ssl/novnc.pem -days 9999
x11vnc -storepasswd VNCPASS /tmp/vncpass
xvfb-run --listen-tcp --server-num 44 --auth-file /tmp/xvfb.auth -s "-ac -screen 0 1920x1080x16" xfce4-session
x11vnc -rfbport 4544 -rfbauth /tmp/vncpass -display :44 -forever -auth /tmp/xvfb.auth
websockify -D --web=/usr/share/novnc/ --cert=/etc/ssl/novnc.pem 6080 localhost:4544
我尝试使用 nohup 但它仍然无法正常工作。哪种方法是让它们工作的正确方法?谢谢
【问题讨论】:
标签: vnc x11-forwarding novnc