Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
in order to try and get gvim working with SSH forwarding.
When I run 'gvim', I get:
Quote:
[02:53:12][root@host:/home]# gvim
E233: cannot open display
According to the above tutorial, I need to run 'xhost +', but to my disappointment, 'xhost' command does not exist.
So I search for 'xhost rpm package' and come to this link:
After I download and try to install the package, I get dependencies errors:
Quote:
[03:10:04][root@host:/home]# rpm -ivh xorg-x11-server-utils-7.1-5.el5_6.1.i386.rpm
warning: xorg-x11-server-utils-7.1-5.el5_6.1.i386.rpm: V3 DSA signature: NOKEY, key ID e8562897
error: Failed dependencies:
filesystem >= 2.3.7-1 is needed by xorg-x11-server-utils-7.1-5.el5_6.1.i386
libXau.so.6 is needed by xorg-x11-server-utils-7.1-5.el5_6.1.i386
libXfontcache.so.1 is needed by xorg-x11-server-utils-7.1-5.el5_6.1.i386
libc.so.6(GLIBC_2.4) is needed by xorg-x11-server-utils-7.1-5.el5_6.1.i386
rtld(GNU_HASH) is needed by xorg-x11-server-utils-7.1-5.el5_6.1.i386
I normally use Ubuntu and find that dependencies are taken care of themselves mostly, is there a way to perhaps update my repositories or something to include 'newer' packages like 'xhost'? (so that dependencies can take care of themselves)?
Quote:
[03:10:11][root@host:/home]# yum search xhost
Searching Packages:
Setting up repositories
update 100% |=========================| 951 B 00:00
rpmforge 100% |=========================| 1.1 kB 00:00
base 100% |=========================| 1.1 kB 00:03
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
No Matches found
[03:20:25][root@host:/home]#
What version of RHEL are you using? I hope it's 5, since you downloaded a CentOS 5 package, but if that was true then the base dependencies would have worked. It looks like you're on RHEL 4 - iirc - from the lack of rtld(GNU_HASH). But then you use yum, which isn't available on RHEL 4. Is this really CentOS 4?
Quote:
I normally use Ubuntu and find that dependencies are taken care of themselves mostly
Part of the problem is that you tried to use rpm instead of yum. That's like using dpkg instead of apt-get. rpm doesn't take care of dependencies for you.
In any case you can find what package provides xhost with the following command:
Code:
yum whatprovides "*/xhost"
It's probably called xorg-x11-server-utils.
Then do:
Thanks much Alucard! I had no idea about this whatprovides feature, seems like a v useful one ...
Making progress - got xhost installed, installed xclock in the same fashion
Still getting error with display 'Cant open display' error when trying to open gvim
Quote:
Error: Can't open display:
My putty event log shows that I X11 forwarding has been 'refused' ...
There must be a way to configure the host to be in the 'allowed to X-forward' list on the server somewhere, will try to find it ...
I've been following this: https://wiki.archlinux.org/index.php/SSH and it says to run 'xhost +' in case of display errors, only running that gives me another display problem:
You shouldn't need to use xhost. Are you sure you enabled X11 forwarding in the server config file? And did you use the "-Y" flag when you ran the ssh client?
It may also be a good idea to run the ssh client with the "-v" flag to see what is going on.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.