LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This 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


Reply
  Search this Thread
Old 04-30-2002, 09:55 PM   #1
shassouneh
Member
 
Registered: Apr 2001
Location: Cheney, WA
Distribution: SuSE Linux Professional 9.2
Posts: 556

Rep: Reputation: 30
Cracking the "wall" of SuSE. Need help please...


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).
 
Old 05-01-2002, 12:44 AM   #2
SlCKB0Y
Member
 
Registered: Oct 2001
Location: Sydney
Distribution: Arch
Posts: 295

Rep: Reputation: 96
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

HTH
 
Old 05-01-2002, 01:02 AM   #3
zmedico
Member
 
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707

Rep: Reputation: 30
Quote:
Originally posted by SlCKB0Y
wasting both your time and mine with your previous post
 
Old 05-01-2002, 12:32 PM   #4
shassouneh
Member
 
Registered: Apr 2001
Location: Cheney, WA
Distribution: SuSE Linux Professional 9.2
Posts: 556

Original Poster
Rep: Reputation: 30
READ

Quote:
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?
 
Old 05-01-2002, 02:35 PM   #5
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
it's either .profile or .bashrc.
 
Old 05-01-2002, 03:10 PM   #6
shassouneh
Member
 
Registered: Apr 2001
Location: Cheney, WA
Distribution: SuSE Linux Professional 9.2
Posts: 556

Original Poster
Rep: Reputation: 30
Thanx, but still can't find what i'm looking for!

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
 
Old 05-01-2002, 03:46 PM   #7
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Rep: Reputation: 32
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.

Plz correct me if I'm wrong.
 
Old 05-01-2002, 04:01 PM   #8
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
well in your homedir there is a .profile and a .bashrc.

Err well at least it's there in SuSE 7.2
 
Old 05-01-2002, 05:24 PM   #9
shassouneh
Member
 
Registered: Apr 2001
Location: Cheney, WA
Distribution: SuSE Linux Professional 9.2
Posts: 556

Original Poster
Rep: Reputation: 30
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?
 
Old 05-01-2002, 06:26 PM   #10
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
there's /etc/rc.config

remember to run /sbin/SuSEconfig if you change anything
 
Old 05-01-2002, 08:01 PM   #11
shassouneh
Member
 
Registered: Apr 2001
Location: Cheney, WA
Distribution: SuSE Linux Professional 9.2
Posts: 556

Original Poster
Rep: Reputation: 30
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
 
Old 05-05-2002, 02:21 AM   #12
danrees
Member
 
Registered: Jul 2001
Posts: 114

Rep: Reputation: 15
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.

Last edited by danrees; 05-05-2002 at 02:23 AM.
 
Old 05-05-2002, 02:35 AM   #13
shassouneh
Member
 
Registered: Apr 2001
Location: Cheney, WA
Distribution: SuSE Linux Professional 9.2
Posts: 556

Original Poster
Rep: Reputation: 30
thanx

Cool! Thanx.I'm about to try what you have just saud. Thanx again
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 11:26 AM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 03:07 PM
newbie "brick wall"'s mounting, install, XF86Config iemerick Linux - Software 1 04-23-2004 03:11 AM
suse ati driver "Xlib: extension "XiG-SUNDRY-NONSTANDARD" missing" madcow007 Linux - Hardware 0 03-06-2004 02:53 PM
99 "99"s on the wall... alloydog Slackware 13 05-30-2003 01:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 02:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration