View previous topic :: View next topic |
Author |
Message |
don4lfonso n00b
Joined: 31 Dec 2004 Posts: 3 Location: Italy
|
Posted: Wed May 11, 2005 7:42 am Post subject: [Solved] evilwm/fluxbox/twm startable only by root? |
|
|
Hello!
I have a little problem: After installing Fluxbox I can actually start it only as root.
Firing up startx as a normal user (with the respective information for the wm in
~/.xinitrc) I just get to see a black screen and an X mouse pointer. Same goes
for Evilwm and TWM, whereas Xfce4, Gnome and KDE start without problems.
Having a guess I'd say it has to do with some permissions, but I just can't figure
out what it is. I tried to play around with file permissions, the various startup
scripts and googled around for three hours - without success, as you can see.
Can anybody help me out of this misere? I am still looking for the ideal wm, and
for what I know up to this point I'd say Fluxbox is best for me ^^
Thanks!
Last edited by don4lfonso on Wed May 11, 2005 9:08 am; edited 1 time in total |
|
Back to top |
|
|
fangorn Veteran
Joined: 31 Jul 2004 Posts: 1886
|
Posted: Wed May 11, 2005 7:57 am Post subject: |
|
|
The Command to start Fluxbox is startfluxbox
Try firing it up at commandline. If that doesn't work try
Code: |
which startfluxbox
chown <your_user>:<your_group> <path_to_startfluxbox>
|
and try it again.
Are you using 3D acceleration? If yes, your user has to be in the group video to get access to the videocard device.
try
Code: |
id <your_user>
usermod -G <all_your_current_groups>,video <your_user>
|
to add your user to this group.
I am using fluxbox too.
I use gdm as graphical login manager, which is started with root privileges, so the X server is running with root privileges. Not the most secure way to run your system but for a standalone laptop without connection to any network its secure enough This takes perfectly care of any permission problems concerning the X server. |
|
Back to top |
|
|
Gentist Apprentice
Joined: 20 Mar 2004 Posts: 247
|
Posted: Wed May 11, 2005 8:10 am Post subject: |
|
|
Do you have an ~/.xinitrc in your home directory for the normal user? If no, then that's your problem.
Did you edit/create ~/.xinitrc as root? If so, then it's possible that the permissions are off and root owns the file (in which case you might not be able to read it).
Check the permissions of the .xinitrc file in your home directory with "ls -la" and make sure they are correct.
If you are running the development version of Fluxbox (recommended), then the only line in .xinitrc should be "startfluxbox" unless you've got some configs you'd like to load.
My .xinitrc:
Code: |
nvidia-settings --load-config-only &
startfluxbox
|
Additional applications you'd like to run on startup should be placed in "~/.fluxbox/apps" with the following syntax:
Code: |
[startup] {executable}
|
For example:
Code: |
[startup] {gkrellm2 -w}
|
Hope that helps. |
|
Back to top |
|
|
don4lfonso n00b
Joined: 31 Dec 2004 Posts: 3 Location: Italy
|
Posted: Wed May 11, 2005 8:36 am Post subject: |
|
|
I am indeed using GDM (tried also without), but it doesn't solve the problem.
There should be no problem with .xinitrc, it is owned by the user account and
has even the u+x bit.
The startfluxbox-script is ok too, also with permissions and the like (ie. user
owns it).
I am not using 3D acceleration as my chip (sis650) doesn't support it under
Linux (*uck that) and commented out the dri module in xorg.conf
Btw, I use this xorg/useflags:
x11-base/xorg-x11-6.8.2-r1 -3dfx +3dnow +bitmap-fonts -cjk -debug -dlloader
-dmx -doc -font-server* -hardened -insecure-drivers +ipv6 -minimal +mmx +nls
+opengl +pam -sdk +sse -static +truetype-fonts +type1-fonts (-uclibc) -xprint +xv
This is my fluxbox installation:
x11-wm/fluxbox-0.9.12-r1 -bigger-fonts -disablexmb -gnome +imlib -kde +nls
+truetype -xinerama
hmm it should indeed be some display problem, as fluxbox logs normally, I just
don't get to see anything.
Again, as root everything runs smooth. |
|
Back to top |
|
|
don4lfonso n00b
Joined: 31 Dec 2004 Posts: 3 Location: Italy
|
Posted: Wed May 11, 2005 9:08 am Post subject: |
|
|
Alright, I solved the thing recompiling fluxbox with the following use-flags (note +disablexmb):
x11-wm/fluxbox-0.9.12-r1 -bigger-fonts +disablexmb -gnome +imlib -kde -nls +truetype -xinerama
Thanks anyway a lot for helping!
[edit:]
But evilwm and twm still wont start.. |
|
Back to top |
|
|
|