-
I Gotta Teach These Guys Linux
Posted on September 9th, 2009 3 commentsI have the goo fortune of working with a bunch of knowledgeable Technicians and IT professionals who all need to ump up their Linux Skills. So here is a typical hour of me giving them Linux pointers and advice in our chat room.
(09:50:33 AM) Joe: http://bash.org/?14205
(09:51:12 AM) Dan: http://bash.org/?622896
(09:51:27 AM) Dan: http://bash.org/?877430
(09:51:31 AM) Joe: http://bash.org/?87517
(09:55:22 AM) Joe: I keep forgetting I am supposed to be coaxing you guys into learning about linux
(09:55:44 AM) Joe: Please, partake in this factual accuracy about Gentoo Linux: http://bash.org/?464385
(09:57:25 AM) Joe: http://bash.org/?673372
(09:58:15 AM) Joe: http://bash.org/?667626
(10:06:08 AM) Joe: http://bash.org/?233331
(10:06:26 AM) Joe: seriously time “uptime” in a linux command prompt – http://bash.org/?741630
(10:08:18 AM) Joe: The command prompt has a number variables it keeps track of behind the scene, they all start with $ and $ random is one of them
(10:08:59 AM) Joe: $RANDOM will generate a random integer usually between 0 and the largest valid size of an tint on your system
(10:09:21 AM) Joe: so on a 32 bit machine it will return a number between 0 and 2^32
(10:10:02 AM) Joe: we can see this used with the modules “%” to return a number between 0 and 5 here: http://bash.org/?96164
(10:10:41 AM) Joe: Yes that command works
(10:10:50 AM) Dan: what is the -rf ?
(10:23:41 AM) Joe: the -f means if you would ask me if I am sure instead just rm the file
(10:24:12 AM) Joe: the -r means recursive delete everything inside of things in this folder
(10:27:04 AM) Joe: http://bash.org/?34315
Unknown command.
(10:27:58 AM) Joe: /etc is where all the configuration files are stored, kind of like the registry in windows, but it can all be worked with a regular text editor
(10:28:13 AM) Joe: /root is for root, the admin user to store files and stuff
(10:28:45 AM) Joe: /home is the same as the vista c:\users or the xp c:\documents and settings
(10:29:17 AM) Joe: that is proper syntax for the shutdown command
(10:31:06 AM) Joe: http://bash.org/?253947
Unknown command.
(10:34:48 AM) Joe: /usr is where software the End user of a system is supposed to go
(10:35:04 AM) Joe: /usr/src is where all the source code for the system goes
(10:35:07 AM) Joe: http://bash.org/?7748
(10:35:43 AM) Dan: LOL
(10:37:00 AM) Joe: http://bash.org/?687845 – “lspci -vv” will tell this guy his answer
(10:40:31 AM) Joe: another one of complete factual accuracy http://bash.org/?849884
(10:40:49 AM) McD left the room.
(10:49:13 AM) Dan: hehehe
(10:49:21 AM) Dan: thus the creation of bash.org
(10:50:55 AM) McD entered the room.
(10:50:55 AM) mode (+v McD) by Dan
(10:51:28 AM) Joe: Linux is just a kernel (drivers and stuff), GNU adds all the commands and utilities (ls, the command line a login system etc…), then there are two major desktop environments(menus and buttons and GUI stuff) KDE and Gnome, the people who made these named much of their software starting with either k o a g http://bash.org/?639564
(10:51:37 AM) Joe: k or gI got paid to be part of this nonsense. I got paid well to be part of this. My life is so much better than it was a month ago.
-
Linux Printers are a Pain in the Neck
Posted on August 25th, 2009 No commentsWhat printers aren’t a pain in the Neck? I have never had a printer that didn’t suck down ink faster than I suck down mountain dew, unless that printer was impossible to setup properly. At home I currently have an HP photosmart 8180 which was easy to setup, so it must suck down ink. Oh and it does, even though this monstrous printer only cost me $50 (Hp and Office Depot used to love me) I have easily purchased enough ink to add up to it’s original retail price.
Sqeaky’s Rule of Printer Pitfalls:
No printer used for real work will be easy to setup and have cheap ink.
Corollaries:
1. If the printer wastes ink faster than an ink filled super soaker, it will take all the intelligence of a cucumber to install and configure because it is fully automated and full-featured.
(Epson, Lexmark go here, some HP inkjets go here).
2. If the printer is reliable, and has good ink economy, it will be slightly harder to setup than a nuclear power plant.
(any Multifunction Laser Printer that supports Networked Scanning. Brother makes lots of these, and all Dell laser printers)
3. If the ink economy is good and setting it up is easy, something new will be invented that will eliminate your need to print ever again. The more expensive the printer was the faster this happens.
(After I invested in a high scale book publishing press they released the kindle the following day
)
Not everything in Linux requires arcane commands to get working. To hook up my photosmart to print you just need to plug it in. To scan with it you just need to plug it in… and have SANE and some scanning software installed. By default plugging this, or adding almost any printer directly to an Ubuntu machine is as simple as just plugging it in. If you are using the Ubuntu netbook remix you might want to do a search in synaptic for “sane” or “gimp” and install the plugin. The gimp-sane plugin is a great scanning application for small scanning projects.
You don’t always want to simply plug it in. Sometimes it will get hooked up to a network and all the machines and users on the network can access it. For the most part setting this up is easy too. To connect my photosmart like this, I just connected it to the Wireless network using the built in screen and menus, and ran “sudo hp-setup” at the command prompt on my computer. It took off finding my printer right away, then it configured the right driver and it was done. Easy… Too easy. I knew the printer pitfall rule back then. That was when I figured out out my printer was an ink sieve.
Yesterday, I was asked to print something for the first time at my new job. I went to go find a printer, and I stumbled across an HP LaserJet 3390. “Oh, easy” I thought. I was sure all I would need to do would be to run “sudo hp-setup”. Then I got every error imaginable including phrases like “error: hp-setup requires GUI support“, “prnt/backend/hp.c 676: INFO: open device failed stat=12“, “io/hpmud/pp.c 627: unable to read device-id ret=-1“, “error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP” or “error: Unable to communicate with device (code=12)“.
I worked through, past or around every error until eventually I just kept getting “error 12″ or “code=12″, but none of those solutions were helpful. They all made the broken thing look more like it worked, but HPLIP, the software behind hp-setup, simply would not work with this printer on this network with the driver that was supplied. I found tons of issues like mine, but all their solutions revolved around USB, permissions or hardware failures. I know it works, because it prints, permissions seem in order, but I cannot find the exact file in /dev, if one even exists and I can’t use any of the USB solutions. The wide variety of causes and solutions to error 12 and the small amount of exact matches on google (1,060 at time of writing) lead me to believe it was a dumping ground for problems that the developers used when nothing else really fit.
So I needed another way to set this up. A coworker of mine, Ken, suggested offhandedly “have you tried the CUPS configuration page at http://localhost:631/“. This link will only work if your computer is running CUPS, the Common Unix Printing System. I clicked the add printer button, I entered some descriptive information. It did ask for the model number so it could select a driver, but that was listed on the front of the machine. Then it asked for the URI, an address for the printer. They gave me some examples so I knew it started “socket://” then I tacked on the IP address, which the hp-setup tool dumped out countless times.
After that it simply worked. I went to the Ubuntu printer settings and easily printed a test page. I banged my head on the hp-setup tool for more than an hour, but Linux has a million and one solutions for some of these problems, why should I get hung up on doing something any one specific way. It could have been a bug in the HP tool, the driver the printer wanted me to use, some weird conflict because the tool was trying to add the printer as a fax machine also, or any of dozen other things I couldn’t control. CUPS was already on my system, it already had the driver, and I only needed to print. Looking at it like this it’s pretty obvious how I should have started from the get go.Now, I know this printer has decent ink economy, and will be here to stay. Since it was tough to set up I guess I got a blog post out of it too.
-
Chrome OS is Getting Talked About
Posted on July 13th, 2009 No commentsIf you haven’t heard yet Google is announcing a new Operating System centered around their Chrome Web browser. They officially announced it July 7th. Some are unsure what to think, while others are concerned. Some know it will succeed, while others know it will fail. What does this mean for android Google’s other operating system? This new development from Google is certainly causing a huge buzz regardless of what it means for everyone else.
One thing I am certain of is that it won’t fail for lack of Publicity. If you were paying attention to the here and now, you noticed that every word in this article is a link. Other than technical terms every link is to a different news story about Chrome OS. Few can generate press as well as Google. Since this news broke it has felt like the Internet was Google’s personal broken record player. HINT: It stops being news when everyone knows about it.
Google has proclaimed that it won’t be available for a long time. It is vaporware just like Duke Nuke’m 4ever. It is only real and only actually matters once it is on our computers. Yes, I welcome this, but I wish everyone would take a hearty dose of perspective.






