/srv/irclogs.ubuntu.com/2010/06/03/#edubuntu.txt

vmlintuWe are seeing some weird behaviour when nbd-proxy is in use. Disabling nbd-proxy and using nbd-client directly helps fix this, but I'm wondering what causes this to happen: https://bugs.launchpad.net/ltsp/+bug/58903409:38
ubottuUbuntu bug 589034 in LTSP "nbd-proxy hangs the nbd-connection to server" [Undecided,New]09:38
vmlintuDisabling nbdswap or changing flow control settings didn't help09:40
alkisgvmlintu: stgraber gets here later on, maybe you should try again in e.g. 8 hours...10:01
vmlintualkisg: yep, my timezone isn't really compatible with US&Canada..10:09
LedHedI built a fat client, then chroot to  /opt/ltsp/fat-i38616:13
LedHedthen apt-get install openssh-server16:13
LedHedI also copy a couple scripts to /usr/local/bin16:13
LedHedI exit chroot16:13
LedHedthen run ltsp-update-image -a fat-i38616:14
LedHedwhen I boot the fat client,  there is no sshd nor are my scripts in /usr/local/bin16:14
LedHedwhat am I doing wrong?16:15
alkisgWhich fat client how-to are you following?16:15
LedHedalkisg, I'm using Ubuntu 10.0416:16
alkisgDo you have 2 chroots?16:17
LedHedhttps://help.ubuntu.com/community/UbuntuLTSP/FatClients16:17
LedHedThats the howto16:17
LedHedalkisg, yes.16:17
LedHedinitially I created an amd64 thinclient chroot,  and then I wanted to test out fat clients to I created another chroot of /opt/ltsp/fat-i38616:18
LedHedthe process I outlined worked fine on the amd64 image,  but no luck on the fat image.16:19
alkisggrep nbd /etc/inetd.conf16:20
alkisgWhat does that tell you?16:20
LedHedon the server?16:21
alkisgYes16:22
alkisg(or on a thin client)16:22
LedHed2000  stream  tcp nowait  nobody /usr/sbin/tcpd /usr/sbin/nbdrootd /opt/ltsp/images/amd64.img16:22
LedHed2001 stream  tcp nowait  nobody /usr/sbin/tcpd /usr/sbin/nbdrootd /opt/ltsp/images/fat-i386.img16:22
LedHedit has both images16:22
alkisgYou're probably just sending the wrong image there16:23
alkisggrep filename /etc/ltsp/dhcpd.conf16:23
LedHedI use a windows DHCP server,  but I updated it to reflect ltsp/fat-i386/pxelinux016:24
LedHedpxelinux.016:24
alkisgOK, so, grep vmlinuz /var/lib/tftpboot/ltsp/fat-i386/pxelinux.cfg/default16:25
LedHedkernel vmlinuz16:25
alkisgsorry, my bad. grep append /var/lib/tftpboot/ltsp/fat-i386/pxelinux.cfg/default16:26
LedHednbdport=200116:27
LedHedwhich was the fat-i386 image16:27
alkisgso the complete line is: append ro initrd=initrd.img quiet splash nbdport=2001 ?16:27
LedHedyes16:27
alkisgHmmm...16:28
alkisgAnd, sudo chroot /opt/ltsp/fat-i386 dpkg -l openssh-server16:28
LedHedits listed16:29
alkisgAnd if you run that on a fat client you don't see it installed?16:30
alkisg*without the chroot, of course...16:30
LedHed1 sec.  but I dont think so16:30
LedHedclaims its installed,  but I cant find it16:35
LedHednor can I find my scripts.16:36
alkisgdpkg -L openssh-server shows you the files16:37
LedHedlol.  I missed the capital16:38
LedHeddid -l16:38
LedHedwow16:39
LedHedscratch that,  its not installed.16:40
LedHedI must have booted a thinclinet by mistake.16:40
LedHedanyhow.  openssh-server is not installed on the fatclient.16:40
LedHeddpkg -L openssh-server on the fatclient says not installed.16:41
alkisgErm, what? dpkg -l openssh-server show the version, and dpkg -L openssh-server says not installed?!16:42
LedHeddpkg -L openssh-server returns  'openssh-server is not installed'16:42
LedHeddpkg -l openssh-server returns  Name: openssh-server,  Version: <none>16:43
LedHedran uname -a,  and its running an i686 kernel,  so this is in fact my fat client.16:44
alkisgOK because you said ==> (06:29:32 μμ) LedHed: its listed16:44
alkisgI assume you rebooted the fat client after updating the image, right?16:45
LedHedalkisg, I think I goofed on that.  I ran  dpkg -l  and saw openssh-server,  and assumed it was installed.16:45
alkisgAlso, try to see if the date on `ls -l /opt/ltsp/images` matches the time when you run the ltsp-update-image command.16:46
LedHedk16:47
LedHedalkisg, I have a fat-i386.img.tmp,  would that indicate that the image update failed?16:49
alkisgPossibly16:49
LedHedwhen I ran the update it said that it was successful16:49
LedHedmaybe I updated the image wrong.16:50
LedHedalkisg, ltsp-update-image -a fat-i38616:50
LedHedI couldnt figure out a way to tell it what chroot to use, so I assumed that specifying fat-i386 as the architecture would work.  maybe I was wrong.16:51
alkisgNo you did it ok16:51
alkisgTry this: mv the.tmp file to the .img file16:51
LedHedits way too small16:52
alkisgAh16:52
LedHedlike 1/2 the size it should be16:52
LedHedI'll update the image again and see what happense16:52
alkisgUrm... it shouldn't say "finished successfully" if it didn't move the image16:52
alkisg(I mean, by reading the code, it shouldn't be doing that)16:53
LedHedit didnt say that specificaly, but I remember readign something that made me thing that it completed corectly.16:57
LedHedalkisg, do fat clients auth against the server or the local passwd file?17:03
alkisgWhile on ldm, they auth against the server. Later on (e.g. on a sudo call or for screensaver unlocking) locally, which fails because there's not shadow entry there.17:04
LedHedhumm17:04
LedHedmaybe what I should do is just build a diskless linux image.17:05
LedHedmight be easier17:05
alkisgWhat do you need to do?17:05
LedHedI have 13 diskless atom nettops17:05
LedHedI want a desktop with a link to our Webmail and a link to tn5250.17:06
LedHedshould be identical for all the nettops17:07
LedHedI only need 1 user account which should autologin17:07
alkisgWhy were you installing ssh?17:08
LedHedso that I can remote to the nettops and reboot them if need be17:08
LedHedor shutdown,  then to a WOL to wake them up at a later time.17:09
alkisgssh isn't a good method for that17:09
LedHedalkisg, oh.17:09
LedHedif theres a better way please tell.17:09
LedHedthe other thing is that the less dependent on the server the nettops are the better,17:10
alkisgThere are some methods outlined here: https://help.ubuntu.com/community/UbuntuLTSP/17:11
alkisgFor shutdown, wol etc17:11
LedHedthey ultimately just connect to our exchange server and an AS/400,  so if the /home dirs and auth isnt handled on the server then the nettops could continue to run even if the server goes down.17:11
alkisgBut I didn't like any of those either :)17:11
alkisgSo we just developed our own scripts for controlling clients... unfortunately we didn't have time yet to internationalize it, it's in greek only: http://wiki.ubuntu-gr.org/sch-scripts/screenshots17:12
alkisgAutomatic client discovery, sending commands either to the system (root) or the session (user),17:13
alkisgwol, reboot, logoff etc, viewing screens...17:13
LedHedwow,  so you can remote view the clients, and shutdown17:13
alkisgSo if you don't mind blindly clicking on a greek caption, it can work fine for you.17:13
LedHed:)17:13
alkisg(or the toolbar :))17:14
LedHedmaybe I could google translate it,  :)17:14
alkisgIt also contains a wizard to automatically build a fat chroot etc17:14
alkisgscreen locking, sound on/off, lots of stuff there17:15
LedHedthats cool. I wish I spoke greek so I could help with the translation17:15
LedHedhow are the /home dirs mounted on fat clients, NFS?17:17
LedHedI must have screwed something up because now I cant login to the fat client.17:18
LedHedafter updating the image.17:18
alkisgYou can choose that with lts.conf, either nfs or sshfs17:18
alkisgI'm using nfs because evolution doesn't run with sshfs, and I don't really care about the security implications17:19
LedHedI havent created a lts.conf for my fat clients yet.17:20
LedHedalkisg, any idea what would cause the fat client to stop authintacing?  I cant login17:21
alkisgTry putting SCREEN_02=shell and SCREEN_07=ldm on lts.conf17:21
alkisgThen, reboot the client, switch to vt2 with alt+ctrl+f2, and try to ssh to the server from there.17:22
LedHedconsequently, after updating the fat client image,  I can ssh to them now.17:22
LedHedwould be nice if LTSP supported building standalone images.17:23
LedHedmeaning that the client could stan on its own.17:24
alkisgYou mean without authenticating on the server?17:24
alkisgand, how would the image be booted?17:25
LedHedpxe17:25
LedHedsame as ltsp,  image resides on a tftp server17:25
alkisg(nbd server) - so where's the difference?17:29
LedHedno nbd,  entire image is loaded into ram17:29
LedHedso a striped down distro similar to the LiveCD17:30
LedHedgets loaded into a RAM disk on the client17:30
LedHedthen the client is standalone17:30
alkisgAnd why would you need ltsp for that?17:30
alkisgJust remaster the live cd to put whatever you wish, and serve it however you want...17:31
LedHedjust because I like the simplicity of the ltsp-build/update scripts.17:31
alkisgAnd, if the server is needed to boot the clients anyway, why would you waste 1-2 GB RAM for the image and 5 minutes to boot the terminals?17:32
alkisgJust to be able to disconnect the server later on?17:32
LedHedshouldnt take 5 minutes,  a CD sized image should take less than 1 minute to download17:33
alkisgRight, so for 10 clients, 10 minutes17:33
LedHedeach client has fill bandwidth,  so only about 1 minute per device17:34
alkisgHow much data can the server transfer?17:34
LedHedthe disks?17:34
alkisgDivide that by number of clients * size of disk, to find out the minutes17:34
alkisgE.g. 30 seconds for sending a cd to one client => 13 * 30 seconds for 13 clients17:35
LedHedthe chance that they all boot at exactly the same time is slim17:36
alkisgAh, ok then (I'm booting all of my clients at once)17:36
LedHedmy nettops are scattered over 1 sq mile (2.6 sq km)17:37
LedHedso if I have to reboot the ltsp server,  all the nettops immediately fail,  which means I have to run a marathin to restart them all.17:38
LedHedmarathon17:38
alkisgHow much ram do they have?17:40
LedHed1GB17:41
alkisgThey'll need 1 Gb for the image17:41
alkisgSo there's no ram left to actually run the os17:41
alkisgYou'd need 2 Gb at least...17:41
alkisg...or some cut-down distro like DSL17:41
LedHednot a big deal to upgrade the ram17:41
LedHedDSL would work also.17:42
alkisgOK, then you could patch the ltsp_nbd script a little, to download the image, and then mount it locally17:42
LedHedI just need the ability to lock the user environment down.17:42
alkisgIt shouldn't take more than 1-2 hours to do what you wanted over ltsp17:42
LedHed1-2 hrs if you know what you're doing.  I do not.  :)17:43
alkisgYou could hire a developer to do the work for you, it should be much cheaper than the ram upgrade :D17:43
LedHedtrue17:43
LedHedare you such a developer?17:43
alkisgmoment, phone...17:44
LedHedsure17:45
alkisgLedHed: still around?18:12
LedHedalkisg, back18:15
alkisgLedHed: I'm talking to you on a private window...18:17

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