LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-22-2006, 12:50 AM   #1
EmmaTheViking
LQ Newbie
 
Registered: May 2006
Posts: 8

Rep: Reputation: 0
Logging in Error in Fedora 5, /etc/bashrc command not found


Hi,

I got this wierd error when I tried to log into to Fedora 5.

My error message was:

"Your session only lasted less than 10 seconds. If you have not logged out yourself, this could mean that there is some installation problem or that you may be out of diskspace. Try logging in with one of the failsafe sessions to see if you can fix this problem."

The details in ~/.xsession-errors file says

"/etc/profile.d/colorls.sh: line 14: dircolors: command not found.
/etc/bashrc: line 8: id: command not found.
Failed to execute message bus daemon: No such file or directory EOF in dbus-launch reading address from bus daemon".

Does anyone have any suggestions what I could do about this error?

Thanks
 
Old 05-22-2006, 01:33 AM   #2
pronoy
Member
 
Registered: Mar 2005
Location: india
Distribution: FC4, Debian Etch
Posts: 67

Rep: Reputation: 15
check your PATH (echo $PATH).
Also try to execute the commands 'id' and 'dircolors' from your shell.
Guess some problem in installation !
 
Old 05-22-2006, 01:58 AM   #3
EmmaTheViking
LQ Newbie
 
Registered: May 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pronoy
check your PATH (echo $PATH).
Also try to execute the commands 'id' and 'dircolors' from your shell.
Guess some problem in installation !

I ran the commands dircolors and id in a shell and they worked fine.

When typing id it returned:
uid=500 gid = 500 groups=500 context=user_u:system_r:unconfined_t:SystemLow-SystemHigh

dircolors gave me all the color setups for ls.

Sorry, I have no clue about what I am looking for in the PATH variable

my existing PATH is set to

/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin

What should my path be set to?

I was running Fedora 5 fine, until it got really slow and froze and I had to restart it from the power button. That is when it gave me this error. Perhas I corrupted something when I didn't log off properly???

Also when I logged in in GNOME-safe mode after that, it prompted me to run the following command 'eval 'dbus_launch -auto-syntax'. Nothing seemed to happen when I did.

I checked how much space I had left, I had 45 Gbytes.

I also tried to find the ~/.xession-error file. Figured that I could delete it and restart. Where is that file located, tried searching for it...

Thanks
 
Old 05-22-2006, 02:30 AM   #4
pronoy
Member
 
Registered: Mar 2005
Location: india
Distribution: FC4, Debian Etch
Posts: 67

Rep: Reputation: 15
Sorry, I am unable to guess the problem.

Are you trying to login through xwindows ?

First try to log-in through console (ctrl + shift + f2).
And execute the scripts that are showing error.
$/etc/profile.d/colorls.sh
$ . /etc/bashrc

see if you can get the errors.
 
Old 05-22-2006, 11:07 PM   #5
EmmaTheViking
LQ Newbie
 
Registered: May 2006
Posts: 8

Original Poster
Rep: Reputation: 0
I logged in to console and executed the following line:

/etc/profile.d/colorls.sh

I got the following error:

/etc/profile.d/colorls.sh: line 14: dircolors: command not found
/etc/profile.d/colorls.sh: line 15: return : can only 'return' from a function or sourced script.

The ./etc/bashrc, always gave me "permission denied" even though I was root??


Thanks for trying to help me out, I am so greatful.

I have been working on a project for months on my Linux Box and suddenly I can't even log into my machine, very frustrating.
 
Old 05-23-2006, 12:09 AM   #6
pronoy
Member
 
Registered: Mar 2005
Location: india
Distribution: FC4, Debian Etch
Posts: 67

Rep: Reputation: 15
ok, second command was . /etc/bashrc (or $source /etc/bashrc), not ./etc/bashrc .
Thats why you got permission denied

I feel somehow gnome got screwed (assuming you are using gnome).

Two thinks you can try.
1. Add another user, and login as that user, and check it is working fine.

2. For your troublesome user, move the .ICEauthority and .gnome related files somewhere, like
#mv .ICEauthority /tmp/.ICEauthority
#mv .gnome* /tmp/
Reboot and try to login.
Share your experience
 
Old 05-23-2006, 10:20 PM   #7
EmmaTheViking
LQ Newbie
 
Registered: May 2006
Posts: 8

Original Poster
Rep: Reputation: 0
I have now come to another problem =) Sigh.

I am running GNU Grub version 0.75 and have a dual partition set up.
When I try and select my Fedora Core (2.6.15-1.2054_FC5smp) installation, it takes me to a console, I can't even choose to go into Failsafe GNOME anymore. Since I have no idea what I am doing =), when I get to the console, I don't know how start XWindows.

