[07:17] <alecw1> :)
[07:17] <jrib> hi
[07:17] <alecw1> jrib, to start an X session I do: ssh -X user@ip
[07:17] <alecw1> right?
[07:17] <jrib> are you in X now?
[07:17] <alecw1> yes
[07:18] <jrib> alright, in a terminal, type 'echo $DISPLAY'
[07:18] <alecw1> caitlin@caitlin-laptop:~$ echo $DISPLAY
[07:18] <alecw1> localhost:10.0
[07:18] <alecw1> that's what I got.
[07:19] <jrib> k, that is how things figure out where the X server is running
[07:19] <jrib> or which you want to use
[07:19] <alecw1> mmk
[07:19] <jrib> you can start new screens
[07:19] <alecw1> cool. How do I lock THAT screen?
[07:20] <jrib> well if you were to login via ssh into your laptop you'll notice DISPLAY isn't set
[07:20] <jrib> so you would 'export DISPLAY=:10.0' first
[07:20] <alecw1> alecwh@aleclaptop:~$ echo $DISPLAY
[07:20] <alecw1> :0.0
[07:20] <alecw1> that's what I get locally
[07:20] <jrib> k
[07:20] <jrib> then set it to that
[07:20] <jrib> 'export DISPLAY=:0.0'
[07:20] <alecw1> in SSH or my local terminal?
[07:21] <jrib> in ssh
[07:21] <alecw1> ok
[07:21] <jrib> since locally it's already set
[07:21] <alecw1> o
[07:21] <alecw1> done
[07:21] <alecw1> now?
[07:21] <jrib> k, now do: gnome-screensaver-command --help | grep -i lock
[07:21] <jrib> that should tell you the switch you need to lock the screen
[07:22] <alecw1> caitlin@caitlin-laptop:~$ gnome-screensaver-command --help | grep -i lock
[07:22] <alecw1>   -l, --lock                 Tells the running screensaver process to lock the screen immediately
[07:22] <alecw1>   -i, --inhibit              Inhibit the screensaver from activating.  Command blocks while inhibit is active.
[07:22] <alecw1> so, --lock ?
[07:22] <jrib> k, now do 'gnome-screensaver-command -l'
[07:22] <jrib> sure
[07:22] <alecw1> locally or SSH
[07:22] <jrib> ssh
[07:22] <jrib> both would work, but you asked about doing it over ssh, so this way we can make sure it works
[07:23] <alecw1> caitlin@caitlin-laptop:~$ gnome-screensaver-command -l
[07:23] <alecw1> ** Message: Screensaver is not running!
[07:23] <alecw1> :(
[07:23] <jrib> you use gnome?
[07:23] <alecw1> yes
[07:23] <jrib> see if it works locally
[07:24] <alecw1> yup, it does.
[07:25] <alecw1> caitlin@caitlin-laptop:~$ gnome-screensaver-command --lock
[07:25] <alecw1> ** Message: Screensaver is not running!
[07:25] <alecw1> that doesn't work either.
[07:25] <jrib> quick question, why do you want to do this?  The employee can just enter his password anyway
[07:26] <alecw1> Our computers are all password protected by us, they are logged in 24/7
[07:26] <alecw1> :)
[07:26] <alecw1> We've had a few problems lately
[07:26] <jrib> ah, well what does 'echo $DISPLAY' return on ssh now?
[07:26] <alecw1> :0.0
[07:27] <jrib> hmm, I wonder how it check for the screensaver
[07:27] <alecw1> :0.0 (locally)
[07:28] <alecw1> any ideas, jrib?
[07:28] <jrib> going to look at the source real quick
[07:28] <alecw1> mmk, thanks. :)
[07:28] <jrib> though https://wiki.ubuntu.com/StudentControlPanelSpec claims to have this feature
[07:29] <alecw1> Aurgh. I'd have to go through each of our 40+ computers. :P
[07:29] <alecw1> SSH would be easier. :)
[07:31] <jrib> so you're on caitlin-laptop and ssh'ed into aleclaptop?
[07:31] <alecw1> no, I'm on aleclaptop, SSHing to caitlin-laptop
[07:33] <jrib> can caitlin sudo on aleclaptop?
[07:33] <alecw1> sorry?
[07:34] <jrib> you're ssh'ed as the user "caitlin" into the computer "aleclaptop".  Is the caitlin user able to use "sudo"?
[07:35] <alecw1> No, I'm on ALECLAPTOP, logged in as "alec" (my machine). I'm SSHing into "caitlin-laptop" as "caitlin".
[07:35] <jrib> oops, that's what I meant, can caitlin sudo on caitlin-laptop?
[07:35] <alecw1> yes.
[07:35] <alecw1> well, I can.
[07:36] <jrib> ok
[07:36] <jrib> on caitlin-laptop, there is gnome running, correct?
[07:36] <alecw1> yes
[07:37] <jrib> is the caitlin user logged into gnome on caitlin-laptop?
[07:37] <alecw1> yes
[07:40] <jrib> k, did you test 'gnome-screensaver-command -l' as caitlin on caitlin-laptop locally?
[07:40] <alecw1> one sec.
[07:40] <alecw1> ok, yes, it works perfectly.
[07:41] <jrib> k, gnome-screensaver-command seems to use dbus, mnaybe that's the issue
[07:42] <alecw1> hmm. no idea what that means.... :)
[07:42] <alecw1> Does that mean this isn't possible?
[07:43] <alecw1> :(
[07:44] <jrib> no, it means we need to do some research :)
[07:44] <jrib> you understand c?
[07:44] <alecw1> a little. :)
[07:44] <alecw1> I've done lots of PHP.
[07:45] <alecw1> similar.
[07:45] <alecw1> You know, it's not that big of a deal, I don't want to waste your time.
[07:45] <jrib> well i was kind of interested
[07:45] <jrib> look into launching dbus in your ssh session
[07:45] <alecw1> >_>
[07:46] <alecw1> how? :)
[07:46] <jrib> try 'dbus-monitor', what happens?
[07:46] <alecw1> on SSH or local?
[07:46] <alecw1> or on caitlin-laptop?
[07:47] <jrib> on ssh
[07:47] <alecw1> caitlin@caitlin-laptop:~$ dbus-monitor
[07:47] <alecw1> signal sender=org.freedesktop.DBus -> dest=:1.12 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
[07:47] <alecw1>    string ":1.12"
[07:47] <alecw1> method call sender=:1.12 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
[07:47] <alecw1>    string "type='method_call'"
[07:47] <alecw1> method call sender=:1.12 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
[07:47] <alecw1>    string "type='method_return'"
[07:47] <alecw1> method call sender=:1.12 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
[07:47] <alecw1>    string "type='error'"
[07:48] <jrib> k close that
[07:49] <jrib> see what 'dbus-launch' does
[07:50] <alecw1> caitlin@caitlin-laptop:~$ dbus-launch
[07:50] <alecw1> DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-Ge013ulYJe,guid=8dd8640d06cd9f1356fc520046b75f5b
[07:50] <alecw1> DBUS_SESSION_BUS_PID=7355
[07:50] <alecw1> caitlin@caitlin-laptop:~$
[07:51] <jrib> k, try 'gnome-screensaver-command -l' again
[07:51] <alecw1> caitlin@caitlin-laptop:~$ gnome-screensaver-command -l
[07:51] <alecw1> ** Message: Screensaver is not running!
[07:51] <alecw1> caitlin@caitlin-laptop:~$
[07:51] <jrib> dbus-launch 'gnome-screensaver-command -l'
[07:51] <jrib> try that
[07:52] <alecw1> caitlin@caitlin-laptop:~$ dbus-launch 'gnome-screensaver-command -l
[07:52] <alecw1> >
[07:52] <alecw1> just gave me that arrow. :P
[07:52] <jrib> forgot the ' at the end
[07:53] <alecw1> caitlin@caitlin-laptop:~$ dbus-launch gnome-screensaver-command -l
[07:53] <alecw1> ** Message: Screensaver is not running!
[07:54] <jrib> I have to go now, I might play with it some more later, but don't know what to do offhand.  You might want to try #ubuntu again later or #gnome
[07:54] <jrib> there's also #gnome on the GIMPNet network
[07:54] <alecw1> ok
[07:55] <alecw1> thnx