[10:43] <Afrohealer> HI all
[10:44] <Afrohealer> Is it a simple process to go from ubuntu to Edubuntu?
[10:44] <jsgotangco> right now, you only need to have the add-on CD to be installed on top of Ubuntu
[10:48] <Afrohealer> so just do "sudo apt-get install edubuntu-desktop"  ?
[11:09] <ogra> Afrohealer, yes
[11:14] <Afrohealer> ogra:thanks ..
[11:15] <Afrohealer> ogra: is it possible to have both teh Edubuntu and Ubuntu coincside.. so that the kids get to use Edubuntu .. while the adults can use Ubuntu
[11:15] <Afrohealer> On the same system
[11:15] <ogra> not really
[11:15] <ogra> edubuntu changes system settings and artwork
[11:16] <Afrohealer> k ..
[11:18] <jsgotangco> ogra: hope you're ok now
[11:18] <ogra> jsgotangco, yeah, nobody knows what it was though or why it happened
[11:19] <ogra> i just try to live more healthy
[11:19] <jsgotangco> well yeah things happen just dont overdo it heh
[11:19] <ogra> right
[11:19]  * jsgotangco shudders the thought of a healthy vegan ogra
[11:19] <ogra> eek
[11:19] <ogra> you wont see me going vegan :)
[11:20] <ogra> i'm cooking since i got home though ... havent seen any deep fried food sice ages :)
[11:20] <jsgotangco> heh that's good I have been monitoring what I take as well lately
[11:20] <ogra> i drink a lot, cut down smokig to a minimum and go cycling once  a day ...
[11:21] <jsgotangco> we're not getting any younger hehe
[11:21] <ogra> i wont turn into a health pope :)
[11:21] <jsgotangco> ogra: btw
[11:21] <jsgotangco> these intel classmate PCs
[11:21] <jsgotangco> are so cheap here
[11:21] <jsgotangco> they are under a different brand
[11:22] <jsgotangco> but its the same thing I think
[11:22] <jsgotangco> because its the same casing, etc.
[11:22] <jsgotangco> celeron cpu
[11:22] <jsgotangco> worth getting one for testing in case?
[11:22] <ogra> well, the image is at http://people.ubuntu.com/~ogra/classmate/images/hardy/
[11:23] <ogra> waiting for one last SRU for the final image
[11:23] <jsgotangco> is it still being actively developed?
[11:23] <ogra> and then i'm out of cmpc development
[11:23] <jsgotangco> ahh
[11:23] <ogra> it will be maintained for the time intel sells that model
[11:23] <jsgotangco> these small laptops have been sprouting out here like mushrooms
[11:24] <jsgotangco> and most sell for like $200
[11:24] <ogra> have you seen the one for $98 ?
[11:24] <jsgotangco> intel too?
[11:25] <ogra> http://techvideoblog.com/ifa/98-linux-laptop-the-hivision-mininote/
[11:25] <ogra> better :)
[11:25] <ogra> MIPS
[11:25] <jsgotangco> the intel cmpc here is called neo explorer x1
[11:25] <jsgotangco> they're like dirt cheap
[11:26] <jsgotangco> they have an updated model with intel atom
[11:27] <jsgotangco> oh a china pc
[11:27] <jsgotangco> they use their own chinese CPU called godson
[11:27] <ogra> yeah
[11:27] <jsgotangco> i currently have an xo-1, an eeePC and an hp mininote
[11:31] <Afrohealer> 98 laptop!!  damm that is nice..
[11:31] <Afrohealer> I coudl build myself a nice DJ system for cheap using two of those
[11:31] <jsgotangco> they are probably as fast as those VIA C7 chips
[11:32] <jsgotangco> if not faster
[11:32] <ogra> i guess faster
[11:32] <ogra> but only 1G local storage
[11:33] <jsgotangco> ive seen those chips sold locally, they are not popular but they would be more sellable if done in a package like a $98 laptop
[11:33] <ogra> yeah
[11:33] <ogra> its a good idea
[12:34] <Afrohealer> ogra: does 'sudo apt-get install edubuntu-desktop"   .. also install all the edubuntu applications?   or do i have to do that seperately?
[12:34] <ogra> it pulls in all the edu apps from edubuntu-desktop
[12:35] <ogra> plus the edubuntu handbook and the artwork
[13:00] <Afrohealer> ogra: thanks
[13:01] <rhce7320> I have just tried my 1st pxe client. No go.
[13:02] <rhce7320> I installed wireshark & found that
[13:02] <rhce7320> the client ignores the servers DHCP offer & sends out another DHCP DISCOVER packet.
[13:02] <rhce7320> Iny ideas?
[13:03] <rhce7320> PS pxe boot is new area for me
[13:04] <rhce7320> I have the client connected to the server's 'thin client' NIC with a crossover cable.
[13:18] <rhce7320> I replaced the x-over cable with a old 10Mbps repeater.  same symptom
[13:35] <rhce7320> UPDATE:  the failing pxe boot box  is a Compaq Deskpro.  I just plugged in my Dell D830 laptop & did a successfull pxe boot.
[13:39] <Afrohealer> COmpaq .. ws started with the goal of making compatibel computers.. but they seem to have forgottne that a long time ago
[17:43] <LaserJock> hi HedgeMage
[17:43] <HedgeMage> hi, LaserJock
[17:43] <HedgeMage> long time no see!
[17:43] <HedgeMage> how have you been?
[17:43] <LaserJock> OK
[17:48] <HedgeMage> just ok?
[17:48] <LaserJock> I'd say so yes
[17:48] <LaserJock> could be better, could be worse
[17:49] <LaserJock> hanging in there anyway :-)
[17:49] <HedgeMage> :)
[19:38] <highvoltage> hey HedgeMage
[19:38] <HedgeMage> hi, highvoltage
[19:38] <HedgeMage> what's upL
[19:39] <HedgeMage> up? even
[19:39] <highvoltage> the end of the world!
[19:39] <HedgeMage> Cool!  Does that mean we can open a new one now?
[19:40] <highvoltage> if the LHC can make a big enough big bang, then yes :)
[19:40] <HedgeMage> :D
[19:41]  * sbalneav crosses fingers and hopes the LHC can pull it off.
[19:41] <highvoltage> heh
[19:42] <highvoltage> sbalneav: I think the effects will be smaller, probably
[19:42] <HedgeMage> so how have you all been?
[19:42] <HedgeMage> I've missed you since I've had so little internet access.
[19:42] <highvoltage> sbalneav: my bets are that it will take us to another dimention, and we'll all turn into walking, talking couches
[19:42] <highvoltage> (I want to be a blue one)
[19:43] <HedgeMage> Can I be a nice, mellow sage green?
[19:43] <sbalneav> I sort of picture myself as an ottoman.  My wife thinks I'm a lay-z-boy. (badum-bum)
[19:43] <HedgeMage> heh
[19:43] <sbalneav> Thanks folks, I'll be here all week, don't forget to tip your servers.
[19:43] <highvoltage> HedgeMage: work has been crazy. I'm working on getting out and starting my own things so that I can work on the things I care about
[19:44] <highvoltage> HedgeMage: and you?
[19:44] <highvoltage> sbalneav: btw, going to mountainview?
[19:44] <highvoltage> sbalneav: heh, that reminds me of http://www.lolbuntu.org/2008/03/30/good-evening/
[19:45] <HedgeMage> highvoltage:  busy with work -- my business is really taking off, but with only dodgy satellite at home, keeping up can be tough.  LF started kindergarten, and he's doing great already.  And, I've managed to find repeated excuses to indulge my fountain pen obsession this month.  Life's good.
[19:45] <sbalneav> No, I don't think so.
[19:47] <highvoltage> HedgeMage: pity about the internet though. slow internet is annoying
[19:48] <HedgeMage> yep
[19:54] <linto> read -sn 1 var1; echo "var1 is <$var1>"; solution; read -sn 1 var2; echo "var2 is <$var2>" -- please test it in bash and press f11: i'm not prompted for the second read! what is the solution()? how do i reset the stdin ("eat" the remainder of the escape) to leave it clean for any next read? can you think of a trick? another command that incidentally eats my stdin? (using another read doesn't work!) or so
[19:54] <linto> me stty/tput trick?
[20:53] <sbalneav> linto: f11 to maximise the window?
[20:53] <sbalneav> here's what I get
[20:54] <sbalneav> sbalneav@feniks:~$ read -sn 1 var1; echo "var1 is <$var1>"; solution; read -sn 1 var2; echo "var2 is <$var2>"
[20:54] <sbalneav> var1 is <>
[20:54] <sbalneav> bash: solution: command not found
[20:54] <sbalneav> var2 is <>
[20:54] <linto> sbalneav: use f6 then
[20:54] <linto> exactly
[20:55] <linto> so you're not prompted for the second read
[20:55] <linto> how do you fix this?
[20:56] <sbalneav> Well, it would help me a bit to know WHAT problem you're trying to solve.
[20:56] <sbalneav> i.e. what is your expectation?
[20:56] <linto> sbalneav: f6 is just an example of a wrong key that my users could press accidentally. i have to prevent stupid behaviors like the sequence for f6 ("^[[17~") being interpreted as "1" and then as "7".
[20:57] <linto> sbalneav: it seems read -n is not designed correctly, it should eat the rest of the escape (or it should even reject the first char in the escape sequence) or it should take the whole escape sequence as a -n 1 (one char) (on some other "--enable-esc-sequences" option).
[21:02] <sbalneav> Well, -n says:
[21:02] <sbalneav> read  returns after reading nchars characters rather than waiting for a complete line of input
[21:03] <sbalneav> So, since hitting F6 generates 3 or 4 characters, I'd say it's doing what it's supposed to.
[21:03] <sbalneav> Are you trying to write something so that users only have to hit "a" instead of "a<enter>" to select something?  Like I say, without context, it's tough for me to suggest something?
[21:13] <sbalneav> linto: You could, perhaps do something along the lines of:
[21:14] <sbalneav> if read -n 1 -s ; then
[21:14] <sbalneav>    KEY=$( echo $KEY | od -t x1 | awk '{ print $2}' )
[21:15] <sbalneav>    if [ $KEY = '1b' ]; then
[21:15] <sbalneav>      # escape sequence like F6, discard rest of input
[21:16] <sbalneav>     read -t 1 $GARBAGE
[21:16] <sbalneav> ...
[21:16] <sbalneav> etc
[21:16] <sbalneav> then loop back around.
[21:16] <sbalneav> sorry, first line should be if read -n 1 -s $KEY; then
[21:17] <linto> sbalneav: i don't understand awk, what does it do in this context?
[21:21] <linto> sbalneav: you did consider the fact that "read -n 1" reads only one char at a time, not the whole sequence, didn't you?
[21:25] <sbalneav> right, but when you hit "f6" you generate several characters
[21:25] <sbalneav> an escape, a right bracket, a couple of numbers, etc.
[21:26] <sbalneav> if you read only ONE of those characters, the rest of them are still sitting on the input buffer, waiting to be read.
[21:27] <sbalneav> Depending on what you're doing, and since I don't KNOW what your doing, I may tell you that bash and shell scripting isn't really a good tool to solve the problem.
[21:29] <linto> sbalneav: is there any way to reset the input buffer?
[21:29] <linto> sbalneav: i prefer to use another command between the reads
[21:29] <linto> sbalneav: it can be a perl or python one-liner all right
[21:33] <sbalneav> Well, the "read -t 1 $GARBAGE" will, after a one second timeout, clear out the input buffer.
[21:34] <linto> sbalneav: other than read -t 1, that is, as -t 1 slows down my script and -t 0 doesn't work in bash
[21:35] <sbalneav> I'm not sure.  I doubt this would work, but you could try something like 0> /dev/null
[21:36] <sbalneav> Without knowing what your doing, I can't help much
[21:39] <linto> sbalneav: it's easy to explain: i have a menu accessible by pressing numbers and i should prevent the function keys from being processed because they include numbers in their escape sequences
[21:40] <linto> sbalneav: and my menu is in a while loop. and i can't swallow the escape sequences with read -t 1 because this slows down my script.
[21:43] <sbalneav> There are several curses-based menu applications available, written in C, or alternatively, there are some X based menu creators out there.
[21:44] <linto> sbalneav: dialog?
[21:44] <sbalneav> and besides, the read -t 1 will ONLY slow down the script if they press a wrong key, so you might pop up a message saying "please don't press the function keys" or whatever, and the pause will allow them to read it.
[21:45] <sbalneav> dialog's one of them, yes.
[21:45] <sbalneav> I beleieve it has a menu option.
[21:46] <linto> sbalneav: but is there any ncurses application that is installed by default on most distros?
[21:48] <sbalneav> dialog --menu "foo" 20 20 10 foo1 bar1 foo2 bar2 foo3 bar3
[21:48] <sbalneav> seems to work ok for me
[21:50] <sbalneav> linto: Most distros these days aren't doing too much with ncurses applications, so probably not.
[21:51] <linto> :(
[21:51] <sbalneav> but if you're producing a package that can be installed, you can just depend on the dialog package.
[21:52] <linto> i know
[21:52] <linto> i didn't want it to get that complicated though :)
[21:52] <sbalneav> Why not do this?
[21:53] <sbalneav> if [ -x /path/to/dialog ]; then
[21:53] <sbalneav>    fancy dialog menu
[21:53] <sbalneav> else
[21:53] <linto> i don't even know how to create a deb
[21:53] <linto> i never studied about it but it always looked complicated
[21:53] <sbalneav>    Older way to do a menu, with the one second pause on wrong key entered.
[21:54] <sbalneav> fi
[21:54] <linto> thanks for the suggestion though
[21:54] <sbalneav> Ultimately, if you're doing some kind of interactive program, /bin/sh is going to result in SOME compromises :)
[21:55] <sbalneav> You may want to look at python or perl, they may have some stuff that can help you
[21:55] <sbalneav> of course, THEN you have to worry about if they're installed, if the library you're going to use is installed, etc, so you're back to the same problem as with dialog
[21:57] <sbalneav> heading home for the day.
[21:57] <sbalneav> Good luck
[21:57] <linto> thanks a lot