念念不忘
必有回响

RHEL6.4安装VNC

最近需要安装Oracle数据库,那就需要通过VNC来安装了

查询是否安装VNC Server

rpm -qa | grep vnc

如果什么都没打印,说明没有安装vnc

安装VNC

yum install tigervnc
yum install tigervnc-server

安装VNC Server

配置 VNC 登录密码

执行如下命令:

vncserver

首次执行提示设置密码,根据提示输入两次密码即可

You will require a password to access your desktops.

Password:
Verify:
xauth:  file /root/.Xauthority does not exist

New 'OP-APM-11:1 (root)' desktop is OP-APM-11:1

Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/OP-APM-11:1.log

为desktop OP-APM-11:1设置密码。
配置防火墙策略,避免因网络问题无法访问。

-A INPUT -m state --state NEW -m tcp -p tcp --dport 5900:5910 -j ACCEPT

在Mac安装VNC客户端

安装Caskroom/cask/vnc-viewer

brew install Caskroom/cask/vnc-viewer
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/php).
==> Updated Formulae
homebrew/php/adminer               homebrew/php/n98-magerun2          homebrew/php/php70-xdebug          homebrew/php/php71-xdebug          homebrew/php/php72-xdebug

==> Tapping caskroom/cask
Cloning into '/usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask'...
remote: Counting objects: 4011, done.
remote: Compressing objects: 100% (3982/3982), done.
remote: Total 4011 (delta 35), reused 722 (delta 25), pack-reused 0
Receiving objects: 100% (4011/4011), 1.37 MiB | 448.00 KiB/s, done.
Resolving deltas: 100% (35/35), done.
Tapped 0 formulae (4,020 files, 4.3MB)
==> brew cask install Caskroom/cask/vnc-viewer
==> Creating Caskroom at /usr/local/Caskroom
==> We'll set permissions properly so we won't need sudo in the future
Password:
==> Satisfying dependencies
==> Downloading https://www.realvnc.com/download/file/viewer.files/VNC-Viewer-6.17.1113-MacOSX-x86_64.dmg
######################################################################## 100.0%
==> Verifying checksum for Cask vnc-viewer
==> Installing Cask vnc-viewer
==> Moving App 'VNC Viewer.app' to '/Applications/VNC Viewer.app'.
??  vnc-viewer was successfully installed!

启动VNC-Viewer链接VNC

连接vnc-viewer

此时,RHEL6.4上安装vncserver就已经完成了。

赞(0) 打赏
版权声明:本文采用知识共享 署名4.0国际许可协议 [BY-NC-SA] 进行授权
文章名称:《RHEL6.4安装VNC》
文章链接:https://dev.net.cn/82.html
本站资源仅供个人学习交流,请于下载后24小时内删除,不允许用于商业用途,否则法律问题自行承担。

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

非常感谢你的打赏,我们将继续给力更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫打赏

微信扫一扫打赏