Solved

Displaying a picture on another linux machine remotely.

Posted on 2006-06-14
4
385 Views
Last Modified: 2010-04-20
I have added:  "xhost +xxx.xx.xxx.xx > /dev/null" into the .bashrc of the machine I want to display the picture.  Where xxx.xx.xxx.xx is the Ip address of the machine with the picture.  

If I'm on the machine with the picture, how would I display this picture remotely on the machine with the modified .bashrc.

I have done it before but I can't remember how.
0
Comment
Question by:cameron_schuler
  • 2
4 Comments
 
LVL 15

Accepted Solution

by:
DonConsolio earned 85 total points
ID: 16908242
--------------------- display.sh ----------
:
DISPLAY=yyy.yyy.yyy.yyy:0
export DISPLAY
xv /tmp/mypicture.png
--------------------- END ----------------

0
 
LVL 51

Assisted Solution

by:ahoffmann
ahoffmann earned 40 total points
ID: 16909652
or better:
  xv -display yyy.yyy.yyy.yyy:0  /tmp/mypicture.png
0
 

Author Comment

by:cameron_schuler
ID: 16912759
I get the following error:  xv: Can't open display

Does xv have to be installed on the machine that I want the picture displayed or just on the machine I am executing the command?  If xv has to be installed is there an alternative?

Is putting the "xhost +xxx.xx.xxx.xx > /dev/null" in the .bashrc file of the user logged in enough to get this to work?
0
 

Author Comment

by:cameron_schuler
ID: 16913135
Sorry I got it to work on another machine so please ignore last comment.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
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.

861 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