/srv/irclogs.ubuntu.com/2009/09/08/#edubuntu.txt

ace_suaresLaserJock:02:18
LaserJockhi ace_suares02:20
ace_suaresjust saying hi02:36
dgroosI'm adding groups in jaunty server and I looked at the /etc/group file and I'm wondering why most groups have an "x" as the second value and the groups I just added have an "*" as the second value.  Anyone know?04:37
dgroosFor example, a line in the /etc/group file looks like this:04:54
dgroosstaff:x:50:04:54
dgroosI know that "staff" is the name of the group,04:54
dgroos"50" is the Gid04:54
dgroosbut what does the "x" represent?04:54
sbalneavNothing04:57
dgroosas in "empty"?04:57
sbalneavNominally, it's a password field for if you wanted passwords for group changes.04:57
sbalneavBut that's more historical than anything else.04:57
dgrooshmmm... so if instead of an "x" it has an asterisk then that might be KUser's way of doing the same thing?04:58
sbalneavright.04:58
sbalneavThere's no "set standard" of what placeholder character could go there04:59
sbalneavit's just ignored.04:59
sbalneavman 5 group04:59
dgroosThanks!!!04:59
stgrabersbalneav: hey, Scotty, did you see that we'll have Ollie at the hackfest ?05:00
sbalneavNo, I didn't, but that's awesome news!05:00
stgraberyup05:00
sbalneavI'm looking forward to seeing all my pals again :)05:00
dgroosBTW  sbalneav, I just dropped my daughter at Tache hall--nice place :)05:00
sbalneavAh, took a look around the campus, did you?05:01
sbalneavNice place.  The admin building in the centre's quite nice to wander about in.05:01
dgroosIndeed,nice place05:01
sbalneavSorry about the mosquitoes.  The sudden spat of warm weather's brought them out in force :(05:02
dgroosI didn't have time to go much inside buildings, but it has a friendly, community feel to the campus.05:02
sbalneavIt wasn't a pleasent weekend at the cottage.05:02
dgroosthey were crazy!!!  reminded me of canoeing in the Quetico in the spring05:02
sbalneavThe mosquito's the provincial bird of manitoba :)05:03
dgroosWe sometimes say the same in Minnesota :)05:04
* stgraber suddenly knows where he's not going to be on holiday :)05:04
dgroosI'm making a csv file to batch add users to the server.  One of the fields to add is the groups to add the user to.05:24
alkisgdgroos: heh, I'm making a python script to batch import users from a csv file these days. Nice coincidence :)05:25
dgroosI've added the users to these groups, sound right?: audio, dip, video, sambashare.05:25
dgroosalkisg: good evening/morning :)05:26
alkisgHello05:26
dgroosIt does seem like this is a pretty basic need in education.05:27
alkisgThe default groups are there: `grep group /etc/gnome-system-tools/users/profiles`05:27
dgroosThanks, I'll check it out.  When does your school year commence?05:27
alkisgSchool year is Sep => Jun, then 2 months of vacations.05:28
dgroosinteresting--same schedule here in US.05:28
dgroosI skipped a few of these groups such as floppy, tape, cdrom as we don't have these on the thin clients05:30
dgroosit also includes, adm and lpadmin which sound like admin groups--is this correct?05:32
alkisgThe first line, groups=cdrom,floppy,dialout,tape,dip,adm,plugdev,fax,fuse,video, is for "desktop users"05:32
alkisgThe second line is for "admins"05:33
dgroosque vale el que sabe :)05:33
alkisgΔεν κατάλαβα γρι :)05:33
* alkisg google-translates.... :D05:33
dgroos(that's greek to me :)05:34
alkisgAh, google says that you said "worth who knows"... heh05:34
* alkisg just said that he didn't understand what you wrote05:35
dgroosand google said you said, "I did not understand purse".05:35
dgroosPurse?05:36
alkisgHeh ... nah, it doesn't know the word "γρι", it isn't really a formal word05:36
dgroosI used google translate quite a bit with the file you sent me on customizing the firefox about:config file--it was great.05:36
alkisgDid you manage to make an english version out of it? I think it would be nice to have it in the edubuntu wiki...05:37
dgroospretty much.  I'll pastebin a copy of what I've got, can you check to see that I didn't do something really weird?05:38
alkisgUh, can we leave it for some other time? I'm in a hurry to go to work05:39
dgroosque vale el que sabe means something like, 'he who knows is very valuable'05:39
alkisgNice :) Google is the most valuable thing :)05:39
dgroosFor sure, and I to go to bed... :)05:39
alkisgOK, good night, cu tomorrow05:39
dgrooshave a great day!05:40
alkisgThanks :)05:40
sbalneavalkisg: So, I've been digginging into the whole lack of putXXent() problem in glibc05:42
alkisgOooo nice :) Any news?05:42
sbalneavWhat, as in solving it?05:43
alkisgOr, as in putting the solution in a timeframe or at least in a people-frame :P05:43
sbalneavHell, that'll take years :)  I'm suspecting the problem goes all the way to the posix(1) standard.05:43
sbalneavHowever, from a TECHNICAL standpoint, I think it's quite doable.05:44
alkisgdamn beurocracy (I can't even spell it right :))05:44
sbalneavI'm coding up an "example" ldap_putpwent() function that we can do an LD_LIBRARY_PATH= in front of something that calls putpwent.05:45
sbalneavIt seems so... unorthagonal that we can have nss funtion for the getXXent operations, but not the put.05:45
sbalneavThis will be.... a long term project.05:46
sbalneavBut for instance: your script...05:46
sbalneavYou just want to bulk add users.  It's a simple thing that's been implemented about 1*10^60 times.05:47
alkisg(right... even though I can't find anything on google that fits my needs :( :))05:47
sbalneavOh, wait, now you want to use LDAP at your location: ok, change the script, become an expert in LDAP05:47
sbalneavOh, now the school wants to use Postgres or Radius as an auth mechanism: change it again05:48
sbalneavand again05:48
sbalneavand again.05:48
alkisgI understand what you're saying. It would be *most* simple to use putpwent() and some ldap configuration script to specify its behavior...05:48
sbalneavwhy>05:48
sbalneavWell, that part should be INVISIBLE to you...05:48
alkisgExcept for the configuration file, which the admin would be able to edit, right?05:49
sbalneavif you set up your NSS stuff correctly, why should you CARE about the internals of where things are stored?05:49
sbalneavalkisg: sure, but do it ONCE, rather than have to worry about it for...05:49
sbalneavthe gui user add tool05:49
alkisgYup, I get it.05:49
sbalneavthe command line add too05:49
sbalneavthe bulk add tool, ad nauseum05:50
alkisgThey should all respect that line of thought, I agree. What I can't understand is how these things work in Gnu/Linux - i.e. you find a "correct way to do things", you implement it, then what?05:50
alkisgWho will "approve" your implementation? The distro managers? The users?05:51
sbalneavWell, depends.05:51
sbalneavIf it's something like this that may affect posix compliance:05:51
sbalneavfirst step would be to ensure that it doesn't.05:51
sbalneavif it does, it's a non-starter: glibc maintainers won't break posix compliance, no matter how "justified" the reason may be.05:52
sbalneavSo, at that point, I'd have to make an application to the posix committee to change it.05:52
sbalneavIf it's NOT a compliance issue,05:53
sbalneavthen hit the upstream glibc maintainers with patches.05:53
sbalneavUsually, after talking about it with them first.05:53
alkisgThat sounds difficult to get accepted... but not undoable05:53
sbalneavDistros are the LAST place to make changes like this, since they're just wanting to package upstream's goodies.05:54
* sbalneav shrugs.05:54
sbalneavIt's a process05:54
sbalneavYou follow it, and see where it leads.05:54
sbalneavFirst is to do some proof-of-concept code, which I'm working on now.05:54
alkisgYeah, but giving away your free time to write patches and then get a "no, we won't accept it" is really tiring :(05:55
sbalneavBeen there05:55
sbalneavdone that05:55
sbalneavStill doing it :)05:55
sbalneavOne thing you learn is persistence :)05:55
alkisg...and we thank you for it :)05:55
sbalneavAhhh, I wouldn't make a very good Don Quixote if I didn't have a windmill to tilt at. :)05:56
alkisgOuch, it's the first time I'm reading Don Quixote's name in English, I almost didn't understand it! :)05:56
sbalneavHeh, we jokingly call him "Quick-oats" here in Canada :)05:58
* alkisg has to get to work... be back in ~1 hour (I like the easy-going first school days that are spent python-hacking....)05:59
sbalneavOkie, off to bed for me.06:00
sbalneavNight.06:00
alkisgGood night sbalneav, bye all :)06:00
alkisgGood morning07:10
nubae|workmorning alkisg07:20
sbalneavMorning all14:52
tubmangray_Need help in setting up a new Edubunta LAb18:33
alkisgtubmangray_: anything specific?18:34
tubmangray_Is there someone or a resource that can walk me through it (new user!), thanks18:34
tubmangray_I need the basic network topology, software best for server, and for client users.18:34
alkisgIs that a normal edubuntu lab, or does it involve ltsp?18:35
tubmangray_I was hoping to use ltsp, as the client computers are mostly Pent3, and some 4s, server is a P418:35
alkisgThe edubuntu handbook was what you needed once... unfortunately, it's been a long time since it was last updated18:36
tubmangray_To serve a school in remote Liberia.  Headed there in a few weeks, and hoping to set up this in my house before packing it up to take with us.18:36
alkisgYou can find some ltsp info in http://wiki.ltsp.org/twiki/bin/view/Ltsp/LtspDocumentationUpstream18:36
tubmangray_thanks.18:37
tubmangray_Do you know if Edubunto server 7.1 is gui or not?18:39
alkisg7.10? that's ancient :)18:39
alkisgYou'd better use 9.0418:39
tubmangray_I know, but the only documentation I've found that pertains to setting up a simple lab uses that version.  Here lies my problem :(18:40
alkisgHeh. No, you *shouldn't* use 7.04. You should either use 8.04 (=lts version) or 9.04.18:40
tubmangray_ok, i will pursue LTS version.18:41
tubmangray_ver 8.1 ok to use as well?18:44
alkisg8.10? You don't really have any reason to use that. I'd suggest that you used 9.04.18:45
alkisgtubmangray_: you may try it now in your house, and if you have any questions, you could just ask here again...18:46
tubmangray_last question and sorry to be so ignorant: is LTSP on an alternate 9.04 install disk?18:46
alkisgAs for the software, the teachers will tell you what they want.18:46
alkisgYes, to install LTSP the best way is to use the alternate cd and press F4 while booting from it18:46
tubmangray_thanks!  I found those instructions with earlier versions, but never assumed same held true with 9.04.  Off to work on this, and many, many thanks18:47
sbalneavalkisg: Hey21:01
sbalneav"Try this"21:01
alkisgHi sbalneav21:01
sbalneav"Ok, I tried <different thing>, it didn't work"21:01
sbalneav"No, try this"21:01
sbalneav"Ok, I tried <yet another different thing>, still doesn't work"21:02
sbalneav"sigh"21:02
sbalneavheh, you're having fun with that monitor fellow, eh?21:02
alkisgHeh yeah it's really tiring :-/21:02
sbalneavDo it for 20 years. :)21:02
alkisgI have :( (ok 17...)21:03
sbalneavlol21:03
sbalneavAnd people wonder why us computer sysadmins become bitter :)21:03
sbalneavDo they have the equivalent to "PEBKAC" in Greek?21:04
* alkisg googles...21:05
alkisgHeh. Not really, I've only heard that in english-lang forums or irc...21:06
alkisgsbalneav: do you have any time these days to help me work out the import/export users utility I've been telling you about?21:07
sbalneavSurely.  I can set aside some time tomorrow21:07
alkisgI imagine a simple pygtk/glade dialog, with 2-3 buttons (import/export/help), and one treeview to display the users21:08
alkisgCan I send you an email with what I've got so far?21:08
nubaebah glade21:08
alkisgnubae: i'm open to new ideas... and also help :)21:08
nubaealkisg: I commented my pyqclic extremely cause Im gonna turn it into a tutorial21:09
nubaewhy dont u peruse through that21:09
alkisgNice!21:09
alkisgWhat are you using, if not glade? Plain pygtk code?21:09
nubaeof course21:09
nubaeotherwise how are u gonna learn/understand?21:10
sbalneavalkisg: Of course.21:10
sbalneavsbalneav@ltsp.org21:10
nubaeglade is kinda pointless anyway, unless u are doing a massive project21:10
alkisgnubae: I understand the need to learn, but a proper way to do things weights more in my point of view :)21:10
nubaeproper way?21:10
alkisgsbalneav: ty, I will (be gentle, it's my first time :))21:11
nubaesince when is glade "the proper way?"21:11
alkisgnubae: seperating the UI from the code, for once...21:11
nubaeheh, but it doesnt really21:11
nubaeit just gives u that illusion21:11
nubaeu're far better off doing that yourself with good code21:11
sbalneavNP, if you send it out today, I'll poke around with it at home tonight, and we can hack about a bit tomorrow.21:12
alkisgI don't know if it is accepted as the proper way or not. I'm just expressing my thoughts here... E.g. in Delphi programming, where I'm experienced, forms are also seperated from the code.21:12
nubaepygtk= code for ui21:12
alkisgsbalneav: nice, thanks, I'll try to gather what I have in a presentable way21:12
nubaehow do u want to seperate the code from that exactly?21:12
alkisgnubae: so your pygtk code is on a different file than the rest of your python code?21:12
nubaeseems kind of silly to me21:12
nubaeits ALL pygtk, if u are manipulating a window based program21:13
sbalneavSo, my example code for the blog post I'm going to do (a putpwent that's ldapified) has already surpassed 300 lines LOL.21:13
nubaeor whatever library u are using for the widgetry21:13
alkisg300 lines doesn't seem too bad if it going to fix such a major problem :)21:13
nubaethink of it this way... its gtk... and if u want to properly understand it... then do it manually21:13
alkisgnubae: I don't know.. I've developed large apps, with many many lines of code... Merging UI code with logic results in unreadable projects21:14
nubaeyeah, I'm at 1000, but I've finally modularised it21:14
nubaealkisg: whether u code with glade or without it21:14
nubaeu'll get the same thing21:14
nubaethe difference being... its like comparing using openoffice or vi to edit a lightly formatted document21:15
nubaeif u have a large program, with a complex ui, its probably worth it21:15
alkisgNot really. UI can be maintained by non-programmers, translators etc - code has to be maintained by a programmer21:15
nubaebut from what u described above, its serious waste of time21:16
nubaeand a bad way to learn21:16
alkisgWell I guess we have different opinions on this :)21:16
nubaeyeah right, I'd like to see someone other than a coder maintain complex glade ui21:16
alkisgE.g. one app may be 20.000 lines, and the UI code another 20.000 lines. *Not* having to worry about syntax errors in the later is a good thing...21:17
nubaeto me using glade is like using visualbasic, with the disadvantage that you dont learn anything new at all using glade, it just adds another layer of complexity to an already complex beast21:18
nubaeand if u want to do anything different than the basics, like inheritance of widgets and such, forget it21:19
alkisgAgain, I don't really think so... I've implemented a lot of new components in Delphi, and that didn't stop me from appreciating the fact that I can graphically design my forms21:20
nubaeto me gtk is a little like putting puzzle pieces together21:20
nubaedelphi=!glade/gtk21:20
alkisgWhy is it so different, as to change the way I think?21:21
nubaedelphi integrates the ui and code, glade doesnt, its totally different21:21
alkisgOK I think we should just leave it at "we have different opinions on this" :D21:22
nubaeI've used delphi too, had to manage a real estate program that was coded in it for my company years ago21:22
nubaewell I think you are not seeing the differences21:22
nubaeu need a visual delphi manager to understand its code21:22
nubaeu dont need that for python+gtk+cairo, etc21:23
nubaegtk is really simple in terms of layout, u have 4 methods... vertical and horizontal boxes,21:23
nubaetables21:23
nubaefixed positions21:24
nubaeand shit... i forget the 4th, cause i never use it21:24
alkisgI think I understand the differences, and they don't seem so important to me - neither C# seems radically different, neither Qt (as little as I have seen it), neither Vb (for the UI/code seperation part). But yeah, I don't think I understand your point...21:24
nubaeanyway, its like the difference between using dreamweaver vs vi21:24
nubaethats a better comparison21:25
alkisgE.g. "u need a visual delphi manager to understand its code" ==> what does that mean?21:25
nubaeimagine u required dreamweaver to read html... that u couldnt just cat it21:25
nubaehell its like using command line vs managing everything through system and preferences21:26
alkisgI also think that html is no programming :)21:26
alkisgIt's ui...21:27
nubaeyeah, so is pygtk21:27
nubaeeven MORE so than html21:27
nubaeno if I wanted to do a complex table layout that I new had to be pixel perfect, yeah I'd use dreamweaver21:28
alkisgAnd why wouldn't you use it for simple pages?21:28
nubaeafter I'd learned how to do it without it, ie, I knew all the tags, understood the underlying language21:28
nubaebecause its a waste of time and it adds useless code21:28
nubaemakes it unreadable for the most part21:29
alkisgI think you shouldn't involve the learning part on "what's the best practice" part...21:29
nubaelet me give another example...21:29
alkisglocate '*.glade' | wc -l ==> 374... so all these apps have useless code in them?21:30
* alkisg thinks we should better start an editor war...21:31
nubaeway to go for generalisations...21:31
alkisgI hear that emacs would be a great os, if it had a decent editor :P21:31
nubaeits not about that... u're creating an app with 2-3 widgets at most... what do u need glade for?21:31
nubaewhat advantage does it bring?21:31
alkisgExtensibility21:32
nubaehuh?21:32
alkisgI may want to add 100 scripts later on21:32
nubaeoh and u can't do that with a plain editor?21:32
nubaeand... is that REALLY the case?21:32
alkisgI'd prefer my co-devs to contribute glade files than plain code that I would have to read21:32
nubaebut your code is 3 widgets, their contributions are hardly gonna be glade files21:33
alkisgYes, it is. I want to develop a users manager but I don't have the time now. But the import/export thing is needed now. So it'll be a base that I hope will be extended over time21:33
nubaeI would hope at least21:33
nubaeanyway... do as you will... but I'm not the only person that thinks this way, I'm sure if u peruse the web u'll find plenty of reasons21:34
alkisgE.g. each script in http://users.sch.gr/alkisg/temp/users-manager.png would probably contain a glade file, to ask the user some specific input21:34
alkisgyeah anyway I don't think it's important that we persuade each other :)21:35
nubaelooking at your png I can seperate it into its gtk components off the top of my head without touching glade... can you?21:37
alkisgI can seperate it into delphi components. Nope, not gtk components, I have a hard time remembering them :)21:38
nubaeand it is 3 sets of widgets in the end... a menubar, toolbar, and a treelist21:38
alkisgBut my co-devs will be teachers or admins; I don't expect them to be able to do that either :)21:38
nubaeand  window to hold them in if u want to count that too21:38
nubaethere's no need for glade there21:38
alkisgWhy not graphically design something, instead of code it?21:39
alkisgI also prefer to write my docs in openoffice instead of latex or docbook...21:39
nubaeif a person can't figure out that gtk.ToolBar is a toobar, they have no business coding21:39
nubaebecause its already been made super easy in the code21:39
nubaeits unnecesary for what you are doing21:39
nubaeeven if u added 100 scripts, your glade wouldnt change21:40
alkisgAnd you think that e.g. /usr/share/synaptic/glade/dialog_changelog.glade is more complex and it justifies using glade?21:40
nubaeneed to add an item to a toolbar.... gtk.toolbar.insert(item1, position)21:40
alkisg*Each* script would come with its own glade file21:40
nubaeits really not hard at all to visualise, like I said before... easier than html even21:41
alkisgE.g. a script to add a bookmark would have an edit box to paste the bookmark21:41
nubaeyes, synaptic's menu is far more complex21:41
alkisgThe changelog dialog?21:41
nubaeits the whole thing, u cant look at one item in it21:41
nubaeeither u use it or u dont, its not I'll use it for this little bit here21:42
nubaeanyway, enough arguing... go forth and enjoy glade :-)21:42
nubaeI wonder how much the pygtk and gtk reference manuals will help you though...21:43
alkisg"its not I'll use it for this little bit here" yup, /me also thinks so... That's why I want to use it in all my projects, not only the big ones :)21:43
nubaeno... I was talking about per project21:43
nubaenot as a general rule of thumb21:43
nubaeuse it when its needed21:43
alkisgnubae: don't worry. I may be new to linux, python, *and* gtk, but I've learnt a dozen or so languages in the past, I don't think it'll give me a too hard time... :)21:44
alkisgHeck, I've made my own ncurses interface before linux made the kernel :)21:44
nubaedo u also use the systems and preferences managers for all your computer management?21:44
alkisg*library21:45
nubaesince its an all or nothing thing it seems21:45
nubaeanyway, this discussion is getting pointless...21:45
alkisgYup. OK, let's cut it here :)21:46
nubaeI've got an opinion and I wont change it and neither will you21:46
alkisgRight... /me goes back to glade...21:46
* nubae goes back to vi :p21:46
* nubae lies... he's actually using gedit21:47
alkisgHeh lier21:47
nubae:p21:47
alkisg*liar21:47
nubaeI'd use vi, if I knew all its intricate details, but I don't21:48
alkisgI don't even want to try to learn it... :D21:48
nubaeso things like searching and replacing quickly without looking it up are a pain for me in vi21:48
nubaewell its nice for quick editing and for the fact that you absolutely know with all certainty its gonna be on every system21:49
nubaenon windows of course21:49
alkisgI don't know... I think it's a relic from old times :)21:49
nubaeI've had it a couple of times sshing into a server and only having vi there21:49
alkisg...when esc was where tab is now :P21:49
alkisgI've learned my basic search & replace in vi, but only because I couldn't find any hex editor that did what I wanted :(21:50
nubaei've learned and unlearned it too many times to remember21:51
nubaebut it is indeed kind of pointless to use vi, if u have to look up a reference via a web browser :p21:52
alkisgI think I already have about 3.768 different shortcuts in my mind... I could store another 1.000 needed for vi :P21:52
alkisg*couldn't21:53
nubaebtw, this really helped me with pygtk: http://zetcode.com/tutorials/pygtktutorial/21:54
nubaevery easy to understand21:54
alkisgDanke :)21:55
nubaeah alignment was teh last layout method... for some reason never use it21:55
nubaebtw alkisg, Ahmuck, if its not too much trouble, would u guys mind quickly just running my program and seeing if anything strikes you as missing, odd, or just plain wrong...23:04
nubaeall u have to do is: git clone git://git.sugarlabs.org/pyclic/mainline.git23:05
nubaeand then run python pyclic.py23:06
* alkisg leaves that for another day - 1.06 am here :) g'night all!23:06
nubaeit would give me immense pleasure and peace of mind if I knew your thoughts23:06
nubaeoh well, tomorrow then ;-) dnight23:06
Ahmuckwhat is your program /23:33

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