[14:53] <pmatulis> can everything on the edubuntu add-on cd be installed by apt as a regular package?
[15:03] <stgraber> pmatulis: yes
[15:09] <pmatulis> stgraber: thanks, and what exactly gets installed with 'edubuntu-server' package?
[15:09] <pmatulis> how does it differ from 'edubuntu-desktop'?
[15:10] <stgraber> edubuntu-server installs moodle IIRC
[15:10] <pmatulis> i see a lot of apache/php stuff as dependencies
[15:10] <pmatulis> but then it just says it will install 'edubuntu-server' as well
[15:11] <ogra> apache, php and postgresql are moddle deps
[15:11] <pmatulis> ok, but what exactly what does 'edubuntu-server' give me?
[15:11] <pmatulis> not ltsp stuff?
[15:11] <ogra> nope
[16:21] <dgroos> Hi All!
[16:22] <dgroos> I've been working on making localapps work on my jaunty ltsp server the last few days.
[16:22] <dgroos> perhaps it is working...
[16:22] <dgroos> sounds like a strange question, but what test can I use to see if firefox is running as a localapp?
[16:29] <dgroos> for example, the system monitor run on the server shows user mrg using 117.7 mb of memory, while sys mon run on client for this user shows mrg using 89.4 mb.  Does this tell me something?
[16:46] <dgroos> hello?
[16:50] <pmatulis> dgroos: just login to the client and issue the 'ps' command
[16:51] <pmatulis> dgroos: if it's there it's there, if it's not it's not
[16:52] <dgroos> pmatulis: Thanks!
[16:52] <pmatulis> dgroos: glad to help
[16:55] <dgroos> pmatulis: I do this and I see 2 pids, neither has to do w/firefox pid I don't think--I sure don't see the word, 'firefox' on the output at least--thus no localapp firefox?
[16:55] <pmatulis> dgroos: if '$ ps ax | grep fire' doesn't give you anything then you're not running FF locally
[16:56] <pmatulis> dgroos: how did you log in to the client?
[16:57] <dgroos> pmatulis: I've got a client up in front of me so have logged into this machine and am typing the commands at a terminal on the thin client machine.
[17:01] <pmatulis> dgroos: you've opened gnome-terminal you mean?
[17:02] <dgroos> pmatulis: yes, I've opened up terminal in the GNOME desktop of the thin client (if that's what you mean)
[17:03] <pmatulis> dgroos: ok, you need to realize that you're on the server in such a situation, not the client
[17:04] <pmatulis> dgroos: you need to either access the console of the client or connect to it via SSH
[17:04] <dgroos> pmatulis: right!  so how do I do either of these--a link to a useful background page would be great!
[17:08] <pmatulis> dgroos: i recommend console for you right now, there are 2 ways, and the easiest is to simply add something like 'SCREEN_08 = shell' to the default section of your lts.conf file.  then reboot the client and access the console with Ctrl-Alt-F8
[17:09] <alkisg> dgroos: run: `ltsp-localapps xterm`  in the terminal - it'll give a local xterm
[17:10] <alkisg> Then, from the local xterm, run ps like pmatulis told you to see if firefox is running
[17:11] <pmatulis> alkisg: nice, will try
[17:14] <dgroos> alkisg: Thanks--I'm doing this and I get...
[17:14] <pmatulis> alkisg: is that a jaunty-only thing?
[17:14] <dgroos> 'grep fire
[17:14] <pmatulis> dgroos: so FF is not running
[17:15] <dgroos> alkisg and pmatulis: THANKS!  now I can try to figure out why it isn't and have a test to figure out if!
[17:16] <alkisg> pmatulis: I think it's >= 8.10
[17:17] <alkisg> dgroos: now try: ltsp-localapps firefox
[17:18] <pmatulis> alkisg: that ltsp-localapps command rocks!
[17:18] <alkisg> pmatulis: you don't get a root prompt, though; only a user shell
[17:18] <dgroos> alkisg: hmmm, says command not found (did in the local xterm)
[17:19] <alkisg> dgroos: no, do it in the terminal
[17:19] <alkisg> (gnome-terminal, I mean)
[17:19]  * pmatulis nods
[17:20] <dgroos> alkisg: got it! did it. and it opened firefox...
[17:20] <alkisg> dgroos: then you just need to put the lts.conf entry for localapps
[17:21] <alkisg> DNS_SERVER=10.160.31.1 /  SEARCH_DOMAIN=ioa.sch.gr /  LOCAL_APPS_MENU=True
[17:21] <alkisg> Modify to suit your needs
[17:21] <alkisg> (that's on 3 seperate lines)
[17:22] <dgroos> alkisg: thought I did that... I wasn't sure how to get the correct DNS_SERVER and SEARCH_DOMAIN info--that must be my problem...
[17:22] <alkisg> dgroos: no, the LOCAL_APPS_MENU=True is enought to run firefox locally
[17:22] <alkisg> The other ones are needed later on, when you start surfing :)
[17:23] <alkisg> dgroos: upload your lts.conf to pastebin
[17:23] <pmatulis> dgroos: are you running jaunty?
[17:23] <dgroos> alkisg: will do-- pastebin is where?
[17:23] <alkisg> http://pastebin.ubuntu.com
[17:23] <dgroos> pmatulis: yes
[17:23] <alkisg> ...and then paste the url here
[17:23] <pmatulis> dgroos: maybe just read https://help.ubuntu.com/community/UbuntuLTSP/LTSPLocalAppsJaunty
[17:24] <pmatulis> alkisg: sorry to cut in
[17:24] <alkisg> pmatulis: don't worry I always do that, too, so I don't mind :)
[17:24] <dgroos> pmatulis: thanks!  I've read it like the bible these last couple of days...
[17:32] <dgroos> alkisg: question: which lts.conf, the one in the /opt/ltsp/i386_w_localapps/etc or /var/lib/tftpboot/ltsp/i386_w_localapps?
[17:32] <alkisg> /var/lib/tftpboot/ltsp/i386/lts.conf
[17:33] <alkisg> If there's another one there with a different name, it won't find it
[17:33] <dgroos> alkisg: done!
[17:34] <alkisg> dgroos: if you mean that you put it to pastebin, now you have to paste the URL here for us to see it
[17:35] <dgroos> alksig: right! http://pastebin.ubuntu.com/202249
[17:35] <alkisg> dgroos: you need a [Default] line on top
[17:39] <dgroos> alkis: 1. you mean, just type the word, 'Default' on a line at the top? and 2. I've got an 'lts.conf' and 'lts.conf~' in this location.  Is this issue?
[17:39] <alkisg> 1. No, I mean with the brackets:
[17:39] <alkisg> [Default]
[17:39] <alkisg> <and then follows the rest of the file>
[17:40] <alkisg> 2. No, it's a backup that gedit did.
[17:42] <dgroos> alkisg: OK now is: http://pastebin.ubuntu.com/20224951
[17:42] <dgroos> oops didn't paste right...
[17:42] <dgroos> http://pastebin.ubuntu.com/202251
[17:43] <alkisg> dgroos: ok. Reboot the client and start firefox normally from the menus
[17:43] <alkisg> ...and see if it runs ok
[17:43] <alkisg> (don't logoff; reboot it)
[17:43] <alkisg> (ehm, I mean, dont _just_ logoff)
[17:44] <dgroos> alkisg: will do :-)
[17:48] <dgroos> alkisg: Cool!  1 step at a time :) the firefox title bar says "Mozilla Firefox (on ltsp20)
[17:49] <dgroos> alkisg: so now I need to do the NAT that I've read about?
[17:49] <alkisg> dgroos: fine, you now have a local firefox :)
[17:49] <dgroos> :)
[17:49] <alkisg> dgroos: you have the classic 2 nic/2 switches ltsp setup?
[17:49] <dgroos> alkisg: yes.
[17:50]  * alkisg has to internationalize his sch-scripts project... they automatically do all of this
[17:50] <dgroos> Well, 1 router and 1 switch...
[17:50] <alkisg> Yeah ok the same thing
[17:51] <dgroos> Yes? didn't get that last one?
[17:52] <alkisg> I've started a project, called sch-scripts, and it can install firefox as a local app and also do the natting thing automatically, with a menu driven interface, but it's in Greek... :(
[17:52] <alkisg> (and also a bunch of other staff...)
[17:53] <alkisg> dgroos: have you modified your dhcpd.conf at all?
[17:53] <dgroos> alkisg: wish I do Greek!
[17:53] <dgroos> alkisg: I don't remember--I'll open it...
[17:54] <alkisg> dgroos: upload to pastebin your /etc/ltsp/dhcpd.conf and your /etc/network/interfaces
[17:54] <dgroos> alkisg: will do.
[17:57] <dgroos> alkisg: dhcp.conf at http://pastebin.ubuntu.com/202258 and...
[17:59] <dgroos> alkisg: http://pastebin.ubuntu.com/202260
[18:02] <alkisg> dgroos: run these, they'll change your IP to 192.168.0.1 so that it matches dhcpd.conf - your net connection will get down for a few moments:
[18:02] <alkisg> invoke-rc.d dhcp3-server stop
[18:02] <alkisg> invoke-rc.d NetworkManager stop
[18:02] <alkisg> invoke-rc.d networking stop
[18:02] <alkisg> sed -i -e 's/192\.168\.0\.254/192.168.0.1/g' /etc/network/interfaces
[18:02] <alkisg> invoke-rc.d networking start
[18:02] <alkisg> invoke-rc.d NetworkManager start
[18:02] <alkisg> invoke-rc.d dhcp3-server start
[18:03] <dgroos> alkisg: Thanks!
[18:04] <dgroos> alkisg: as root, right?
[18:04] <alkisg> dgroos: yes
[18:04] <alkisg> dgroos: then, run:
[18:04] <alkisg> sed -i -e "s/^# By default this script does nothing\./# By default this script does nothing\.\n\niptables -t nat -A POSTROUTING -j MASQUERADE/" /etc/rc.local
[18:05] <alkisg> dgroos: and finally: sed -i -e 's/^[[:space:]]*##*[[:space:]]*net.ipv4.ip_forward[[:space:]]*=[[:space:]]*1/net.ipv4.ip_forward=1/' /etc/sysctl.conf
[18:05] <alkisg> And you're done
[18:11] <dgroos> alkisg: was doing this on my laptop via NX client and entered the second line above and... got disconnected :)
[18:11] <alkisg> (08:02:07 μμ) alkisg: dgroos: your net connection will get down for a few moments
[18:12] <dgroos> alkisg: so went back to server and continued w/third line and got message: "Ignoring unknown interface eth0=eth0:
[18:12] <alkisg> So if you only pasted half of it, it'll stay down... :(
[18:12] <alkisg> dgroos: that's normal
[18:12] <dgroos> OK... I'll carry on!
[18:20] <dgroos> alkisg: arg! trying to save time/copy-paste and got myself into trouble...
[18:20] <alkisg> dgroos: do you want me to put it to pastebin?
[18:21] <dgroos> alkisg: Thanks--I can do it but first need to exit from issue... I'll explain:
[18:22] <dgroos> alkisg: I typed: sed -i -e "s/^# By default this script does nothing\./
[18:22] <dgroos> ...and then this automatically entered, leaving me a ">"
[18:23] <dgroos> ... so I tried to type: exit, quit
[18:23] <dgroos> and to no avail--still get the ">"
[18:23] <alkisg> dgroos: press Ctrl+C to cancel the editing...
[18:23] <alkisg> dgroos: you're typing this, not copy/pasting? Then I'd better tell you what to do, it'll be easier than writing all this
[18:24] <dgroos> alkisg: good! I'll do and start over...  OK yes, I can't copy/paste as on different computers...
[18:24] <alkisg> dgroos: if I put it to pastebin, can you get it from the other computer?
[18:25] <dgroos> as long as my server can get on the 'net which it appears it can...
[18:27] <alkisg> dgroos: http://pastebin.ubuntu.com/202276/
[18:29] <dgroos> alkisg: got it I'm just about to start line 9
[18:30] <dgroos> alkisg: OK!  Thanks! and now I start thin client...
[18:30] <alkisg> dgroos: well...
[18:31] <alkisg> is it easy to reboot the server? if not, you'll need 2 lines more
[18:31] <dgroos> alkisg: it is easy, not super quick but easy :-)  I'll do it...
[18:32] <alkisg> ok... otherwise do: sysctl -p and: iptables -t nat -A POSTROUTING -j MASQUERADE
[18:32] <alkisg> I forgot to put them to pastebin
[18:33] <dgroos> Sure--That's quicker...
[18:33] <alkisg> (again, as root)
[18:35] <dgroos> alkisg: says error: unable to open and preload file "and:"
[18:36] <alkisg> dgros: two lines:
[18:36] <alkisg> sudo sysctl -p
[18:36] <alkisg> sudo iptables -t nat -A POSTROUTING -j MASQUERADE
[18:36] <dgroos> I see :)
[18:37] <dgroos> got it!
[18:37] <alkisg> ok, reboot a client now
[18:38] <alkisg> (it turns out it would be much simpler if I modified and gave you the whole script instead of only pasting parts of it :()
[18:39] <dgroos> do you mean-- put all of the instructions into a shell script, then I would just run the script?
[18:41] <alkisg> dgroos: yes, but I already have that script, and it has some failsafe checks also, the problem was that it displayed some messages in greek, that's why I pasted only parts of it... :(
[18:41] <dgroos> alkisg: don't seem able to log into the client :(
[18:42] <alkisg> dgroos: ah right there's another problem. Ah, those scripts...
[18:42] <alkisg> You have to run:
[18:42] <alkisg> sudo ltsp-update-sshkeys
[18:42] <alkisg> sudo ltsp-update-image
[18:42] <dgroos> Right!
[18:43] <dgroos> alkisg: LaserJock recently proposed an idea about having a repository for useful scripts that many people have that could benefit others--seems like this is one that should be there--w/a translation or 2... :)
[18:45] <alkisg> dgroos: yes, I also thought that was a great idea, I'll try to internationalize my scripts in the summer and we can upload any of them that seem worthy
[18:50] <dgroos> Hmmm... it says 'port 2000 is already defined with /opt/ltsp/images/i386.img in inetd.conf   Taking no action.
[18:54] <alkisg> dgroos: also normlal
[18:55] <alkisg> Now reboot a client
[18:59] <dgroos> alkisg: the thin client boots, goes to login screen, I try to login and it says: "No response from server, Restarting" and then the login screen refreshes...
[18:59] <alkisg> dgroos: that's the ssh-keys problem, did you run those 2 commands?
[19:00] <alkisg> (08:42:21 μμ) alkisg: sudo ltsp-update-sshkeys
[19:01] <dgroos> alkisg: yes.  After typing that in, it asked for my sudo password, I typed it, hit return, and it went back to the prompt...
[19:04] <alkisg> dgroos: Hmmm... I'm pretty sure it's the ssh keys problem. Change your lts.conf with this one, so that you can get a local shell on the terminal: http://pastebin.ubuntu.com/202297/
[19:07] <dgroos> pasted and saved this on the lts.conf file.  I'm not sure what to do now?
[19:07] <alkisg> Now, reboot the client,
[19:07] <alkisg> and when it boots, press Alt+Ctrl+F2
[19:08] <alkisg> You'll get a local terminal. There, write:
[19:08] <alkisg> ssh -l your-user-name server
[19:08] <alkisg> If I'm right, it'll warn you about the ssh keys not being correct
[19:09] <alkisg> Then, if you accept the modified ssh keys, and if you press Alt+Ctrl+F7, you'll be able to logon to the GUI
[19:11] <dgroos> This did the trick!  I can log on!  Now for firefox test...
[19:13] <alkisg> dgroos: what did it say about the ssh keys? That it doesn't know the keys, or that they were modified? Because that trick was a temporary only solution, the "permanent" solution is ltsp-update-sshkeys and ltsp-update-image...
[19:14] <dgroos> alkisg: it said that it was an unknown host I believe...
[19:14] <dgroos> (firefox still can't get to internet :(
[19:15] <alkisg> dgroos: press alt+ctrl+f2 again, and see the gateway etc:
[19:15] <alkisg> route -n
[19:15] <alkisg> this shows the gateway
[19:15] <alkisg> cat /etc/resolv.conf
[19:15] <alkisg> this shows the dns server
[19:16] <alkisg> are these correct?
[19:16] <dgroos> hmmmm client froze up, will reboot and do test...
[19:19] <dgroos> client won't re-boot.  got to a blank screen and curser started to blink...  tried alt+ctrl+f2 and did nothing, also...
[19:21] <dgroos> OK  i just tried to reboot client and it worked this time...
[19:22] <dgroos> it is indeed different info...
[19:24] <dgroos> cat /etc/resolv.conf says: domain gateway.2wire.net and search gateway.2wire.net and nameserver 192.168.3.1 and the client at route -n says...
[19:26] <dgroos> for eth0 Destination 192.168.0.0 and Gateway is 0.0.0.0 and Genmask is 255.255.255.0 and Flags is U and Metric is 0 and Ref is 0 and on the second line...
[19:27] <dgroos> for eth0 Destination 0.0.0.0 and Gateway is 192.168.0.0 and Genmask is 0.0.0.0 and Flags is UG and Metric is 0 and Ref is 0 Oh yeah, it says that Use was 0 for both lines.
[19:30] <alkisg> dgroos: your gateway is wrong. It should be 192.168.0.1
[19:32] <alkisg> dgroos: does your /etc/ltsp/dhcpd.conf have "options routers 192.168.0.1"?
[19:33] <dgroos> alkisg: alkisg: exactly...
[19:34] <dgroos> shall I go to the router in my house and change to 192.169.0.1?
[19:34] <alkisg> No no
[19:34] <alkisg> router means the gateway
[19:34] <alkisg> Upload your /etc/ltsp/dhcpd.conf to pastebin, please...
[19:36] <dgroos> http://pastebin.ubuntu.com/202320
[19:37] <dgroos> alkisg: I really appreciate your help these few hours, now.  I totally understand if you have to get on with the rest of your life :-)  I can try to figure this out or ask others...
[19:37] <alkisg> Hmm, other than "    filename "/ltsp/i386_w_localapps/pxelinux.0"; " it looks ok
[19:39] <dgroos> I've got 2 chroots: the i386 and the copy where I'm trying local apps i386_w_localapps as per the directions on https://wiki.edubuntu.org/LTSPLocalAppsJaunty
[19:41] <alkisg> dgroos: erm, ok, that's a problem
[19:41] <alkisg> E.g. when you did ltsp-update-sshkeys / ltsp-update-image, not both of the images were updated for the new IP
[19:42] <alkisg> That's why even after the updating you had problems logging in
[19:42] <alkisg> sudo ltsp-update-image -a i386_w_localapps
[19:42] <alkisg> You need this one ^^^ to update
[19:43] <dgroos> oops...
[19:43] <dgroos> or should that be OOPS
[19:43] <dgroos> sorry and I'll do it now...
[19:43] <alkisg> But still, this doesn't answer why your gateway is wrong
[19:44] <dgroos> I wonder...
[19:44] <dgroos> there was a firefox bug fix where I had to add a script, here...
[19:45] <dgroos> $ cat /opt/ltsp/i386/etc/init.d/chmod-resolv.sh
[19:45] <dgroos> #! /bin/sh
[19:45] <dgroos> chmod 644 /etc/resolv.conf
[19:46] <dgroos> and then run this command to add to the lts.conf file:
[19:46] <dgroos> $ cat /var/lib/tftpboot/ltsp/i386/lts.conf
[19:46] <dgroos> SEARCH_DOMAIN = ubuntu-ltsp5 || Change this for your own network
[19:46] <dgroos> DNS_SERVER = 192.168.1.1  || Change this for your own network
[19:46] <dgroos> RCFILE_01=/etc/init.d/chmod-resolv.sh
[19:47] <dgroos> does this relate?
[19:48] <dgroos> but I should say I added it to the i386_w_localapps lts.conf
[19:50] <dgroos> OK--just updated the correct image and was able to log in :)
[19:51] <alkisg> dgroos: put /var/lib/tftpboot/ltsp/i386_w_localapps/lts.conf to pastebin
[19:51] <dgroos> started firefox browser, said it was running as a localapp, tried to open the tabs but couldn't, then quit
[19:52] <alkisg> Your gateway is wrong; firefox won't work until you fix it
[19:54] <dgroos> http://pastebin.ubuntu.com/202341
[19:56] <alkisg> dgroos: can you do this in a local terminal again?
[19:56] <alkisg> route -n | grep ^0
[19:57] <alkisg> Does it say 192.168.0.0 ?!!
[19:57] <dgroos> I'll check... rebooting thin client...
[19:57] <alkisg> No need for reboot
[19:58] <dgroos> --I meant 'boot'
[20:00] <dgroos> it says: 0.0.0.0     192.168.0.1     0.0.0.0     UG     0     0     0     eth0
[20:03] <alkisg> dgroos: that's fine then...
[20:03] <alkisg> The last time you said it was 192.168.0.0
[20:04] <alkisg> dgroos: so, try to ping your dns server: ping 192.168.3.1
[20:04] <dgroos> ping from the server?
[20:04] <alkisg> no, from the local terminal on the client
[20:04] <alkisg> Erm... that's where you ran the `route -n` command, right?
[20:07] <dgroos> right!
[20:07] <dgroos> and yes, it did ping!
[20:07] <alkisg> Ehm, ok, now try: ping www.google.com
[20:08] <dgroos> that worked as well.
[20:09] <alkisg> ....ok, now try www.google.com on firefox
[20:09] <alkisg> (all this pinging was done from the *local* terminal, right? not a gnome-terminal...)
[20:10] <dgroos> correct.
[20:10] <alkisg> So, does firefox work now?
[20:10] <dgroos> firefox tries to go to site, unsuccessfuly for a while, then quits....
[20:11] <dgroos> I wonder if it has anything to do with: https://help.ubuntu.com/community/UbuntuLTSP/LocalAppsResolvConf ?
[20:11] <alkisg> No, if ping works from a local terminal then your resolv.conf is ok
[20:11] <alkisg> Try to put this on firefox: http://74.125.39.104
[20:14] <dgroos> hmmm... this time upon launching firefox I quickly closed up the different tabs before it quit, and now it works!!! :) :)
[20:15] <dgroos> I think it might have been trying to load a flash video on one of the tabs and maybe ???
[20:15] <alkisg> Heh... maybe it just needed a refresh...
[20:15] <dgroos> I'd guess all of might? ;)
[20:16] <dgroos> Thanks so much!!!
[20:16] <dgroos> I want to record lots of these ideas andinfo for others to use...
[20:16] <alkisg> You're welcome... you can put info on the wiki
[20:18] <dgroos> I wonder, would it be better to put this info on my blog and reference to it with a 'note for newbies' on the wiki, or put the whole thing directly on the wiki page?  Any thoughts?
[20:29] <dgroos> alkis and pmatulis too, thanks again :)  you keep the wheel turning... David
[20:51] <pmatulis_> alkisg: nice session!
[20:51] <alkisg> pmatulis_: nah, it would be much much shorter if I just translated my scripts to english :(
[20:52] <alkisg> I tried to  make it faster, but it turned out for the worse
[21:34] <sbalneav> Good evening all, from Brazil!
[21:40] <bencrisford> hey sbalneav!