Solved

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

Posted on 2011-03-04
8
954 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 250 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 125 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
Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

 

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 125 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 250 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

691 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