LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 03-07-2007, 04:32 PM   #1
cptwngr
LQ Newbie
 
Registered: Aug 2006
Posts: 3

Rep: Reputation: 0
kubuntu allow remote x application


I need to be able to set displays back to my local machine and run applications. This seems to be disabled in kubuntu and I can't find where to make the change.

Typical scenario:
Run xhost + on my machine
ssh into a remote machine
export DISPLAY=myipaddy:0.0
start remote app.

GNOME has a config for this in GDM I think but I can't find the equivalent in KDE.

I have changed my ssh_config to allow X11 forwarding.

Any ideas?
 
Old 03-08-2007, 01:12 AM   #2
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
You mean start a application remotely and have it appear on the box you ssh in to?
if so then you run
Code:
xhost +
from the target box, then just ssh in and set the display to ":0.0"

If you mean you want to run an application from a remote system, and have it appear on your system, so you control it remotely, then you don't set the display to myip:0.0 or use xhost, you just ssh in with
Code:
ssh -X user@host
the display will automatically be set. Then you can start an app from a remote location, and have to appear on the box you are logged in to.
 
Old 03-08-2007, 09:13 PM   #3
cptwngr
LQ Newbie
 
Registered: Aug 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Sudo

I don't think that is going to work for me since I have to su into a password less account. I'll keep digging, it has to be something simple, I've been doing this on all kinds of *nix for years.
 
Old 03-12-2007, 07:12 PM   #4
cptwngr
LQ Newbie
 
Registered: Aug 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Problem Solved

http://raetsel.wordpress.com/tag/kubuntu/

"I found that I had to configure KDM in Kubuntu to listen on the network to accept connections to run X. Simply setting the DISPLAY variable on the remote system, typing xhost + on the local system and then running the X application on the remote system would not work.

The key file is /etc/kde3/kdm/kdmrc

In there is a line that says:-

ServerArgsLocal=-nolisten tcp

Just comment this out by putting a # in front of the line and restart X by logging out and back in again."
 
Old 07-06-2007, 11:42 AM   #5
lefty.crupps
Member
 
Registered: Apr 2005
Location: Minneap USA
Distribution: Debian, Mepis, Sidux
Posts: 470

Rep: Reputation: 32
i'm looking for something similar...

I have Kubuntu 7.04

I want to ssh in from work and launch a graphical app on my home desktop (gaim chat) so that it just sits in the tray (or is on-screen, I don't care) at home. I don't want to forward X11, nor control it remotely, nor see the application. I just want the app running at home on display :0 so that people can leave me a chat message on my home machine.

does this thread address that? Or should I start a new thread?
 
Old 07-06-2007, 06:15 PM   #6
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
you should just be able to start the app like this:
Code:
user1@remote:~$ ssh user2@local
user2@local's password:
user2@local:~$ DISPLAY=:0 gaim &
user2@local:~$ logout
Connection to local closed.
user1@remote:~$
 
Old 04-18-2008, 05:03 AM   #7
blietaer
LQ Newbie
 
Registered: Dec 2003
Location: Brussels
Distribution: Debian
Posts: 22

Rep: Reputation: 0
cptwngr> this helped me a lot today!!!
thanx
 
  


Reply

Tags
kubuntu, remote, ssh, x11


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
local X server, remote application frankie_DJ Linux - Newbie 6 06-14-2006 11:00 PM
kubuntu: problem building QT4 application eantoranz Ubuntu 1 01-23-2006 12:39 PM
Running remote application through SSH tuananhbirm Linux - General 1 11-15-2005 03:42 AM
Remote X Application camlopez Suse/Novell 2 05-13-2005 03:17 AM
Connecting remote X-application Musikolo Linux - Software 1 11-09-2004 07:37 PM


All times are GMT -5. The time now is 11:31 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration