Sponsored by HowLifeWorks
New Food Sprinkle Convinces the Brain to Stop Over-Eating view!
howlifeworks.com - How sophisticated scents are helping people control their appetite and lose weight
61 Comments
- Culyt, on 04/26/2009, -1/+20QUICK!, Someone post a picture of a mountain goat!
- diggnidy, on 04/26/2009, -4/+19why is this on the frontpage?
/s - iammatt, on 04/26/2009, -1/+15This is a tutorial for Linux programming. Not for your average user. This isn't for the 95% (as you say) of users, which are the same 95% that don't care!
The same could be said about a c++ tutorial for Vista/7 - Zeusbwr, on 04/26/2009, -1/+13"In order to write a GUI front-end for all the hard-to-remember commands, you need to remember all of those commands to begin with - so why write a GUI?"
I'm sort of perplexed at this argument from all sides. You don't have to "remember those commands to begin with". You have to find them, sure, but not recall them strictly at your own will. Google, textbooks, friends who are competent, etc, are all usable when your writing this "GUI". So sure, you have to find them to begin with, but the difference is it is at your own leisure, when your writing an app. If you can't find that one command that is puzzling you, no biggie, find it tomorrow. If you can't find it when your connecting to the server.. well, you might need to find it then and there. Always less fun. - forrondur, on 04/26/2009, -0/+10Bah, I was hoping for a curses-based UI library, but this is just a wrapper around the normal curses API... It would be much easier to just use bash and dialog for things like this...
- clip9, on 04/26/2009, -0/+9This is a programming tutorial you moron. Jeez.
- chris062689, on 04/26/2009, -1/+10I still think many administrative applications would do much better with a simple CUI (Command-line Interface) with curses.
Think about it, it would be much easier to tunnel into other computers (remote administration made easy!)
I don't understand what's up with all of you kids today and your fancy KDEs and Compiz! :D - DomZy, on 04/26/2009, -1/+9There's an graphical way to add a user in ubuntu anyways...
- MrAbbas, on 04/26/2009, -0/+8dugg for python!
- MattBD, on 04/26/2009, -0/+7I've always found that man pages are OK as a reference, but little use for learning something from scratch. Still, they should always be your first call if you can't figure something out.
- sirhomer, on 04/26/2009, -0/+7Digg used to be a website for programmers and computer experts. Believe it or not, this mountain goat bestiality fans / politics / LOLCat crowd came afterwords.
- Krissam, on 04/26/2009, -1/+8actually yes you do the worst thing that will happen will be deleting your c:\windows folder, since the rm command is missing an argument.
- zodieman, on 04/26/2009, -2/+9This stuff is great when you need to have a Windows tech guy do basic things on UNIX. They can't be bothered to learn anything new, so this makes it easy for them and makes them fell all warm and cozy because it's a "gui".
- MWeather, on 04/26/2009, -0/+6Wait till they try and administer an Exchange 2010 server without touching the command line. Does powershell have a curses equivalent?
- thushan, on 04/26/2009, -0/+6I thought someone on CodeProject (.com) had posted how to build an NCurses UI with Python :O Dugg regardless.
- clip9, on 04/26/2009, -3/+9Oh come on.. thats really low. Most man pages are actually very easy to read and understand. Just open a few and you'll see that most of the stuff you need to know is in the first few paragraphs.
- td001, on 04/26/2009, -1/+7GUI's are for sissys!!! lol
just learn to use bash and your CLI tools people. - maz2331, on 04/26/2009, -0/+5Anyone who can't learn or remember how to manage it via a CLI has no business whatsoever managing a server. For a desktop, a GUI is fine, as desktop users are not necessarily professionals.
Think of it as weeding out the incompetent sysadmins who can make users' lives a living hell by screwing up a system. - chadillac83, on 04/26/2009, -1/+6my .02 exactly
- sirhomer, on 04/26/2009, -0/+5curses really isn't a UI library per se, it's a friendly wrapper around the terminal driver. There are full blown UI toolkits built ontop of curses like CTK ("console toolkit"), which include stuff like actual widgets like textboxs, checkboxes, etc. It would be more interesting to have a tutorial on how to use this over Python (I only know how to do it from C).
- chadillac83, on 04/26/2009, -0/+4right because my grandma can easily restart her Apache server on her OS X box daily.... or need to write a custom GUI to do it because she doesn't remember the CLI commands...
I hope the sarcasm isn't to thick for ya. - MWeather, on 04/26/2009, -0/+4"In order to write a GUI front-end for all the hard-to-remember commands, you need to remember all of those commands to begin with - so why write a GUI?"
So you only have to remember the command once. Once the GUI is in place you never have to remember/track down the correct command again. - FKnight, on 04/26/2009, -0/+3Buried for n00b -r -f
try -rf - Peterix, on 04/26/2009, -0/+3nobody wants to mess with it, herding cats, etc.
- Stonekeeper, on 04/26/2009, -1/+4I like the bit where he makes a GUI with python and ncurses.....
- MWeather, on 04/26/2009, -0/+3Stick it on a USB, then. Or wget it.
Scripts are handy things to have around. You might like typing out lengthy command after lengthy command, but personally, I have work to do. - MattBD, on 04/26/2009, -0/+3Actually you haven't quoted anything to delete in "sudo rm -r -f" so it wouldn't do anything - I suspect you meant to put / at the end which would delete everything in the root directory (and as the -r option makes this recursive, everything in the directories below that).
- chadillac83, on 04/26/2009, -1/+4and then once you use a machine that doesn't have your GUI installed you're up a creek without a paddle.
it's really NOT hard to remember this stuff people wtf. - DiscoUnderpants, on 04/26/2009, -0/+3No it isn't. It is ncurses. ncurses is a console based UI library with a lot of history.
- inactive, on 04/26/2009, -1/+3I like opensuse for this reason.
Suse has always had lovely cli tools :) - Peterix, on 04/26/2009, -0/+2terabaSe: block'd
- MattBD, on 04/26/2009, -0/+2I work for an insurance company in a customer services role and many of the applications we use are curses-based ones that we access via telnet. No-one has any problems using them.
- brianpeiris, on 04/26/2009, -0/+2Absolutely! Python is installed by default. So go to Applications > Accessories > Terminal and start typing!
- bdbr, on 04/26/2009, -0/+2This is a menu - hardly a UI. We used to make batch front-ends like this in DOS back in the 80s.
- chris062689, on 04/27/2009, -0/+2Sure you could, and that would work great.
Except that it would transfer a lot of "unneeded" bandwidth.
With CLI applications I assume it uses a lot less. - aamer, on 04/27/2009, -0/+2You might understand it, but curses is still very useful for more complex scenarios; especially when the output is not easy to read manually or when the end user is not as sophisticated.
- SteveMax, on 04/26/2009, -0/+2"B-b-but Suse is evil! It's from Novell! They eat kittens for breakfast, babies for lunch and puppies for dinner!"
Now seriously, as far as configuration tools go, Yast is possibly the best. I still would prefer them to keep things under standard locations and use well-written and commented config files (Slack-style), but since that seems to be impossible nowadays, Yast having various frontends including Ncurses the next best thing. - jimi1337, on 04/26/2009, -0/+2Report received! Thanks.
- h0ly, on 04/26/2009, -0/+2I think it's just meant as an introduction in order to make people interested in the subject.
- RoboDonut, on 04/27/2009, -0/+2"rm -rf /" just tells you that you cannot remove the root directory.
"rm -rf /*" deletes everything in the root directory. - inactive, on 04/26/2009, -0/+1I thought so too, considering that's what the title says.
- HonoredMule, on 04/26/2009, -0/+1I agree about bash, but perl is much more sane and works fine in its place. Perl scripts are only as ugly and screw-balled as the author that wrote them, and it has direct access to any system commands/C programs just like bash. I thought perl was already a de-facto standard for sysadmin scripting when bash is too ugly or insufficient.
- Meocross, on 04/26/2009, -3/+4Why cant linux adopt cisco's help wizard? for the love of god WHY?
- and386, on 04/27/2009, -0/+1That's a pitty my boss think otherwise. ... cry .. We have a few servers with a full X setup + freenx. I must say, it's really easy to administer boxes that way. The only thing is that sometimes the graphical tool doesn't do what we want, and then it's a hellish experience. Hopefully I can go back to the CLI goodness. But my boss can't ... So yes, you can make Linux looks like windows server, but you'll still have to pay the price, that price being freedom.
I don't understand why people wouldn't want to invest some time in understanding how their system works. Especially in the case of linux, there is such a documentation. You can understand the system far beyond Windows would allow you. ... It's free and open source ! - pedepy, on 04/27/2009, -0/+1eh can't you use one of them x sessions via ssh or something ?...
- petikeke, on 04/26/2009, -0/+1Not for me. I am pretty hopeless at shell scripting, I hate the syntax, and can never seem to get a shell script to do anything that contains even a slight bit of logic.
On the other hand I love python, use it regularly for writing scripts (I quite often use it for situations where otherws would use a batch file/shell script). - 007isbond1, on 04/27/2009, -0/+1everyone in this thread lrn2debian
- Meocross, on 04/27/2009, -0/+1peh >_>
- Engival, on 04/27/2009, -1/+1# useradd
usage: useradd [-u uid [-o]] [-g group] [-G group,...]
[-d home] [-s shell] [-c comment] [-m [-k template]]
[-f inactive] [-e expire ] [-p passwd] name
seriously, if you can't understand that, maybe writing a nifty wrapper in python is a bit too much for you. -
Show 51 - 64 of 64 discussions



What is Digg?