GentooThis forum is for the discussion of Gentoo Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
New Gentoo install; Dell Dimension E510 with Nvidia GeForce 7300 LE, USB keyboard and optical mouse. Basic install went well, complete with custom (i.e. not genkernel) kernel.
To get usb keyboard/mouse and my nvidia card working with Xorg, I created a hybridized xorg.conf composed of the screen/device/monitor/display created by "nvidia-xorgconf" and the evdev input device section from what I believe was the xorg.conf.example generated during the Xorg emerge.
Everything was working as root, but when I changed to normal user, xterm complained about not being able to find "/bin/ksh" (my SHELL=/bin/ksh) and after about 3 seconds, Xorg would shut down. So I went into /etc/env.d/99local and commented out the SHELL=/bin/ksh line, ran "env-update" and then tried to "startx" again. The video still works, but X no longer sees my mouse (keyboard still works). This is true both as normal user and as root.
I don't know if I believe that this is all related to not using the default shell, but I cannot recall any other changes made to environment variables. Any thoughts would be greatly appreciated. Thanks.
(I know I should include config files, but not sure how. If you would like to see my config files, please explain a CLI way to cut-and-paste them w/o a mouse.)
Xorg works fine, regardless of whether the user is root or normal_user. So, I
su to root,
write a change to /etc/env.d/99local and restart
... only to get
Code:
echo $SHELL
/bin/ksh
Does anyone know of other files where SHELL is set? I'm stumped. Thanks.
(By the way: I also get
Code:
which ksh
/bin/ksh
but xterm complains that it cannot find "/bin/ksh". I suppose the best solution would be to help Xorg/xterm find ksh, as that *is* my preferred shell.)
I finally changed SHELL to /bin/bash, but the behavior didn't change: xterm says it cannot find /bin/bash, and X closes after about 3 seconds. Does anyone know what's going on? I am looking for xterm config file documentation, I'll post if/when I am able to specify a shell file path in the xterm config file. Will also check my local profile to see if that can be changed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.