IRC chat logs for #ltsp on irc.libera.chat (webchat)


Channel log from 8 December 2010   (all times are UTC)

00:09alkisg has quit IRC
00:40Mehh has joined #ltsp
00:42Mehh has quit IRC
00:54Mehh has joined #ltsp
01:02Kicer86 has joined #ltsp
01:10alkisg has joined #ltsp
01:16jimjimovich has joined #ltsp
01:17
<jimjimovich>
good morning guys. i'm trying to make a script that will send a message to each logged in user. can you tell me how to determine the x display number for logged in users?
01:22otavio has quit IRC
01:22
<alkisg>
See some related code there : http://pastebin.com/WGBH8rsk
01:22
(of course not all of it is related - just use the users/DISPLAY part)
01:23
<jimjimovich>
alkisg: thanks. i'm trying to make a different script i found online work, but they're way of returning the display is outdated or something. i'll look into what you posted
01:26shogunx has joined #ltsp
01:37daya has quit IRC
01:45
<jimjimovich>
I can find the DISPLAY (something like localhost:17.0) with this info, but I can't (even with sudo) open the display to send a message either a xmessage or gmessage
01:45lauri has joined #ltsp
01:50daya has joined #ltsp
01:56
<alkisg>
jimjimovich: yes, see the part of the code that relates to xauthority
01:56
You'll need the xauthority cookie to get access to their displays
01:56
<jimjimovich>
alkisg: yes, looking at that. can't say that i fully understand it, but looking at it
01:57
<alkisg>
jimjimovich: the easiest way is to have a script *listening for connections/messages etc* inside the users sessions
01:57
<jimjimovich>
alkisg: I've been thinking about that. Like a cron job?
01:58
<alkisg>
Like italc :)
01:58
It supports sending messages etc
01:59
<jimjimovich>
I've never been able to get it to run in the past. but i'll try again
01:59
<alkisg>
Ubuntu? Just a "sudo apt-get install italc-master" + rebooting everything should do it
01:59
Otherwise keep reading on the xauthority code ;)
02:00
<jimjimovich>
yeah, i don't like that idea very much ;)
02:00
<alkisg>
I abandoned both solutions though (italc/xauthority) and went on and developed a classroom administration tool instead :D
02:01
Anyway, time to get some work done... later
02:01
<jimjimovich>
with my small amount of expience with both, i can understand why!
02:13Mehh has quit IRC
02:24dobber has joined #ltsp
03:16otavio has joined #ltsp
03:16otavio has joined #ltsp
03:42bigdx has joined #ltsp
03:44
<bigdx>
good morning ;-)
03:45
im still stuck with my problem that the clients hang/freez if the server goes down, reboots or hangs ... any idea why the dont recover as they should?
03:46
alkisg ... i tried it without nbd-proxy too
03:46
same problem
03:46
<alkisg>
bigdx: you ran that line I gave you without nbd-proxy, and when the server hanged, the client didn't reboot?
03:49Gremble has quit IRC
03:50biomorph_ has joined #ltsp
03:52
<bigdx>
in most cases yes, but not 100% relaible
03:54
for reboots or shutdowns nearly everytime
03:54
but when tha server hangs or shutdown hard its 50%
03:55
<alkisg>
What line were you running, exactly, and how?
03:55
From an RCFILE?
03:56
<bigdx>
http://pastebin.com/Rgt5NYcL
03:56
-o to shutdown the clients
03:57
and i tried RCFILE but also tried it thru an manual addes rc2.d script
03:57
added
03:57
in the client-image
03:59
ah, when the server hungs the clients mostly only shutdown after i tried to login thru ssh
03:59
just one or two times without any external influence
04:00
<alkisg>
When you try to login, do you actually manage to login?
04:00
Or you're just causing an nbd disk read, so that nbd-client then understands that the connection is broken?
04:00
<bigdx>
login works like a charme, also ldm.autologin
04:01
<alkisg>
ldm_autologin is unrelated
04:01
I mean when the server hangs
04:01
When the server hangs, it might take some time for the client to know that the connection is broken
04:02
E.g. for TCP connections the timeout is 2 hours and 11 minutes
04:02
<bigdx>
nope, then the client gui is frozen completly
04:02
<alkisg>
What do you mean with this then? (12:00:02 PM) bigdx: ah, when the server hungs the clients mostly only shutdown after i tried to login thru ssh
04:03
<bigdx>
ssh asks sometime for user, sometimes also for password, but then hangs too
04:03
never get a prompt
04:04
<alkisg>
Right. But then the client shuts down?
04:04
<bigdx>
in most cases
04:04
<alkisg>
So I think at that point nbd-client becomes aware that the connection is broken.
04:04
So it's the script that shuts down the client
04:05
So if you wait long enough (2h 11m) it will shutdown anyway
04:05
<bigdx>
i tried to "imitate" that with ls or something that tries to read form nbd but had no luck jet
04:05
<alkisg>
...or you can lower that limit
04:05
<bigdx>
how can i lower that?
04:05
<alkisg>
Google for tcp keepalive
04:07
<bigdx>
but still ... why my clients do not behave like they should? you said they should restart automaticly
04:07
<alkisg>
Nope, I never said that
04:07
Maybe someone using nbd-proxy said that; I don't use it so I cannot comment about it.
04:08
<bigdx>
hmm ... i thought you mentioned they should recover as the server is back on
04:08
<alkisg>
Again, maybe someone using nbd-proxy :)
04:09dlezcano has quit IRC
04:10
<bigdx>
anyway, doesnt matter as they DONT ;-)
04:11
btw, how does the nbd-client "timeout" work?
04:12
i mean the option
04:13
<alkisg>
There is a "-persist" option in nbd-client, which was supposed to reconnect if the server reboots, but that was dropped in favor of nbd-proxy
04:13
I don't know about the timeout option
04:15Da-Geek has joined #ltsp
04:15
<alkisg>
Maybe this describes it: http://www.gossamer-threads.com/lists/linux/kernel/813932
04:24dlezcano has joined #ltsp
04:28biomorph_ has quit IRC
04:37ogra_ac_ is now known as ogra_ac
04:52biomorph_ has joined #ltsp
04:54biomorph_ has quit IRC
04:54biomorph_ has joined #ltsp
04:54
<bigdx>
hmm ... in which script nbd-clients get launched? ill try timeout, maybe it helps
04:57Trixboxer has joined #ltsp
05:00jimjimovich has left #ltsp
05:00
<alkisg>
ltsp_nbd
05:24ogra_ac has quit IRC
05:26daya has quit IRC
05:36otavio has quit IRC
05:37otavio has joined #ltsp
05:37otavio has joined #ltsp
05:39ogra_ac has joined #ltsp
05:48ogra_ac has quit IRC
05:50otavio has quit IRC
05:50otavio has joined #ltsp
05:50otavio has joined #ltsp
06:00ogra_ac has joined #ltsp
07:01F-GT has quit IRC
07:09MorningSon has joined #ltsp
07:18F-GT has joined #ltsp
07:41biomorph_ has quit IRC
08:04Gremble has joined #ltsp
08:21uday has joined #ltsp
08:26Gadi has joined #ltsp
08:44alkisg has quit IRC
08:46alkisg has joined #ltsp
08:59uday has quit IRC
09:32komunista has joined #ltsp
09:49mikkel has joined #ltsp
09:49uday has joined #ltsp
09:59Gremble has quit IRC
10:05bigdx has quit IRC
10:21Trixboxer has quit IRC
10:50litlebuda has joined #ltsp
10:54zz_evil_root is now known as evil_root
11:00dobber has quit IRC
11:13Kyle__ has quit IRC
11:16evil_root is now known as zz_evil_root
11:19
<Gadi>
!compiz
11:19
<ltspbot>
Gadi: "compiz" :: the default window manager in gnome is gnome-wm, which automatically chooses compiz if it thinks that the card supports it. Compiz is causing login problems to some clients. To disable it, see !disable_compiz. To restore it, see !restore_compiz
11:19
<Gadi>
!disable_compiz
11:19
<ltspbot>
Gadi: "disable_compiz" :: To disable compiz, try: sudo gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type string --set /desktop/gnome/session/required_components/windowmanager metacity
11:21
<alkisg>
!forget compiz
11:21
<ltspbot>
alkisg: The operation succeeded.
11:21
<alkisg>
!learn compiz as the default window manager in gnome is gnome-wm, which automatically chooses compiz if it thinks that the card supports it. Compiz is causing login problems to some clients (LP #673072). To disable it, see !disable_compiz. To restore it, see !restore_compiz
11:21
<ltspbot>
alkisg: The operation succeeded.
11:22
<Gadi>
:) and here, I just like it when the bot talks to me
11:22
:)
11:23
<alkisg>
We need to change its name to something more feminine... it'll sound even better :D
11:58ogra_ac has quit IRC
11:58ogra_ac has joined #ltsp
11:59litlebuda has quit IRC
12:00ogra_ac has quit IRC
12:00ogra_ac has joined #ltsp
12:01ogra_ac has quit IRC
12:01ogra_ac has joined #ltsp
12:01litlebuda has joined #ltsp
12:13litlebuda has quit IRC
12:23zz_evil_root is now known as evil_root
12:23
<evil_root>
!disable_compiz
12:23
<ltspbot>
evil_root: "disable_compiz" :: To disable compiz, try: sudo gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type string --set /desktop/gnome/session/required_components/windowmanager metacity
12:50alkisg has quit IRC
12:56spectra has joined #ltsp
13:17alexqwesa has quit IRC
13:51otavio has quit IRC
13:51otavio has joined #ltsp
13:51otavio has joined #ltsp
13:55Gremble has joined #ltsp
14:07alkisg has joined #ltsp
14:09
<highvoltage>
alkisg: hey, any chance you could join #ubuntu-meeting?
14:09
<alkisg>
highvoltage: sure
14:10
<highvoltage>
great, thanks
14:10
alkisg: I might poke you in a few mins for some EC stugg
14:10
*stuff
14:10
<alkisg>
np
14:10* alkisg is on an old pc with 128mb ram, that's why he was offline... :D
14:19uday has quit IRC
14:21lauri has quit IRC
14:26Seta00_ has joined #ltsp
14:28
<Seta00_>
I'm trying to setup a /really/ basic thin client infrastrucuture (it's for educational purposes only), but I'm stuck. I'm using Ubuntu 10.04.
14:29
<alkisg>
Where are you stuck?
14:29
<Seta00_>
I ran the LTSP installation from the alternate CD, but other computers couldn't boot with PXE
14:30
so I tried to setup dhcpd.conf to match my router settings
14:30
my server has a single NIC
14:30
<alkisg>
And you don't want to turn off your router's dhcp server?
14:30
<Seta00_>
I already did it
14:31
<alkisg>
You can leave your router's dhcp server running, if you prefer
14:31
So say what you would like to do and we'll suggest how to do it.
14:31
<Seta00_>
well it doesn't make any difference for me, it's /really/ basic, I just want to learn how to do thhis
14:31
this*
14:31
I want to setup a server and connect to it using PXE
14:32
nothing more
14:32
<alkisg>
OK so now you have your router's dhcp server turned off, and your ltsp server's dhcp server running?
14:32
<Seta00_>
I'm not sure about the latter
14:32
couldn't find a way to check its status
14:32
currently I'm rebuilding the thin client
14:32
<alkisg>
sudo service dhcp3-server status
14:32
<Seta00_>
oh then I know
14:32
it fails to start
14:33
lemme get the error message
14:33
<alkisg>
Verify that you have a valid range in /etc/ltsp/dhcpd.conf
14:33udayb has joined #ltsp
14:34
<Seta00_>
it ran now
14:34
fuck me
14:34
this is madness, I didn't change anything
14:34
ok so the DHCP is running, let me try to boot
14:36bobby_C has joined #ltsp
14:36udaybhatye has joined #ltsp
14:36Da-Geek has quit IRC
14:37
<Seta00_>
alkisg: thanks, I'll let the rebuild finish and see if it works
14:38
<alkisg>
np, but in the meantime you can check if the client gets the correct dhcp offer etc
14:38
<Seta00_>
hmm
14:38udayb has quit IRC
14:40
<Seta00_>
it's working perfectly
14:40
on the range
14:40
damn this only happens to me
14:42
<Gremble>
what does?
14:46alkisg has quit IRC
14:48alkisg has joined #ltsp
15:03
<Seta00_>
hell yeah
15:03
pxe booted
15:03
tftp is loading
15:03
TFTP timeout :(
15:03
okay, one less problem
15:04
<Gremble>
I've always found TFTP to be the tricky one
15:05
tftp-hpa is always suggested, but I've always ended up with aftftp
15:05
in daemon mode
15:05
<komunista>
I always use the dnsmasq ;-)
15:06
<Gremble>
that has a tftp server too?
15:09
<Seta00_>
Gremble: how do you set up atftpd with xinet.d?
15:09
<Gremble>
don't know
15:09
<Seta00_>
or with LTSP at all :P
15:09
i.e. how do you make it work
15:09
<Gremble>
what distro are you on?
15:09
<Seta00_>
ubuntu 10.04
15:10
<Gremble>
I'm on Debian
15:10
<Seta00_>
bah they're almost identical
15:10
<Gremble>
install atftpd
15:10
<Seta00_>
already did
15:10
<Gremble>
then put in /etc/default/atftpd
15:10
USE_INETD=false
15:10
OPTIONS="--tftpd-timeout 300 --bind-address 192.168.0.251 --retry-timeout 5 --maxthread 100 --verbose=6 /var/lib/tftpboot"
15:10
<Seta00_>
done
15:11
<Gremble>
then invoke-rc.d atftpd restart
15:11
watch out for 192.168.0.251 , thought, put in the IP of your server obviously
15:11
<Seta00_>
Gremble: but my tftpboot is on /
15:11
should I change the last parameter?
15:12
<Gremble>
tftpboot on /? that makes no sense
15:12
<Seta00_>
oh there's also one in /var/lib
15:12
<Gremble>
ah, you have an /tftpboot
15:12
<Seta00_>
okay testing
15:13
yes
15:13
<Gremble>
well, which has the kernels in?
15:13
<Seta00_>
both :P
15:13
<Gremble>
tail syslog to see the requests come in
15:14
<Seta00_>
atftpd: can't bind port 192.168.0.9:69/udp
15:14
<Gremble>
what's preventing it?
15:14
are you running another tftp server?
15:14
<Seta00_>
lemme check
15:14
probably apt-get's fault
15:15
<Gremble>
probably inetd
15:15
perhaps do dpkg-reconfigure and tell it not to use inetd
15:15
perhaps do dpkg-reconfigure atftpd that is
15:16alexqwesa has joined #ltsp
15:18
<Gremble>
Seta00_, the problem I've had with atftpd in Debian is that the package doesn't seem to write the conf properly. I've had even less luck with tftp-hpa though.
15:18
<Seta00_>
xinetd is using port 69
15:19
<Gremble>
you need to comment out the line and then restart it then
15:19
<Seta00_>
what line?
15:19
<Gremble>
in the xinetd conf
15:19
<Seta00_>
oh
15:19
<Gremble>
relating to port 69
15:20
<Seta00_>
I'll just delete it
15:20
:P
15:21
<Gremble>
I'm sure there's a proper Debian/Ubuntu way, but I don't know it
15:22
<Seta00_>
no tftp conf on xinetd but it's still not binding properly
15:23
<Gremble>
you need to restart xinetd don't you?
15:23
or it'll keep being bound to port 69
15:24
<Seta00_>
I did it
15:24
I've actually removed xinetd :P
15:26
<Gremble>
still not binding
15:26
<Seta00_>
yeah
15:27
oh my bad Gremble, I forgot I'm using 192.168.1.X and left 192.168.0.X in there
15:27
:P
15:27alexqwesa has quit IRC
15:27
<Seta00_>
should work now
15:28
fuck yeah
15:28
<Gremble>
:)
15:29
<Seta00_>
hehe, next problem!
15:29
forgot something about a NBD server
15:29alexqwesa has joined #ltsp
15:30
<alkisg>
!tftp
15:30
<ltspbot>
alkisg: Error: "tftp" is not a valid command.
15:31
<alkisg>
https://help.ubuntu.com/community/UbuntuLTSP/Troubleshooting/TFTP
15:31
Seta00_: any specific messages about nbd?
15:32
<Seta00_>
alkisg: thin client says something along the lines of "can't connect to NBD server"
15:32
<alkisg>
Btw installing xinetd breaks a lot of ltsp scripts which rely on inetd
15:32
<Seta00_>
I probably forgot something in the way installing it
15:32
<alkisg>
Did you remove inetd?
15:32mgariepy has quit IRC
15:32Kicer86 has quit IRC
15:33
<alkisg>
grep nbd /etc/inetd.conf
15:33
With the default installation you only need to change your dhcpd.conf
15:33
Anything more just breaks more stuff :)
15:34
<Seta00_>
alkisg: /etc/inetd.conf shows nbdswapd and nbdrootd
15:34udaybhatye has quit IRC
15:34
<alkisg>
Seta00_: on the client, do you get a busybox shell?
15:35
<Seta00_>
alkisg: yep
15:35
<alkisg>
Try there: nbd-client server-ip 2000 /dev/nbd0
15:35
Did it mount?
15:35
<Seta00_>
sec, I have to restart the server
15:35udaybhatye has joined #ltsp
15:35
<Gremble>
check you've actually got inetd on port 2000 too
15:36
<Seta00_>
nothing on port 2000
15:36
<Gremble>
there should be 3 entries in inetd.conf relating to ltsp
15:36
<Seta00_>
now I have inetutils-inetd on port 2000
15:37
<alkisg>
Erm why not openbsd-inetd?
15:38
Don't deviate from the default setup unless you have some specific reason to...
15:38
<Seta00_>
alkisg: that command shows connection refused
15:38
<alkisg>
Seta00_: remove inetutils-inetd and reinstall openbsd-inetd
15:38
<Seta00_>
done
15:38
<alkisg>
OK, is it listening on 2000? Does the command work now?
15:39
<Gremble>
inetd should be attached to ports 2000, 9571 and 9572 for ltsp to work
15:39
<Seta00_>
listening on 2000, but command shows Negotiation: error: server closed connection
15:39
<alkisg>
Also check that the file to be served exists
15:39
$ grep images /etc/inetd.conf
15:39
2000 stream tcp nowait nobody /usr/sbin/tcpd /usr/sbin/nbdrootd /opt/ltsp/images/i386.img
15:39
<Seta00_>
alkisg: it's only attached to 9572
15:39
<alkisg>
$ ls -lha /opt/ltsp/images/i386.img
15:39
-rw-r--r-- 1 root root 223M 2010-12-08 20:54 /opt/ltsp/images/i386.img
15:40
Something like that ^^^
15:40
<Gremble>
cool
15:40
<Seta00_>
alkisg: shows just like that
15:40
<Gremble>
check also that you have in /etc/hosts.allow
15:40
nbdrootd: ALL: keepalive
15:40
nbdswapd: ALL: keepalive
15:41
<alkisg>
That's not the problem though... Seta00_ it's not listening on 2000?
15:41
<Seta00_>
alkisg: no
15:41
oh wait
15:41
it is
15:41
<alkisg>
Try sudo invoke-rc.d openbsd-inetd restart
15:41
Ah ok
15:41
<Seta00_>
on ports 2000 and 9572
15:41
not on 9571 though
15:42
<alkisg>
And nbd-client still doesn't work? See daemon.log...
15:42
<Gremble>
that's ldminfod on port 9571, perhaps that package isn't installed
15:42
<alkisg>
grep nbd_server /var/log/daemon.log
15:43
<Seta00_>
looks like I don't have nbdrootd
15:43
<alkisg>
That doesn't sound possible... :D
15:43
Didn't you say ubuntu 10.04 or something?
15:43
<Seta00_>
nbdrootd[454]: error: cannot execute /usr/sbin/nbdrootd: No such file or directory
15:43
LOL
15:44
<alkisg>
$ dpkg -S /usr/sbin/nbdrootd
15:44
<Seta00_>
alkisg: yep 10.04
15:44
<alkisg>
ltsp-server: /usr/sbin/nbdrootd
15:44
So did you remove ltsp-server?!
15:44
<Seta00_>
so I think I removed some package that triggered removal of a bunch of other vital packages
15:45
<alkisg>
Heh... breaking stuff until it works? :D
15:45
<Seta00_>
yeah, the good part is that I learnt what it depends on
15:45
at least
15:45
lol
15:46
<moldy>
hi
15:46
<Seta00_>
now nbd-client says something about size and block size, and returns
15:46
lemme try rebooting
15:46
<alkisg>
Hi moldy
15:46
Seta00_: right
15:46
<moldy>
can an ltsp user unmount a usb flash drive mounted via ltspfs?
15:46
<alkisg>
moldy: not really, he just waits 2 secs and pulls it off
15:46
Every 2 secs a "flush" is executed
15:47
<moldy>
alkisg: ah ok, thanks
15:47
<Seta00_>
HAHA
15:47
I see X!
15:47
<alkisg>
;)
15:47
<Seta00_>
eh.. so apparently I haven't configured anything related to the client :P
15:47
is there a default user?
15:48
<alkisg>
You use the server users
15:48
<Seta00_>
lol of course
15:48
<alkisg>
So any user on your server will do
15:48
<Seta00_>
I'm getting dumber and dumber
15:48
that's the whole purpose of ltsp
15:48
yay
15:48
<alkisg>
Nah it looks like you solved everything quickly :)
15:49
(even with all the package removal etc :D)
15:49
<Seta00_>
hehe
15:49
I think I remember removing dhcp3-server
15:49
<alkisg>
So you must be quite a sysadmin
15:49
<Seta00_>
that must be it
15:49
<alkisg>
Probably, if you did --auto-remove
15:49
<Seta00_>
alkisg: lol teck no
15:49
I'm just a student
15:50udaybhatye has quit IRC
15:53
<Seta00_>
beautiful
15:53
alkisg, Gremble, you just made four brazilian students happier
15:53
:D
15:53
<alkisg>
;)
15:55
<Seta00_>
cheers everyone, see ya
15:55
<alkisg>
bb
15:55Seta00_ has quit IRC
15:55alkisg has quit IRC
15:57Gremble has quit IRC
15:59robbie72 has quit IRC
16:00mikkel has quit IRC
16:06vagrantc has joined #ltsp
16:07udaybhatye has joined #ltsp
16:17ogra_ac has quit IRC
16:18ogra_ac has joined #ltsp
16:20mistik1 has quit IRC
16:21mistik1 has joined #ltsp
16:24cliebow has joined #ltsp
16:51udayb has joined #ltsp
16:54udaybhatye has quit IRC
17:02komunista has quit IRC
17:59udayb has quit IRC
18:01MorningSon has quit IRC
18:04bobby_C has quit IRC
18:08MorningSon has joined #ltsp
18:12
<Faithful>
mistik1, Hey
18:12
renunion
18:16udayb has joined #ltsp
18:35al3 has joined #ltsp
18:38al3 has quit IRC
18:56litlebuda has joined #ltsp
19:02alexqwesa has quit IRC
19:03alexqwesa has joined #ltsp
19:06litlebuda has quit IRC
19:29evil_root is now known as zz_evil_root
19:34vagrantc has quit IRC
19:55
<cliebow>
Faithful:havnt head from mistik in quite a while..he sure had an impact on my it dept when he was here..
19:56cliebow has quit IRC
19:59udayb has quit IRC
20:02udayb has joined #ltsp
20:15udayb has quit IRC
21:02zz_evil_root is now known as evil_root
21:22MorningSon has quit IRC
21:23MorningSon has joined #ltsp
21:32daya has joined #ltsp
22:40alkisg has joined #ltsp
22:55MorningSon has quit IRC
23:16daya has quit IRC
23:29daya has joined #ltsp