Startx xclock on virtual lpar


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Startx xclock on virtual lpar

Hello,

Is there a way to run
Code:
xclock

or
Code:
startx

on LPAR, since LPAR doesn't have any console or it is connected to HMC


usually the way is to export the display to some PC which has Xmanager running on it, but in my case, I want to run xmanager [startx] on the AIX Lpar and run on it the xclock

In the attachment,

the ones that show localhost
Code:
root@oradb:/>echo $DISPLAY
10.1.1.71:1.0

while on cloapp, it shows
Code:
root@oradb:/>echo $DISPLAY
support:0.0

support is = 10.1.1.71


How can I make CLOAPP same as oradb (which is localhost on the XMANAGER )
Startx xclock on virtual lpar-xmanagerpng

Last edited by filosophizer; 09-21-2018 at 09:57 AM..
# 2  
getting this error
Code:
X connection to  hostname:0.0 broken (explicit kill or server shutdown)


Last edited by RudiC; 09-21-2018 at 05:08 PM..
# 3  
Quote:
Originally Posted by filosophizer
Is there a way to run
Code:
xclock

or
Code:
startx

on LPAR, since LPAR doesn't have any console or it is connected to HMC
I have (in a cursory way) described how XWindows works already here but you might profit from me expanding on that a bit:

XWindows is a complete networked system for working with graphically oriented programs. In fact it is more a client/server-oriented protocol (like, i.e. ftp) rather than a piece of software.

On one hand you have some graphical display - a graphics adapter attached to a system and a screen capable of graphical output (for the sake of simplicity we will voluntarily leave out multi-screen displays and other complicated things for now). This is called an X-server, because it provides certain capabilities whcih can be used by clients. In fact an X-server is a piece of software which manages this piece of hardware. Think of it as a networked graphics driver.

On the other hand there are programs being able to use the capabilities such an X-server provides: these are called X-clients. Notice that the X-server usually runs on the client machine (the one you sit in front of) and the X-client runs on the server system (i.e. a machine in the data centre). This can be a bit confusing at first, but actually from the role the various software pieces are playing - here a pice that provides some service, there a piece that makes use of this service - it makes perfect sense.

In between these two programs there needs to be a network connection (except for the special case where they are running on the same system) and in fact XWindows has its own transport protocol: X-protocol (now, who'd have thought this is its name?). X-protocol per default uses port 6000.

This is what you need the DISPLAY-variable for: it tells the X-client (in your case: xclock which server to use to display itself. There could be more than one server in the network. The DISPLAY-variable has the following format:

<FQDN>:<Display-Nr>.< Screen-Nr>

i.e.: myclient.somecompany.com:0.0 means: use the X-server on myclient.somecompany.com for output and display it on the first screen (screen 0) of the first display (display 0). A system could have several displays attached and each display could consist of several screens, hence the numbers. So you set the DISPLAY-variable in the environment of the X-client process first, then start the X-client. The X-server has to run already for this.

Now, an X-server might not want to allow every client to use it, so there is some sort of access control. This is what the program xhost is for. I suggest to carefully read its man-page, but for test purposes we can simply switch off any access control with:

Code:
# xhost +

Nota bene: you do this on the X-servers side, because having access control only makes sense on the system where the X-server runs. Now (and given that no firewall interferes with port 6000) it should work.

I hope this helps.

bakunin
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
LPAR missing virtual interface
max
Note: Newbie to IBM virtualization :-) Query: Created a new AIX7.1 lpar on a system with same config as one before however the new one is having issues going out to physical network. Now on comparison the only thing which differs between these two machines is an additional en1 and ent1 shown...... AIX
7
AIX
VIOS: Extend virtual disk assigned to running lpar?
j_aix
Hello, VIOS 2.2.1.4 using IVM. I'm trying to extend a virtual disk assigned to a running lpar so that I can expand the lpar's datavg and grow some filesystems for the user. Storage admin expanded the lun and new size was reflected in VIO right away. I then needed the storage pool to...... AIX
2
AIX
Adding Virtual Adapter to LPAR
audis$
Hello, hopefully someone can help me out with this, I have created a virtual Ethernet adapter on the VIO but would like to add it to my new LPAR. On my VIO only my disk is mapped. $ lsmap -all SVSA Physloc Client Partition ID --------------- --------------------------------------------...... AIX
5
AIX
How to open multiple virtual terminals to a single LPAR
wingcross
I just wondering if there are ways to open multiple virtual terminal to a single LPAR. After I have use putty to login to the VIOS. I will use mkvt -id <LPAR id> to open console but if my friend want to open 2 second one, it will say, VT already connected. IS there a way to work this around ? ...... AIX
1
AIX
Installed AIX6.1 in LPAR, but fail to start xclock
wingcross
I have clean installed AIX6.1 in this partition. I want to run xclock but it fail to run :( I have launch export DISPLAY=10.23.17.60:0 Then launch xclock but it will produce some error saying it failed. Error: Can't open display: 10.23.177.60:0 When i try to google around, some say...... AIX
5
AIX