View previous topic :: View next topic |
Author |
Message |
Icebreaker n00b
Joined: 11 Jul 2004 Posts: 5
|
Posted: Sun Jul 11, 2004 3:18 pm Post subject: Seperate XFree init scripts? |
|
|
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...
Thanks for your time. |
|
Back to top |
|
|
tomthewombat Apprentice
Joined: 29 Mar 2003 Posts: 244 Location: NY State
|
Posted: Sun Jul 11, 2004 3:44 pm Post subject: |
|
|
copy the same .xinitrc from root's folder into the users home directory. _________________ http://www.wombatorium.net |
|
Back to top |
|
|
Icebreaker n00b
Joined: 11 Jul 2004 Posts: 5
|
Posted: Sun Jul 11, 2004 3:56 pm Post subject: |
|
|
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 |
|
|
iamlarryboy Guru
Joined: 25 Jan 2003 Posts: 480 Location: Prince George, BC, Canada
|
Posted: Sun Jul 11, 2004 5:45 pm Post subject: |
|
|
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 |
|
|
tomthewombat Apprentice
Joined: 29 Mar 2003 Posts: 244 Location: NY State
|
Posted: Sun Jul 11, 2004 6:39 pm Post subject: |
|
|
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 |
|
|
Icebreaker n00b
Joined: 11 Jul 2004 Posts: 5
|
Posted: Sun Jul 11, 2004 7:20 pm Post subject: |
|
|
Well, I've figured out the glorious chmod command... with the arguments in octal, no less.
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... |
|
Back to top |
|
|
tomthewombat Apprentice
Joined: 29 Mar 2003 Posts: 244 Location: NY State
|
|
Back to top |
|
|
Neech n00b
Joined: 21 Sep 2003 Posts: 72 Location: Ottawa, Canada
|
Posted: Sun Jul 11, 2004 9:59 pm Post subject: |
|
|
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 |
|
|
|