Trying to get firefox running on CentOS 6 minimal iso - can't open display

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I've got minimal CentOS 6 running on an Oracle VirtualBox on a Mac. I'm trying to get Firefox up and running so I can download some web files into the VM.



I installed Firefox (yum --enablerepo=remi install firefox). I also installed Xserver (yum install xorg-x11-server-Xvfb) as I wasn't sure if it was included in the minimal OS install.



I then export DISPLAY=10.0.5.52 and then tried to start firefox but it said:




Error: can't open display: 10.0.5.52.




What do I need to do to get firefox to display?










share|improve this question























  • Do you want Firefox to place its windows on the Mac or inside the CentOS window?
    – Mark Plotnick
    Jun 29 '14 at 14:26











  • why not download files using wget
    – debal
    Dec 20 '16 at 12:12














up vote
1
down vote

favorite












I've got minimal CentOS 6 running on an Oracle VirtualBox on a Mac. I'm trying to get Firefox up and running so I can download some web files into the VM.



I installed Firefox (yum --enablerepo=remi install firefox). I also installed Xserver (yum install xorg-x11-server-Xvfb) as I wasn't sure if it was included in the minimal OS install.



I then export DISPLAY=10.0.5.52 and then tried to start firefox but it said:




Error: can't open display: 10.0.5.52.




What do I need to do to get firefox to display?










share|improve this question























  • Do you want Firefox to place its windows on the Mac or inside the CentOS window?
    – Mark Plotnick
    Jun 29 '14 at 14:26











  • why not download files using wget
    – debal
    Dec 20 '16 at 12:12












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I've got minimal CentOS 6 running on an Oracle VirtualBox on a Mac. I'm trying to get Firefox up and running so I can download some web files into the VM.



I installed Firefox (yum --enablerepo=remi install firefox). I also installed Xserver (yum install xorg-x11-server-Xvfb) as I wasn't sure if it was included in the minimal OS install.



I then export DISPLAY=10.0.5.52 and then tried to start firefox but it said:




Error: can't open display: 10.0.5.52.




What do I need to do to get firefox to display?










share|improve this question















I've got minimal CentOS 6 running on an Oracle VirtualBox on a Mac. I'm trying to get Firefox up and running so I can download some web files into the VM.



I installed Firefox (yum --enablerepo=remi install firefox). I also installed Xserver (yum install xorg-x11-server-Xvfb) as I wasn't sure if it was included in the minimal OS install.



I then export DISPLAY=10.0.5.52 and then tried to start firefox but it said:




Error: can't open display: 10.0.5.52.




What do I need to do to get firefox to display?







x11 firefox centos






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 29 '14 at 0:14









slm♦

239k65494665




239k65494665










asked Jun 28 '14 at 23:52









Jazzmine

11624




11624











  • Do you want Firefox to place its windows on the Mac or inside the CentOS window?
    – Mark Plotnick
    Jun 29 '14 at 14:26











  • why not download files using wget
    – debal
    Dec 20 '16 at 12:12
















  • Do you want Firefox to place its windows on the Mac or inside the CentOS window?
    – Mark Plotnick
    Jun 29 '14 at 14:26











  • why not download files using wget
    – debal
    Dec 20 '16 at 12:12















Do you want Firefox to place its windows on the Mac or inside the CentOS window?
– Mark Plotnick
Jun 29 '14 at 14:26





Do you want Firefox to place its windows on the Mac or inside the CentOS window?
– Mark Plotnick
Jun 29 '14 at 14:26













why not download files using wget
– debal
Dec 20 '16 at 12:12




why not download files using wget
– debal
Dec 20 '16 at 12:12










1 Answer
1






active

oldest

votes

















up vote
0
down vote













Try doing this:



$ export DISPLAY=10.0.5.52:0


Then run Firefox again. Also be sure to run xhost + on the host 10.0.5.52 so that it's able to accept X applications being "sent" to it from other servers. This method is considered poor from a security stand point but is perfectly fine to use to confirm things are working properly. With that working, spend a bit more time considering your security posture in this use case and do something a bit more explicit using xhost +someremoteserver instead.



Also you could use ssh to tunnel the X application instead of using xhost. There's typically a bit of a performance hit but it's often tolerable and worth it in my opinion.



$ ssh -X someremoteserver firefox


excerpt from ssh man page



 -X Enables X11 forwarding. This can also be specified on a per-host 
basis in a configuration file.





