• 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 Enable Remote Desktop to Share the Current Desktop Session in CentOS/RHEL 7

by admin

Steps to enable remote desktop access in CentOS/RHEL 7.

This can either be done via the following:

In the GUI

1. From an active desktop session, do the following:

Ciick on Applications -> System Tools -> Settings -> Sharing -> Screen Sharing and turn it on.

Using Command Line

1. Install vino-server package, vino is the VNC server in CentOS/RHEL to share the existing desktop session:

# yum install vino-server

2. Open the terminal on the existing gnome session, then run these commands to enable remote desktop for gnome:

$ gsettings set org.gnome.Vino enabled true
$ gsettings set org.gnome.vino require-encryption false

3. Use vnc as the authentication method and set the vnc password:

$ gsettings set org.gnome.Vino authentication-methods "['vnc']"

Generate the vnc password for it, for example, use ‘vpasswd’ as the password:

$ echo -n 'vpasswd' | base64                                                 
dnBhc3N3ZA==
$ gsettings set org.gnome.Vino vnc-password 'dnBhc3N3ZA=='
$ gsettings set org.gnome.Vino prompt-enabled false

Filed Under: CentOS/RHEL 7, Linux

Some more articles you might also be interested in …

  1. How to view past performance with sar in Linux
  2. How to use the ssh-keygen Command in Linux
  3. How to Configure a Fiber-Channel Over Ethernet (FCoE) Interface in CentOS/RHEL
  4. EMC PowerPath Powermt Commands (Cheat Sheet)
  5. CentOS / RHEL 6,7 : How to disable or delete virbr0 interface
  6. minicom Command Examples in Linux
  7. CentOS / RHEL 5 : How to install and configure vsftpd server
  8. iptables: command not found
  9. mkinitcpio: command not found
  10. lxc 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