Saturday, May 23, 2015

Install and Configure VNC Server in RHEL 7 and OEL 7



We need to run below 2 commands to setup GUI in RHEL 7

yum-config-manager --enable rhui-REGION-rhel-server-extras
yum repolist
yum groupinstall -y "Server with GUI"
yum install -y tigervnc-server xorg-x11-fonts-Type1
yum install -y xorg-x11-apps

Install xorg-x11-apps in Oracle Linux8
yum config-manager --enable ol8_codeready_builder
yum install -y xorg-x11-apps

Copy file and change user details

cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver_root@:2.service
cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver_oracle@:3.service

sed -i 's/<USER>/root/g' /etc/systemd/system/vncserver_root@:2.service
sed -i 's/<USER>/oracle/g' /etc/systemd/system/vncserver_oracle@:3.service


#Start the Services and set password

systemctl enable vncserver_root@:2.service
systemctl enable vncserver_oracle@:3.service
systemctl daemon-reload

echo -e "admin123\nadmin123" | vncpasswd root
echo -e "admin123\nadmin123" | vncpasswd oracle

su - grid
vncserver

apt-key warning when sudo apt update run

Issue: apt-key warning when sudo apt update run Update below file: cat /etc/apt/sources.list.d/download_docker_com_linux_ubuntu.list ...