LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-15-2006, 10:41 AM   #1
doublejoon
Member
 
Registered: Oct 2003
Location: King George, VA
Distribution: RHEL/CentOS/Scientific/Fedora, LinuxMint
Posts: 370

Rep: Reputation: 44
Remote Display


I want to pop up a message on a remote machine using "xmessage" kinda like Windows Messenger does

I tried this thru ssh -Y and -X options but the xmessage window is displayed back to me (which I dont want)

I am Disallowing TCP connections to the remote X-Server boxes (I am not allowed to change this). So resetting and exporting DISPLAY is not an option


Is there another way to do this this is what I have been doing

Code:
ssh -l user1@linux1; xmessage -fg black -bg-white -file messagefile -timeout 600&

previously when I had X allowing TCP connnections this actually worked

Code:
ssh -l user1@linux1; " DISPLAY=linux1:0.0; export DISPLAY; xmessage -fg black -bg-white -file messagefile -timeout 600&"

oh yeah.....I'm running this on RHEL4/CentOS boxes

Last edited by doublejoon; 06-15-2006 at 10:43 AM.
 
Old 06-15-2006, 02:27 PM   #2
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
The zenity utility (supplied with GNOME) lets you pop up message/dialog boxes on desktops - it's specifically there to allow scripts to interact with the GNOME desktop. It has a man page that covers the options etc.

You could use SSH to run zenity commands on the remote systems.

HTH

Last edited by hob; 06-15-2006 at 02:29 PM.
 
Old 06-16-2006, 06:27 AM   #3
doublejoon
Member
 
Registered: Oct 2003
Location: King George, VA
Distribution: RHEL/CentOS/Scientific/Fedora, LinuxMint
Posts: 370

Original Poster
Rep: Reputation: 44
Thanx!! I will take a look at this.....this may be the solution
 
Old 06-19-2006, 06:56 AM   #4
doublejoon
Member
 
Registered: Oct 2003
Location: King George, VA
Distribution: RHEL/CentOS/Scientific/Fedora, LinuxMint
Posts: 370

Original Poster
Rep: Reputation: 44
Well it turns out that zenity itself was not the solution. It put me in the same boat....Zenity seemed to be xmessage with more features.....not solving my remote display issue

However I was able to figure out my problem ...this is what I did




Code:
ssh -l user1@linux1;  export DISPLAY=:0.&& xmessage -fg black -bg-white -file messagefile -timeout 600&
or If I wanted to use zenity


Code:
ssh -l user1@linux1;  export DISPLAY=:0.&& zenity --info --text="this is a test"

This worked flawlessy....for just about any gui application.....popped up on the remote display instead of back to me the way ssh normally forwards X
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Viewing remote X display dxdad Linux - Networking 4 10-30-2004 11:19 PM
remote x via xdm and display xapm charliema Linux - Laptop and Netbook 0 08-25-2004 03:56 PM
Improving Remote X Display performance fisher99 Linux - Software 0 05-23-2004 01:30 PM
How to use display in remote using x-win32 in windows visu Linux - Newbie 1 03-18-2004 12:03 PM
xinetd, remote X display, hosts.allow fgeter Linux - Security 0 01-12-2003 10:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:01 AM.

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