AIXThis forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
"cannot open display" is usually an indication you're trying to open an X Windows (GUI) version of something.
I don't work on AIX but it may be whatever it is using for vi has both a character based (CLI) version and a GUI version (vim/gvim due for Linux). Often if this is the case any time it sees the DISPLAY variable set it automatically tries to use the GUI.
Type "echo $DISPLAY" to see if your DISPLAY variable is set. If so you can try doing "unset DISPLAY" to get rid of it and retry vi to see if it launches the character based version.
If you WANT the GUI version then you'd need to work on insuring you have X Windows (or emulator) running on the workstation you're trying to display back to AND insure you have some method of getting X Windows back to it (e.g. opening ports in the 6000 range or using ssh X tunneling).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.