Skip to main content

Enabling VNC Server on Solaris 10

By default, In Solaris 10, VNC service is almost configured. Below is the process to enable it.
  • Check VNC service
root# svcs -a | grep -i vnc
disabled 13:47:12 svc:/application/x11/xvnc-inetd:default
  • We need to enable the VNC service
root# svcadm enable svc:/application/x11/xvnc-inetd:default
  • By default, it broken we need to      so some changes.
root# svcs svc:/application/x11/xvnc-inetd:default
STATE STIME FMRI
maintenance 14:22:41 svc:/application/x11/xvnc-inetd:default
  • Need to append vnc to the      /etc/services
root# echo “vnc-server\t5900/tcp\t\t\t# Xvnc” >>/etc/services
  • Cross verify /etc/services
root# tail /etc/services
snmpd 161/udp snmp # SMA snmp daemon
vnc-server 5900/tcp # Xvnc
  • Need to customizethe gnu display      manager
root# ls -al /etc/X11/gdm/custom.conf
/etc/X11/gdm/custom.conf: No such file or directory
  • configure and enable gnu display      manager for vnc
root# cat >/etc/X11/gdm/custom.conf <<!
   [xdmcp]
   Enable=true
   [security]
   DisallowTCP=false
   AllowRoot=true
   AllowRemoteRoot=true
   !
  • Cross verify the customized      configuration file
    root# ls -al /etc/X11/gdm/custom.conf 
  -rw-r–r– 1 root root 85 Dec 19 14:43 /etc/X11/gdm/custom.conf
  • Disable and enable and validate      the vnc service
   root# svcadm disable svc:/application/x11/xvnc-inetd:default 
  
   root# svcadm enable svc:/application/x11/xvnc-inetd:default
   root# svcs svc:/application/x11/xvnc-inetd:default 
  
   STATE STIME FMRI
online 14:46:43 svc:/application/x11/xvnc-inetd:default
  • Now use VMC client on the network to  check the VNC server


Comments

Popular posts from this blog

How to configure an IP address in Solaris 11

Oracle made a huge changes in the networking stack with Solaris 11. The use of many network related files have been deprecated in Solaris 11. Below are some of the files which are not used in Solaris 11 for persistent network configuration : /etc/defaultdomain /etc/dhcp.* /etc/hostname.* /etc/hostname.ip*.tun* /etc/nodename /etc/nsswitch.conf Network Configuration Profile Solaris 11 uses profile-based network configuration. It has 2 configuration modes : 1. Automatic   – Uses DHCP to obtain network configuration (IP address, router and DNS) from any of the connected ethernet interfaces. Do not support hot swapping of interfaces and IPMP. 2. Manual (DefaultFixed NCP)   – interfaces needs to be manually configured using dladm and ipadm commands. Also called as DefaultFixed NCP. Supports hot swapping of interfaces and IPMP. Configuring the IP address Step 1 : Set the NCP We would set the NCP to DefaultFixed profile in order to configure the IP address...

Ubuntu RDP

Desktop Manager Since the current desktop manager of Ubuntu (Unity which runs on Gnome) no longer seems to work with xRDP, an alternative desktop manager needs to be installed. I tried  OpenBox , but wasn’t very impressed by the amount of work needed to get a reasonable desktop. We will use another desktop manager that has been around for quite a long time is  XFCE , which is lightweight and fast. Note  : A light weight desktop manager helps making a remote desktop connection much more enjoyable. Installing xRDP and XFCE Installing xRDP and XFCE is pretty easy, once you know what to do … Just make sure you have an Internet connection before you start. Step 1 – Install xRDP We will use sudo and apt-get to update your system and install xRDP. Keep in mind that sudo will ask for your admin password. 1 2 sudo   apt-get update sudo   apt-get install  xrdp Step 2 – Install XFCE4 Again we will ...

How to kill an Unresponsive VM (ESXi 5.x)

When a Virtual Machine crashed it might happen that you cannot power it off with the vSphere Client. In that case, you have to kill the VM through the ESXi command-line. Connect to the ESXi host with SSH. (If a virtual machine crashed in a cluster and you cannot identify where it is running, you have to  identify the ESXi Hosts where the VM is running ) Locate the World ID with  esxcli vm process list  or  vmdumper -l [root@esx1:~] vmdumper -l wid= 462925 pid=-1 cfgFile="/vmfs/volumes/5474e3ca-af7a8515-9aef-001b2193b3b0/vcsa.virten.lab/vcsa.virten.lab.vmx" uuid="56 4d a9 f8 05 4a d6 a6-cb 08 de 39 a6 e7 a4 38" displayName="vcsa.virten.lab" vmxCartelID=462924 [root@esx1:~] esxcli vm process list vcsa.virten.lab  World ID: 462925  Process ID: 0  VMX Cartel ID: 462924  UUID: 56 4d a9 f8 05 4a d6 a6-cb 08 de 39 a6 e7 a4 38  Display Name: vcsa.virten.lab  Config File: /vmfs/volumes/5474e3ca-af7a8515-9aef-001...