• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to configure VNC Server on Oracle Linux 6

by admin

Here is a short howto on configuring VNC server for Oracle Linux 6.

1. Check if the server is connected to Oracle Linux yum server Or ULN to avoid the dependency issue.

# yum repolist

2. Install the vnc server RPMs:

# yum install vnc* 

This installs latest version of RPMs: tigervnc-server-module, tigervnc and tigervnc-server.

# yum install tigervnc-server-module tigervnc tigervnc-server

3. Edit the “/etc/sysconfig/vncservers” file to configure the required displays. The following entries enable VNC for display numbers “:2” and “:3“. Notice multiple “display:user” pairs are defined on a single line, but the arguments for each display are defined separately.

# vi /etc/sysconfig/vncservers
VNCSERVERS="2:root 3:oracle"
VNCSERVERARGS[2]="-geometry 1280x1024 -nolisten tcp -localhost"
VNCSERVERARGS[3]="-geometry 1280x1024"

4. Set the VNC password for any users defined in the “/etc/sysconfig/vncservers” file.

# vncpasswd
Password:
Verify:

5. Enable the “vncserver” service for autostart and start the service :

# chkconfig vncserver on
# service vncserver start

6. Run commandto start or stop the vncserver :

# vncserver 

Install vnc viewer in client machine then try to access the vncserver.

Filed Under: CentOS/RHEL 6, Fedora, Linux, OEL 6

Some more articles you might also be interested in …

  1. How to interpret Linux martian source messages
  2. How to Check whether SELinux is Enabled or Disabled
  3. CentOS / RHEL : How to configure iptable rules to allow FTP ports 20/21
  4. CentOS / RHEL : How to remove used Physical Volume(PV) from Volume Group (VG) in LVM
  5. How to transfer files securely using sftp (examples included)
  6. How to Log dropped packets using firewalld in CentOS/RHEL 7
  7. CentOS / RHEL 7 : systemd-analyze command to find booting time delays
  8. CentOS / RHEL 7 : Unable To Start The Samba Service
  9. env Command Examples in Linux
  10. CentOS / RHEL 7 : Booting process

You May Also Like

Primary Sidebar

Recent Posts

  • JavaFX ComboBox: Set a value to the combo box
  • Nginx load balancing
  • nginx 504 gateway time-out
  • Images preview with ngx_http_image_filter_module

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright