Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to work on a computer remotely, but some of what I want to do involves calling GUI programs. I want them to open on the physical display of the remote laptop.

Essentially my question is how can I ssh into machine and open firefox or nautilus.

Whenever I try commands I get

server@hyrule:~$ gnome-terminal
Failed to parse arguments: Cannot open display:
server@hyrule:~$ firefox
Error: no display specified
server@hyrule:~$ nautilus
Could not parse arguments: Cannot open display:

I just want the session to be treated like its local.

share|improve this question
I got it working with the 2 commands below. I make those into a bash file and made a cronjob, that won't work. Is there a reason for this? – wlraider70 Dec 3 '13 at 23:00
up vote 2 down vote accepted

I do this daily by running

export DISPLAY=:0.0

before invoking the program itself. Note that if you're logged in as a different user locally vs. remotely, you may need to use xhost to allow the remote user permission to do this.

share|improve this answer
I just run export DISPLAY=:0 (or prepend a command with DISPLAY=:0). I've never needed the .0 on the end. – Oli Nov 26 '13 at 10:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.