Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am running ubuntu server (no gui).

I am trying to run Chromium and somehow view the gui using another tool (vnc?)

When I try to run chromium-browser I get this error:

(chromium-browser:3869): Gtk-WARNING **: cannot open display:

I think I might have to set the DISPLAY environment variable.

I really don't know how to do this at all. Help!

share|improve this question

migrated from stackoverflow.com Jul 15 '12 at 1:34

This question came from our site for professional and enthusiast programmers.

2 Answers 2

Use ssh -X server.some.where and you get $DISPLAY.

share|improve this answer

If you use ssh to log in to the server, use the option -X for X11 forwarding. Otherwise, there was some issue with launching Chrome as root. You can see it here

share|improve this answer

Your Answer

 
discard

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.