FAQ Search Today's Posts Mark Forums Read

» Linux Archive
Home
New Posts
Search
FAQ


Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 01-26-2009, 03:10 PM
Rashkae
 
Default How to run GUI admin tools remotely?

Rashkae wrote:

>
> That's a little strange. When I ran ck-launch-session by itself, it
> created a new shell instance from which I could run the services admin
> (or any other gnome gui tool.) What does the output look like if you
> run ck-launch and then do a ck-list-sessions?
>

As an aside, it would be really nice if there was, like, documentation
and such for this stuff. I wasn't really planning on spending my day
reading source code.

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 01-26-2009, 03:15 PM
Chris G
 
Default How to run GUI admin tools remotely?

On Mon, Jan 26, 2009 at 10:06:27AM -0500, Rashkae wrote:
> Chris G wrote:
>
> >>
> > Phew - we made it at last! Thanks! :-)
> >
> > It took me a little thought to realise that, after getting root on the
> > garage machine I needed to do:-
> >
> > ck-launch-session services-admin
> >
> > all as a single command, but once I'd done that I had what I wanted.
> >
>
> That's a little strange. When I ran ck-launch-session by itself, it
> created a new shell instance from which I could run the services admin
> (or any other gnome gui tool.) What does the output look like if you
> run ck-launch and then do a ck-list-sessions?
>
It tells me about all the sessions I've started and left behind:-

root@garage:~# ck-list-sessions
Session115:
uid = '1000'
realname = 'Chris,,,'
seat = 'Seat19'
session-type = '
active = FALSE
x11-display = '
x11-display-device = '
display-device = '/dev/ssh'
remote-host-name = 'home.isbd.net'
is-local = FALSE
on-since = '2009-01-26T15:05:29.778207Z'
Session116:
uid = '0'
realname = 'root'
seat = 'Seat20'
session-type = '
active = FALSE
x11-display = 'localhost:10.0'
x11-display-device = '
display-device = '/dev/pts/0'
remote-host-name = '
is-local = FALSE
on-since = '2009-01-26T15:07:30.427342Z'
Session117:
uid = '1000'
realname = 'Chris,,,'
seat = 'Seat21'
session-type = '
active = FALSE
x11-display = '
x11-display-device = '
display-device = '/dev/ssh'
remote-host-name = 'home.isbd.net'
is-local = FALSE
on-since = '2009-01-26T15:11:28.430040Z'
Session118:
uid = '0'
realname = 'root'
seat = 'Seat1'
session-type = '
active = FALSE
x11-display = '
x11-display-device = '
display-device = '/dev/pts/1'
remote-host-name = '
is-local = TRUE
on-since = '2009-01-26T15:11:51.675963Z'


When I do "ck-launch-session" nothing actually happens, nothing
appears on the screen or anything, it just returns to the prompt.

--
Chris Green

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 01-26-2009, 03:16 PM
Chris G
 
Default How to run GUI admin tools remotely?

On Mon, Jan 26, 2009 at 10:10:32AM -0500, Rashkae wrote:
> Rashkae wrote:
>
> >
> > That's a little strange. When I ran ck-launch-session by itself, it
> > created a new shell instance from which I could run the services admin
> > (or any other gnome gui tool.) What does the output look like if you
> > run ck-launch and then do a ck-list-sessions?
> >
>
> As an aside, it would be really nice if there was, like, documentation
> and such for this stuff. I wasn't really planning on spending my day
> reading source code.
>
Absolutely! No man page for ck-launch-session nor any help when you
say "ck-launch-session --help".

--
Chris Green

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 01-26-2009, 03:48 PM
Rashkae
 
Default How to run GUI admin tools remotely?

