Changes

Jump to navigation Jump to search
183 bytes added ,  06:43, 22 February 2014
no edit summary
Line 57: Line 57:       −
== 6. Managing your own program hierarchy
+
== 6. Managing your own program hierarchy (the LFS way) ==
If you want your own set of programs, a few commands in your .profile will help:
+
LFS stands for "Linux From Scratch". If you want your own set of programs, a few commands in your .profile will help:
    
   # set LD_LIBRARY_PATH if not set
 
   # set LD_LIBRARY_PATH if not set
Line 67: Line 67:  
         (echo $PATH | grep -q $HOME/usr/bin) || export PATH="$HOME/bin:$HOME/usr/bin:$HOME/usr/local/bin:$PATH"
 
         (echo $PATH | grep -q $HOME/usr/bin) || export PATH="$HOME/bin:$HOME/usr/bin:$HOME/usr/local/bin:$PATH"
 
   fi
 
   fi
   
   # export MANPATH="$MANPATH:/usr/local/teTeX/man"
 
   # export MANPATH="$MANPATH:/usr/local/teTeX/man"
 
   # set MANPATH so it includes user's private bin if it exists
 
   # set MANPATH so it includes user's private bin if it exists
Line 73: Line 72:  
     (echo $MANPATH | grep -q $HOME/usr/share/man) || export MANPATH="$HOME/usr/local/share/man:$HOME/usr/share/man:`manpath -q`"
 
     (echo $MANPATH | grep -q $HOME/usr/share/man) || export MANPATH="$HOME/usr/local/share/man:$HOME/usr/share/man:`manpath -q`"
 
   fi
 
   fi
   
   if [ -d "$HOME/usr/share/info" ]; then
 
   if [ -d "$HOME/usr/share/info" ]; then
 
     export INFOPATH="$INFOPATH:$HOME/usr/share/info"
 
     export INFOPATH="$INFOPATH:$HOME/usr/share/info"
 
   fi
 
   fi
   
   if [ -d "$HOME/usr/lib/python" ]; then
 
   if [ -d "$HOME/usr/lib/python" ]; then
 
     (echo $PYTHONPATH | grep -q $HOME/usr/lib/python) || export PYTHONPATH="$HOME/usr/local/lib/python:$HOME/usr/lib/python"
 
     (echo $PYTHONPATH | grep -q $HOME/usr/lib/python) || export PYTHONPATH="$HOME/usr/local/lib/python:$HOME/usr/lib/python"
 
   fi
 
   fi
   
   if [ -d "$HOME/usr/lib/pkgconfig" ]; then
 
   if [ -d "$HOME/usr/lib/pkgconfig" ]; then
 
     (echo $PKG_CONFIG_PATH | grep -q $HOME/usr/lib/pkgconfig) || export PKG_CONFIG_PATH="$HOME/usr/lib/pkgconfig"
 
     (echo $PKG_CONFIG_PATH | grep -q $HOME/usr/lib/pkgconfig) || export PKG_CONFIG_PATH="$HOME/usr/lib/pkgconfig"
 
   fi
 
   fi
   −
 
+
This way, most ordinary commands like "man octave", "info octave", or launching octave itself, will first explore your own hierachy.
     
75

edits

Navigation menu