LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-30-2003, 01:18 PM   #1
glock19
Member
 
Registered: Aug 2001
Distribution: Debian Etch
Posts: 510

Rep: Reputation: 31
How to start fluxbox instead of gnome


How do I start fluxbox instead of gnome?

My system did not have a ~/.xinitrc, so I made one and entered "exec fluxbox". I restarted X but gnome is still starting.
 
Old 01-30-2003, 03:05 PM   #2
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
its probably not in your path, there are examples for all of the normal WMs prebuilt for you into believe it or not, X... Try copying the example over the .xinitrc:

cp /etc/X11/xinit/xinitrc.fluxbox /home/whoever/.xinitrc

or better yet, just symlink it.

Cheers,

Finegan
 
Old 01-30-2003, 03:10 PM   #3
glock19
Member
 
Registered: Aug 2001
Distribution: Debian Etch
Posts: 510

Original Poster
Rep: Reputation: 31
I don't have an /etc/X11/xinitrc/xinitrc.fluxbox
 
Old 01-30-2003, 03:21 PM   #4
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
create ~/.xinitrc with the following lines in it.

xterm &
exec /path/to/fluxbox

this will start an x terminal and fluxbox as your window manager when you type 'startx'.
 
Old 01-30-2003, 03:36 PM   #5
glock19
Member
 
Registered: Aug 2001
Distribution: Debian Etch
Posts: 510

Original Poster
Rep: Reputation: 31
I haven't been typing startx.

I type /sbin/init 5

Is that ok to do?
 
Old 01-30-2003, 04:30 PM   #6
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Well, yes and no. If your initdefault is runlevel 3, the preferred way to start the X server is to type startx when you are logged in as a non-root user. startx is a shell-script that calls the xinit binary with the appropriate options and that in turn forks the X server and your client apps as read from ~/.xinitrc if one exists.

When your initdefault is 5 or when you telinit(init behaves like telinit when you switch runlevels) to runlevel 5, an xdm server or equivalent ( gdm is default with RH ) gets started it and goes a different route that reads the ~/.xsession instead of ~/.xinitrc. The way I have both runlevels behave the same is by making .xsession a symlink that points to .xinitrc . This works like a champ if you're using xdm, but again you are using GDM and I had to tweak something in the GDM config to read my .xsession . Or I created some file that gdm looks for. I dont remember what.

That was about a year ago and I wiped it to install RH 8.0 so I cant go check. And I havent done it with 8.0 because I dont reboot at all and it wasnt worth the trouble. Let us know if you can get it going.

Inorder to use init you have to login as root right? And then login as someone else when the display manager starts up, is that correct?

Last edited by nxny; 01-30-2003 at 05:55 PM.
 
Old 01-30-2003, 04:52 PM   #7
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
You're using X as root? That's very bad... unless its handing off to xdm or kdm and then you're logging in as a user from there. I think startx will bypass that, I've never used a display manager...

Cheers,

Finegan
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Programs in FluxBox take ages to start or don't start at all hubabuba Slackware 1 02-20-2005 09:21 AM
fc2-gnome : Applications dont start / very slow to start nox104 Linux - Software 0 08-18-2004 08:53 PM
cannot start kdeas user ,can start icewm,fluxbox jackren Debian 1 02-29-2004 11:06 PM
Fluxbox Start Up Crashed_Again Linux - Software 18 05-25-2003 06:13 PM
how can i start Fluxbox safrout Linux - Software 10 09-23-2002 05:18 PM


All times are GMT -5. The time now is 11:22 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration