LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   error: cannot open display: 0 when trying to launch Firefox (https://www.linuxquestions.org/questions/debian-26/error-cannot-open-display-0-when-trying-to-launch-firefox-831007/)

Cultist 09-08-2010 10:53 AM

error: cannot open display: 0 when trying to launch Firefox
 
So I just installed 32-bit Squeeze. I've done exactly two things since booting into the first install: apt-get install gtk+2.0, and ./firefox, so unless gtk did something, this might be an easily fixable problem with Debian itself. After installing gtk and trying to run firefox via command line, it tells me
Code:

Error: cannot open display: :0
I googled a bit and couldn't come up with a solid solution, but the problem seems to be around other places. Any idea how to fix this?

bathory 09-08-2010 11:01 AM

I guess you're trying to run firefox an a different user, than the one that is logged in X

Cultist 09-08-2010 11:03 AM

ah okay I feel like an idiot now.
I was still in root from installing gtk. changing back to my regular username fixed it. Thanks lol


All times are GMT -5. The time now is 05:12 PM.