Search code examples
linuxsshdesktoptty

Start program from terminal tty to desktop session.


I log in a remote computer trought ssh session, this computer is a Desktop computer and it have an user in the desktop, ¿how can i start a program (like skype) in the terminal and starts in the desktop?. Thanks


Solution

  • If the user on the remote desktop computer did a xhost + you could try:

    # in bash, executed on remote computer
    DISPLAY=`hostname`:0 skype
    
    # or e.g. in csh:
    env DISPLAY=`hostname`:0 skype