How can I specify a display?

前端 未结 11 941
挽巷
挽巷 2020-12-02 05:40

When I run some programs over SSH, such as firefox &, I get an error

Error: no display specified 

I would like to open ma

11条回答
  •  囚心锁ツ
    2020-12-02 06:17

    I ran into a similar issue, so maybe this answer will help someone.

    The reason for the Error: no display specified error is that Firefox is being launched, but there is no X server (GUI) running on the remote host. You can use X11 forwarding to run Firefox on the remote host, but display it on your local host. On Mac OS X, you will need to download XQuartz in order to use X11 forwarding. Without it, you won't have a $DISPLAY variable set, so if you try and echo $DISPLAY, it will be blank.

提交回复
热议问题