Archive

‘Linux’ 分类存档

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  <<<

Ubuntu 64bit 桌面版 4G内存只支持3.5G [已解决]

刚刚注意到,我的系统是64bit的桌面版,发现4G的内存只支持了3.5G。
不明白是怎么回事。。。
在网上有人说只要是64bit的系统,就可以支持4G及更大的内存。
另外还有人说只有ubuntu 64bit server版的才支持,不解中,说法真多呀。。。
根据资料,我的主板最多能支持16G的内存。
我的主板是华硕的:P5N7A-VM
完整阅读

Ubuntu AR5001X+ 无线网卡性能 续

已经对AR5001X+在linux下的性能彻底失望了,我又测试了下,发现问题很严重,但又不清楚具体是什么问题,难道无线网卡性能差,可以影响整个网络的性能?!

以下是Topology:

                                          +------+
                                          |Remote|
                                          |  PC  |
                                          +--+---+
                                             |
                                             |
                                             |
                                             |
                                            -+--
+------------+                          ///-    -\\\
| ubuntu9.10 |        +---------+      /            \
| Wifi:54/70 |  WLAN  |         |     |              |
| +--------+ + - - - -+ TPLink  +-----|  Internet    |
| | Vmware | |        +         |     |              |
+-+--------+-+        +---------+      \            /
  | Olive  |                            \\\-    -///
  +--------+                                ----

完整阅读

Ubuntu AR5001X+ 无线网卡性能

由于自己在家里装了台服务器,需要远程访问,但发现telnet访问会有hang的现象。
删除字符,或是输入字符都会有停顿的现象。
局域网也有通向的问题,只要用无线就有问题,如果换有线就没问题。

经测试,怀疑路由器性能问题(TL-WR641G/642G),毕竟用了2年多了,再加上TP link工程师也测试过,发现确实有这种问题,但不是明显。所以就买了个linksys WRH54G来做测试。
不巧的是,问题可能出在网卡驱动上(TL-WN650G),而不是Router本身的问题(暂时是这样)
下面是故障的详细troubleshooting过程:

注:我的服务器是ubuntu 9.04 64bit,linux效率高!
打个比方,在T60的windows上dynamips可以模拟6台,linux环境,可以模拟到13台

完整阅读

blonde teen swallows load.xxx videos