domingo, 1 de febrero de 2015

How to enable X11 forwarding on Solaris 11 text install

Software to Install:

    x11-server-utilities
    xauth
    x11-info-clients
    motif
    xclock

root@solaris:# pkg install -v x11-server-utilities
root@solaris:# pkg install -v xauth
root@solaris:# pkg install -v x11-info-clients
root@solaris:# pkg install -v motif
root@solaris:# pkg install -v xclock

Make sure that /etc/ssh/sshd_config has:

    # X11 tunneling options
    X11Forwarding yes
    X11DisplayOffset 10
    X11UseLocalhost yes

If the file has been modified restart the ssh service:

root@solaris:# svcadm restart ssh

Go to other machine and start an ssh session:

root@other:# ssh -X root@solaris
Password:
Last login: Sun Feb  1 07:21:09 2015 from 192.168.56.1
Oracle Corporation      SunOS 5.11      11.2    June 2014

Test it:

root@solaris:# xclock

Enjoy!