Quote:
Originally Posted by lewisforlife
The reason I am using /usr/src to compile the kernel is because that is what the majority of the Slackware community is telling me to do. I read that Linus says not to do this, but seeing as how I don't have a line of communication with Linus to ask questions, I figured I would follow what most of the Slackware community was telling me.
|
Where you build your kernel would not be an issue if you understood
what
you were doing. Since you don't yet, building where your normal user has
permissions would be much better, and safer, for you.
How many members of "the Slackware community" told you this? It was more
than likely not a majority. Since when did "the Slackware community"
come to know more about the Linux kernel than Linus Torvalds?
You
did have "a line of communication with Linus" -- you got the source
that
he posted to the internet, with
his instructions inside. It was
not
provided by "the Slackware community".
If "most of the Slackware community" tells you to jump in a fire are you
going to do it? (flashbacks from Dad when I was a boy)
Quote:
Originally Posted by lewisforlife
Also, I never ran X as root, I'm not sure where you got this from? I used
to configure my kernel.
|
I got this from reading your posts in the thread, from understanding what
happens when you get the errors you posted, and from referencing the guide
you said you followed:
which states:
Quote:
to let root use my X display
|
Maybe he neglected to say in his guide:
Quote:
you'll probably want to undo them (by using xhost - or removing /root/.Xauthority) when you're finished.
|
as D1ver found using Google.
When you give root permissions to use your X display, and you're logged in
to that terminal as root, what's the difference? You might as well login to
Linux as root and you would not have had the problems with /root/.Xauthority
that brought you here for help.
The choice you use to configure your kernel has
nothing to do with whether
or not you are running X as root. As stated before, you
do not need to be
root to build the kernel ... nor to run "make menuconfig"
Look at this output:
Code:
mingdao@silas64:~$ sudo -i
root@silas64:~# cd ~mingdao/kernel/linux-2.6.34.1/
root@silas64:/home/mingdao/kernel/linux-2.6.34.1# make menuconfig
scripts/kconfig/mconf arch/x86/Kconfig
*** End of Linux kernel configuration.
*** Execute 'make' to build the kernel or try 'make help'.
root@silas64:/home/mingdao/kernel/linux-2.6.34.1# make xconfig
scripts/kconfig/qconf arch/x86/Kconfig
qconf: cannot connect to X server
make[1]: *** [xconfig] Error 1
make: *** [xconfig] Error 2
root@silas64:/home/mingdao/kernel/linux-2.6.34.1#
The purpose of giving root permission to use the X display was
to run "xconfig" ... not "menuconfig" ... so you didn't need to do
this in the first place.
The internet is a big place. Anyone who wants to can build a web page,
and/or post a kernel build guide (or anything else). They're a dime a
dozen, but the instructions are included with the kernel source. Using
your logic: "I figured I would follow what most of the Slackware community
was telling me" ... you might as well ask the Debian or Ubuntu community how
to configure Slackware.
We're trying to help you, since it's obvious you still don't understand what
you did that caused your problem. Basically, you changed the cookies for root
associated with the X server to the normal user's cookie.