Launch application in gnome session of another user.


 
Thread Tools Search this Thread
Operating Systems Linux Launch application in gnome session of another user.
# 1  
Old 08-05-2008
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.
# 2  
Old 08-05-2008
Did you try to use different DISPLAY? Set different display on second console and try like DISPLAY=0:1
# 3  
Old 08-05-2008
Try doing:

su - USER_A -c "xauth add `xauth list :0.0`; DISPLAY=:0.0 program-you-wish-to-launch"
# 4  
Old 08-06-2008
how about using ssh with another machine ( user on another machine ) and launching an application from that.
# 5  
Old 08-06-2008
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

Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How are environment variables defined in a Gnome terminal session?

Hello... and thanks in advance for any help anyone can offer me with my question! I'm hoping someone will have a little patience with me and walk me through this! I'm trying to understand a user login process on Centos 7 and I've gotten a bit confused trying to figure out when/how a Gnome... (4 Replies)
Discussion started by: bodisha
4 Replies

2. Shell Programming and Scripting

Cannot get terminal application to launch with a graphical launcher when successful in terminal

I have been having an extremely annoying problem. For the record, I am relatively new at this. I've only been working with unix-based OS's for roughly two years, mostly Xubuntu and some Kali. I am pretty familiar with the BASH language, as that's the default shell for debian. Now, I've made this... (16 Replies)
Discussion started by: Huitzilopochtli
16 Replies

3. Debian

Gnome session reverts back to gdm on login.

Hi everyone. I just had a quick problem. I'm not too familiar with linux yet, otherwise I'd have this figured out by now. I recently did the Debian 5lenny7 update with the standard debian update manager. After getting all installed and rebooted, I tried to login to my account again. Every... (3 Replies)
Discussion started by: runfaj
3 Replies

4. UNIX for Dummies Questions & Answers

Launch application in background

Hi, I would launch a script in background. I've tried in this way: But it doesn't work. The sh launch a java application. How can I solve? Thanks, bye bye. (7 Replies)
Discussion started by: abdujaparov
7 Replies

5. Shell Programming and Scripting

launch vnc session from unix shell script

Hi All, OS:AIX 64 bits Would like to know what is the command to launch vnc session from unix shell script so that Reports server is started from vnc session which should be launched from within the shell script. Thanks for your time! Regards, (0 Replies)
Discussion started by: a1_win
0 Replies

6. Solaris

I am not able to login in gnome session and java session in Sun solaris 9& 10

I am not able to login in gnome session and java session in Sun solaris 9& 10 respectively through xmanager as a nis user, I am able to login in common desktop , but gnome session its not allowing , when I have given login credentials, its coming back to login screen, what shoul I do to allow nis... (0 Replies)
Discussion started by: durgaprasadr13
0 Replies

7. Filesystems, Disks and Memory

making the application session independent

Hi all, I am actually new to Unix programming and this is my first question to this forum. I have an application and i want it to run independent of the command shell. For example, i run the application from a telnet session. But when i close my session, application is terminated. I just... (2 Replies)
Discussion started by: bokhari_jawad
2 Replies
Login or Register to Ask a Question