The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
kill user session fsmadi SUN Solaris 10 08-04-2007 06:44 AM
sftp problem with user id of no telnet session allowed superdougl UNIX for Advanced & Expert Users 2 10-30-2006 07:28 AM
Deleting a user session jbrubaker UNIX for Dummies Questions & Answers 7 07-06-2006 09:01 AM
User login session Docboyeee UNIX for Advanced & Expert Users 1 11-10-2002 04:12 PM
making the application session independent bokhari_jawad Filesystems, Disks and Memory 2 11-06-2002 09:03 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 08-05-2008
Sivaswami's Avatar
Registered User
 

Join Date: Mar 2007
Location: India
Posts: 58
Launch application in gnome session of another user.

A gnome session is launched by UserA of System A, I am connected to userB of System B(or A) through PUTTY. I want to launch an application for eg: gedit through Putty in the display of system A. how can I achieve this.
for eg:-
root is logged in to System A, with gdm.
DISPLAY=0.0, ip = aa.aa.aa.aa

User Sivam is logged into putty console.
He has to launch gnome-terminal in root's session using putty..

what are the configurations steps to be taken.
Reply With Quote
Forum Sponsor
  #2  
Old 08-05-2008
ynilesh's Avatar
Registered User
 

Join Date: Oct 2007
Location: Bangalore, India.
Posts: 174
Did you try to use different DISPLAY? Set different display on second console and try like DISPLAY=0:1
Reply With Quote
  #3  
Old 08-05-2008
Registered User
 

Join Date: Aug 2008
Location: Portugal
Posts: 212
Try doing:

su - USER_A -c "xauth add `xauth list :0.0`; DISPLAY=:0.0 program-you-wish-to-launch"
Reply With Quote
  #4  
Old 08-06-2008
Sivaswami's Avatar
Registered User
 

Join Date: Mar 2007
Location: India
Posts: 58
how about using ssh with another machine ( user on another machine ) and launching an application from that.
Reply With Quote
  #5  
Old 08-06-2008
Registered User
 

Join Date: Aug 2008
Location: Portugal
Posts: 212
If X is running on the machine where you ssh to:

Code:
DISPLAY=:0.0 XAUTHORITY=/home/user_running_X_on_the_display/.Xauthority your-program
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
gnome another user putty x display

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:40 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0