[nst-cvs] yum/pkgs/nst-config-root/src/root .bashrc.cp,1.6,1.7
A network security analysis and monitoring toolkit Linux distribution.
Brought to you by:
pblankenbaker,
rwhalb
From: Paul B. <pbl...@us...> - 2009-08-31 15:15:21
|
Update of /cvsroot/nst/yum/pkgs/nst-config-root/src/root In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv30163/yum/pkgs/nst-config-root/src/root Modified Files: .bashrc.cp Log Message: Refactored method for root configuration files Index: .bashrc.cp =================================================================== RCS file: /cvsroot/nst/yum/pkgs/nst-config-root/src/root/.bashrc.cp,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** .bashrc.cp 25 Aug 2009 13:28:18 -0000 1.6 --- .bashrc.cp 31 Aug 2009 15:15:09 -0000 1.7 *************** *** 18,25 **** # ! # default nst bash prompt... ! # ------- --- ---- --------- ! export PS1='[\u@${HOSTNAME%%.*} \W]\$ '; ! # PostgreSQL PGDATA=/var/lib/pgsql/data; --- 18,23 ---- # ! # ***Do we still need this?*** ! # # PostgreSQL PGDATA=/var/lib/pgsql/data; *************** *** 28,142 **** # ! # functions definitions... ! # --------- -------------- ! # find all files of size or greater ! # and list them sorted by size... ! lsfindfilesize() { ! if [ $# -gt 1 ]; then ! ls --color=auto -alS $(/usr/bin/find ${1} -type f -size +${2}k); ! else ! echo "### ERROR ###: wrong input parameters specified..."; ! echo; ! echo "Usage: lsfindfilesize <Top level find directory> <File size in KBs>"; ! echo; ! fi ! } ! # load any custom nst configurations ! # [$1] - site name ! lnstcustom() { ! export NSTHOME="/mnt/nst/${1}"; ! /root/bin/setup_nst_custom "$1" "${2:-sda1}" "${3:-auto}"; ! if [ -f "$NSTHOME/setup.sh" ]; then ! . "$NSTHOME/setup.sh"; ! fi ! } ! ! # quick way to start x ! alias lx='init 5'; ! ! # if the html version of the README is ! # available use elinks otherwise view ! # the text version of the README file... ! nstusage() { ! elinks /usr/share/nstweb/README.html; ! } ! ! # ! # system aliases... ! # ------ ---------- ! alias vi='/usr/bin/vim'; ! export EDITOR="vim"; ! ! # ! # start a serial console... ! # ----- - ------ ---------- ! alias serialconsole='/sbin/initctl emit --no-wait fedora.serial-console-available ttyS0 57600'; ! ! # ! # nst post update... ! # --- ---- --------- ! alias nstpostupdate='/usr/bin/nstliveinst -m post-update'; ! ! # ! # user specific aliases... ! # ---- -------- ---------- ! alias rm='rm -i'; ! alias cp='cp -i'; ! alias mv='mv -i'; ! alias cls='clear'; ! alias ls='ls --color=auto'; ! alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'; ! ! # ! # nst alias shortcuts to get things going quickly... ! # --- ----- --------- -- --- ------ ----- ---------- ! alias laddswap='/root/bin/auto_add_swap'; ! alias lfreeramdisk='busybox freeramdisk'; ! alias lntpd='/etc/init.d/ntpd start'; ! alias lshutdn='/sbin/shutdown -h now'; ! alias lvnc='nstvncadmin --mode setup --verbose --display 6 --width 1000 --height 720 --depth 24'; ! alias cdnet='cd /etc/sysconfig/network-scripts'; ! alias mntsda1='/bin/mount /dev/sda1 /mnt/flash0'; ! ! # ! # minicom aliases... ! # ------- ---------- ! alias com4800='minicom -w -c on -o com4800'; ! alias com9600='minicom -w -c on -o com9600'; ! alias com19200='minicom -w -c on -o com19200'; ! alias com38400='minicom -w -c on -o com38400'; ! alias com57600='minicom -w -c on -o com57600'; ! alias com115200='minicom -w -c on -o com115200'; ! ! # ! # ssh-agent daemon setup... ! # --------- ------ -------- ! if [ -x "/usr/local/bin/nstsshagent" ]; then ! lsshagent() { ! . "$(/usr/local/bin/nstsshagent --config "${HOME}/.ssh/ssh-agent" \ ! --format script --add ${1:-true} --sh true --csh false)".sh ! } ! ! # Hmmm, should we always make sure ssh-agent is running, or make user ! # use lsshagent? ! if [ "0" == "1" ]; then ! lsshagent false; ! elif [ -f "${HOME}/.ssh/ssh-agent.sh" ]; then ! . "${HOME}/.ssh/ssh-agent.sh" &>/dev/null; ! fi ! else ! unset NSTSSHAGENT; ! fi ! ! # ! # Add user bin directory to path if present ! # --- ---- --- --------- -- ---- -- ------- ! if [ -d "${HOME}/bin" -a "${PATH//:${HOME}/bin}" == "${PATH}" ]; then ! export PATH="${PATH}:${HOME}/bin"; ! fi ! ! # ! # NST specific environment variables... ! # --- -------- ----------- ------------ ! export BASH_ENV="${HOME}/.bashrc"; ! export USERNAME="${USER}"; --- 26,29 ---- # ! # Add your custom settings below: ! # --- ---- ------ -------- ------ |