linux下配置vncserver 防火墙 本地镜像

export NLS_LANG="American_America.UTF8"

rpm -qa |grep vnc

rpm -ivh vnc*.rpm

vncserver

查看是哪个端口



4.配置1

vi /root/.vnc/xstartup

修改unset与exec前的注释

删除[]后的&&

添加gnome-session & set starting GNOME desktop


4.重启vnc服务

vncserver -kill :1

vncserver :1


5.配置2

vi /etc/sysconfig/vncservers

添加

VNCSERVERS="1:root 2:oracle"

VNCSERVERARGS[1]="-geometry 1024x768"

VNCSERVERARGS[2]="-geometry 1024x768"



export DISPLAY=localhost:1

xhost +

export LANG=en_US.utf8
vi /etc/selinux/config
setenforce 0  

chkconfig iptables off  service iptables stop
勾选已连接和开机启动
然后

1 挂载iso镜像文件
[root@dg01 ~]# mount /dev/cdrom /mnt  ---将cdrom的挂载到/mnt目录
mount: block device /dev/cdrom is write-protected, mounting read-only

2 编辑本地yum源文件规则
[root@dg01 ~]# vi /etc/yum.repos.d/local.repo

[Cluster]
name=Cluster
baseurl=file:/mnt/Cluster
enabled=1
gpgcheck=0
gpgkey=file:/mnt/RPM-GPG-KEY-oracle

[VT]
name=VT
baseurl=file:/mnt/VT
enabled=1
gpgcheck=0
gpgkey=file:/mnt/RPM-GPG-KEY-oracle

[ClusterStorage]
name=ClusterStorage
baseurl=file:/mnt/ClusterStorage
enabled=1
gpgcheck=0
gpgkey=file:/mnt/RPM-GPG-KEY-oracle

[Server]
name=Server
baseurl=file:/mnt/Server
enabled=1
gpgcheck=0
gpgkey=file:/mnt/RPM-GPG-KEY-oracle





来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/21302630/viewspace-1593085/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/21302630/viewspace-1593085/

你可能感兴趣的:(linux下配置vncserver 防火墙 本地镜像)