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

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • 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. Unable To Extend LVM File System with Associated Snapshot in CentOS/RHEL
  2. How To Setup UDEV Rules For RAC OCR And Voting Devices on Partitions
  3. Failed to start LSB: Bring up/down networking – On restarting network service CentOS/RHEL (DHCP client)
  4. How the BASH Shell load its configuration files in Linux
  5. Getting “parsing errors” When Running ‘yum repolist’
  6. How to Move Swap From Disk Partition to LVM Volume in Linux
  7. CentOS / RHEL : How to find RPM installation date and time
  8. How to Delete ASM Disk on Multipath Device in CentOS/RHEL
  9. “iscsiadm” Discovery TimeOut With Two Or More Network Interfaces in CentOS/RHEL
  10. How to obtain virtual/physical CPU information in Oracle VM (XEN)

You May Also Like

Primary Sidebar

Recent Posts

  • How to Configure Automatic Package Updates on the Server in CentOS/RHEL 8
  • FATAL: Error inserting rds_rdma
  • Failed to start LSB: Bring up/down networking – On restarting network service CentOS/RHEL (DHCP client)
  • How To Add Timestamps To dmesg Kernel Boot Log in CentOS/RHEL
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary