Error Cannot Open Display Aix
Contents |
posts Simplified Remote Re... Updated Likes 0 Comments 0 GPFS missing /var/mm... Updated Likes 0 Comments 0 Hacking cloud-init o... Updated Likes 0 Comments 2 Running the Virtual ... Updated Likes 0 Comments 0 Using NIM to distrib... Updated Likes 0 how to enable x11 forwarding in aix Comments 2 Tags Remote X11 Windows to AIX UrbanBiel 0600017E5Q | | Comments (18) |
Aix Set Display Environment Variable
Visits (102742) Tweet I love a command line. It's numerous advantages over GUI is hard to list, but there are situations, where you export display aix need a remote X Windows connection. I've been asked many times by my colleagues, how to set up remote X Windows (X11, as the most recent version of X Windows is 11) on AIX, why it doesn't
1356-200 Xhost Unable To Open Display
work, etc. Basic overview of X11 Windows architecture X11 is a client / server architecture. You need to know two things: an application e.g. xclock is an X11 client the application's content is displayed by an X11 server Anyway, some people are confused here: I'm connecting to an AIX server using ssh/telnet, thus my workstation is an ssh/telnet client. What do I have to run on my local machine: an X11 client or an X11 _x11transtrans(ibmshmconnect) () can't connect: errno = 68 server? You obviously need to install and run an X11 server on your local workstation. If you run e.g. xclock on a remote machine (AIX), that's an X11 client. Let's have a quick look at a connection between an X11 client and an X11 server. The connection can be a unix socket or TCP/IP. The socket is used, when the client and the server run on the same machine, which is not our case. Remote X Windows connection is using the TCP/IP. To tell the client, where the X11 server runs, you need to set up a DISPLAY environment variable. By default an X11 server listens on port 6000. You can have more X server instances, but that's out of the topic. Your workstation If you want to display a program on your local workstation, that is running on a remote AIX, you need to install and run an X server locally. If you run Linux on your workstation and you're reading this in a browser, you're done. On Windows there is a few X servers; some are commercial, some are free. Very popular is Xming, I use Cygwin. A quick Cygwin howto: Install Cygwin from www.cygwin.org select at least the following extra packages: xorg-server xinit xauth xclock xterm xhost Make an entry in your Startup folder: C:\c IBM Power Systems. He has written extensively about AIX and has been recognised for his contributions and thought leadership by being named an IBM Champion for Power Systems. Facebook Twitter Google LinkedIn RSS Related posts Simplified Remote Re... Updated Likes 0 Comments 0 GPFS missing /var/mm... Updated Likes 0 Comments 0 Hacking cloud-init o... Updated Likes 0 Comments 2 Running the Virtual ... Updated Likes 0 Comments aix xhost 0 Using NIM to distrib... Updated Likes 0 Comments 2 Tags Putting the X in AIX AnthonyEnglish 270000RKFN | | Comments (2) | Visits (21400) Tweet Install X-Windows without the pane However hardline you https://www.ibm.com/developerworks/community/blogs/paixperiences/entry/remotex11aix are about the command line, there may just be a time when you need to use X-Windows. Alright, you might not actually need to, but it might just be good to know how to set it up anyway. The Windows menu utility WebSM comes in handy sometimes. I used it recently for the aixpert tool. It allowed me to have a granular view of security settings in a https://www.ibm.com/developerworks/community/blogs/AIXDownUnder/entry/putting_the_x_in_aix12 clickable menu. You might also need X-Windows to install other products, such as Apache or WebSphere. The more you think about it, X-Windows can be helpful. Here's how I set it up so I could run WebSM:install an X server on your PCenable X11 forwarding in Puttyenable X11 forwarding for the SSH daemonrestart SSH daemontext X session using xclockrun WebSM 1. Install an X server on your PC.There are lots of X Servers you can use. I downloaded Xming because it was free and easy to configure. 2. Change Putty configIf you are using Putty, there is an option under Connection > SSH > X11 called Enable X11 forwarding. Of course this has to be checked before you start your Putty session. 3. Change ssh daemon configuration file Once you've change Putty, you need to do a similar thing for the SSH daemon. On the AIX LPAR itself, I had openssh installed, but this still required a change to a parameter in a config file. cd /etc/ssh vi sshd_config (Not to be confused with ssh_config in the same directory) Uncomment the entry: #X11Forwarding noThe “no” indicates the default setting. Change it to “yes” X11Forwarding yesOf course this assumes that you here for a quick overview of the site Help Center Detailed answers to any questions you might http://unix.stackexchange.com/questions/108679/x-client-forwarded-over-ssh-cannot-open-display-localhost11-0/109322 have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with http://www.tek-tips.com/viewthread.cfm?qid=321762 us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD open display and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top X client forwarded over SSH “cannot open display: localhost:11.0” up vote 13 down vote favorite 2 I have enabled X error cannot open forwarding on remote machine where SSH server is running: # grep -i forward /etc/ssh/sshd_config X11Forwarding yes # On local machine, I have started SSH client with -X flag which instructs the SSH server, running on remote machine, to set up a X-server proxy. In addition, it creates the $DISPLAY variable which points to this proxy and calls the xauth to install a proxy key which authenticates to this X-server proxy on remote machine: # echo "$DISPLAY" localhost:11.0 # xauth list | grep 11 A58/unix:11 MIT-MAGIC-COOKIE-1 39324086672d1ae35e373476c3891a77 # However, X clients on remote machine do not start properly: # wireshark (wireshark:10083): Gtk-WARNING **: cannot open display: localhost:11.0 # xterm Warning: This program is an suid-root program or is being run by the root user. The full text of the error or warning message cannot be safely formatted in this environment. You may get a more descriptive message by running the program as a non-root user or by removing the suid bit on the executable. xterm: Xt error: Can't open display: % Join INTELLIGENT WORK FORUMSFOR COMPUTER PROFESSIONALS Log In Come Join Us! Are you aComputer / IT professional?Join Tek-Tips Forums! Talk With Other Members Be Notified Of ResponsesTo Your Posts Keyword Search One-Click Access To YourFavorite Forums Automated SignaturesOn Your Posts Best Of All, It's Free! Join Us! *Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting Guidelines Promoting, selling, recruiting, coursework and thesis posting is forbidden.Tek-Tips Posting Policies Jobs Jobs from Indeed What: Where: jobs by Link To This Forum! Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.Just copy and paste the BBCode HTML Markdown MediaWiki reStructuredText code below into your site. IBM: AIX Forum at Tek-Tips HomeForumsMIS/ITOperating Systems - UNIX basedIBM: AIX Forum X11 not working - Can't start the X-SERVER? thread52-321762 Forum Search FAQs Links MVPs X11 not working - Can't start the X-SERVER? X11 not working - Can't start the X-SERVER? talam (MIS) (OP) 25 Jul 02 10:49 I installed X11 and verified that all filesets are installed.but I can't start X-windows apps, i.e xterm or xclock from telnet session.Can't get X server started?!export DISPLAY=hostname:0.0was done.# xinitxinit: Odm keyboard id is NULL.[HANGS!]# startxPlease wait - starting your session[Nothing Happens!]# DISPLAY=tor31462:0# export DISPLAY# xclockError: Can't open display: tor31462:0# echo $DISPLAYtor31462:0## instfix -i |grep ML.........All filesets for 4330-08_AIX_ML were found.All filesets for 4330-09_AIX_ML were found.All filesets for AIX43ML were found.All filesets for 4330-10_AIX_ML were found.# rexec testaix aixterm -display tor31462:0Name (testaix:root):Password (testaix:root):1363-008 aixterm: Cannot make a connection to X server tor31462:0.If the X server is not running, run the xinit command.If the X server is running, check the specified display number.# RE: X11 not working - Can't start the X-SERVER? Yegolev (TechnicalUser) 25 Jul 02 11:00 If you are tXlib No Protocol Specified Aix
Aix Restart Sshd