Linux - DistributionsThis forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...
Note: An (*) indicates there is no official participation from that distribution here at LQ.
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.
Dear All,
I'm just wondering, Where are the configuration files for SuSE? for example In RedHat, you can edit .bash_profile for such system settings, but in SuSE you MUST go through YAST1 or YAST2. Is there a way to manually get access to configuration files? The graphical stuff is great, But I want to be able (for instance) to set my path without having to run YAST1 or YAST2. Can anyone help me?
NOTE: I'm running SuSE Linux Professional 7.3 kernel 2.4.10SMP (I have two processors).
Maybe you should actually try editing the file .bash_profile before posting here asking whether or not it works. If you had of tried it you would know that it does in fact work just as it does on just about every linux system on the planet and you would not be wasting both your time and mine with your previous post
Maybe you should actually try editing the file .bash_profile before posting here asking whether or not it works.
Perhaps before being so sharp toned you should READ the post I made fully? READ it for god's sake! I quote myself:
Quote:
r example In RedHat, you can edit .bash_profile for such system settings, but in SuSE you MUST go through YAST1 or YAST2. Is there a way to manually get access to configuration files
I have looked all around in SuSE for such a file as .bash_profile and I couldn't find it. I even tried "find files" to look for it to no avail. Had I found the file to begin with don't you think I would have edited it?
Thanx rshaw. I have just looked through .profile and .bashrc and NONE of them make any reference to the System PATH variable. Do you know how I can find which file is reponsible for storing this variable? Again, .bash_profile doesn't seem to exist in my home directory.
Thanx for your help
just create your own .bash_profile in your home directory, it should get read when you login. Most distro's when you log in first look to see if /home/<username>/.bash_profile exsists if it does then it will use that, if it doesnt then it uses the default .profile I beleve in /etc.
In Suse 7.3 there IS a .bashrc and .profile located as such:
/home(username)/.bachrc
/home(usernmae)/.profile
NOTE that even though these files exist, they do NOT contain the configuration details I'm trying to get at, such as the system path. Can someone help me?
Thanx rshaw. I looked through this file and found this section. I'm enclosing it in a quote to make it more readable
Quote:
#
# Attention! This variable PATH is NOT setting the PATH for user or root
# shells. It is only used internally for /etc/init.d/*, SuSEconfig and
# cron.daily. Please do NOT change PATH here.
#
PATH="/sbin:/bin:/usr/sbin:/usr/bin"
As this section describes, I should NOT edit this path If change the path for the user and root shells. My question is, How can I change the path such that it applies to user shells? For example, what if i wish to change the Java path? etc...
Your help and appreciation are much appreciated.
Thanx again for all your help rshaw. If you know the answer to my question above, please let me (and the people on this forum) know about it. Thanx
SuSE (at least in my 7.2) "sources" your .bashrc in .profile so whatever you put in .bashrc will be used for console logins too. You should therefore put any PATH or other environment variables in ~/.bashrc.
E.g. if you wanted to add /home/user/bin to your path, just put the following in your .bashrc:
export PATH=/home/user/bin:$PATH
$PATH will read the system PATH variable and tag it on the end, so any executable files in /home/user/bin will be run before those in the system path.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.