Solved

Displaying a picture on another linux machine remotely.

Posted on 2006-06-14
4
386 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
[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
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

735 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