Posts

Showing posts with the label vncserver

VNC Configuration using Ansible in CentOS 6

Image
1. Install epel repo on CentOS 6 system:     # yum install epel-release  -y 2. Install ansible using yum:     # yum install ansible  -y 3. Go to the '/etc/ansible/roles' directory and run the below command to create the required directory structure:     # ansible-galaxy  init  vnc6  --offline        - vnc6 was created successfully   # tree vnc6        vnc6     ├── defaults     │   └── main.yml     ├── files     ├── handlers     │   └── main.yml     ├── meta     │   └── main.yml     ├── README.md     ├── tasks     │   └── main.yml     ├── tests     │   ├── inventory     │   └── test.yml     └── vars         └── main.yml     4....

VNC Configuration using Ansible in CentOS 7

1. Install epel repo on CentOS 7 system:   # yum install epel-release -y 2. Install ansible using yum:   # yum install ansible -y 3. Go to '/etc/ansible/roles/' directory and run the below command to create the skeleton directory structure:   # ansible-galaxy init vnc7 --offline   # tree vnc7          vnc7     ├── defaults     │   └── main.yml     ├── files     ├── handlers     │   └── main.yml     ├── meta     │   └── main.yml     ├── README.md     ├── tasks     │   └── main.yml     ├── tests     │   ├── inventory     │   └── test.yml     └── vars         └── main.yml 4. Create the service file to allow 'root' user to access the vncserver using port 5901.    In "/etc/ansible/roles/vnc7/files/" directory create a ...