?
Solved

Centos 5.3: x terminal: how to configure so remote sessions could call xclock?

Posted on 2011-03-04
8
Medium Priority
?
960 Views
Last Modified: 2012-05-11
Hello Experts,

Centos 5.3: x terminal: how to configure so remote sessions could call xclock?

thanks experts,
regards,
0
Comment
Question by:epifanio67
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 10

Accepted Solution

by:
Martin_J_Parker earned 1000 total points
ID: 35038439
Do you mean that you want other machines to be able to start up xclock displaying on your x-terminal?

Assuming you have a gnome session running on your Xterminal you will first need to run:
   gdmsetup
Select Security tab and see if the following setting is "checked":
"Always disallow TCP connections to X server (disables all remote connections)"
If it is set then take the 'tick' off, and restart the gnome session (either log out and in again or use CTRL-ALT-Backspace).

Once that setting is completed, you will need to type "xhost +" in a terminal on your xterminal.
That will give permission for X applications from other logins/servers to display on your xterminal.

Finally, they should be able to display on your machine with the command "xclock -display your-xterminal-name:0.0" (assuming it is set up as :0.0).

You don't have to give the -display flag every time if you set the DISPLAY environment variable first:
DISPLAY=your-xterminal-name:0.0
export DISPLAY
xclock

If you start a terminal on your machine and type "echo $DISPLAY" it will probably tell you what the correct display name is.

Note - you will need to repeat the "xhost +" command every time you log in to the gnome session.
0
 

Author Comment

by:epifanio67
ID: 35039117
thank you expert,

I have servers collocated at an IDC... the servers do not have gnome... I want to allow users to remotely install apps with the capability of using GUIs.... see what I mean?

thanks so much for all of your help...

regards,
0
 
LVL 31

Assisted Solution

by:farzanj
farzanj earned 500 total points
ID: 35039140
You don't need to setup your DISPLAY etc, manually.  All you need is
ssh -Y domain.com

If you need a x-session, consider setting up vnc server.
http://wiki.centos.org/HowTos/VNC-Server
0
What Is Blockchain Technology?

Blockchain is a technology that underpins the success of Bitcoin and other digital currencies, but it has uses far beyond finance. Learn how blockchain works and why it is proving disruptive to other areas of IT.

 

Author Comment

by:epifanio67
ID: 35039186
thank you Farzani,

I am using Putty...
where do I run this command?
ssh -Y myserver.com?

or where do I add -Y param to Putty prior to connect to the server?

thanks,

0
 
LVL 12

Assisted Solution

by:mccracky
mccracky earned 500 total points
ID: 35039603
If you are using Putty from Windows, you need an X-Server on your Windows box.  If you are just using ssh from another Linux box, then you just need to install (on the CentOS box xeyes which should pull in all the needed dependencies to get things to work and then just use the above command when you log in with ssh (ssh -Y user@box)

For an Xserver for Windows you can try Xming: http://sourceforge.net/projects/xming/
0
 
LVL 31

Expert Comment

by:farzanj
ID: 35039642
You can use vnc viewer from Windows as well.  You will have to setup vnc server on Linux though.
0
 
LVL 10

Assisted Solution

by:Martin_J_Parker
Martin_J_Parker earned 1000 total points
ID: 35039743
Another option for an X Server on PC is Cygwin http://www.cygwin.com/ - and that will give you a set of Linux commands as well, including ssh

As farzanj says, vnc is another good option - and probably easier to set up - see http://bobpeers.com/linux/vnc
If you want to go the vnc route, on the PC end I would recommend Ultra VNC http://www.uvnc.com/ as that supports XP, Vista, Win 7 and both 32bit and 64bit versions.
0
 

Author Closing Comment

by:epifanio67
ID: 35040796
thank you experts....
0

Featured Post

Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month13 days, 21 hours left to enroll

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question