=== Pricey [n=pricechi@ubuntu/member/pdpc.supporter.student.PriceChild] has joined #ubuntu-classroom | ||
=== Crusher [n=You@ppp121-45-114-37.lns11.adl6.internode.on.net] has joined #ubuntu-classroom | ||
=== merriam__ [n=merriam@82-133-115-120.dyn.gotadsl.co.uk] has joined #ubuntu-classroom | ||
=== DreamThief [n=mathias@unaffiliated/dreamthief] has joined #ubuntu-classroom | ||
=== HarKoT [n=tony@bpb01-1-88-162-5-1.fbx.proxad.net] has joined #ubuntu-classroom | ||
=== zween [n=zween@Z7363.z.pppool.de] has joined #ubuntu-classroom | ||
=== neversfelde|mobi [n=neversfe@82.113.121.1] has joined #ubuntu-classroom | ||
=== PriceChild [n=pricechi@ubuntu/member/pdpc.supporter.student.PriceChild] has joined #ubuntu-classroom | ||
=== never|mobi [n=neversfe@82.113.121.1] has joined #ubuntu-classroom | ||
=== DreamThi1f [n=mathias@gateway.3vilh4x0r.net] has joined #ubuntu-classroom | ||
=== DreamThief [n=mathias@unaffiliated/dreamthief] has joined #ubuntu-classroom | ||
=== PriceChild [n=pricechi@ubuntu/member/pdpc.supporter.student.PriceChild] has joined #ubuntu-classroom | ||
=== neversfelde|mobi [n=neversfe@82.113.121.1] has joined #ubuntu-classroom | ||
=== jrib [n=jrib@upstream/dev/jrib] has joined #ubuntu-classroom | ||
=== munckfish [n=munckfis@217.150.115.62] has joined #ubuntu-classroom | ||
=== never|mobi [n=neversfe@82.113.121.1] has joined #ubuntu-classroom | ||
=== HarKoT [n=tony@bpb01-1-88-162-5-1.fbx.proxad.net] has joined #ubuntu-classroom | ||
=== fatsheep [n=fatsheep@74-133-190-166.dhcp.insightbb.com] has joined #ubuntu-classroom | ||
=== fatsheep [n=fatsheep@74-133-190-166.dhcp.insightbb.com] has left #ubuntu-classroom [] | ||
=== alecw1 [n=alecwh@71-213-29-106.slkc.qwest.net] has joined #ubuntu-classroom | ||
alecw1 | :) | 07:17 |
---|---|---|
=== pnorcks [n=pnorcks@c-67-171-158-46.hsd1.or.comcast.net] has joined #ubuntu-classroom | ||
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:17 |
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:18 |
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:19 |
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:20 |
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:21 |
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:22 |
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:23 |
alecw1 | yup, it does. | 07:24 |
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:25 |
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:26 |
jrib | hmm, I wonder how it check for the screensaver | 07:27 |
alecw1 | :0.0 (locally) | 07:27 |
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:28 |
alecw1 | Aurgh. I'd have to go through each of our 40+ computers. :P | 07:29 |
alecw1 | SSH would be easier. :) | 07:29 |
jrib | so you're on caitlin-laptop and ssh'ed into aleclaptop? | 07:31 |
=== darich [n=trickyki@89.243.189.17] has joined #ubuntu-classroom | ||
alecw1 | no, I'm on aleclaptop, SSHing to caitlin-laptop | 07:31 |
jrib | can caitlin sudo on aleclaptop? | 07:33 |
alecw1 | sorry? | 07:33 |
jrib | you're ssh'ed as the user "caitlin" into the computer "aleclaptop". Is the caitlin user able to use "sudo"? | 07:34 |
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:35 |
jrib | ok | 07:36 |
jrib | on caitlin-laptop, there is gnome running, correct? | 07:36 |
alecw1 | yes | 07:36 |
jrib | is the caitlin user logged into gnome on caitlin-laptop? | 07:37 |
alecw1 | yes | 07:37 |
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:40 |
jrib | k, gnome-screensaver-command seems to use dbus, mnaybe that's the issue | 07:41 |
alecw1 | hmm. no idea what that means.... :) | 07:42 |
alecw1 | Does that mean this isn't possible? | 07:42 |
alecw1 | :( | 07:43 |
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:44 |
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:45 |
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:46 |
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:47 |
jrib | k close that | 07:48 |
jrib | see what 'dbus-launch' does | 07:49 |
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:50 |
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:51 |
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:52 |
alecw1 | caitlin@caitlin-laptop:~$ dbus-launch gnome-screensaver-command -l | 07:53 |
alecw1 | ** Message: Screensaver is not running! | 07:53 |
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:54 |
alecw1 | thnx | 07:55 |
=== alecw1 [n=alecwh@71-213-29-106.slkc.qwest.net] has left #ubuntu-classroom [] | ||
=== PWill [n=paul@unaffiliated/pwill] has joined #ubuntu-classroom | ||
=== pnorcks [n=pnorcks@c-67-171-158-46.hsd1.or.comcast.net] has left #ubuntu-classroom [] | ||
=== jrib [n=jrib@upstream/dev/jrib] has joined #ubuntu-classroom | ||
=== PriceChild [n=pricechi@ubuntu/member/pdpc.supporter.student.PriceChild] has joined #ubuntu-classroom | ||
=== Cerstimo [n=nobody@ip51ccf0d1.adsl-surfen.hetnet.nl] has joined #ubuntu-classroom | ||
=== Cerstimo [n=nobody@ip51ccf0d1.adsl-surfen.hetnet.nl] has left #ubuntu-classroom [] | ||
=== PriceChild [n=pricechi@ubuntu/member/pdpc.supporter.student.PriceChild] has joined #ubuntu-classroom | ||
=== DrSmall [n=DrSmall@70-41-140-16.cust.wildblue.net] has joined #ubuntu-classroom | ||
=== DrSmall [n=DrSmall@70-41-140-16.cust.wildblue.net] has left #ubuntu-classroom ["Adios] | ||
=== ryanakca [n=ryan@ubuntu/member/ryanakca] has joined #ubuntu-classroom | ||
=== sacater [n=sacater@phns1.gotdns.com] has joined #ubuntu-classroom | ||
=== HarKoT [n=tony@88.162.5.1] has joined #ubuntu-classroom | ||
=== zween [n=zween@89.61.115.99] has joined #ubuntu-classroom | ||
=== SWAT [n=SWAT@ubuntu/member/swat] has joined #ubuntu-classroom | ||
=== ubotu [n=ubotu@ubuntu/bot/ubotu] has joined #ubuntu-classroom | ||
=== jrib [n=jrib@upstream/dev/jrib] has joined #ubuntu-classroom |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!