LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices



Reply
 
Search this Thread
Old 10-12-2003, 09:37 PM   #1
cferris
LQ Newbie
 
Registered: Sep 2003
Location: Stamford CT, USA
Distribution: Fedora Core 1
Posts: 7

Rep: Reputation: 0
Angry Missing commands in Bash/Terminal


Hello all,

I've been trying to work with xinerama for quite some time and I can't seem to get it working. The main issue is I can't seem to get my terminal to recognize the commands that I'm giving it. It seems to be missing them.

For instance, when I tried to switch my run level to 3 (turn off X) by typing in "telinit 3" and "init 3" all I get is "command not recognized". So I tried a real basic command like "fdisk" but that came up with the same thing. I seem to have the basic file management commands (cp, mkdir, ls, ln, etc...) and I can call other things I've installed (mplayer, xine, etc...). So it seems to me like my bash has become corrupted, I've lost some of my basic programs, or I never had them in the first place. Or maybe it's something I haven't thought of (which is entirely possible).


While I'm still pretty new to Linux, I'm not exactly a newbie. I can diagnose and fix some small problems, but this one seems beyond me.

I'm running RH9 with 2.4.20-20.9. 256MB DDR-RAM. (1) 80GB Maxtor ATA-133 and (1) 20 GB Western Digital 20GB ATA-133.

What can I do to fix this?

Thanks,
CMF
 
Old 10-12-2003, 09:45 PM   #2
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 47
the commands you mention can usually only be run by root. So first become root. Then try using them. If you still can't use them, try becoming root by
su -
(note the - ; that's an option given to su)
or append /sbin/ to the front of the command, e.g.:
/sbin/fdisk
/sbin/telinit 3

Last edited by quatsch; 10-12-2003 at 09:46 PM.
 
Old 10-12-2003, 11:15 PM   #3
cferris
LQ Newbie
 
Registered: Sep 2003
Location: Stamford CT, USA
Distribution: Fedora Core 1
Posts: 7

Original Poster
Rep: Reputation: 0
Question Xinerama (formerly Missing Commands)

I just read that about 10 mins ago. I guess I should have checked this forum a little more thoroughly.

I finally got it to work, but now I'm having major problems with Xinerama. I did what the HOWTO suggested to setup the cards. I switched to run level 3 and then I ran "X -configure" and I ran "XFree86 -xf86configure /root/X11/XFree86Configure.new" and it worked (yay!). I copied the new config file over the old one and I did a pico edit that added the Xinerama flag to the very end of the file and saved it. I changed the runlevel to 5 and the login screen came up with no issues. I opened up the display configuration tool from my menu panel and adjusted my Dell monitor. I set its resolution at 1280x1024 and its color range as millions of colors. I hit apply and it suggested that I restart X or reboot. So I opened a terminal window, switched to root and changed the run level to 3. Then I tried to change the runlevel back to 5. This is where it hit the fan.

Now it seems like X tries to start at the logon screen, but fails. This would be no problem, but it keeps trying to initialize and fails every single time. My Ctrl+Alt+Backspace only temporarily kills the X system and then it continues it's rampage. And when I successfully log in and try to kill the X system by the Ctrl+Alt+Backspace method, it brings me right back to the frigging log on screen!!!

So I can't see anyway around this other than blowing away my Redhat installation. This is something I would like to avoid at all costs.

I currently have for Video Cards (1) NVidia Geforce 2MX 400 32MB and (1) NVidia Vanta LT 16MB.

My Monitors are (1) Dell 19" D1226H and (1) Sun 17" Monitor (I couldn't easily locate the model number).

My config file picked up all of these so I didn't have to do anything to it. And the config file said both monitors and cards were capable of 1280x1024 at True color.

So what did I do wrong, and can I repair it?

Thanks,
CMF
 
Old 10-13-2003, 12:13 AM   #4
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 47
To kill X, press CTRL-ALT-F1. This will get you to a text login. Login, become root and do
init 3
this should get you out of the loop of X crashes.

Try changing the config. Maybe lower resolution and/or fewer colors. You also might have to get drivers for your graphics card but I don't know. Search in the forum on nvidia cards and if that doesn't get you further, start a new thread.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
making a script that opens terminal and enter commands into that terminal Cinematography Linux - General 8 12-16-2008 11:34 AM
Console (terminal) Commands ? sonsuzuncu Linux - Newbie 3 10-27-2005 07:31 PM
certain commands aren't working on the terminal bariswheel Mandriva 4 12-22-2004 05:35 PM
Terminal commands Ermen Linux - Newbie 1 11-23-2004 11:13 AM
Terminal commands newtothegame Linux - Newbie 2 09-16-2003 05:52 PM


All times are GMT -5. The time now is 07:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration