Something you need to perform after RedHat 6

系统 1748 0
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
      
    

 

Something you need to perform after RedHat 6.x installed


更多文章、技术交流、商务合作、联系博主

微信扫码或搜索:z360901061

微信扫一扫加我为好友

QQ号联系: 360901061

您的支持是博主写作最大的动力,如果您喜欢我的文章,感觉我的文章对您有帮助,请用微信扫描下面二维码支持博主2元、5元、10元、20元等您想捐的金额吧,狠狠点击下面给点支持吧,站长非常感激您!手机微信长按不能支付解决办法:请将微信支付二维码保存到相册,切换到微信,然后点击微信右上角扫一扫功能,选择支付二维码完成支付。

【本文对您有帮助就好】

您的支持是博主写作最大的动力,如果您喜欢我的文章,感觉我的文章对您有帮助,请用微信扫描上面二维码支持博主2元、5元、10元、自定义金额等您想捐的金额吧,站长会非常 感谢您的哦!!!

发表我的评论
最新评论 总共0条评论