LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-07-2006, 01:38 PM   #1
sharapchi
Member
 
Registered: Nov 2004
Location: Turkey
Distribution: slackware
Posts: 119

Rep: Reputation: 15
how to directly go firefox


I want to install a slackware for my friend only to use for internet. How can i directly open firefox? (without entering a password)

I know i have to init level 4. (/etc/inittab)But how can i automatically start firefox from X and how can shutdown computer?

Thanks

Last edited by sharapchi; 12-07-2006 at 01:41 PM.
 
Old 12-07-2006, 03:56 PM   #2
MannyNix
Member
 
Registered: Dec 2005
Location: ~
Distribution: Slackware -current
Posts: 465

Rep: Reputation: 53
Not sure i understand what you want...
Quote:
How can i directly open firefox? (without entering a password)
If you configure your xserver/window manager to boot to an xsession you won't be asked for a password. Something like typing: xinit
I have my box to boot to kde, no passwords asked, it's also possible to boot to "failsafe".
Quote:
how can i automatically start firefox from X
type firefox
Quote:
how can shutdown computer?
Depending on your kernel/config, something like:
shutdown -h now
Try: man shutdown (for more options)
 
Old 12-07-2006, 04:16 PM   #3
MaizeNBlue2
LQ Newbie
 
Registered: May 2006
Location: Indiana, USA
Distribution: Slackware 12.2
Posts: 23

Rep: Reputation: 15
I want to clarify before I even start thinking about the answer. You want to:

1) Have the system startup and go directly into X without entering a password?

2) When X comes up, it's to autmatically load Firefox?

3) And when done using the internet, it's to shut down?

Please explain if this isn't want you want.
 
Old 12-07-2006, 05:06 PM   #4
sharapchi
Member
 
Registered: Nov 2004
Location: Turkey
Distribution: slackware
Posts: 119

Original Poster
Rep: Reputation: 15
Sorry all..

Yes you are right j_houch.. You understood what exactly i want.

I want to

1) System starting without entering password and going to X
2) After X starting, loading directly firefox.
3) After using firefox, shutting down computer without writing any commands. (power management does it but, it is not safe i think)

I can make system starting with X configuring 'inittab' but i cannot start X without entering any passwords. I do not want to use KDE or GNOME to load directly firefox, i want to use a lightweight desktop enviroment.. Waiting your suggestions.

Thanks all
 
Old 12-07-2006, 05:27 PM   #5
sickboylives
Member
 
Registered: Mar 2003
Location: Cambridge, Ohio, USA
Distribution: Slackware 11.0, FreeBSD 6.2
Posts: 98

Rep: Reputation: 15
Hmm... just thinking.

GDM allows for an auto login after a time limit expires. You could look into that for the auto login without a password part. I don't have GDM on my machine or I could help further than that.

Then I would suspect something in rc.d (/etc/rc.d/rc.local maybe?) would allow for loading Firefox.

Code:
firefox &
on the command line would start Firefox and return to the prompt. So something like

Code:
firefox
logout
should produce the results you're looking for.

Someone MUCH more knowledgeable than I am is bound to know something I don't, and I'm probably not correct. I'm just makinng guesses from what limited knowledge I have.

Someone tell me if I'm on the right track.
 
Old 12-07-2006, 05:35 PM   #6
Ilgar
Senior Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 15.0, Slackwarearm 14.2
Posts: 1,157

Rep: Reputation: 237Reputation: 237Reputation: 237
Using .xinitrc would be better. Just write

firefox
shutdown -h

in your .xinitrc. There will be no window manager, so you will have a borderless FF window.

Of course, you still need to be able to startx without entering a password. I don't know how that can be done.

If you want to play with .xinitrc and check how your script works, edit your .xinitrc to your taste (and temporarily remove the shutdown line), switch to console with Ctrl+Alt+F2 (or F3,...,F6), login and type

startx -- :1

This will open another X session which can be reached by Ctrl+Alt+F8 (the original session is at Ctrl+Alt+F7).

You may find this one interesting too:

http://www.linuxnet.com.tr/modules.p...hlight=xinitrc

Last edited by Ilgar; 12-07-2006 at 05:45 PM.
 
  


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 Boot Directly to Firefox with minimum Suse configuration DS-Patrick Linux - Software 3 01-18-2006 04:21 PM
going from s3 directly to s4 slinky2004 Linux - General 0 12-04-2005 01:25 PM
Is it possible to boot from CD directly from GRUB? nakedape Linux - Newbie 3 08-03-2005 04:17 AM
Booting NT and XP directly--???? ur-unholyness Linux - Newbie 5 10-22-2004 10:00 AM
Encoding directly from CD LittleJohn Linux - General 4 01-15-2004 06:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:36 AM.

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