Tuesday, July 21, 2015

Maximise Redhat VM Screen

System -> Preferences -> Display
Under Monitor -> Resolution, change to 1920 x 1080

Monday, July 20, 2015

Setting up VNC Server


1. yum install tigervnc-server

2. login for each vnc user (e.g. unica, streamsadmin) and run:  vncpasswd

3. Edit '/etc/sysconfig/vncservers' with your favorite editor

4. Append the following lines :
VNCSERVERS="1:unica 2:streamsadmin"
VNCSERVERARGS[1]="-geometry 1024x768"
VNCSERVERARGS[2]="-geometry 1024x768"

5. Start the vnc server:
# service vncserver start

6. Ensure service is started on reboots :
# chkconfig vncserver on


7. Configure the firewall
    # iptables -I INPUT -m state --state NEW -p tcp --destination-port 5901 -j ACCEPT
    # iptables -I INPUT -m state --state NEW -p tcp --destination-port 5902 -j ACCEPT

NOTE : Each user requires an additional firewall port opened starting at 5901. Because we added two users above, we need to open two ports.

    # service iptables save

Configuring hostname on redhat 6

1. vi  /etc/sysconfig/network

2. Comment off:
#HOSTNAME=localhost.localdomain

3. Add the following:
 - HOSTNAME=rhel-server-6.5-x86_64.localdomain

4. Reboot