Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 3rd March 2008, 06:54 PM
majohnst Offline
Registered User
 
Join Date: Mar 2008
Posts: 2
Messed up /etc/profile, cannot start Gnome

I thought I was being smart and edited my /etc/profile file to add a few system variables. In the process, I screwed up the PATH variable. When I rebooted the computer, gnome won't start. If I drop into a command prompt, none of the basic commands work (ls, cat, vi). Pretty much because I messed up the PATH variable. I always get an error that the bash command was not found.

So how can I edit my /etc/profile to fix the problem?

I thought about using a LiveCD to mount my hard drive and then edit the file, but my hard drive would never mount. And as I mentioned earlier, getting to a command prompt doesn't help because I can't run any command to fix the /etc/profile file.
Reply With Quote
  #2  
Old 3rd March 2008, 09:28 PM
algej Offline
Registered User
 
Join Date: Jul 2005
Posts: 108
You may have to boot into single user mode, but after getting the command line prompt, either:

Code:
# /bin/vi /etc/profile
or

Code:
# export PATH=/usr/bin:/bin:/usr/sbin:/sbin
# vi /etc/profile
should work.
Reply With Quote
  #3  
Old 4th March 2008, 02:09 AM
majohnst Offline
Registered User
 
Join Date: Mar 2008
Posts: 2
Thanks, that works.
Reply With Quote
Reply

Tags
gnome, messed, or etc or profile, start

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Gnome profile - How/ caf4926 Using Fedora 3 10th August 2009 08:35 AM
noob help: messed something up: gnome-power-manager daemon does not start at login? IrishBouzouki Using Fedora 2 31st January 2009 04:05 PM
remove start-up application from profile punklinux Using Fedora 0 23rd July 2008 10:33 PM
Gnome logon didn't read .profile Thanh Nguyen Servers & Networking 0 22nd July 2005 12:06 AM


Current GMT-time: 15:35 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat