UNIX GUI (X11)

If your task requires an X Server...


VNC is recommended because it protects the task from network or client crashes.With VNC you can simply reconnect where you left off once the network or client issue is resolved.You can use SSH tunneling with VNC to make it more secure.Bear in mind the requirements of your choice of X Server when setting the DISPLAY environment variable.

Screen Resolution

To see connected screens and supported resolutions...

xrandr

Screen 0: minimum 8 x 8, current 3840 x 1237, maximum 16384 x 16384DVI-I-0 disconnected (normal left inverted right x axis y axis)DVI-I-1 disconnected (normal left inverted right x axis y axis)DP-0 disconnected (normal left inverted right x axis y axis)DP-1 disconnected (normal left inverted right x axis y axis)DP-2 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 598mm x 336mm   1920x1080     60.00*+  59.94     1680x1050     59.95     1600x900      60.00     1440x900      59.89     1280x1024     60.02     1280x800      59.81     1280x720      60.00    59.94     1024x768      70.07    60.00     800x600       72.19    60.32    56.25     640x480       72.81    59.94  DP-3 connected 1920x1080+1920+157 (normal left inverted right x axis y axis) 598mm x 336mm   1920x1080     60.00*+  59.94    50.00     1680x1050     59.95     1600x900      60.00     1440x900      59.89     1280x1024     60.02     1280x800      59.81     1280x720      60.00    59.94    50.00     1024x768      60.00     800x600       60.32    56.25     720x576       50.00     720x480       59.94     640x480       59.94 

To change resolution...

xrandr --output DP-2 --mode 1680x1050

X11 Tunnelling

Introduction

X11 tunnelling allows you to securely (using SSH) display and use a server X Window on your local PC.

Valid For

Servers where you cannot use VNC or a local X session.

Displays to PCs running a local X Server (e.g. XMing)

Pre-Requisites

These instructions assume the following filesets have been installed on your target AIX system:

These instructions assume that your local X server is up and running.

To confirm it is listening on the default port (6000) use the following command at a Windows cmd prompt:

netstat -atn | findstr 6000

X11 Forwarding must be enabled in /etc/ssh/sshd_config

X11Forwarding yes

If you need to update sshd_config, remember to restart sshd:

stopsrc -s sshd; sleep 2; startsrc -s sshd

Instructions

Enable X11 Forwarding in PuTTY (Connection - SSH - X11)

Connect to your target server.

Login as your normal user.

Check the setting of the DISPLAY environment variable.

echo $DISPLAY

Obtain your XAUTH cookie:

xauth list

su to your target user.

su - oracle

Export the DISPLAY variable.

export DISPLAY=localhost:10.0

Set your XAUTH Cookie.

xauth add servername/unix:10 MIT-MAGIC-COOKIE-1 792637ea6f19c96d4c5f7c5a71b9913c

Start your X apps

xclock


When creating/configuring/upgrading database using DBCA/DBUA at 11g release 2,DBCA/DBUA hung or did not respond after clicking "Finish" button Cause:             X Client I was using was XMING, which had a kind of bug.Solution:             After installing Xming complete font package (Xming-fonts-7-5-0-70-setup.exe), I could create database using DBCA, this problem exist with Xming at Linux or Unix enviromnets.

Bibliography