473,503 Members | 1,877 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Running xclock - Setting the Display in Linux

3 New Member
Hello,

I am trying to get xclock to display on my Windows XP machine so that I can then move to installation of another application. However, I have been stuck since a very long time now.

I have also set the server IP address in the X0 hosts file on my Windows machine. So the file now reads:
localhost
<Server IP>

I have installed Xming on my Windows machine. So the steps I do are as follows:

1. Start xMing.
2. Start xLaunch.
2a. Select Multiple Windows. Click Next.
2b. Start No Client. Click Next.
2c. Clipboard is checked. Click Next.
2d. Click Finish
3. can see the Xmin Server icon in my taskbar.
4. Now I start putty
4a. Give the host name as "myhostname.com"
4b. The port by default is 22
4c. SSH radio button is selected
4d. Close Window on Clean exit is selected
4e. Click Open
5. Command prompt
6. login as : I enter "root"
7. Enter password
8. I see the last login details and then I see
root@server [~]#
9. Which shell am I using:
root@server [~]# echo $SHELL
/bin/bash
10. Then I run the following commands
root@server [~]# DISPLAY=<my ip>:0.0
root@server [~]# export DISPLAY
root@server [~]# echo $DISPLAY
<my ip>:0.0
root@server [~]# xclock
Error: Can't open display: <my ip>:0.0
11. I ran the xhost command:
root@server [~]# xhost +
xhost: unable to open display: <my ip>:0.0

Totally stuck now. Dont know what to do.

If there is some other freeware software that I should use other than Xming, then please let me know that also.

Regards,
Bonson Mampilli
Dec 25 '11 #1
5 64050
rski
700 Recognized Expert Contributor
Under Connection->SSH->X11 branch select "Enable X11 forwarding"
Dec 29 '11 #2
bonson mampilli
3 New Member
Hello,

Thank you very much for the response. Now the error "xhost: unable to open display: <my ip>:0.0" is not coming. :o)

However, I xclock is not poping up. :o(

Just wanted to confirm the following configuration:
Under Connection->SSH->X11 branch the following are the settings:
Enable XX1 forwarding (Checked)
X Display Location (Blank)

Remote X11 authentication protocol
- MIT-Magic-Cookie-1 (Selected)
- XDM-Authorization-1 (Unselected)
x Authority file for local display (Blank)

Is this correct? Do I need to do anything else?

Thanks again for responding

Regards
Bonson
Dec 30 '11 #3
bonson mampilli
3 New Member
Just to add.. after waiting for 15 minutes or so.. now xclock has returned the error "Error: Can't open display: <my ip>:0.0"
Dec 30 '11 #4
jabbah
63 New Member
are you sure you have to set the DISPLAY variable on the server? my experience with windows is a bit dusty but sitting at my linux desktop i only do
Expand|Select|Wrap|Line Numbers
  1. joe@desktop:~$ ssh -Y user@server
  2. [user@server ~] $ echo $DISPLAY 
  3. localhost:22.0
  4. [user@server ~] $ xclock
and it works fine. every time i do this i get a different DISPLAY number so i guess ssh (or putty in your case) is taking care of this.

can you forward the xclock from one unix box to another?
does the x server work locally? have you tried as non-root? maybe there are some extra restrictions regarding x11/port forwarding for root?
Jan 13 '12 #5
sdadesky
1 New Member
I had this same problem. Went crazy looking for solution.

What is the icon for a sheepish grin? In my case, I simply had to activate MING before launching Putty. I had been under the impression that Putty would automatically activate MING. This is not the case.

Hope this helps some other poor schmucks.
Jan 11 '14 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
2569
by: xunil | last post by:
hi, could any one please help show me how to run a python script in linux ? when i try "python script.py" it just does nothing this is the script iam trying to run #!/usr/bin/env python...
0
1788
by: Scott | last post by:
Hi, I'm having a problem with a new machine running Mysql version 4.0.18 on the AMD64 version of Mandrake 10.0. The new machine has got 64bit AMD processor and 2GB of RAM. Nearly all...
6
8282
by: Scott Simpson | last post by:
What is a good tool for running XPath queries on Linux? I have the O'Reilly XPath book and I'm using XPath Visualizer on Windows and that seems to work fine, but I'm looking for something on Linux....
5
14979
by: PJ6 | last post by:
When I call this function (I verified that I'm actually getting an element with the id), why does IE ignore my attempt to set the display to none? <script> function test(id) { elem =...
3
5112
by: mairhtin o'feannag | last post by:
Hello, Since DB2 Cluster Certification Guide is out of print and I cannot seem to get my hands on a copy, is there a publication that would give me a "cookbook" approach to setting up a cluster...
1
1715
by: Readon Shaw | last post by:
it is reported that: pc : lr : Not tainted sp : bffffbac ip : bffffbac fp : bffffbbc r10: 400d4ef4 r9 : 00000000 r8 : 0207f198 r7 : 000000b1 r6 : 0209d898 r5 : 00000000 r4 :...
6
3434
by: Franz Steinhaeusler | last post by:
Hello NG, a little longer question, I'm working on our project DrPython and try fix bugs in Linux, (on windows, it works very good now with latin-1 encoding). On Windows, it works good now,...
8
2801
by: Okonita | last post by:
Hi all, I have gone through the process of installing DB2 UDBv9 Express-C in my local linux environment. I am used to having icon placed on my Desktop or taskbar for easy access to (db2cc)...
0
1968
by: craig caster | last post by:
Has anyone gotten PyAMF to run on python2.6 running on an ARM9 processor?
0
7204
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7282
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6998
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7464
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5586
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5018
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3171
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3162
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
741
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.