Chris G wrote:
> On Mon, Jan 26, 2009 at 10:06:27AM -0500, Rashkae wrote:
>> Chris G wrote:
>>
>>> Phew - we made it at last! Thanks! :-)
>>>
>>> It took me a little thought to realise that, after getting root on the
>>> garage machine I needed to do:-
>>>
>>> ck-launch-session services-admin
>>>
>>> all as a single command, but once I'd done that I had what I wanted.
>>>
>> That's a little strange. When I ran ck-launch-session by itself, it
>> created a new shell instance from which I could run the services admin
>> (or any other gnome gui tool.) What does the output look like if you
>> run ck-launch and then do a ck-list-sessions?
>>
> It tells me about all the sessions I've started and left behind:-
>
> root@garage:~# ck-list-sessions
> Session115:
> uid = '1000'
> realname = 'Chris,,,'
> seat = 'Seat19'
> session-type = '
> active = FALSE
> x11-display = '
> x11-display-device = '
> display-device = '/dev/ssh'
> remote-host-name = 'home.isbd.net'
> is-local = FALSE
> on-since = '2009-01-26T15:05:29.778207Z'
> Session116:
> uid = '0'
> realname = 'root'
> seat = 'Seat20'
> session-type = '
> active = FALSE
> x11-display = 'localhost:10.0'
> x11-display-device = '
> display-device = '/dev/pts/0'
> remote-host-name = '
> is-local = FALSE
> on-since = '2009-01-26T15:07:30.427342Z'
> Session117:
> uid = '1000'
> realname = 'Chris,,,'
> seat = 'Seat21'
> session-type = '
> active = FALSE
> x11-display = '
> x11-display-device = '
> display-device = '/dev/ssh'
> remote-host-name = 'home.isbd.net'
> is-local = FALSE
> on-since = '2009-01-26T15:11:28.430040Z'
> Session118:
> uid = '0'
> realname = 'root'
> seat = 'Seat1'
> session-type = '
> active = FALSE
> x11-display = '
> x11-display-device = '
> display-device = '/dev/pts/1'
> remote-host-name = '
> is-local = TRUE
> on-since = '2009-01-26T15:11:51.675963Z'
>
>
> When I do "ck-launch-session" nothing actually happens, nothing
> appears on the screen or anything, it just returns to the prompt.
>

As far as I can tell, that's what supposed to happen, but if you run
ck-list before and after, you should notice a new Session owned by
'root'. That's the point where I can then, from that shell, launch the
gui tools.

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 01-26-2009, 05:12 PM
Chris G
 
Default How to run GUI admin tools remotely?

On Mon, Jan 26, 2009 at 10:48:08AM -0500, Rashkae wrote:
> Chris G wrote:
> > Session118:
> > uid = '0'
> > realname = 'root'
> > seat = 'Seat1'
> > session-type = '
> > active = FALSE
> > x11-display = '
> > x11-display-device = '
> > display-device = '/dev/pts/1'
> > remote-host-name = '
> > is-local = TRUE
> > on-since = '2009-01-26T15:11:51.675963Z'
> >
> >
> > When I do "ck-launch-session" nothing actually happens, nothing
> > appears on the screen or anything, it just returns to the prompt.
> >
>
> As far as I can tell, that's what supposed to happen, but if you run
> ck-list before and after, you should notice a new Session owned by
> 'root'. That's the point where I can then, from that shell, launch the
> gui tools.
>
It does seem to work mostly as you say now though I'm sure it didn't
before.

This works OK:-
chris@garage:~$ sudo ck-launch-session services-admin

and this works OK:-
chris@garage:~$ sudo ck-launch-session
[sudo] password for root:
root@garage:~# services-admin

and this works:-
chris@garage:~$ sudo -s
root@garage:~# services-admin
root@garage:~#

but this doesn't:-
chris@garage:~$ su
Password:
root@garage:/home/chris# ck-launch-session
X11 connection rejected because of wrong authentication.
root@garage:/home/chris#

I'm sure I didn't get that X11 error the last time I tried it! It
still has the DISPLAY variable set correctly, I checked.

Oh well, I can get it to work so that's all I need really.

--
Chris Green

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 01-26-2009, 05:26 PM
Rashkae
 
Default How to run GUI admin tools remotely?

Chris G wrote:

>
> but this doesn't:-
> chris@garage:~$ su
> Password:
> root@garage:/home/chris# ck-launch-session
> X11 connection rejected because of wrong authentication.
> root@garage:/home/chris#
>
> I'm sure I didn't get that X11 error the last time I tried it! It
> still has the DISPLAY variable set correctly, I checked.
>
> Oh well, I can get it to work so that's all I need really.
>


That's probably the .Xauthority file issue I addressed in my first reply
to this thread. The HOME variable gets overwritten by su


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 10:59 AM.

VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org