linux下配置vncserver 防火牆 本地映象

peng163fj發表於2015-04-23

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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章