'aix bash shell'에 해당되는 글 1건

  1. 2010.06.10 AIX 서버에 bash shell 을 설치하자!

vicki.tistory.com/131

AIX 서버에 bash shell 을 설치하자!



1. 새로들여온 회사의 ASP 서버... 대학때 부터 bash shell 에 익숙한지라 c-shell 은 손에 맞지 않아
  bash shell 을 설치합니다.

2. http://www-03.ibm.com/systems/p/os/aix/linux/toolbox/download.html 이 곳에서 bash 를 다운
  받습니다. (rpm 으로.. source 는 설치가 안되요.. gcc 도 깔아야 하고.. 귀찮은게 많음)
 
    bash 3.0 License RPM Source The GNU Bourne Again shell (bash).


3. 서버에 접속해서 알맞은 위치에 놓고 다음과 같이 실행시킵니다.
# rpm - ivh bash-3.0-1.aix5.1.ppc.rpm
bash ################


4. 설치가 완료되었으나 모양이 별로... 
  설정을 고쳐봅니다.
# cd ~
# vi .bashrc

.bashrc 파일

PS1='${debian_chroot:+($debian_chroot)}[\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\] ]\$ '
#PS1="[\u@\h \w] \\$"

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'
    ;;
*)
    ;;
esac

# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.

#if [ -f ~/.bash_aliases ]; then
#    . ~/.bash_aliases
#fi

# enable color support of ls and also add handy aliases
#if [ "$TERM" != "dumb" ]; then
    #eval "`dircolors -b`"
    #alias ls='ls --color=auto'
    #alias dir='ls --color=auto --format=vertical'
    #alias vdir='ls --color=auto --format=long'
#fi

# some more ls aliases
#alias ll='ls -l'
#alias la='ls -A'
#alias l='ls -CF'

alias la='ls -la'
alias ll='ls -ll'
alias lk='ls -alk'
alias tarz='tar vxzf'
alias tarj='tar vxjf'


# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
fi
PATH=$PATH:/usr/lib/oss/bin # ADDED_BY_OSS
SDL_DSP_NOSELECT=1 # ADDED_BY_OSS
export PATH SDL_DSP_NOSELECT # ADDED_BY_OSS

export PATH=$PATH:/usr/sbin


위와 같은 작업을 거치면 bash 는 설치 완료~~

Posted by [czar]
,