LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 05-10-2005, 02:15 PM   #1
gpl_racer
LQ Newbie
 
Registered: Apr 2005
Location: Finland
Distribution: Mandrake Linux 10.1
Posts: 7

Rep: Reputation: 0
Can't login to FluxBox as normal user (only as root)


Just finished "fighting" with my computer to get FluxBox to show up in the menu of the login manager (or whatever it is called) by switching it from MdkKDM to KDM. Now the problem is that if I try to login as a normal user the screen goes black for half a second and then returns to login manager. Logging in as root does work but obviously I'm not willing to use my computer that way. This only happens with FluxBox (version 0.9.12, compiled from a .bz2 package), other WMs work fine (both as normal user and root)...
Any suggestions on how to work this out...?
 
Old 05-10-2005, 02:50 PM   #2
taxtropel
Member
 
Registered: Mar 2005
Location: Cascade Mountains WA USA
Distribution: Linux From Scratch (LFS)
Posts: 149

Rep: Reputation: 16
first go to a regular VT (console) by pressing CRTL+ALT+F1 (or F2 of F3)
then login as root
change to runlevel 3 with command: init 3
(this will cause X to stop, as well as the KDM to stop)
if a prompt doesn't appear then press enter a few times.
logout as root, then log back in as your normal user.

as a normal user edit your .xinitrc file (note the period before the filename)
example: nano .xinitrc

add the line exec /usr/local/bin/fluxbox

(remove any other lines in the file)

save and exit

back at the prompt type startx
if X starts w/ fluxbox then there is somthing wrong with the way
KDM is installed / Setup...see the help info at


docs.kde.org

if X fails, then there is somthing wrong w/ the setup of X or fluxbox (permission wise)
 
Old 05-10-2005, 06:33 PM   #3
gbhil
Member
 
Registered: Jan 2005
Location: /dev/input/chair0
Distribution: Slackware, Gentoo, Vector, Roll-your-own-with-GNU binutils
Posts: 174

Rep: Reputation: 30
as the user trying to run fluxbox, from the console

Code:
startfluxbox
You need to set up your ~/.fluxbox environment for users existing before fluxbox was installed, and this script (included with flux install) does just that.

Fluxbox then SHOULD start normally after the first run as above.
 
Old 05-10-2005, 07:28 PM   #4
Einsteino
LQ Newbie
 
Registered: May 2005
Distribution: Fedora
Posts: 7

Rep: Reputation: 0
he's right
 
Old 05-11-2005, 12:54 AM   #5
gpl_racer
LQ Newbie
 
Registered: Apr 2005
Location: Finland
Distribution: Mandrake Linux 10.1
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks for the help.

Here's what I did:

In console as root I typed "init 3"
When the login prompt appeared I logged in as a normal user.
Then I typed "startfluxbox" and I got the following:
/home/juha/.fluxbox/startup: line 12: @pkgbindir@/bsetroot: No such file or directory
/home/juha/.fluxbox/startup: line 47: /home/juha/@pkgbindir@/fluxbox: No such file or directory
/home/juha/.fluxbox/startup: line 47: exec: /home/juha/@pkgbindir@/fluxbox: cannot execute: No such file or directory

Does this mean that it tries to look for the commands in a wrong place...? Shouldn't it be like /usr/local/bin/"command here"...?


And taxtropel: I couldn't find a file called ".xinitrc"...
 
Old 05-11-2005, 10:21 AM   #6
gbhil
Member
 
Registered: Jan 2005
Location: /dev/input/chair0
Distribution: Slackware, Gentoo, Vector, Roll-your-own-with-GNU binutils
Posts: 174

Rep: Reputation: 30
what reply (if any) do you get from this command -
echo $pkgbindir

It appears that the startfluxbox command set your environment right, but the start script seems to be flakey. Like a variable in the startfluxbox script wasn't defined properly. Is this an official Mandrake pkg?

Changing the path(s) in the ~/.fluxbox/startup script may make it work, you can find the path to the files using the locate or slocate command and change them in the script. Example from my machine -
Code:
$ slocate bsetroot
/usr/X11R6/bin/bsetroot
/usr/X11R6/man/man1/bsetroot.1.gz
the path would be /usr/X11R6/bsetroot



you could also enter these lines into a term (as user) one line at a time
Code:
cp ~/.fluxbox/startup ~/.fluxbox/startup.OLD
cat << EOF > ~/.fluxbox/startup
# fluxbox startup-script:
bsetroot -solid black
exec fluxbox
EOF
startfluxbox
This is a quick and dirty hack that depends on everything being in your path, so ymmv

If that doesn't help, post the entire text of the startfluxbox script and I'll be happy to try to fix it the 'right' way.
 
Old 05-11-2005, 11:00 AM   #7
gpl_racer
LQ Newbie
 
Registered: Apr 2005
Location: Finland
Distribution: Mandrake Linux 10.1
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by gbhil
what reply (if any) do you get from this command -
echo $pkgbindir


you could also enter these lines into a term (as user) one line at a time
Code:
cp ~/.fluxbox/startup ~/.fluxbox/startup.OLD
cat << EOF > ~/.fluxbox/startup
# fluxbox startup-script:
bsetroot -solid black
exec fluxbox
EOF
startfluxbox
This is a quick and dirty hack that depends on everything being in your path, so ymmv

If that doesn't help, post the entire text of the startfluxbox script and I'll be happy to try to fix it the 'right' way.
That echo -thing didn't do anything but an empty line...


But that code part really did something... FluxBox now works when logging in as a normal user. Thank you for your help, gbhil.

Only problem now is that I don't know how to configure FluxBox (the desktop icons and visuals etc), but that's a whole another story and will hopefully be resolved with a few hours of studying (like all other "minor" Linux-problems, I guess)...
 
Old 05-11-2005, 06:31 PM   #8
gbhil
Member
 
Registered: Jan 2005
Location: /dev/input/chair0
Distribution: Slackware, Gentoo, Vector, Roll-your-own-with-GNU binutils
Posts: 174

Rep: Reputation: 30
Great. I'm glad I could help a bit.
 
  


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
Normal user can't login via CDE? zeki709 Solaris / OpenSolaris 2 03-31-2012 04:29 PM
error login as normal user mandrakelinux Slackware 8 11-17-2005 09:02 AM
Can't login in X as a normal user but root laxteryx Linux - General 2 11-09-2004 12:14 PM
Games runs slow as normal user, but fast as root user mcore Linux - Software 2 06-07-2004 11:11 PM
How to login as a normal user? daYz Slackware 5 11-14-2003 02:35 PM

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

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