Archive

标签为 ‘RHEL’的文章

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