LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-04-2009, 03:48 PM   #1
Dims
Member
 
Registered: Feb 2009
Posts: 151

Rep: Reputation: 15
How to send popup to GNOME from ssh?


How can I send popup meage to GNOME screen if I am logged in via ssh?
 
Old 06-04-2009, 04:16 PM   #2
author_unknown
Member
 
Registered: Aug 2007
Location: Buffalo, NY
Distribution: Fedora 7, RHEL5, CentOS 5 and Backtrack 2.0
Posts: 73

Rep: Reputation: 15
i could not get wat you meant..... if you want to get a GUI after sshing into remote system use vnc server....
 
Old 06-04-2009, 04:18 PM   #3
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,578
Blog Entries: 14

Rep: Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969
You can create a dialog box from a shell script by using the zenity command.

Type "man zenity" for more details.
 
Old 06-05-2009, 05:18 AM   #4
Dims
Member
 
Registered: Feb 2009
Posts: 151

Original Poster
Rep: Reputation: 15
I guess with zenity I can create dialog box only on "my" screen, i.e., for example, via X forwarding.

But I want to send message to a guy, who is sitting in front of the screen physically, while me is on the other side of the globe.
 
Old 06-05-2009, 05:24 AM   #5
Libu
Member
 
Registered: Oct 2003
Location: Chennai
Distribution: Slackware 12.1
Posts: 165

Rep: Reputation: 36
Well you would have to get his IP. set your display to that and then when you open up any gui, that will pop up on that person's terminal. I guess this is not a solution, but you can work something out from this.
 
Old 06-05-2009, 06:02 AM   #6
Dims
Member
 
Registered: Feb 2009
Posts: 151

Original Poster
Rep: Reputation: 15
His IP is the IP of the machine, since he is physically in fron of the screen.

How can I change my display to that?
 
Old 06-05-2009, 08:42 AM   #7
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,578
Blog Entries: 14

Rep: Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969
DISPLAY on the console is likely set to :0.0 so if you type:

Code:
export DISPLAY=:0.0
Then run the zenity command it should send it to his diplay. I just did a test of that using a PuTTY window on my Windows XP laptop and it opened the dialog box to the Gnome desktop on my Linux workstation.

You can verify his display by finding any of his gnome processes and looking at that process' environment:

e.g.
ps -ef |grep gnome
jlightne 11271 1 0 08:33 ? 00:00:00 /usr/libexec/gnome-vfs-daemon
jlightne 11308 11081 0 08:39 pts/2 00:00:00 grep gnome
jlightne 19183 3451 0 Apr15 ? 00:00:00 /usr/bin/gnome-session
jlightne 19258 1 0 Apr15 ? 00:00:00 /usr/bin/gnome-keyring-daemon
jlightne 19260 1 0 Apr15 ? 00:00:09 /usr/libexec/gnome-settings-daemon
jlightne 19277 1 0 Apr15 ? 00:00:18 gnome-panel --sm-config-prefix /gnome-panel-0aBbdG/ --sm-client-id 117f000001000115333758800000024050001 --screen 0
jlightne 19284 1 0 Apr15 ? 00:00:00 gnome-volume-manager --sm-config-prefix /gnome-volume-manager-U2nD3C/ --sm-client-id 117f000001000115333758800000024050002 --screen 0
jlightne 19294 1 0 Apr15 ? 00:00:00 /usr/libexec/gnome-vfs-daemon
jlightne 19324 1 0 Apr15 ? 00:02:34 gnome-power-manager
jlightne 19411 1 0 Apr15 ? 00:00:25 gnome-screensaver

I picked the gnome-panel process which has PID 19277 so checked it:

Code:
strings /proc/19277/environ |grep DISPLAY
This output:
DISPLAY=:0.0
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unlike KDE, isnt it annoying you that ESC do no close popup windows in GNOME? frenchn00b Linux - General 0 10-20-2008 03:16 PM
Send popup message to Windows computer Snouser Linux - Software 5 08-02-2008 06:54 PM
No popup battery warning on Gnome/Ubuntu 6.10? ArgentSilver Linux - Laptop and Netbook 4 01-15-2007 06:41 PM
send popup messages naveentpr Linux - General 3 12-15-2003 01:23 AM
howto create a popup-menu on gnome-panel ? leukozyt Linux - General 1 11-16-2003 03:35 AM


All times are GMT -5. The time now is 08:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration