How to Install EPEL on RHEL7

More information for EPEL, please check follow:
https://fedoraproject.org/wiki/EPEL

Follow install step in my RHEL7:
1. Download EPEL RPM

[root@frank yum.repos.d]# wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm
--2014-10-01 00:27:11--  http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm
Resolving dl.fedoraproject.org (dl.fedoraproject.org)... 209.132.181.24, 209.132.181.23, 209.132.181.25, ...
Connecting to dl.fedoraproject.org (dl.fedoraproject.org)|209.132.181.24|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13104 (13K) [application/x-rpm]
Saving to: pel-release-7-2.noarch.rpm

100%[==================================================================================================================>] 13,104      --.-K/s   in 0.1s    

Last-modified header invalid -- time-stamp ignored.
2014-10-01 00:27:12 (109 KB/s) - pel-release-7-2.noarch.rpmsaved [13104/13104]

完整阅读

Compiling Wireshark 1.12

Same topic I had posted at stack overflow, that include more detail output:
Qt is not available error while compiling a wireshark 1.12

Now move it to my blog for review.
I have a issue on rhel6.3, and I download all qt47 rpm:

-rw-r--r--.  1 root root  4282888 Sep 22 06:32 qt47-4.7.1-3_15.el6.x86_64.rpm
-rw-r--r--.  1 root root 11458684 Sep 22 06:33 qt47-devel-4.7.1-3_15.el6.x86_64.rpm
-rw-r--r--.  1 root root    54076 Sep 22 06:32 qt47-sqlite-4.7.1-3_15.el6.x86_64.rpm
-rw-r--r--.  1 root root  5374988 Sep 22 06:33 qt47-webkit-4.7.1-3_15.el6.x86_64.rpm
-rw-r--r--.  1 root root 13297200 Sep 22 06:34 qt47-x11-4.7.1-3_15.el6.x86_64.rpm

When install that, report conflict with libjpeg-turbo:
完整阅读

Install Opendaylight and upgrade Java on RHEL6.3

1. Upgrade java openjdk to 1.7.0

[root@frank ~]# yum install java-1.7.0-openjdk.x86_64

2. Check version and choose correct java

[root@frank ~]# java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.1) (rhel-1.45.1.11.1.el6-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
[root@frank ~]# alternatives --config java
There are 2 programs which provide 'java'.

  Selection    Command
-----------------------------------------------
*+ 1           /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
   2           /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java
Enter to keep the current selection[+], or type selection number: 2
[root@frank ~]# java -version
java version "1.7.0_03-icedtea"  <<<
OpenJDK Runtime Environment (rhel-2.1.el6.7-x86_64)
OpenJDK 64-Bit Server VM (build 22.0-b10, mixed mode)

完整阅读

RHEL Tigervnc Server配置及开机自启动

几年前在玩ubuntu时,安装过VNC4Server,可参考之前的文章《Ubuntu VNC4Server》,但没搞懂如何开机自启动。最近考完了RHCE,要在RHEL6.3上倒腾VNC,这次终于弄懂了,并成功配置,配置过程如下文。在RHEL上选择了tigervnc-server,这个是免费的,不管是服务器还是客户端都很好用,我在MAC上主要就是用tigervnc的client。

1. Install tigervnc-server

[root@frank ~]#yum install tigervnc-server.x86_64

2. 设置VNC服务开机自启动

[root@frank ~]# chkconfig vncserver on
[root@frank ~]# chkconfig --list |grep vnc
vncserver      	0:off	1:off	2:on	3:on	4:on	5:on	6:off

3. 关闭防火墙或设置iptables允许VNC的端口

[root@frank ~]# iptable -F
[root@frank ~]# service iptables save
[root@frank ~]# service iptables restart

完整阅读

xxx is not in the sudoers file

当新建一个用户,用sudo可能会发生以下问题:

(在RHEL有这个问题,但Ubuntu和MAC好像没有)

[cisco@frank ~]$ sudo service vncserver restart
[sudo] password for cisco: 
cisco is not in the sudoers file.  This incident will be reported.

在RHEL中,默认用户没有sudo权限,需要单独配置:

1. 用root登陆或切换到root
2. [root@frank ~]# vim /etc/sudoers
3. search “root”,添加一行,如下所示:

## Allow root to run any commands anywhere
root    ALL=(ALL)       ALL
cisco   ALL=(ALL)       ALL  <<<
blonde teen swallows load.xxx videos