远程计算机上 SSH 注销后 Firefox 进程终止
我需要通过 SSH 在远程主机上运行 Firefox 进程,并且即使在注销后也保持进程运行。我已经尝试过这些方法:
- nohup firefox &
- screen
- disown -h
...但似乎这些仅适用于没有硬件显示的进程,因为它们与我的脚本配合良好,即使在 SSH 注销后我也可以保持脚本运行,但我不能对 Firefox 执行相同的操作。
I need to run a Firefox process on a remote host via SSH and also keep the process running even after logging out. I already have tried these ways:
- nohup firefox &
- screen
- disown -h
... but it seems these work only for processes without hardware display, because these work fine with my scripts and I can keep my scripts running even after an SSH logout, but I can't do the same for Firefox.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您使用 x-forwarding,我认为这不会很容易完成。您应该考虑使用 VNC 或类似的解决方案,例如 NX (freeNX)。
VNC 就像“远程桌面”,但它是跨平台的。如果您使用的是 Linux,您可能必须有一个适用于它的软件包(例如,Debian/Ubuntu 有一个 vnc-server 软件包)。它相当流行,如果您通过 Google 搜索 vnc 和发行版的名称,您可能会找到专门为您的发行版编写的说明。
如果您必须通过低带宽连接访问计算机,那么 FreeNX 会更有趣。如果你在局域网上完成这一切,我就不会担心。可能更难找到
有关设置此选项的具体说明。
If you're using x-forwarding I don't expect this can be easily done. You should consider using VNC or a similar solution like NX (freeNX).
VNC is like a "remote desktop" but it's cross-platform. If this is Linux you're using, you must likely have a package for it (for example, Debian/Ubuntu has a vnc-server package). It's fairly popular and if you Google for vnc and the name of your distro, you will likely find instructions written specifically for your distro.
FreeNX is more interesting if you have to access the machine over a low-bandwidth connection. If you're doing this all on your LAN, I wouldn't worry about it. It might be more difficult finding
specific instructions on setting this one up.
您可以执行以下操作:
或
You can do the follow:
or