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.
For some ungodly reason I've been tasked with building a OpenNMS server on OpenSUSE 10.3 even though I've never touched Linux.... I'm following the directions from
.howtoforge.com/opennms_network_management, but am stuck on...
Setup Environment variable for java home. Insert the following entries in /etc/profile.
JAVA_HOME="/usr/lib/java"
export JAVA_HOME
How do I enter in the above statements into /etc/profile?
If I'm reading your question right then what you need is a text editor. If you're in the console then use either nano, vii or emacs. I myself perfer nano for just editting text and use emacs when I'm coding/testing.
Anyways once you're in the etc directory just type "nano profile" and take it from there.
Apologies if I misunderstood what you asked.
It really doesn't matter. These two lines are actually bash commands that get executed when the machine starts. However since you are using SuSE 10.2, edit /etc/profile.local instead. If the file doesn't exist, then create a new one with just those two lines.
The /etc/profile script will run the /etc/profile.local script.
using the vi method to save the file you would need to do hit 'esc' after you type and then a :wq If you are in vi and want to exit without saving any changes, do a :q! .. also i would recommend making a test document and playing around with various commands if you plan on doing a lot of changes to text files using vi.. there are tons of guides, just google vi commands it should give a good guide.. best thing to do would be make a new document somewhere.. just type vi test.txt and play around in there so you don't mess anything up..
not really sure about exiting using nano -- i primary stick to vi as its easy to navigate once you get some commands committed to memory.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.