Click to See Complete Forum and Search --> : x config issue
guitarfella
11-20-2004, 03:20 AM
i think this started after i updated my nivida drivers
when trying to launch X window applications as root from a termial i recieve errors such as
cannot connect to X server and
no display name and no $DISPLAY environment variable
no problems with my user account though.. just root
how can i reconfigure x for root?
Uranus
11-20-2004, 04:44 AM
It's better not to do anything in X as root. I think the command you are looking for is "xhost +root" - man xhost, I might be wrong about the exact usage.
Sam
guitarfella
11-20-2004, 07:42 AM
your right about the X thing.. but id still like to have X for root anyway ; )
i recompiled my kernel to enable SMP, my system booted fine with the new kernel... but now the nvidia module wont load. error message include this when i try startx:
(EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module!
i tried to recompile the nvidia drivers, but it tells me its unable to load the kernel module 'nvidia.o'. it tells me to specify the kernel source path using the commandline option, which i specified exactly using --kernel-source-path=/lib/modules/2.4.26/build
it still returned the same error.
did i do something incorrect when compiling the kernel?
Uranus
11-20-2004, 08:10 AM
Why don't you upgrade to kernel 2.6? It's really worth it. Which distro are you using?
Sam
Choozo
11-20-2004, 08:12 AM
Kernel source path is usually /usr/src/linux
Uranus
11-20-2004, 12:15 PM
Originally posted by Choozo
Kernel source path is usually /usr/src/linux
Maybe it's the source for the nvidia kernel
Sam
guitarfella
11-20-2004, 09:11 PM
no no, nvidia was asking for the kernel source... i specified the /usr/src/linux path also... something is broken... i would have upgraded to the 2.6 but all i wanted was SMP for now...
is there a manual way to repair the x server? i mean, the drivers are already there
Choozo
11-21-2004, 05:58 AM
As a regular user in a terminal, does this work for you?
$ xhost +
access control disabled, clients can connect from any host
$ su -
Password:
# <start your app as root>
guitarfella
11-21-2004, 10:53 AM
m mm... i get
xhost: unable to open display ""
i have just noticed, when i boot my machine the agpgart module hasnt loaded. i get these errors
agpgart.o unresolved symbol kernel_flag_casheline
unresolved symbol smp_call_function
unresolved smp_num_cpus
insmod /lib/modules/2.4.26/kernel/drivers/char/agp/apggart.o failed
insmod agpgart failed
is this the problem? i compiled the kernel to enable smp but it appears to have created some issues. any ideas?
Choozo
11-21-2004, 02:01 PM
Did you forget to 'make modules_install' after recompiling for SMP support?
guitarfella
11-21-2004, 07:40 PM
nah i remembered. im gonna recompile the kernel... maybe i did forget something... if anyone thinks of anything else let me know :rolleyes: