Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Seperate XFree init scripts?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Icebreaker
n00b
n00b


Joined: 11 Jul 2004
Posts: 5

PostPosted: Sun Jul 11, 2004 3:18 pm    Post subject: Seperate XFree init scripts? Reply with quote

Howdy, all. Just installed Gentoo a week ago, rather new to this whole linux thing, but the installation handbook was easy enough to follow and I've currently got a perfectly functioning Fluxbox desktop.

My problem is that people keep telling me it's bad to just hang out in your root account all day, but when I log in with my regular user, I get that ugly TVM window manager. How would I change it so that typing 'startx' would start Fluxbox as opposed to TVM?

Keep in mind that I use /root/.xinitrc to start things up when Flux starts, like gdesklets, eterm, etc. I need my regular user to use the exact same file when I type "startx" under that name. And yes, I know that this is documented somewhere, or else there's a forum post I'd have to sift through, but if you'd tell me it could save me a goodly amount of time... :wink:

Thanks for your time.
Back to top
View user's profile Send private message
tomthewombat
Apprentice
Apprentice


Joined: 29 Mar 2003
Posts: 244
Location: NY State

PostPosted: Sun Jul 11, 2004 3:44 pm    Post subject: Reply with quote

copy the same .xinitrc from root's folder into the users home directory.
_________________
http://www.wombatorium.net
Back to top
View user's profile Send private message
Icebreaker
n00b
n00b


Joined: 11 Jul 2004
Posts: 5

PostPosted: Sun Jul 11, 2004 3:56 pm    Post subject: Reply with quote

Ah, should've mentioned I had tried that already. When I use "startx" from there, I get the following error:

Permission denied (errno 13): No such program (/home/icebreaker/.xinitrc) found in PATH

Or something like that, I didn't write the exact message down. But I guess I'd have to make the copied .xinitrc accessible to all users... problem being I'm not sure how.
Back to top
View user's profile Send private message
iamlarryboy
Guru
Guru


Joined: 25 Jan 2003
Posts: 480
Location: Prince George, BC, Canada

PostPosted: Sun Jul 11, 2004 5:45 pm    Post subject: Reply with quote

nano -w ~/.xinitrc

just type the path to the executable you want started after you startx

mine is:

/usr/kde/cvs/bin/startkde
Back to top
View user's profile Send private message
tomthewombat
Apprentice
Apprentice


Joined: 29 Mar 2003
Posts: 244
Location: NY State

PostPosted: Sun Jul 11, 2004 6:39 pm    Post subject: Reply with quote

it seems that when you copied it the file didn't get the right access permissions for your user. deleting the old file and creating a new file under that user name then adding the commands in manually should work.
_________________
http://www.wombatorium.net
Back to top
View user's profile Send private message
Icebreaker
n00b
n00b


Joined: 11 Jul 2004
Posts: 5

PostPosted: Sun Jul 11, 2004 7:20 pm    Post subject: Reply with quote

Well, I've figured out the glorious chmod command... with the arguments in octal, no less. :wink:

But funny things happen when I operate as my non-root user. If I try and set the backround in my Flux desktop using fbsetbg, it gives me some weird X11 lib errors.

So, despite all the warnings, I'll just chill in my root account for my web browsing, etc. I never was very security conscious anyway... :roll:
Back to top
View user's profile Send private message
tomthewombat
Apprentice
Apprentice


Joined: 29 Mar 2003
Posts: 244
Location: NY State

PostPosted: Sun Jul 11, 2004 8:51 pm    Post subject: Reply with quote

what sort of errors??
_________________
http://www.wombatorium.net
Back to top
View user's profile Send private message
Neech
n00b
n00b


Joined: 21 Sep 2003
Posts: 72
Location: Ottawa, Canada

PostPosted: Sun Jul 11, 2004 9:59 pm    Post subject: Reply with quote

To make working as user bearable go in your

/etc/pam.d/su file and uncommend this line :

Code:
auth       sufficient   /lib/security/pam_wheel.so use_uid trust


after that add your user to the group wheel (man usermod)

than you will be able to type "su -" in terminals to become root
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum