LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   X-Window startx:command not found (https://www.linuxquestions.org/questions/linux-software-2/x-window-startx-command-not-found-60889/)

rawkstar59 05-20-2003 06:46 PM

X-Window startx:command not found
 
When I "startx" it says "invalid command" or "command not found". I've installed both the kernel and GLX drivers for nForce mb, I've added "usr/X11R6/bin" to /etc/profile and /root/.profile, i've tried reinstalling X via "apt-get install xserver" and "apt-get install x-window-server". startx is not in /usr/X11R6/bin. I'm running out of options here. Can anyone help?

Thetargos 05-20-2003 06:52 PM

Haven't you tried to download the tar.gz bianaries and reinstall from those? They should place your startx command in /usr/X11R6/bin directory. Have you tried an #init 5 command to see if your X interface is working in that init state?

rawkstar59 05-20-2003 07:40 PM

When I give a init 5 command, it responds with this:

INIT:Switching to runlevel:5
INIT: Sending processes to the TERM signal

I try startx after that, but it gives the same error. I'm a newbie so i don't really know what the init is suppose to do.

Where can i find tar.gz bianiaries for X?

BigNate 05-20-2003 08:05 PM

Ok first did X work and now it does not?

rawkstar59 05-20-2003 08:12 PM

Yesterday startx worked....but with some trouble. When I booted my PC today, it "forced a check" of my hard drive (don't know what thats all about). Then I tried installing an updated driver from nvida, tried startx, it then game me the "command not found" message. Reinstalled the orignial driver, still have me the same error. It just seems strange that startx would suddenly stop working. I'll try anything anyone suggests.

BigNate 05-20-2003 08:15 PM

what does the command:

$whereis startx

reveal?

rawkstar59 05-20-2003 08:39 PM

Just spits out this:

startx:

Not to revealing :-(

I just don't get how it can just disappear.

Thetargos 05-20-2003 08:59 PM

Ok, you can do either of two things: reinstall X from your Install CD's (that should get you started) if it indeed works, try switching to console (either via init 3 [pure console] or by killing X [ctrl+alt+backspace]) then install your drivers, edit your XF86Config-4 file and restart X, again either by init 5 (starts computer with X running in gdm, xdm or kdm) or startx. if it works, great! if not... try to keep track of what the /var/log/XFree86.0.log file says. Alternatively you can redirect the output to a file so you can view what its being printed to the screen using a ">" character:
$startx > error.out

rawkstar59 05-20-2003 11:46 PM

Thanks for the help. I got startx working. But I have a new problem. When I startx, it gives me an error that says "screen found, but non have usable configuration."

When I "lsmod", i can see that the "NVdriver" is loaded (but nothing is "using" it)...so i'm assuming that its not a kernel source problem.....or is it?

I've made all the necessary changes is X86Config.

Any suggestions?

MasterC 05-21-2003 11:37 AM

When you get that error it's sometimes because you haven't properly
configured your XF86Config file. Go ahead and post that up here if at all possible.
Also, there are other reasons you get that error so if you could redirect the error to an output file like TheTargos has shown
And also post that up as well, that would be great. (Sorry if I spelled the name wrong, I'm in lynx and cannot scroll backup).

Cool

fancypiper 05-21-2003 11:43 AM

Are you using debian? If so, try this command"

dpkg-reconfigure xserver-xfree86

# Configuring X
Linux Hardware Compatibility HOWTO - video cards
The Linux XFree86 HOWTO
Common X configuring tools:
Debian - dpkg-reconfigure xserver-xfree86
Mandrake - XFdrake
Redhat 7.3 down - the setup utility leads to several config tools
Redhat 7.3 up - redhat-config-xfree86
You may have these tools:
XF86Setup
XFree86 -configure
Xconfigurator
xf86cfg
xf86config
xconf
nVidia Driver Installation NHF
nVidia driver page


All times are GMT -5. The time now is 03:46 PM.