LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-28-2009, 07:43 AM   #1
allele
Member
 
Registered: May 2009
Posts: 42

Rep: Reputation: 16
how do I get fluxbox to start automatically at login


On Fedora 11, how do I get fluxbox to start automatically at login instead of GNOME/metacity? Do I need to use gdm to do this or can I do it without gdm?
 
Old 06-28-2009, 08:34 AM   #2
mdg
Member
 
Registered: Sep 2003
Distribution: Slackware
Posts: 626

Rep: Reputation: 38
If you use startx, you can put
Code:
exec startfluxbox
in your ~/.xinitrc file (comment out any other WM options)
 
Old 06-28-2009, 01:46 PM   #3
allele
Member
 
Registered: May 2009
Posts: 42

Original Poster
Rep: Reputation: 16
I don't have a .xinitrc file (yet). I'm still using gdm and its 'Sessions' list, and I don't know how to stop using it. It causes problems in, for example, starting fluxbox where it does not seem to run ~/.fluxbox/startup so I cannot set a desktop background to load automatically (whereas if I run startfluxbox this works normally, but complains I am already running a wm). If I create .xinitrc it is ignored.

Is gdm something I am running instead of startx; are they equivalent?
 
Old 06-29-2009, 08:55 AM   #4
nuwen52
Member
 
Registered: Feb 2009
Distribution: Debian, CentOS 5, Gentoo, FreeBSD, Fedora, Mint, Slackware64
Posts: 208

Rep: Reputation: 46
A fairly easy way to not start X (and gdm) on boot would be to change your /etc/inittab entry for the default runlevel.
If you have a line like: "id:5:initdefault:" the inittab, change the 5 to a 3. That does not start X. Then, you can log in and use startx to start your XWindows session. That would then use your ~/.xinitrc
 
Old 08-16-2009, 02:59 PM   #5
allele
Member
 
Registered: May 2009
Posts: 42

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by nuwen52 View Post
A fairly easy way to not start X (and gdm) on boot would be to change your /etc/inittab entry for the default runlevel.
If you have a line like: "id:5:initdefault:" the inittab, change the 5 to a 3. That does not start X. Then, you can log in and use startx to start your XWindows session. That would then use your ~/.xinitrc
The problem with this is it takes me to a text login prompt and I have to login and startx manually.

I found this post which gives a way to do it and it sort of works (it doesn't seem to run my fluxbox startup script and flashes the gdm background). It mentions disabling gdm: how do I do that without uninstalling it (as I may want to go back to it or use it to get to other wms)?
 
  


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
Start Fluxbox session automatically kushalkoolwal Linux - Desktop 13 03-15-2009 04:43 AM
start application automatically after login gcomandini Linux - Newbie 4 02-06-2008 02:33 AM
FLWM + YaST start automatically at Root Login ibex Linux - General 1 05-30-2006 02:01 AM
Login user automatically on system startup, and then start X locodude Linux - Security 1 02-26-2006 05:02 PM
login regular but start a server process automatically after reboot powah Linux - Newbie 6 05-24-2005 07:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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