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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I have done much research about why I got stuck in TWM after a failed JAVA install attempt and I now know the problem after hours of searching...It is totally different than I originally thought in my post "Urgent help need" so I am posting in a seperate topic so as not to confuse users who may need this forum at later times.
Note: I use Fedora Red-Hat 7
The problem was a mistyping of
/etc/profile.d/java.sh during the install process.
Alright, I'm logged in with the "Live CD" and I am logged in under root, although it shows up "fedora" because it's a live CD...when I do the 'Gedit command" it shows that the file is empty, but I think that's probably only because it's the CD. So if I change it there, will it change it for root and my user name as well????
There is only one /etc/profile for both root and users - that's the point of /etc/profile, it's the system-wide configuration file. Yes, any edits should take effect when you reboot your Fedora. Just make sure that you are actually editing the Fedora /etc/profile and not that of the livecd. That wouldn't break anything but it would be less than effective as you wouldn't have modified anything in the end, not as far as your installed system is installed at least (and not for the livecd as modifications are not persistent anyway).
Another hint: if you would like to avoid the sort of trouble you are going through, consider from now on changing your path not in the system-wide /etc/profile but in the user's profile (hidden file(s) in your home directory). If you have a little accident, you can still log in as root to repair the user's environment. Obviously, the enhanced path would then only apply to that one user but if that's all that is needed, it is by far the safest choice.
Ah, so apparently the drive gets automounted so you can simply skip that one. Now it's simply a matter of finding out exactly where it is mounted. Have a look in the /mnt and /media directories to find out. If you find "sda2" or "fedora" under mnt, you'd continue with
gedit /mnt/fedora(or sda2)/etc/profile.d/java.sh
I've tried both places, and there is nothing there. There is the 'fedora' folder under 'MNT', but it has nothing in it. It was the empty one I created earlier in the command. There is nothing under media - it is completely empty. I have looked in other possible places and have not found it. I also used the 'search' function to search the entire file system for the names of files I know I have on my computer - for instance the name of a specific document I was working on. They did not turn up in the search of the file system.
I still get the same output above when I do fdisk -l and the same error when I try to mount it.: already mounted or busy. There is no reason for it to be busy. I have tried restarting the computer. My friend and I were considering connected my hard drive via USB to another computer and accessing the file there but we do not have the neccessary cables.
Any ideas? I just need to change these two letters to restore the file path and get back to fedora. And a quick reminder for those just coming in - most normal commands are NOT responding in TWM. I am now booted into 'root' on the 'Fedora 7 Live' cd.
I would say, try providing the path to the command line yourself. The easiest thing would be simply to delete the java.sh file altogether. You'd just have to recreate it afterwards - although, as I said, you would be well-advised to use .bash_profile in your home directory rather than system-wide files. Here's the recipe:
Thank you, Jay73! That worked! The second I saw my neices picture on my background when I logged into GNome as MY NAME I was like "YESSSSSSSSS!" Thank you so, so much for all of your help! I can not tell you how much I appreciate this! I work in the media department (website design) for a non-profit organization and I will now be able to get my work done tomorrow!
Also special thanks to XWeb for your wonderful advice! It is definantly well-noted!