![]() |
Installing xhost on RH
I have been following tutorial:
https://wiki.archlinux.org/index.php/SSH in order to try and get gvim working with SSH forwarding. When I run 'gvim', I get: Quote:
So I search for 'xhost rpm package' and come to this link: http://pkgs.org/centos-5-rhel-5/cent....i386.rpm.html After I download and try to install the package, I get dependencies errors: Quote:
Quote:
ANy help would be much appreciated! gvanto |
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:
In any case you can find what package provides xhost with the following command: Code:
yum whatprovides "*/xhost"Then do: Code:
yum install xorg-x11-server-utils |
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:
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: Quote:
|
oh yes and I've checked the version:
Quote:
|
Got it working! Had to restart the sshd service:
http://www.starnet.com/xwin32kb/restart_sshd Thanks much guys! OK, now where to find default vimrc location. Probably need to get zshenv going ... :-) |
RHEL5 has 2.6.18, but that's not a stock kernel - all of -028stab064.8-ent is weird. 4.1.2 refers to the version of gcc used to build the kernel.
|
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. Regards, Evo2. |
Thanks evo2, got it sorted.
|
Quote:
Cheers, Evo2. PS. Please use the "thread tools" to mark the thread as "solved". |
Was just using 'xhost +' command (not sure it helped) because the above tutorial said to do that in case of Display problems (see my prev post).
ok, will mark as solved, thanks ! |
| All times are GMT -5. The time now is 01:28 AM. |