LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 04-14-2011, 12:11 AM   #1
HeavenElite
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, 01:10 AM   #2
paulsm4
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 09:26 AM.
 
Old 04-14-2011, 07:32 AM   #3
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,791

Rep: Reputation: 427Reputation: 427Reputation: 427Reputation: 427Reputation: 427
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, 09:19 AM   #4
MrCode
Member
 
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.:

Code:
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 09:21 AM.
 
  


Reply



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

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

All times are GMT -5. The time now is 05:25 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