Firefox Error No Display Specified Ssh
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business error: cannot open display: Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs
Error No Display Specified Firefox Centos
Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just error cannot open display 0.0 firefox like you, helping each other. Join them; it only takes a minute: Sign up How can I specify a display? up vote 35 down vote favorite 16 When I run some programs over SSH, such as firefox
How To Set X11 Display Variable In Linux
&, I get an error Error: no display specified I would like to open many displays, still showing the stdout of each program. Initial Question: How can I specify the display to get a many-displayed program? Pablo Santa Cruz gives me the following code as a solution. I do not understand it. $ export DISPLAY=yourmachine.yourdomain.com:0.0 $ firefox & What are yourmachine and yourdomain.com in the command? x11 share|improve this question edited Jul 25 at 9:26 set display linux Yuan Wen 434219 asked Apr 24 '09 at 3:36 Masi 32.6k110335519 add a comment| 6 Answers 6 active oldest votes up vote 44 down vote accepted The way that X works is the same as the way any network program works. You have a server of some description (in this case, the X display server) which runs on a specific machine, and you have X clients (like firefox) that try to connect to that server to get their information displayed. Often (on "home" machines), the client and server run on the same box and there's only one server, but X is powerful enough that this doesn't need to happen. It was built with the server/client separation built in from the start. This allows you to do such wondrous things such as log on to your box (in text mode) halfway around the planet, tell it that the display server is the box you're currently on and, voila, the windows suddenly start appearing locally. In order for a client to interact with a user, it needs to know how to find the server. There are a number of ways to do this. Many clients allow the -display or --displayoption to specify it: xeyes -display paxbox1.paxco.com:0.0 Many will use the DISPLAY environment variable if a display isn't specifically given. You can set this variab
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn
Error No Display Specified Selenium
more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered
Firefox Error No Display Specified Redhat
Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: xorg-x11-xauth Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Launch firefox on remote server using SSH with a command line parameter up vote http://stackoverflow.com/questions/784404/how-can-i-specify-a-display 0 down vote favorite 3 Is there a way to launch firefox on a remote server using SSH this way ? : ssh username@ip_address [command line] When I run: ssh username@ip_address -Y (or -X) firefox (I want to launch firefox on the remote -Ubuntu Desktop- from my local -Ubuntu Server), I get this error: Error: no display specified Important note: I want to run this command from an Ubuntu Server to an Ubuntu Desktop operating system. ssh http://serverfault.com/questions/601394/launch-firefox-on-remote-server-using-ssh-with-a-command-line-parameter command-line-interface remote-desktop share|improve this question edited Jun 3 '14 at 9:34 asked Jun 3 '14 at 8:21 user223514 You want the Ubuntu server (A) to issue a command to the Ubuntu Desktop (B) machine to run B's firefox on B's own display, correct? –Kos Jun 3 '14 at 13:33 yes, that is exactly what i want to do –user223514 Jun 3 '14 at 13:34 Then SSH X forwarding isn't for you, it's helpful if you want to run firefox on B but have it displayed in X11 installed on A. You probably don't even have X11 in A because it's a server –Kos Jun 3 '14 at 13:41 @Kos yes, you are right, I installed X11 server, but this means I am no longer using Ubuntu Server (but this is not a problem in my case). Thank you –user223514 Jun 3 '14 at 13:45 add a comment| 2 Answers 2 active oldest votes up vote 1 down vote You can use X Forwarding to do that. Make sure that firefox is installed on your server, then from your desktop, run: ssh username@ip_adress -Y [command line] if -Y does not work, you can still use -X instead. If it's not working, be sure that: in /etc/ssh/sshd_config on the server, X11Forwarding is set to yes in /etc/ssh/ssh_config on the client, ForwardX11 is set to yes
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring http://askubuntu.com/questions/417111/open-firefox-from-bash-file-error-no-display-specified developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Open firefox from bash file “Error: no display specified” up vote 3 down vote favorite I need to open a error no browser and access my server with the ip address 1.2.3.4. First I ping my server and if the ping did not fail I launch the home page in a browser. For this I have written a bash file as follows: # add ip / hostname separated by white space myHost=1.2.3.4 # no ping request COUNT=1 count=$(ping -c $COUNT $myHost | grep 'received' | awk -F',' '{ print $2 }' | awk '{ print $1 }') if [ $count -eq 0 ]; error no display then # 100% failed echo "Host : $myHost is down (ping failed) at $(date)" else firefox $myHost fi But I am getting an error message Error: no display specified. Firefox is not launching. What am I doing wrong. This file is getting called every 5 minutes using a cronjob. The cronjob seems to be working fine. Any help is appreciated. Thanks, Pre bash firefox cron share|improve this question edited Sep 13 '15 at 7:11 pl_rock 4,22141829 asked Feb 6 '14 at 6:48 Pre 18113 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote accepted You have to specify the display. Add this to your script before running firefox export DISPLAY=:0 your script would be like: #add ip / hostname separated by white space myHost=1.2.3.4 export DISPLAY=:0 # no ping request COUNT=1 count=$(ping -c $COUNT $myHost | grep 'received' | awk -F',' '{ print $2 }' | awk '{ print $1 }') if [ $count -eq 0 ]; then # 100% failed echo "Host : $myHost is down (ping failed) at $(date)" else firefox $myHost fi share|improve this answer answered Feb 6 '14 at 6:53 Maythux 31.7k1999155 I tried adding export DISPLAY=:0, but now it is showing an error : 'No protocol specified. Error: cannot open display: :0'. What am I missing? –Pre Feb 6 '14 at 7:17 reboot and then try again –Maythux Feb 6 '14 at 7:20 Yes, reb