You are not logged in.
Pages: 1
Hi there.
I am testing Archlinux in VirtualBox - I want to get to know it before I use it in the real life. When I type startx as normal user it crashes with 2 errors:
'Failed to load module "type1" (module doesn't exist)
[...]
No input driver matching mouse'
I've discovered that the real problem is that there is no /opt/kde/bin in the PATH though (I'm using KDEmod). I can run X by typing:
env PATH=$PATH:/opt/kde/bin startx
It would be better to add /opt/kde/bin to the PATH once and for good. In what file(s) can I add it and what are the respective caveats?
Thanks for help
Last edited by JeremyTheWicked (2008-05-27 11:27:45)
arch(3) adj amused because you think you understand something better than other people ;P
Offline
you should be able to edit your /home/{user}/.xinitrc with vi or nano and add the path to kdemod there. (there should be some examples there that are commented out by a "#", the one for KDE can be adjusted to match the folders for KDEMOD).
if you then change the default runlevel in /etc/inittab from "3" to "5" it should boot to X by default by grabbing the entry in your .xinitrc
stefan
"root# su - bofh"
OS: F10_x64, Arch, Centos5.3, RHEL4.7, RHEL5.3
Desktop Hardware: Dell Precision M65 laptop, core2duo, 2gb, 80gb 7200rpm
Registered linux user #459910 since 1998
Offline
Hi Stefan. Thanks for your answer. I know about this possibility. I would rather like to know what is the general-purpose configuration file for the PATH variable. I'd rather I had startkde in my global PATH. Any ideas?
arch(3) adj amused because you think you understand something better than other people ;P
Offline
Look in /etc/profile
Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz
Offline
That's the place. One thing makes me wonder though. In /etc/profile I only have a few positions in the PATH (/bin:/usr/bin:/sbin:/usr/sbin). Where are all the other paths that I get from "echo $PATH" (like /opt/mozilla/bin and the like)? I cannot find it anywhere.
arch(3) adj amused because you think you understand something better than other people ;P
Offline
That's the place. One thing makes me wonder though. In /etc/profile I only have a few positions in the PATH (/bin:/usr/bin:/sbin:/usr/sbin). Where are all the other paths that I get from "echo $PATH" (like /opt/mozilla/bin and the like)? I cannot find it anywhere.
You have to add them. You can also put them in ~/.bashrc
Offline
I think I didn't express myself clearly: I don't mean the lacking paths now (btw. thanks for the bashrc tip - didn't know about it). I mean the paths that are there in the environment already (I can see them with echo $PATH), but they are not defined in /etc/profile. Where does Arch store them?
arch(3) adj amused because you think you understand something better than other people ;P
Offline
they are in their respective files in the /etc/profile.d directory, they are read by /etc/profile using the following construct:
# Load profiles from /etc/profile.d
if test -d /etc/profile.d/; then
for profile in /etc/profile.d/*.sh; do
test -x $profile && . $profile
done
unset profile
fi
Offline
Thanks man! That's what I meant I would never find it myself I guess. And it let me find the real issue: the scripts for KDE in /etc/profile.d didn't have execution permissions set.
This is the explanation I found on KDEmod bugtracker:
No, the permissions are intended to be like this...
Let me explain: With KDE4 in our repo we have now the problem that there are 2 KDE's
available that can coexist, which leads to two different path settings in /etc/profile.d.Our solution: Make the profile files non-executable and source them directly in startkde.
(Take a look into /opt/kde/bin/startkde and/or /opt/kdemod/bin/startkde to see what i mean)The only drawback is that you have to add these two lines to every PKGBUILD:
[ "$QTDIR" = "" ] && source /etc/profile.d/qt(mod).sh
[ "$KDEDIR" = "" ] && source /etc/profile.d/kde(mod4).shClosing this now. Its not a bug, but intended behaviour.
Last edited by JeremyTheWicked (2008-05-26 22:58:39)
arch(3) adj amused because you think you understand something better than other people ;P
Offline
Pages: 1