how to setup xterm on GNU LINUX

Posted on 2011-04-23
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,
Question by:jayatallen
    LVL 38

    Expert Comment

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

    $ su -
    # yum install xorg

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

    Author Comment

    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
    LVL 38

    Expert Comment

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

    LVL 38

    Expert Comment

    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.

    Author Comment

    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.
    LVL 38

    Expert Comment

    > 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

    Author Comment

    i think its installed.
    # rpm -qa | grep -i xorg

    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?

    LVL 38

    Accepted Solution

    1. putty doesn't contain X11 package. Please use cygwin-X as you mentioned in the question.

    > 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:

    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

    Author Comment

    thank you chen for your guidence. atleast now i know what needs to be done.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
    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…
    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.:
    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…

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now