Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

how to setup xterm on GNU LINUX

Posted on 2011-04-23
9
Medium Priority
?
2,890 Views
Last Modified: 2012-05-11
Hi Folks,

I have been trying to setup xterm with GNU LINUX and searched internet but couldn't find any simple and lucid instructions.What i have understood is if i setup Xterm, i would be able to see the GUI of a software product running on Server.

What i mean is, if I have xterm setup and i run Siteminder agent script to install siteminder on LINUX server (which i access through putty) would pop up the GUI display of the siteminder Product on my Windows laptop and then i call interact and click buttons on the GUI and it will connected to server and install the software. This way its would be lot easier to install it.


What i have done is, Installed cygwin X and under that i see a lots of icons such as X win server,xman,xmh,xterm, etc.

I click on X win server and it pop ups a new white window.
Then, i login to the LINUX server through putty have X11 forwarding option  checked.
and then try to run the script but it doesnt through any window.

Could you please help, how this can be achieved?

Thank you,
Joe
0
Comment
Question by:jayatallen
  • 5
  • 4
9 Comments
 
LVL 38

Expert Comment

by:wesly_chen
ID: 35454717
Which GNU Linux server do you have?  Ubuntu/Debian or Fedora/RedHat/CentOS?
Ubuntu/Debian
# sudo apt-get install xorg

Fedora/RedHat/CentOS
$ su -
# yum install xorg

You need is install X-window server, which is xorg.
0
 

Author Comment

by:jayatallen
ID: 35454820
Hi Chen,

when i do uname i see this. Not sure how i can find if its debian or anything. Could you please if there is any to find it.
# uname -a
Linux devsho-ibdrm01 2.6.18-194.3.1.el5 #1 SMP Sun May 2 04:17:42 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

thank you
0
 
LVL 38

Expert Comment

by:wesly_chen
ID: 35454828
> 2.6.18-194.3.1.el5
It is RedHat Enterprise Linux or CentOS 5
Please run
# cat /etc/redhat-release

0
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
LVL 38

Expert Comment

by:wesly_chen
ID: 35454888
If "cat /etc/redhat-release" show
CentOS release 5.x

The you can run (as root)
# yum install xorg-x11-server-Xorg

to install X-windows server, which will give you ability use cygwin-X to connect and launch xterm.
0
 

Author Comment

by:jayatallen
ID: 35454902
thank you chen for the command.

# cat redhat-release
Red Hat Enterprise Linux Server release 5.5 (Tikanga)

I dont have access to thing machine as root. Is there any way i can find if X11 is already installed?
I think it should be but dont know how to check.
0
 
LVL 38

Expert Comment

by:wesly_chen
ID: 35454915
> Is there any way i can find if X11 is already installed?
$ rpm -qa | grep -i xorg
Use rpm to see the xorg package installed or not
0
 

Author Comment

by:jayatallen
ID: 35454961
i think its installed.
# rpm -qa | grep -i xorg
xorg-x11-filesystem-7.1-2.fc6.noarch
xorg-x11-xauth-1.0.1-2.1.x86_64

I have tried using xming and putty to get this working:
1) ran start->xming->xlaunch
2) In, putty checked x11 forwarding and in front of "x display location" entered :0.0.

then i connect to linux box and run the guI application but its not working...
getting below error:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.

am i doing in right way?


0
 
LVL 38

Accepted Solution

by:
wesly_chen earned 1000 total points
ID: 35454977
1. putty doesn't contain X11 package. Please use cygwin-X as you mentioned in the question.

2.
> xorg-x11-filesystem-7.1-2.fc6.noarch
> xorg-x11-xauth-1.0.1-2.1.x86_64
Not enough.
Your system doesn't have xorg-x11-server, which is required.
Here is the result I have from my CentOS 5, those packages in the list are basic for X-window to function.

# yum groupinfo 'X Window System'

Group: X Window System
 Description: Install this group of packages to use the base graphical (X) user interface.
 Mandatory Packages:
   xorg-x11-server-Xorg
   xorg-x11-fonts-misc
   xorg-x11-fonts-ISO8859-1-75dpi
   xorg-x11-fonts-100dpi
   xorg-x11-fonts-75dpi
   xorg-x11-xauth
   desktop-backgrounds-basic
   xorg-x11-fonts-ISO8859-1-100dpi
   xorg-x11-xinit
   xorg-x11-fonts-Type1
   xorg-x11-xfs
   xorg-x11-fonts-truetype
   bitmap-fonts
   xorg-x11-drivers

3. Please get the sudo or root permssion to install xorg-x11-server-Xorg. Otherwise you can not run xterm.
# yum install xorg-x11-server-Xorg
0
 

Author Comment

by:jayatallen
ID: 35457753
thank you chen for your guidence. atleast now i know what needs to be done.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month20 days, 23 hours left to enroll

810 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