Skip to content

Instantly share code, notes, and snippets.

@jgumbley
Created January 12, 2011 23:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgumbley/777119 to your computer and use it in GitHub Desktop.
Save jgumbley/777119 to your computer and use it in GitHub Desktop.
setup admin console on headless CENTOS 5.* server
# wget -O setup_console.sh https://gist.github.com/raw/777119/setup_console.sh
# chmod +x setup_console.sh
# ./setup_console.sh
#!/bin/sh
echo "******************************************"
echo "Setup console on headless CENTOS server"
echo "basically vim and zsh setup "
echo " - jgumbley 12/jan/11"
echo "******************************************"
echo " - install vim "
yum -y install vim-common
echo " - install vim libraries "
cd
wget -O .vimrc https://gist.github.com/raw/777095/.vimrc_console
wget -O /usr/share/vim/vim70/colors/impact.vim "http://www.vim.org/scripts/download_script.php?src_id=4597"
wget -O NERD_tree.zip "http://www.vim.org/scripts/download_script.php?src_id=11834"
unzip -f NERD_tree.zip -d /usr/share/vim/vim70/
echo " - install zsh "
yum -y install zsh
chsh -s /bin/zsh
wget -O .zshrc https://gist.github.com/raw/777137/.zshrc_console
echo " - start zsh "
# should be last thing
zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment