Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-14-2011, 01:11 AM   #1
LQ Newbie
Registered: Feb 2011
Posts: 25
Blog Entries: 1

Rep: Reputation: 0
Question How to run firefox openoffice in init 3

Actually,I don't know how to run firefox in init5 via the termimal.
Old 04-14-2011, 02:10 AM   #2
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
If you wish to run a graphical program like Firefox, then you need to be running X windows.

The SERVER can be in "init 3" (no graphics), but you can run Firefox remotely (by using vncserver, or by using an X emulator and setting $DISPLAY on your remote PC).

Conversely, your server can be in "init 5" (graphics mode) ... but if you <Ctl-Alt-F1> to a text-only virtual console, then you CANNOT run Firefox (because your logon console has no graphics).

Bottom line: if you're sitting in front of an X Windows logon, then you can run Firefox (whether your X windows is local or remote). If you're sitting in front of a text-only logon, then you can't.

It's as simple as that

Last edited by paulsm4; 04-14-2011 at 10:26 AM.
Old 04-14-2011, 08:32 AM   #3
Senior Member
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Linux Mint
Posts: 1,715

Rep: Reputation: 400Reputation: 400Reputation: 400Reputation: 400Reputation: 400
Well, you can run firefox from a text console if you tell it which X display to use. Of course, this requires a running X display. Here's what I did:

1. Boot into runlevel 3 (text console); log in
2. startx (starts X; display is :0)
3. Alt-F2 to bring up a new tty; logged in as the same user as in step 1
4. firefox --display :0 firefox is opened on the X display

Not sure if this is what you were asking for
Old 04-14-2011, 10:19 AM   #4
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864
Blog Entries: 31

Rep: Reputation: 148Reputation: 148
Another idea (WRT opening graphical apps on an alternate X display/from a text-mode tty) is to set the $DISPLAY variable before running the command, e.g.:

DISPLAY=:0.0 firefox
The advantage to this is that it doesn't rely on the program needing to have some kind of display-setting option/switch.

Last edited by MrCode; 04-14-2011 at 10:21 AM.


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
How to run fsck during a shutdown sequence, or how to run one-time init scripts? bgoodr Debian 5 11-28-2010 04:08 PM
Init run level 1 Gortex Linux - Newbie 5 06-29-2007 02:27 AM
Is a script, run at boot time from init.d, run with root authority? tmbrwolf53 Linux - Server 2 03-31-2007 09:15 PM
Can't get script to run from symlink in etc/init.d goggyturk Debian 5 12-05-2006 01:34 PM
Where is 'init' run from? (slackware 9.0) itsjustme Slackware 12 05-18-2003 04:14 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:02 AM.

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