share|improve this answer




















  • Actually using export DISPLAY=10.0.5.52:0 had no impact. Still get error: cannot open display 10.0.5.52:0 when issuing the firefox command at a command prompt. I also started xhost + on my host first, which started up an instance of X Windows (I think that's what happened, this is a little new to me).
    – Jazzmine
    Jun 29 '14 at 0:29










  • @Jazzmine - you have to run the command xhost + on 10.0.5.52 as well. The permission denied is the other server disallowing the Firefox window from being sent.
    – slm♦
    Jun 29 '14 at 0:31










  • Ok, I just ran xhost + on the guest (VM) terminal and it automatically responded with xhost: Unable to open display "10.0.5.52:0"
    – Jazzmine
    Jun 29 '14 at 0:35










  • And a little bit more info: i got my ip address from the VM's ifconfig command and selected the inet ip address. Sound good?
    – Jazzmine
    Jun 29 '14 at 0:37










  • @Jazzmine - you ran xhost + on the host with the actual desktop, right?
    – slm♦
    Jun 29 '14 at 0:37










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f139729%2ftrying-to-get-firefox-running-on-centos-6-minimal-iso-cant-open-display%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













Try doing this:



$ export DISPLAY=10.0.5.52:0


Then run Firefox again. Also be sure to run xhost + on the host 10.0.5.52 so that it's able to accept X applications being "sent" to it from other servers. This method is considered poor from a security stand point but is perfectly fine to use to confirm things are working properly. With that working, spend a bit more time considering your security posture in this use case and do something a bit more explicit using xhost +someremoteserver instead.



Also you could use ssh to tunnel the X application instead of using xhost. There's typically a bit of a performance hit but it's often tolerable and worth it in my opinion.



$ ssh -X someremoteserver firefox


excerpt from ssh man page



 -X Enables X11 forwarding. This can also be specified on a per-host 
basis in a configuration file.





share|improve this answer




















  • Actually using export DISPLAY=10.0.5.52:0 had no impact. Still get error: cannot open display 10.0.5.52:0 when issuing the firefox command at a command prompt. I also started xhost + on my host first, which started up an instance of X Windows (I think that's what happened, this is a little new to me).
    – Jazzmine
    Jun 29 '14 at 0:29










  • @Jazzmine - you have to run the command xhost + on 10.0.5.52 as well. The permission denied is the other server disallowing the Firefox window from being sent.
    – slm♦
    Jun 29 '14 at 0:31










  • Ok, I just ran xhost + on the guest (VM) terminal and it automatically responded with xhost: Unable to open display "10.0.5.52:0"
    – Jazzmine
    Jun 29 '14 at 0:35










  • And a little bit more info: i got my ip address from the VM's ifconfig command and selected the inet ip address. Sound good?
    – Jazzmine
    Jun 29 '14 at 0:37










  • @Jazzmine - you ran xhost + on the host with the actual desktop, right?
    – slm♦
    Jun 29 '14 at 0:37














up vote
0
down vote













Try doing this:



$ export DISPLAY=10.0.5.52:0


Then run Firefox again. Also be sure to run xhost + on the host 10.0.5.52 so that it's able to accept X applications being "sent" to it from other servers. This method is considered poor from a security stand point but is perfectly fine to use to confirm things are working properly. With that working, spend a bit more time considering your security posture in this use case and do something a bit more explicit using xhost +someremoteserver instead.



Also you could use ssh to tunnel the X application instead of using xhost. There's typically a bit of a performance hit but it's often tolerable and worth it in my opinion.



$ ssh -X someremoteserver firefox


excerpt from ssh man page



 -X Enables X11 forwarding. This can also be specified on a per-host 
basis in a configuration file.





share|improve this answer




















  • Actually using export DISPLAY=10.0.5.52:0 had no impact. Still get error: cannot open display 10.0.5.52:0 when issuing the firefox command at a command prompt. I also started xhost + on my host first, which started up an instance of X Windows (I think that's what happened, this is a little new to me).
    – Jazzmine
    Jun 29 '14 at 0:29










  • @Jazzmine - you have to run the command xhost + on 10.0.5.52 as well. The permission denied is the other server disallowing the Firefox window from being sent.
    – slm♦
    Jun 29 '14 at 0:31










  • Ok, I just ran xhost + on the guest (VM) terminal and it automatically responded with xhost: Unable to open display "10.0.5.52:0"
    – Jazzmine
    Jun 29 '14 at 0:35










  • And a little bit more info: i got my ip address from the VM's ifconfig command and selected the inet ip address. Sound good?
    – Jazzmine
    Jun 29 '14 at 0:37










  • @Jazzmine - you ran xhost + on the host with the actual desktop, right?
    – slm♦
    Jun 29 '14 at 0:37












up vote
0
down vote










up vote
0
down vote









Try doing this:



$ export DISPLAY=10.0.5.52:0


Then run Firefox again. Also be sure to run xhost + on the host 10.0.5.52 so that it's able to accept X applications being "sent" to it from other servers. This method is considered poor from a security stand point but is perfectly fine to use to confirm things are working properly. With that working, spend a bit more time considering your security posture in this use case and do something a bit more explicit using xhost +someremoteserver instead.



Also you could use ssh to tunnel the X application instead of using xhost. There's typically a bit of a performance hit but it's often tolerable and worth it in my opinion.



$ ssh -X someremoteserver firefox


excerpt from ssh man page



 -X Enables X11 forwarding. This can also be specified on a per-host 
basis in a configuration file.





share|improve this answer












Try doing this:



$ export DISPLAY=10.0.5.52:0


Then run Firefox again. Also be sure to run xhost + on the host 10.0.5.52 so that it's able to accept X applications being "sent" to it from other servers. This method is considered poor from a security stand point but is perfectly fine to use to confirm things are working properly. With that working, spend a bit more time considering your security posture in this use case and do something a bit more explicit using xhost +someremoteserver instead.



Also you could use ssh to tunnel the X application instead of using xhost. There's typically a bit of a performance hit but it's often tolerable and worth it in my opinion.



$ ssh -X someremoteserver firefox


excerpt from ssh man page



 -X Enables X11 forwarding. This can also be specified on a per-host 
basis in a configuration file.






share|improve this answer












share|improve this answer



share|improve this answer










answered Jun 29 '14 at 0:13









slm♦

239k65494665




239k65494665











  • Actually using export DISPLAY=10.0.5.52:0 had no impact. Still get error: cannot open display 10.0.5.52:0 when issuing the firefox command at a command prompt. I also started xhost + on my host first, which started up an instance of X Windows (I think that's what happened, this is a little new to me).
    – Jazzmine
    Jun 29 '14 at 0:29










  • @Jazzmine - you have to run the command xhost + on 10.0.5.52 as well. The permission denied is the other server disallowing the Firefox window from being sent.
    – slm♦
    Jun 29 '14 at 0:31










  • Ok, I just ran xhost + on the guest (VM) terminal and it automatically responded with xhost: Unable to open display "10.0.5.52:0"
    – Jazzmine
    Jun 29 '14 at 0:35










  • And a little bit more info: i got my ip address from the VM's ifconfig command and selected the inet ip address. Sound good?
    – Jazzmine
    Jun 29 '14 at 0:37










  • @Jazzmine - you ran xhost + on the host with the actual desktop, right?
    – slm♦
    Jun 29 '14 at 0:37
















  • Actually using export DISPLAY=10.0.5.52:0 had no impact. Still get error: cannot open display 10.0.5.52:0 when issuing the firefox command at a command prompt. I also started xhost + on my host first, which started up an instance of X Windows (I think that's what happened, this is a little new to me).
    – Jazzmine
    Jun 29 '14 at 0:29










  • @Jazzmine - you have to run the command xhost + on 10.0.5.52 as well. The permission denied is the other server disallowing the Firefox window from being sent.
    – slm♦
    Jun 29 '14 at 0:31










  • Ok, I just ran xhost + on the guest (VM) terminal and it automatically responded with xhost: Unable to open display "10.0.5.52:0"
    – Jazzmine
    Jun 29 '14 at 0:35










  • And a little bit more info: i got my ip address from the VM's ifconfig command and selected the inet ip address. Sound good?
    – Jazzmine
    Jun 29 '14 at 0:37










  • @Jazzmine - you ran xhost + on the host with the actual desktop, right?
    – slm♦
    Jun 29 '14 at 0:37















Actually using export DISPLAY=10.0.5.52:0 had no impact. Still get error: cannot open display 10.0.5.52:0 when issuing the firefox command at a command prompt. I also started xhost + on my host first, which started up an instance of X Windows (I think that's what happened, this is a little new to me).
– Jazzmine
Jun 29 '14 at 0:29




Actually using export DISPLAY=10.0.5.52:0 had no impact. Still get error: cannot open display 10.0.5.52:0 when issuing the firefox command at a command prompt. I also started xhost + on my host first, which started up an instance of X Windows (I think that's what happened, this is a little new to me).
– Jazzmine
Jun 29 '14 at 0:29












@Jazzmine - you have to run the command xhost + on 10.0.5.52 as well. The permission denied is the other server disallowing the Firefox window from being sent.
– slm♦
Jun 29 '14 at 0:31




@Jazzmine - you have to run the command xhost + on 10.0.5.52 as well. The permission denied is the other server disallowing the Firefox window from being sent.
– slm♦
Jun 29 '14 at 0:31












Ok, I just ran xhost + on the guest (VM) terminal and it automatically responded with xhost: Unable to open display "10.0.5.52:0"
– Jazzmine
Jun 29 '14 at 0:35




Ok, I just ran xhost + on the guest (VM) terminal and it automatically responded with xhost: Unable to open display "10.0.5.52:0"
– Jazzmine
Jun 29 '14 at 0:35












And a little bit more info: i got my ip address from the VM's ifconfig command and selected the inet ip address. Sound good?
– Jazzmine
Jun 29 '14 at 0:37




And a little bit more info: i got my ip address from the VM's ifconfig command and selected the inet ip address. Sound good?
– Jazzmine
Jun 29 '14 at 0:37












@Jazzmine - you ran xhost + on the host with the actual desktop, right?
– slm♦
Jun 29 '14 at 0:37




@Jazzmine - you ran xhost + on the host with the actual desktop, right?
– slm♦
Jun 29 '14 at 0:37

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f139729%2ftrying-to-get-firefox-running-on-centos-6-minimal-iso-cant-open-display%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay