LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-16-2006, 03:14 PM   #1
imag
LQ Newbie
 
Registered: Jan 2006
Posts: 19

Rep: Reputation: 0
Display a photo onto another PC


I'd like to display a photo onto the screen of another box on my lan. VNC seems like a lot of overhead for this simple task. Any other simple ways to do this or help to get me started??
Thanks.
 
Old 01-17-2006, 08:12 AM   #2
nilleso
Member
 
Registered: Nov 2004
Location: ON, CANADA
Distribution: ubuntu, RHAS, and other unmentionables
Posts: 372

Rep: Reputation: 31
I don't have a system to test on but something like this should work:

(on destination machine)
# xhost+

(on originator)
# export DISPLAY=xxx.xxx.xxx.xxx:0.0 [ip of target machine]
# xv /path/to/filename

cheers
 
Old 01-17-2006, 08:17 AM   #3
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
The XWindow system works by client-server mechanism. The server is the one who has the hardware resources (display,mouse,keyboard).
With a program using the xlib library acting as a client, you can display an image through the network using the X protocol.

So, on the client machine, you set your Xserver to be the remote machine.
Code:
export DISPLAY=remotemachine:0.0
and then you display the image.
Code:
xview image.jpg
(But you need to have access to the Xserver)

or

Code:
xon remotemachine "xview image.jpg"
which will pass the authentication to the remote machine
 
Old 01-17-2006, 08:19 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
Originally Posted by nilleso
(on destination machine)
# xhost+
By this, everybody can snoop his display, interact, run commands,.. its a bit dangerous!
Better use xon
or
xhost +allowedmachine
 
Old 01-18-2006, 10:29 AM   #5
imag
LQ Newbie
 
Registered: Jan 2006
Posts: 19

Original Poster
Rep: Reputation: 0
Yes, thanks. Here's what I've done.
Actually I've grabbed a snapshot of the screen on hostA and put it onto the screen on hostB. Makes for a nice remote slideshow.

On hostA:
$> xset IP_Address_of_hostB

Then on hostB (using Imagemagick):
$> import -display ip_address_of_hostA:0 -window root hostA_image.jpg; xloadimage -fullscreen -onroot hostA_image.jpg

Imagemagick does a whole lot of cool stuff for us command line junkies!! The xhost command is what really made it simple. Just not very secure, but for my task, was not an issue.

Thanks for all the feedback.
 
Old 02-01-2007, 05:49 PM   #6
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 44
Quote:
I'd like to display a photo onto the screen of another box on my lan. VNC seems like a lot of overhead for this simple task. Any other simple ways to do this or help to get me started??
Thanks.

Sorry to bring back an old thread but this is kind of what I want to do.

I want to open Konqueror from the command line but have it display on a remote PC.

I use SSH to connect to my Linux PCs. I can use VNC to connect to the GUI of my Linux PCs, I can start Konqueror on the remote PC using VNC but I want to be able to start Konqueror from the command line of my local PC and NOT from the command line/GUI of the remote PC. I've seen quite a few thread on this but I can' seem to get it right.


I tried to adapt these commands to my needs but it fails.

On hostA:
$> xset IP_Address_of_hostB

Then on hostB (using Imagemagick):
$> import -display ip_address_of_hostA:0 -window root hostA_image.jpg; xloadimage -fullscreen -onroot hostA_image.jpg



Can anyone point me in the right way? Thansk!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What distro to use for photo display? CCraft Linux - Software 3 01-08-2006 10:56 AM
photo view bruse Linux - Newbie 5 05-22-2005 12:16 PM
Photo Gallery zaicheke LQ Suggestions & Feedback 4 01-13-2005 09:24 PM
any photo viewer with lossless photo rotation? zecodela Linux - Software 1 10-24-2004 10:22 PM
Photo Printing CarnalPlumber Linux - Software 3 10-05-2004 02:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration