Something you need to perform after RedHat 6.x installed

Something you need to perform after RedHat 6.x installed

YUM Repos

% yum update

% rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
% rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

Development Tools

% yum groupinstall 'Development Tools'
% yum install python-devel

% curl -O http://peak.telecommunity.com/dist/ez_setup.py; 
% python ez_setup.py
% easy_install pip

Byobu (Screen)

% yum –enablerepo=epel-testing install byobu

openjdk

for java

% yum install java-1.6.0-openjdk

for javac

% yum install java-1.6.0-openjdk-devel

maven

go to Maven Site to download the latest tar ball:

% curl -O http://ftp.mirror.tw/pub/apache/maven/maven-3/3.0.4/binaries/apache-maven-3.0.4-bin.tar.gz
% cd /usr/local; tar zxf /path/to/apache-maven-3.0.4-bin.tar.gz
% ln -s apache-maven-3.0.4 maven

add following to /etc/bashrc

export M3_HOME=/usr/local/maven
export PATH=${M3_HOME}/bin:${PATH}

sbt , for Scala

% rpm -Uvh http://rpm.typesafe.com/typesafe-repo-2.0.0-1.noarch.rpm

Optional:

if no color in usr@host $

append below code to ~/.bashrc

# User specific aliases and functions
bold=$(tput bold) # This could also be a color.
reset=$(tput sgr0)
yellow=$(tput setaf 3)
export PS1="[${yellow}]u@[$bold]h[$reset]:w $ "


#Set variables for foreground colors
fgRed=$(tput setaf 1)     ; fgGreen=$(tput setaf 2)  ; fgBlue=$(tput setaf 4)
fgMagenta=$(tput setaf 5) ; fgYellow=$(tput setaf 3) ; fgCyan=$(tput setaf 6)
fgWhite=$(tput setaf 7)   ; fgBlack=$(tput setaf 0)
#Set variables for background colors
bgRed=$(tput setab 1)     ; bgGreen=$(tput setab 2)  ; bgBlue=$(tput setab 4)
bgMagenta=$(tput setab 5) ; bgYellow=$(tput setab 3) ; bgCyan=$(tput setab 6)
bgWhite=$(tput setab 7)   ; bgBlack=$(tput setab 0)
#Set variables for font weight and text decoration
B=$(tput bold) ; U=$(tput smul) ; C=$(tput sgr0)
#NOTE: ${C} clears the current formatting
    
if [[ $USER = "root" ]]; then
  PS1="${B}${fgRed}u[${C}]@h(s): ${fgRed}w[${C}] > "
else
  PS1="[${B}][${fgMagenta}]u[${C}]@h(s): [${fgBlue}]w[${C}] > "
fi  
    


cal
原文地址:https://www.cnblogs.com/scottgu/p/4606353.html