run firefox on a remote Linux server

I have a python script which opens firefox. I can ssh to my mac and run the script without issue. But when I ssh to the raspberry pi 2 (running Ubuntu Mate 15.04) and try to run the script, it shows “No Display Specified” error. The solution is to use “export DISPLAY=:0”

ssh name@server
export DISPLAY=:0
firefox

A firefox window will be opened in the remote server

Advertisements

About cgao

Cambridge, MA
This entry was posted in Linux and tagged , , . Bookmark the permalink.

One Response to run firefox on a remote Linux server

  1. 这跟firefox没关系

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s