LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-27-2012, 02:15 AM   #1
hitmen
Member
 
Registered: Jun 2011
Distribution: Kubuntu 10.04
Posts: 158

Rep: Reputation: Disabled
Firefox Error display=Display


Help I cant start firefox from #

It says Error: no display specified when i type

#firefox -display=Display
 
Old 08-27-2012, 03:54 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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
 
Old 08-27-2012, 05:59 AM   #3
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
@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
 
Old 09-02-2012, 04:09 AM   #4
hitmen
Member
 
Registered: Jun 2011
Distribution: Kubuntu 10.04
Posts: 158

Original Poster
Rep: Reputation: Disabled
hi,

can you explain what this command do echo 'exec startkde' > ~/.xinitrc ?
 
Old 09-02-2012, 04:31 AM   #5
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
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".
 
Old 09-02-2012, 06:08 AM   #6
hitmen
Member
 
Registered: Jun 2011
Distribution: Kubuntu 10.04
Posts: 158

Original Poster
Rep: Reputation: Disabled
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.
 
Old 09-02-2012, 06:23 AM   #7
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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
 
Old 09-02-2012, 07:56 AM   #8
hitmen
Member
 
Registered: Jun 2011
Distribution: Kubuntu 10.04
Posts: 158

Original Poster
Rep: Reputation: Disabled
well i know mkdir and so on but i dunno what each specific file sys does?
 
Old 09-02-2012, 08:11 AM   #9
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML5 "<details>" tag display:inline, display:hidden CSS ignored (Firefox, Seamonkey) ShellyCat Programming 1 01-11-2011 10:23 PM
[SOLVED] error: cannot open display: 0 when trying to launch Firefox Cultist Debian 2 09-08-2010 11:03 AM
Paid Assist Request - VPS Firefox Launch No Display Error jeewiz Linux - Software 3 08-21-2009 05:07 AM
Tcl Error no display name and no DISPLAY environment variable thinkgeek Programming 5 07-06-2005 10:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration