How to Use VNC on Solaris

Save

Virtual network computing (VNC) provides cross platform access to a computer over the network. Use the VNC viewer program to connect to a computer running VNC and interact with a graphical interface. Solaris 10 installs Xvnc Server and VNC viewer by default, however it doesn't configure them. Since Solaris is a multi-user operating system, multiple users can log in remotely at the same time using VNC. This is a good cost-saving measure, since the computers connecting to the Solaris server have minimal hardware requirements. If you use Gnome desktop, skip the CDE steps and configure GDM.

Configure VNC and CDE

  • Click the "Launch" menu, then "Applications," then open the "Utilities" folder, and run "Terminal."

  • Type the following command to set the CDE login properties and press "Enter:"

    su && svccfg -s cde-login

  • Type the following in the new prompt that appears to allow network login and push "Enter:"

    setprop dtlogin/args=""

  • Type "quit" to exit. Don't include the quotes. Press "Enter."

  • Type the following command to add VNC to the network services:

    svcadm enable xvnc-inetd

Configure VNC and GDM for Gnome

  • Open a terminal window and type the following command, and press "Enter:"

    su && printf '[xdmcp]\nEnable=true\n' >>/etc/X11/gdm/custom.conf && svcadm restart gdm && svcadm enable -s gdm

    This enables XDMCP in the custom.conf file, allowing you to log in over the network with GDM, which is used with the Gnome desktop. The second and third commands implement the changes.

  • Type the following command to open the X11-server settings, and press "Enter:"

    svccfg -s x11-server

  • Type the following command in the prompt that appears, and press "Enter:"

    setprop options/tcp_listen=true

    This command makes the X11-server listen to the network over TCP.

  • Type "quit" to exit. Don't include the quotes. Press "Enter."

  • Type the following command to add VNC to the network services, and press "Enter:"

    svcadm enable xvnc-inetd

Starting VNC with Solaris 10

  • Open a terminal window and type the following command, and press "Enter:"

    su && svccfg -s application/x11/x11-server add display1 && svccfg -s application/x11/x11-server:display1 addpg options application && svccfg -s application/x11/x11-server:display1 addpropvalue options/server astrong: "/usr/X11/bin/Xvnc"

    This command creates a new virtual display in the X11-server and configures it for use with VNC.

  • Type the following command to finish the configuration, and press "Enter:"

    svccfg -s application/x11/x11-server:display1 addpropvalue options/server_args astring: '"SecurityTypes=None"'

  • Type the following command to enable VNC to start when the computer starts, and press "Enter:"

    mkdir - /etc/dt/config && cp /usr/dt/config/Xservers /etc/dt/config/Xservers && echo " :1 Local local_uid@none root /usr/X11/bin/Xserver :1" >> /etc/dt/config/Xservers

  • Type the following command,, and press "Enter:"

    pkill -HUP dtlogin

    This command makes the changes take effect immediately.

References

Promoted By Zergnet

Comments

You May Also Like

Related Searches

Check It Out

Geek Vs Geek: Robot battles, hoverboard drag race, and more

M
Is DIY in your DNA? Become part of our maker community.
Submit Your Work!