/srv/irclogs.ubuntu.com/2011/10/11/#edubuntu.txt

TheProfHello everyone.  Question:  is it possible that an apt-get update && upgrade can cause the lts.conf file to be ignored?  I've got a new login screen on the thin clients, the default session option is lts.conf is being ignored, and the printers I've specified in lts.conf are not working.  Help? :)13:18
alkisg"a new login screen"? meaning?13:31
TheProfalkisg, means a new theme13:54
TheProfI just tried specifying a different theme in lts.conf, rebuilt the image and rebooted the thin client but it didn't pick up the change.13:55
alkisgTheProf: do you have tftpd-hpa as the tftp server?14:11
TheProfalkisg, sorry for the delays in responding -- just a busy day at the school here.  I am not sure which version of tftp server. I will try to determine it now14:30
alkisgTheProf: grep -i verbose /etc/default/tftpd-hpa14:31
TheProfthat actually gives no output14:33
TheProfweird -- looking into the file gives me 4 lines14:34
alkisgAh sorry14:34
alkisgMy bad. What's the last line?14:34
TheProftftp_username, directory, address, and optins.14:34
alkisgoptions?14:34
TheProftftp_options='--secure'14:34
alkisgok, change it to: --secure --verbose14:34
alkisgThen run: sudo service tftpd-hpa restart14:35
alkisgThe reboot the client14:35
alkisgAnd finally do: grep lts.conf /var/log/syslog14:35
alkisgThis will tell you where is the client trying to find lts.conf14:35
TheProfOK I'm doing that now.14:35
TheProfalkisg, OK I've rebooted the server.  The new login screen still came up.  grepping for lts.conf gives 2 lines:14:49
TheProfOct 11 10:39:39 i7-eduLTSP in.tftpd[15825]: RRQ from 192.168.0.41 filename /ltsp/i386/lts.conf14:49
TheProfOct 11 10:47:32 i7-eduLTSP in.tftpd[16710]: RRQ from 192.168.0.41 filename /ltsp/i386/lts.conf14:49
TheProfThat's it.14:49
alkisgSo it looks like it reads the correct lts.conf. Can you pastebin it?14:49
TheProfalkisg, sure - the whole syslog or only those two lines?14:59
TheProfOr are you talking about lts.conf?15:00
alkisglts.conf15:00
TheProf!pastebin15:00
ubottuFor posting multi-line texts into the channel, please use http://paste.ubuntu.com | To post !screenshots use http://imagebin.org/?page=add | !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic.15:00
TheProfhttp://paste.ubuntu.com/706149/15:02
alkisgTheProf: erm, can you use pastebin instead? The paste.ubuntu.com site has an error and it doesn't allow me to download it as text15:03
alkisgpastebin.com15:03
alkisgI want to check it for syntax errors15:03
TheProfNot a problem at all -- doing so now.15:04
TheProfalkisg, http://pastebin.com/YFEGa2M215:06
alkisgsyntax error in /tmp/a, line=315:07
alkisgAh it contains windows newlines15:07
alkisgTheProf: so anyway try this: /opt/ltsp/i386/usr/bin/getltscfg -a -c /var/lib/tftpboot/ltsp/i386/lts.conf15:08
alkisgDo you get a syntax error?15:08
TheProfdoing so now15:09
TheProfI edit the file with MC15:10
TheProfalkisg, no syntax error, it just outputs the uncommented lines.15:10
alkisgOK, so your client may be reading lts.conf after all15:11
alkisgSee if SCREEN_02 works, like I said in #ltsp15:11
TheProfOK made the change in lts - going to reboot thin client15:14
TheProfalkisg, so once rebooted the thin client has a shell on ctrl-alt-F115:23
TheProfgranted I believe it always had one before.  No other difference I noticed.15:24
alkisgTheProf: how about alt+ctrl+f2 ?15:24
TheProfalkisg, no shell on F215:24
alkisgYou put those?15:24
alkisgSCREEN_02=shell15:24
alkisgSCREEN_07=ldm15:24
alkisg?15:24
TheProfyes right under LDM_THEME line15:30
alkisgThen it doesn't look like your client is reading lts.conf, strange15:31
alkisgNow try this15:31
TheProfThat's why I am feeling like it is ignoring it somehow.  Question: there is both /tftboot/ltsp/i386 and 64 bit?15:31
alkisgLogin on the client, and run: ltsp-localapps xterm15:31
TheProfamd64 I meant directories.15:31
alkisgUsually people only need 1 chroot15:31
alkisgNot 215:31
alkisgLet's continue troubleshooting from the local xterm15:32
TheProfOK.  Should I log in with the graphical prompt to run the xterm locally?15:32
alkisgYes15:33
TheProfOK iu15:33
TheProfOK I'll go do that now.15:33
TheProfsorry I have to walk to another room to work on the thin clients.15:34
TheProfalkisg, I ran the command and it opened an xterm window15:35
TheProfwhere I was able to ls and see my files.15:35
alkisgCool. Now there run: getltscfg -a15:35
alkisgAnd see if you get your lts.conf entries like before15:35
TheProfOK so from that prompt run getltscfg -a? Do I need to sudo?15:36
alkisgNo15:36
alkisg(and yes to the first question)15:36
alkisg(no to sudo)15:36
TheProfOK :)15:37
TheProfalkisg, got an error that getltscfg is not installed and I need to install some sort of core utilities15:49
alkisgTheProf: is that still the local xterm?15:51
alkisgThat you run with: ltsp-localapps xterm?15:51
alkisgThat's very different than plain xterm or gnome-terminal, we don't want those15:51
TheProfyes that was in the ltsp-localapps xterm output window. I will go and try again to make sure.15:52
alkisgIn the local xterm window, you should have getltscfg installed15:55
alkisgSo you probably ran it in a "normal" , not "local" terminal15:55
TheProfalkisg, my apologies.  I had it in the wrong terminal as you surmized16:00
TheProfI got the same output as when I ran it locally on the server before.  Interestingly the first line is a commented out one "LDM_THEME="ltsp"16:00
alkisgCommented out? can you paste the whole line?16:02
TheProfhttp://pastebin.com/yShrkTmQ16:03
alkisgI don't see SCREEN_02 and SCREEN_07 there16:07
alkisgAnd yes, the comment does seem strange16:08
alkisgAre you sure you still have SCREEN_02 in your server lts.conf?16:08
TheProfalkisg, yes indeed it is there.16:11
TheProfdo I need to rebuild the image after modifications to lts.conf? I thought that wasn't needed16:12
alkisgTheProf: ok, now again on the localxterm, do: cat /etc/lts.conf16:12
alkisgNo, you don't need to update the image16:12
TheProfalkisg, ok i'll go try that now16:12
alkisgIn that /etc/lts.conf, do you see SCREEN_02?16:12
alkisgTheProf: wait16:12
TheProfok16:12
alkisgIt's better to join irc from the client16:12
alkisgSo that you don't go back and forth16:12
alkisgHere's a webpage for that:16:12
alkisghttp://webchat.freenode.net16:13
alkisgYou can join #edubuntu from there16:13
TheProfok - wasn't sure in case i needed to reboot. website is a good solution16:13
TheProfgoing now16:13
TheProf_clientHello16:16
alkisgIt should be easier to pastebin stuff now too :)16:17
TheProf_clientIndeed! OK So I'm on the client.  Typing into the localapp xterm window "cat /etc/lts.conf" gives16:17
TheProf_clientjust pastebinning it16:18
TheProf_clientOK stupid question: how do I copy text out of xterm?16:19
alkisgSelect text in xterm16:20
alkisgGo to firefox and press middle click16:20
TheProf_clientFancy.16:20
TheProf_clienthttp://pastebin.com/UnqLJJ0V16:21
alkisgIs this the same lts.conf that you have in your server?16:22
TheProf_clientalkisg: yes it is.16:22
alkisgTheProf_client: so, you don't have SCREEN_02=shell16:22
alkisgPlease put it16:22
TheProf_clientwait! it's different16:23
TheProf_clientThat's the difference.16:23
alkisgTheProf_client: hmm ok, so now open a normal terminal, not a local one16:23
alkisggnome-terminal16:23
TheProf_clientI'm doing that right now to compare16:23
alkisgAnd from there, do:16:24
alkisgcat /var/lib/tftpboot/ltsp/i386/lts.conf16:24
alkisgand16:24
alkisgcat /opt/ltsp/i386/etc/lts.conf16:24
alkisgWe're talking about 3 different lts.conf16:24
alkisgThe 2 above, and the 1 you just pastedbin'ed from your client16:24
alkisgWhich of those are the same?16:24
TheProf_clienthttp://pastebin.com/j3UFFuwu16:25
TheProf_clientthat pastebin I just put in is the server's version of lts.conf16:25
TheProf_clientthis previous one http://pastebin.com/UnqLJJ0V is from the thin client ltsp-localapps xterm /etc/lts.conf16:26
alkisgOK, now check for the one in cat /opt/ltsp/i386/etc/lts.conf16:26
TheProf_clientalkisg: OK checking now. The regular terminal on the server.16:27
TheProf_clienthttp://pastebin.com/NUB1z51a16:28
TheProf_clientthat's the /opt/ltsp/i386/etc/lts.conf -- mostly empty16:28
alkisgTheProf_client: when you put SCREEN_02=shell in your lts.conf, did you reboot the client?16:28
TheProf_clientalkisg: excellent question. I do not recall. I will reboot it now.16:30
TheProf_clientalkisg: just rebooted a client.  No shell on F2, only F116:31
alkisgTheProf_client: again open a local xterm, and again cat /etc/lts.conf16:31
alkisgAnd see if SCREEN_02=shell is there16:31
alkisgltsp-localapps xterm16:32
TheProf_clientOK trying this now16:33
alkisg(on the newly booted client of course, not the one you're chatting from now)16:34
TheProf_clientyes :)16:34
TheProf_clientso I did cat /etc/lts.conf after rebooting and local xterm and yes there is a "screen_02=shell" line16:35
alkisgGood, so we now that your clients do read lts.conf16:36
alkisgNow, on that newly booted client again, run: getltscfg -a16:36
alkisgAnd see if SCREEN_02 is there too16:36
TheProf_clientscreen_02=shell is there yes16:37
TheProf_clientweird how that commented out line shows up also.16:37
alkisgTheProf_client: and you're sure that alt+ctrl+f2 doesn't work, right?16:38
TheProf_clientCorrect:  crtl+alt+F2 just a blank screen, same as F3 -> F616:39
TheProf_clientF1 gives shell, F7 gives graphical16:39
alkisgSo it seems that getltscfg is having problems parsing your lts.conf16:39
alkisgCan you put it somewhere without using copy/paste?16:39
alkisgE.g. one way is this:16:39
alkisgOn your server:16:39
alkisgsudo apt-get install pastebinit16:39
TheProf_clientI think pastebin has a command line interface16:40
alkisgpastebinit /var/lib/tftpboot/ltsp/i386/lts.conf16:40
TheProf_clientah there we go :)16:40
TheProf_clientOK16:40
TheProf_clientsorry just a moment -- alternate user i'm using is not a sudoer16:41
alkisgsu - otheruser16:42
TheProf_clienthttp://paste.ubuntu.com/706222/16:44
alkisgMeh the same problem with paste.ubuntu again16:45
alkisgTry: pastebinit -b pastebin.com /var/lib/tftpboot/ltsp/i386/lts.conf16:46
alkisgOr: pastebinit -b http://pastebin.com /var/lib/tftpboot/ltsp/i386/lts.conf16:46
alkisg(not sure if it needs the http part)16:46
TheProf_clienthttp://pastebin.com/2pR4mEhf16:47
alkisgTheProf_client: indeed it's a problem in getltscfg16:49
alkisgLet me pinpoint it...16:49
TheProf_clientOK16:51
alkisgHehe. It's silly. It has a problem because there's no newline at the end of the file.16:55
alkisgTheProf_client: please file a bug report in launchpad about it, and attach your lts.conf16:55
alkisgThen go to the last line and press enter so that it's fixed :D16:56
TheProf_clientalkisg: sweet - I feel so special!16:56
TheProf_clientSo the enter at the end will allow the whole file to be parsed correctly?16:56
alkisghttps://bugs.launchpad.net/ubuntu/+source/ltsp16:56
alkisgYes, the problem is that now there's a " at the start and it causes a syntax error while evaluating it16:57
alkisgIf you used vi you wouldn't have the problem :D16:57
alkisg(or gedit)16:57
alkisgHmmmm but, I do see SCREEN_02 here16:58
alkisgWhile you didn't16:58
TheProf_clientI use the built-in MC editor.16:58
alkisgAh it was because you didn't reboot, ok16:58
alkisgThe mc editor didn't append a newline at the end of the file16:58
alkisgAnd that confused getltscfg16:58
TheProf_clientif I put 2 enters is that a problem? :) just to make sure :)16:58
alkisgHehe sure16:58
TheProf_client:) rebooting client now16:59
TheProf_clientLook at that! A different login screen!17:01
alkisg...after 4 hours, a single enter did the trick ;)17:01
TheProf_clientand when I log in it's no longer unity!17:02
TheProf_clientthat alone is worth the 4 hours :)17:02
* alkisg is trying for 4 hours to get rid of unity in a standalone installation too17:02
* TheProf_client loves that idea17:03
alkisg`gsettings set org.gnome.desktop.session session-name gnome-fallback ` unfortunately doesn't work17:03
TheProf_clientI'm just rebooting the client attached to the printer to see if that will start working again also.17:04
TheProf_client...and printing works.17:06
TheProf_clientThat enter really is picky!17:06
alkisgMeh. It looks like lightdm has the session hardcoded and ignores the user .dmrc and the gnome settings and everything17:07
alkisgs/hardcoded/in lightdm.conf/17:08
TheProf_clientalkisg: Your help was invaluable.  I'm about to deploy 20 computers across several classrooms tomorrow and it would have been a major problem otherwise.17:08
alkisgYou're welcome17:09
TheProf_clientI have to get back to other school but my sincere thanks again.  Have a great day17:09

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!