LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Firefox Error display=Display (https://www.linuxquestions.org/questions/linux-newbie-8/firefox-error-display%3Ddisplay-4175424155/)

hitmen 08-27-2012 02:15 AM

Firefox Error display=Display
 
Help I cant start firefox from #

It says Error: no display specified when i type

#firefox -display=Display

TobiSGD 08-27-2012 03:54 AM

The '#' in the Bash shell means that you are logged in as root. You never start Firefox as root, unless you like to have a compromised system.

To your command, you have to give a real display to the option, not just the word Display. If your Xserver is running on display :0 then you have to give that to the command, like
Code:

firefox -display=:0

konsolebox 08-27-2012 05:59 AM

@hitmen: Why do you have to run it as root? Anyway you could also do that if you ran X by startx as root instead of using a login manager (xdm, kdm, gdm, etc.).

e.g.
Code:

echo 'exec startkde' > ~/.xinitrc
startx


hitmen 09-02-2012 04:09 AM

hi,

can you explain what this command do echo 'exec startkde' > ~/.xinitrc ?

SecretCode 09-02-2012 04:31 AM

It echoes the text "exec startkde" and redirects the output to the file "~/.xinitrc". So effectively it's editing the file .xinitrc and creating / replacing its contents with "exec startkde".

hitmen 09-02-2012 06:08 AM

Well actually how do you know that you have to do this?
What linux certification you have to learn all this?
I have never dared to touch sys files in windows.

spiky0011 09-02-2012 06:23 AM

These are not system files more user config files they are in user home but they are hidden if you use gui to view files then control+h will show them or in terminal ls -a will show them.

Here is a good start to learn http://www.ee.surrey.ac.uk/Teaching/Unix/
chapter 3 looks at redirect to a file

hitmen 09-02-2012 07:56 AM

well i know mkdir and so on but i dunno what each specific file sys does?

spiky0011 09-02-2012 08:11 AM

If you google the file name it will discribe the file
https://wiki.archlinux.org/index.php/Xinitrc
As you asked how did you learn all this google helps alot, it is not learn't overnight.


All times are GMT -5. The time now is 03:18 PM.