RE: suse 7.1 How can local configuration options such as alias blah 'blahblah' be done, and WHERE? Also, where are my boot commands for ipx_configure and ncpmount supposed to be placed. I have scoured the documentation and all the .rc files I can find for where these commands can be implemented. Here is what the rc.config file has to say ---------------------------------------- # # /etc/rc.config # # Copyright (c) 1996,98 SuSE GmbH Nuernberg, Germany. All rights reserved. # # Author: Werner Fink <werner@suse.de>, 1996 # Burchard Steinbild <bs@suse.de>, 1996 # # Configuration database for shell scripts in /etc/init.d, /sbin/SuSEconfig # and /etc/cron.daily/aaa_base # # Please edit this file and execute /sbin/SuSEconfig to configure everything. # Also don't forget to edit the following files: # - /etc/lilo.conf # - /etc/fstab # - /etc/profile # - /etc/hosts # ----------------------------------------- And the /etc/profile then says this, which directly contradicts the above: (BTW, I did try adding a profile.local which had no effect on my configuration whatsoever. ---------------------------------------------------------------------------- # /etc/profile # PLEASE DON'T CHANGE /etc/profile. Chances are that your changes will # be lost during the next upgrade. # Use /etc/profile.local for your favourite global aliases, your VISUAL and # EDITOR variables, etc ... ------------------------------ This is starting to seem more like windows all over again. Where is the ability to modify the configuration which used to be a linux strong point. Are the .cshrc, .login, and .alias files ever used anymore. thanks, Otto Porter
On Fri, 30 Mar 2001, otto porter wrote: op> op> op> RE: suse 7.1 op> op> How can local configuration options such as op> op> alias blah 'blahblah' op> op> be done, and WHERE? op> there are numerous places, most commonly /etc/profile, ~/.profile and ~/.alias (which is called through .profile or .bashrc), plus some others. You'll also find numerous examples within the /etc/profile file which will show you how they should be written. op> Also, where are my boot commands op> for ipx_configure and ncpmount op> supposed to be placed. op> usually /etc/rc.d which is linked to /usr/sbin op> op> This is starting to seem more like windows op> all over again. Where is the ability to modify op> the configuration which used to be a linux op> strong point. op> op> Are the .cshrc, .login, and .alias files ever op> used anymore. op> Yeah, there all still used, but they need to be called by the users .profile connect script like the following does <snip from ~/.profile> test -z "$PROFILEREAD" && . /etc/profile test -f $HOME/.bashrc && . $HOME/.bashrc <end snip> The above lines are at the top of the users .profile file. The first line checks to see if the /etc/profile file was read, if so then the $PROFILEREAD string length should be greater then 0, if it hasn't been read ($PROFILEREAD is empty) then it will read it. The second part checks to see if the user has a .bashrc file in their home directory, if so, it reads it. At the bottom of my .bashrc file, I have the following added <snip from ~/.bashrc> test -f $HOME/.alias && . $HOME/.alias <end snip> WHich calls my personal aliases that arn't included in the systems /etc/profile file. op> thanks, Otto Porter op> op> -- S.Toms - tomas@primenet.com - www.primenet.com/~tomas SuSE Linux v7.0+ - Kernel 2.2.18 "If the King's English was good enough for Jesus, it's good enough for me!" -- "Ma" Ferguson, Governor of Texas (circa 1920)
otto porter wrote:
How can local configuration options such as alias blah 'blahblah' be done, and WHERE?
I would put them in ~/.bashrc or ~/.cshrc depending upon your shell.
Also, where are my boot commands for ipx_configure and ncpmount supposed to be placed.
If these are supposed to be run at every bootup, then they should be placed in the boot.local file (probably in /etc/init.d or somewhere like that - I don't really know where on 7.1...). Alternatively, you can write specific bootup scripts for these programs using the skeleton ones available in the startup directories. It's all very well documented in the directories themselves.
I have scoured the documentation and all the .rc files I can find for where these commands can be implemented. ... Are the .cshrc, .login, and .alias files ever used anymore.
Yes, it just depends upon your shell. Hope that helps, Chris -- __ _ -o)/ / (_)__ __ ____ __ Chris Reeves /\\ /__/ / _ \/ // /\ \/ / ICQ# 22219005 _\_v __/_/_//_/\_,_/ /_/\_\
participants (3)
-
Chris Reeves
-
otto porter
-
S.Toms