• 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. dkms Command Examples in Linux
  2. a2query: command not found
  3. mate-search-tool: command not found
  4. “iscsiadm” Discovery TimeOut With Two Or More Network Interfaces in CentOS/RHEL
  5. “Could not resolve proxy: https; Unknown error” – error with ‘yum update’
  6. How to troubleshoot NFS transfer latency issues using “nfsiostat” in CentOS / RHEL
  7. How to add additional language support in CentOS/RHEL
  8. Manual Changes Made To /etc/hosts Or /etc/sysconfig/network-scripts/ifcfg-* Are Lost
  9. CentOS / RHEL : How to add iptable rules
  10. a2dismod Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • pw-cat Command Examples in Linux
  • pvs: command not found
  • pulseaudio: command not found
  • pulseaudio Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright