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 )
export PS1="\[${yellow}\]\u@\[$bold\]\h\[$reset\]:\w \$ " #Set variables for foreground colors
fgRed=$(tput setaf ) ; fgGreen=$(tput setaf ) ; fgBlue=$(tput setaf )
fgMagenta=$(tput setaf ) ; fgYellow=$(tput setaf ) ; fgCyan=$(tput setaf )
fgWhite=$(tput setaf ) ; fgBlack=$(tput setaf )
#Set variables for background colors
bgRed=$(tput setab ) ; bgGreen=$(tput setab ) ; bgBlue=$(tput setab )
bgMagenta=$(tput setab ) ; bgYellow=$(tput setab ) ; bgCyan=$(tput setab )
bgWhite=$(tput setab ) ; bgBlack=$(tput setab )
#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的更多相关文章

  1. RAC的QA

    RAC: Frequently Asked Questions [ID 220970.1]   修改时间 13-JAN-2011     类型 FAQ     状态 PUBLISHED   Appli ...

  2. How to setup vsftpd FTP file Server on Redhat 7 Linux

    Forward from: https://linuxconfig.org/how-to-setup-vsftpd-ftp-file-server-on-redhat-7-linux How to s ...

  3. 在RedHat 和 Ubuntu 中配置 Delphi 的Linux开发环境(转)

    原文地址:http://chapmanworld.com/2016/12/29/configure-delphi-and-redhat-or-ubuntu-for-linux-development/ ...

  4. Redhat下安装SAP的相关

    Red Hat Enterprise Linux 6.x: Installation and Upgrade - SAP Note 1496410 Red Hat Enterprise Linux 7 ...

  5. .NET Core & ASP.NET Core 1.0在Redhat峰会上正式发布

    众所周知,Red Hat和微软正在努力使.NET Core成为Red Hat企业版Linux (RHEL)系统上的一流开发平台选项.这个团队已经一起工作好几个月了,RHEL对.NET有许多需求.今天在 ...

  6. 在Redhat上为.Net 项目构建基于Jenkins + Github + Mono 的持续集成环境

    在Redhat enterprise 6.5 的服务器上,为在gutub 上的 .net 项目构建一个持续集成环境,用到了Jenkins和mono.因公司的服务器在内网,访问外网时要通过代理,所以在很 ...

  7. RedHat 和 Mirantis OpenStack 产品的版本和功能汇总和对比(持续更新)

    Mirantis 和 Red Hat 作为 OpenStack 商业化产品领域的两大领军企业,在行业内有重要的地位.因此,研究其产品版本发布周期和所支持的功能,对制定 OpenStack 产品的版本和 ...

  8. CentOS / Redhat : Configure CentOS as a Software Router with two interfaces

    CentOS / Redhat : Configure CentOS as a Software Router with two interfaces   Linux can be easily co ...

  9. redhat 配置本地yum源163yum源epel 源,无需卸载yum!无须拷贝ISO,愿网上少一点垃圾教程误人子弟

    都知道redhat不收费,但是其yum服务是要收费的,不想出钱那就自己配置yum源就好了. 首先,博主之前也没用过redhat,第一次用yum装包的时候提示什么没注册之类的,balaba一大堆,然后就 ...

随机推荐

  1. HTML5 拖动

    触发的事件有:dragstart事件.drag事件和dragend事件. 按下鼠标键并开始移动鼠标的时候,会在被拖拽的元素上触发dragstart事件.这时候光标变成”不能放”符号(圆环中有一条反斜线 ...

  2. 爱上iOS单元测试系列之爱上她就要先了解她:单元测试入门

    前言 对于单元测试一开始我是拒绝的.单元测试是一个什么东东,因为我喜欢做iOS开发是因为喜欢写APP的啊,一切和这一目标不相干的东西我没兴趣啊,所以从事iOS开发几年都没去深入学习过单元测试(主要是之 ...

  3. shell 随机从数组中抽取三个随机数(#可持续不停抽取)

    #!/bin/bash #b= ]] #do #sleep 1 student=( DPL YPD LT ZZM HY CQW LSJ ybr) a=$[RANDOM%+] c=$[RANDOM%+] ...

  4. css测试题

    1.CSS 指的是? 您的回答:Computer Style Sheets 正确答案:Cascading Style Sheets 2.在以下的 HTML 中,哪个是正确引用外部样式表的方法? 您的回 ...

  5. 自定义iOS7导航栏背景,标题和返回按钮文字颜色

    在iOS7下,默认导航栏背景,颜色是这样的,接下来我们就进行自定义,如果你仅仅是更改一下背景和颜色,代码会很简单,不需要很复杂的自定义View来替代leftBarItem 更改导航栏的背景和文字Col ...

  6. MATLAB中白噪声的产生

    rand产生的是[0,1]上的均匀分布的随机序列randn产生均值为0,方差为1的高斯随机序列,也就是白噪声序列 rand产生的是均匀分布白噪声序列randn产生的是正态分布的白噪声序列 MATLAB ...

  7. C++笔试题

    平时学术必须用Python多啊,但校招笔试绕不开语言基础,非cs科班小弱临阵整理些C++题备考.很弱很苦逼... 一.指针 1.二维数组指针 #include<stdio.h> int m ...

  8. Block对象

    背景:回调机制中回调设置代码和回调方法的具体实现无法写在同一段代码中.Mac OS X 10.6和iOS4种引入了Block对象.Block对象看上去是一段代码,但是可以当作数据来传递. 定义Bloc ...

  9. web页面放到手机页面,缩放问题

    有时候写页面样式不规范,很多页面元素写死尺寸时,web页面尺寸比较大放到移动端访问时,就背缩放了,div或者按钮变得好小 可以加段js,效果会好点 <script> ! function( ...

  10. Xcode7 Cocoapods 安装或更新出现错误

    好长时间没有玩过CocoaPods了,今天在执行 pod install --verbose --no-repo-update 的时候出现了错误如下 [MT] DVTAssertions: ASSER ...