I do however have a choice of pressing e to edit commands before booting, a to modify kernel arguments before booting or c for command-line in the menu options.

I did some changes when I was in GNOME failsafe last time. I changed the run level to 3 instead of 5 in etc/inittrd, read somewhere that that could have been the problem. I also added a line to execute dbus-launch in /etc/profile so I could automatically execute dbus-launch, read somewhere that that could have been the problem.

How do I start XWindows and what commands actually work when running from a console? Mv,ls don't work along with several others...

I ran the commands from the console and the . /etc/bashrc executes fine, no errors.


I keep digging my self into a hole I think =)
 
Old 05-23-2006, 11:39 PM   #8
pronoy
Member
 
Registered: Mar 2005
Location: india
Distribution: FC4, Debian Etch
Posts: 67

Rep: Reputation: 15
Quote:
Originally Posted by EmmaTheViking
I have now come to another problem =) Sigh.

I am running GNU Grub version 0.75 and have a dual partition set up.
When I try and select my Fedora Core (2.6.15-1.2054_FC5smp) installation, it takes me to a console, I can't even choose to go into Failsafe GNOME anymore. Since I have no idea what I am doing =), when I get to the console, I don't know how start XWindows.
>> In console mode, are you able to login or not ?

Quote:
I did some changes when I was in GNOME failsafe last time. I changed the run level to 3 instead of 5 in etc/inittrd, read somewhere that that could have been the problem. I also added a line to execute dbus-launch in /etc/profile so I could automatically execute dbus-launch, read somewhere that that could have been the problem.
>> Changing to level 3 in /etc/inittab turned it to console mode.


Quote:
How do I start XWindows and what commands actually work when running from a console? Mv,ls don't work along with several others...
>> You can run xwindows whith 'startx'(/usr/X11R6/bin/startx) command.
But all the commands should work from console, if you havn't messed up the system

Quote:
>> I ran the commands from the console and the . /etc/bashrc executes fine, no errors.
>> Had you tried removing .gnome* stuffs ?

Quote:
I keep digging my self into a hole I think =)
>> Thats way you can learn better
 
Old 05-24-2006, 12:14 AM   #9
EmmaTheViking
LQ Newbie
 
Registered: May 2006
Posts: 8

Original Poster
Rep: Reputation: 0
No worries, I got my XWindows back and am trying to sort my old problems in Failsafe GNOME.


Adding a user didn't change anything, I still got the errors as shown below:

/etc/gdm/PreSession/Default: Registering your session with wtmp and utmp.
/etc/gdm/PreSession/Default: running: /usr/bin/sessreg -a -w /var/log/wtmp -u /var/run/utmp -x "/var/gdm/:0.Xservers" -h "" -l ":0" "viking"
D-BUS per-session daemon address is: unix:abstract=/tmp/dbus-sn1nVpYQWW,guid=5aea7344f1f1b1eaf7dfc2a532bc200
/etc/profile.d/colorls/sh: line14: dircolors: command not found
/etc/bashrc: line 8: id: command not found
/etc/bashrc: line 8: id: comamnd not found
Failed to execute message bus daemon: No such file or directory
EOF in dbus-launch reading address from bus daemon

Unfortunately I get these errors when I log in as root and as another user. Moving the ICEauthority files did not change anything.

Thanks
 
Old 05-24-2006, 07:42 PM   #10
EmmaTheViking
LQ Newbie
 
Registered: May 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Error Logging in unknown id and colorls commands

I just solved my problem.....


It was to do with me setting my PATH variable in /etc/profile and not bothering to restore it to some of the most popular places for executables

export PATH=/bin:/sbin:/usr/bin:/usr/local/bin:

Thanks pronoy you are a champion.
 
Old 05-24-2006, 11:59 PM   #11
pronoy
Member
 
Registered: Mar 2005
Location: india
Distribution: FC4, Debian Etch
Posts: 67

Rep: Reputation: 15
nice that you solved the problem yourself
 
  


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
command not found error Deelk Slackware 12 04-23-2006 02:12 PM
command not found error lordshipmayhem Linux - Newbie 4 06-28-2005 09:15 PM
bashrc:command not found ukyo Linux - General 1 03-08-2005 09:54 AM
Fedora Core 3 Error While Logging In habacalva Fedora 1 01-30-2005 07:15 PM
c++ command not found error... ? Cheka Linux - Newbie 2 01-29-2005 03:43 PM


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

Main Menu
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