Logging in Error in Fedora 5, /etc/bashrc command not found
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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...
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.
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
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 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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.