Unix and Linux Help, Resources and information for Unix/Linux, Mac OS X. Articles on blogging, web site mechanics, and self employment. Thousands of articles, reviews, consultants listings, skills tests, opinion, how-to's, suggestions and more. This is the Blog section, which always has the newest additions. There is new content daily, most of it exclusive to this site, and all of it is indexed and cross-referenced to help you find what you need. This is not yet another mirror of the Linux LDP or someone else's Unix FAQs. If you've never been here before, there's a lot to explore.
Somebody please explain this to me? Both McCain and Obama are now saying that we need to open up drilling in areas previously environmentally protected. Obama may be a bit more reluctant, but he still seems to be in favor.
A full page ad in this month's Discover Magazine asks "Is tomorrow's energy right in front of us?". It then goes on to complain that 85% of the resources on the Outer Continental Shelf are off limits, and states that there could be 36 billion barrels of oil sitting there that we could get if we weren't so worried about marine wildlife.
Wow. Thirty six billion barrels. That sure sounds like a lot. But it isn't. From what I can find on the web (and please do correct me if I'm wrong), the United States alone uses over 7 billion barrels a year. Seven billion barrels. So those vast off-shore resources would add about 5 years worth of oil.
Five years worth? If we need an extra five years worth of oil, we're in big, big trouble.
We probably ARE in big trouble, but isn't it far past time to face the music and start serious work to get off oil? I don't think risking more damage to our oceans (we may have done too much already) for a lousy five years of putting off the inevitable makes any sense.
So.. somebody tell me why I'm all wrong?
/Opinion/oil-reserves.html copyright and reprint notice
Before we get started, what's the first word you think of when I say "email"?
Was it Outlook or Outlook Express? Maybe AOL? Or Webmail?
Those are things you use to send email, to read email other people send you, but how does it all work? If I send you an email, how does what I write get from my computer to yours?
By the way, some people think Microsoft invented email. Actually, email goes way back to 1965, ten years before Bill Gates ever thought about computers. By 1972, people on the Internet were sending and receiving email using the same "bob@somecomputer" addresses we use today. Microsoft didn't even start connecting to the Internet until the mid-90's and Outlook didn't exist until 1997! I had an Internet email address in 1991.
Here's how:
Don't panic - yes, it's a liitle geeky, but you don't have to study it or understand what each line means. The stuff your computer sends is in bold, the normal stuff is the answers from the server.
Connected to aplawrence.com. Escape character is '^]'. 220 vps.pcunix.com ESMTP SMTP Ready; Fri, 8 Aug 2008 15:12:09 GMT HELO aplawrence.org 250 vps.pcunix.com Hello pool-71-184-234-68.bstnma.fios.verizon.net [71.184.234.68], pleased to meet you MAIL FROM: tony@aplawrence.com 250 2.1.0 tony@aplawrence.com... Sender ok RCPT TO: pcunix@aplawrence.com 250 2.1.5 pcunix@aplawrence.com... Recipient ok DATA 354 Enter mail, end with "." on a line by itself Date: Aug 25, 2008 Subject: Test message Hi there . 250 2.0.0 m78FCoC86720 Message accepted for delivery QUIT 221 2.0.0 vps.pcunix.com closing connection
That's a record of an actual email being sent. Every time you send an email to anyone, something very similar to that takes place. Your mail program (Outlook, Aol, Webmail, whatever) makes a connection to another server, introduces itself (the HELO above), tells who the mail is from and who it is going to, and then issues a DATA command followed by the actual email. When it has sent everything, it sends a period (".") on a line by itself, and that's the end of it.. as far as your computer is concerned anyway.
The server you sent the mail to could be the server that is really responsible for the mail. That is, if the mail is going to tony@aplawrence.com, some server in the aplawrence.com domain will be the one that mail ultimately needs to get to. However, you probably use your ISP's server or maybe Aol or Gmail or MSN. In that case, you'd be sending the mail to (for example) Verizon.net or Comcast. That server would "relay" the message to my server at aplawrence.com.
Let's say I need to send you email. You are "joe@verizon.net". So, sooner or later I or someone I get to relay my messages needs to connect to a mailserver at Verizon.net and send the mail just as we did above.
Every email message gets sent the same way. It doesn't matter if you use Outlook, AOL, webmail or whatever: the session I show here is what actually happens.
But wait a minute. Verizon must have thousands of computers. How do we know which one to send it to?
We ask DNS.
You may not know what DNS is, but your computer talks to it all the time. Every time you look up something on the web, your browser asks DNS a question. You want to read news.google.com? Your browser asks DNS where news.google.com is, and DNS says "74.125.47.147, 74.125.47.104, 74.125.47.99 and 74.125.47.103, take your pick". Your browser will probably take the first one,
Why does it need that number? Basically the same reason you need to look up telephone numbers: the telephone system works with phone numbers, the Internet works with IP (Internet Protocol) numbers.
Oh, so that's easy then: we just ask DNS where "mail.google.com" is, right?
Umm, no, not quite.
Let's back up a minute. "mail", "news", "www", "maps" - all of those are things you'll find at Google.
Do the names mean anything?
How many of you think that if I say "Use your browser to go to oakpointcommunity.org" you HAVE to type "www.oakpointcommunity.org"?
You don't. You can just type "oakpointcommunity.org".
And that's true for almost all websites. There are a very few that are set up so that you really do have to put in that "www"; most do not need it.
Every computer on the Internet has a name. Some are named "www", some are named "news", some might be named "fred" or "mary". Some have more than one name: I'm "Tony" to you guys, "Anthony" to the IRS, "Tone" to my daughters.. Computers can have more than one name too.
Even your computer has a name when it is connected to the internet. For example, my computer right now has the name "pool-71-184-234-68.bstnma.fios.verizon.net." (tomorrow it might have a different name; we'll talk about that another time).
The computer that handles mail for Google or Verizon or me might be named "mail", but it doesn't have to be. It could be named "BigOldBob" (and so could a webserver). So there's a special way to find out where the mail should go: you ask DNS for the "MX" or "Mail eXchange" record.
Let's ask DNS about Google's MX records:
;; ANSWER SECTION: google.com. 6953 IN MX 10 smtp4.google.com. google.com. 6953 IN MX 10 smtp1.google.com. google.com. 6953 IN MX 10 smtp2.google.com. google.com. 6953 IN MX 10 smtp3.google.com. ;; ADDITIONAL SECTION: smtp1.google.com. 3420 IN A 209.85.237.25 smtp2.google.com. 3543 IN A 64.233.167.25 smtp3.google.com. 3172 IN A 64.233.183.25 smtp4.google.com. 3504 IN A 72.14.221.25
That means that Google has at least four mailservers and that I should feel free to connect and talk to any one of them if I need to send mail to someone at Google.
Now remember, your Outlook or whatever you use probably doesn't connect to Google. It most likely connects to your ISP and their mailserver is the one that looks up the MX record and gets it to the right place.
Simple so far? But wait.. why doesn't your Outlook just go right to google.com or aplawrence.com or wherever it needs to go to and deliver the mail directly? Why does it go through another server?
Well, it could go directly, but more and more ISP's won't let it. Why? Spam.
We'll get a liitle geeky here so try to stay awake. Remember I said we "connect" to the mailserver? Well, we do, but we connect on a special "port". Specifically, to send mail, we connect on port 25 - that's the SMTP (Simple mail Transfer Protocol) port. Think of ports like telephone extensions. We ask DNS what the MX is for aplawrence.com and it tells us that it is 64.226.42.29. We connect to that address and ask for port 25.
What does it talk to on port 25? A mailserver program. That might be Sendmail, Postfix, Qmail, Kerio (that's what I sell) or one of many others.
You might be able to do this right from your computer. If you are using Windows, do Start->Run and type "telnet aplawrence.com 25". If you have a Mac with OS X, open up Terminal and type the same thing. You might see this:
Trying 64.226.42.29... Connected to aplawrence.com. Escape character is '^]'. 220 vps.pcunix.com ESMTP SMTP Ready; Fri, 8 Aug 2008 16:12:10 GMT
If you do, you could actually send me mail by typing the same commands we saw at the beginning: HELO, MAIL FROM: RCPT TO:, DATA.
But nowadays many ISP's block port 25 going anywhere EXCEPT to their mailserver. As I said, they do this to help prevent your computer being taken over by a virus and being used to send spam. That virus isn't going to use Outlook to send mail (though it may look in Outlook for people to send to). It will try to send directly because it doesn't want to go through any filtering your ISP may have and it also wants to send messages very quickly - lots and lots of messages. Blocking port 25 can at least slow it down and your ISP may be able to notice your infection more easily.
Nothing. We'll see later that spammers and virus email almost always pretend to be from someone else.
OK, we're all clear on how mail is sent? That's great, but we have to GET the mail too. How does mail get FROM the mail server back to our computer.
I'm assuming you are using Outlook or Thunderbird or some other MUA (Mail User Agent). I will talk about Webmail eventually, but right now we're going to look at it this way.
(I snuck in that TLA (Three Letter Acronym). Outlook is an MUA, a mailserver is an MTA (Mail Transfer Agent). If you ever had to take a test on how mail works, you'd need to know that. You probably aren't planning on taking that test, right?
There are three common ways your computer (or your cell phone) can get email from the server that has been storing it: POP, IMAP and MAPI. The first two are "open" protocols, MAPI is Microsoft. Unless you are talking to a Microsoft Exchange Server or something that acts like an Exchange server, you'll be using POP or IMAP. POP stands for "Post Office Protocol" and IMAP is "Internet Message Access Protocol".
Most servers can handle either. That is, you could tell Outlook to use POP (its default) or IMAP and you'd still get your mail. So which is better?
IMAP. Microsoft stupidly puts POP as the default, so that's what most people choose, but most would be happier if they used IMAP. What's the difference?
POP brings messages to your machine, while IMAP ALWAYS leaves messages on the server. IMAP only downloads header information initially. That can be advantageous for slow connections and for being able to access your email from multiple locations/machines. Pop also has the disadvantage of only using one folder (INBOX) while Imap can have multiple server folders.
Webmail uses IMAP, by the way.
If you are accessing Email from two or more computers, you may find that IMAP makes it easier to maintain a consistent view of your mail. However, you can achieve the same thing if you tell POP to leave a copy on the server and delete it when you delete your local copy.
If you mix Webmail with POP, you are going to get confused because Webmail will show you only the messages that have not been removed by POP.
The disadvantage of IMAP is that if you cannot connect to the server, you can't see mail that you've already seen (unless you have specifically copied it to a local folder). With POP, what has reached your inbox is now on your machine: you may not be able to get at new messages, but your old messages are here.
Some IMAP clients allow local storage automatically..
If your local machine doesn't get backed up, having the messages stored on the server can be a life saver. Of course if the server isn't being backed up, using IMAP can leave you with nothing at all after a server crash. It's never a bad idea to copy important email to local folders.
Another problem with POP is the way Outlook handles messages. Outlook and Outlook Express are very stupid programs. What they do is mash all messages together in one giant file with extra information stuck in so that it can be sorted by date, by name and so on. The smart way to do that is to leave the messages as individual files and build a separate index for sorting. Then if abnything happened to the index, you could rebuild it by re-reading the messages.
What do you think you get when something bad happens to Microsoft's big mashed up messages/index file?
That's right, you don't get email. In fact, you might lose ALL your email and although Microsoft has a program (SCANPST.EXE) that can sometimes fix things, more often it fails miserably and leaves you with nothing. All that email from your kids, pictures of grandkids, whatever, all gone..
And does it screw up often? You can bet your bippy on it. One of the most common problems I see is the "2 Gigabyte inbox" problem. Windows XP and all older Windows operating systems can't have a file bigger than 2 Gigabytes. That's a pretty big file, but if you keep saving email for years, you can get there easily. And what happens when you do? Does Outlook say "Gee, I'm sorry but I can't do any more email until you delete some"? You wish.. no, Outlook just crashes and burns - that's why I said it's "stupid". It's stupid because they did it the wrong way to start with and they don't take the trouble to protect you from a problem that WILL happen if you don't delete some mail or move it somewhere else.
And by the way, that Deleted Items folder really isn't another folder. All those messages are still in your Inbox counting toward that 2 Gigabyte limit. The only way to clean that up is to "Purge".
These are just some of the reasons I dislike Microsoft. Don't get me started.
Anyway, back to mail. When you set up Outlook for the first time, you are going to be asked a few questions: your name, your email address, and then "Server Type". What are the choices?
Right, POP or IMAP.
Then it will ask for server information: Outgoing server? That's the server you use to SEND mail, usually your ISP's SMTP server. Incoming Server? The server you GET your mail from, by POP or IMAP.
You can do POP from the command line too. Here's an example:
telnet popserver 110 -server will (or should) respond indicating that it is ready user username - server will tell you that a password is required pass usernames_password - server will tell you how many messages username has list - server will show you size of each message retr 1 - first message will be displayed quit
Isn't that neat? No? Well, it is, because if Outlook isn't working you can use this to test whether it is Outlook or your server. You can test IMAP too:
The stuff you'd type is in bold. The "abc1" etc at the begining of each command is just a tag you make up. Supposedly it should be unique for each line; I've found that with most servers you can actually use the same tag over and over again.
telnet 10.1.36.248 143
Trying 10.1.36.248...
Connected to 10.1.36.248 (10.1.36.248).
Escape character is '^]'.
* OK e-smith.pcunixx.com IMAP4rev1 v12.264 server ready
abc1 login linda AFr54Tui8
abc1 OK LOGIN completed
abc2 select inbox
* 1 EXISTS
* 2 EXISTS
* 1 RECENT
* OK [UIDVALIDITY 1020929003] UID validity status
* OK [UIDNEXT 1020929444] Predicted next UID
* FLAGS (\Answered \Flagged \Deleted \Draft \Seen)
* OK [PERMANENTFLAGS ()] Permanent flags
* OK [UNSEEN 2] first unseen message in inbox
abc2 OK [READ-WRITE] SELECT completed
abc3 fetch 2 body[text]
* 2 FETCH (BODY[TEXT] {25}
This is just a test
)
* 2 FETCH (FLAGS (\Recent \Seen))
abc3 OK FETCH completed
abc4 close
abc4 OK CLOSE completed
abc5 logout
* BYE e-smith.pcunixx.com IMAP4rev1 server terminating
connection
abc5 OK LOGOUT completed
Do I expect you to remember that? Of course not - I don't even remember it. I have to look this stuff up every time I do it. The point is not to remember it, but just to see that it's really relatively simple. A few magic words, and you are talking directly to your mailserver! You'll probably never do it - even I don't do this very often - but it shows you that it can be done.
And of course you can test SMTP as we saw at the beginning.
Webmail is just IMAP through a browser. Verizon has Webmail - you can use Outlook, but you can also use Webmail. As I mentioned above, it can be confusing to use Webmail and POP together because by default POP deletes messages from the server and IMAP only shows what is on the server. If you use IMAP instead of POP, there's no confusion.
Gmail is Webmail. I really recommend that people get a Gmail or MSN, Hotmail or something like that. Why? Because if you have "peg@verizon.net now", and then switch to Comcast next year, you'll have to change your email address.. if you have "peg@gmail.com" you'll never have to change it.
My opinion? Gmail is the best right now. If you want to get a free Gmail account, just point your browser at gmail.com. It's easy to sign up.
Let's have a little test. Nothing we've talked about yet, but which of these addresses would get to me?
pcunix@gmail.com "Tony Lawrence" <pcunix@gmail.com> pcunix+hello@gmail.com pcunix(hi there tony)@gmail.com
Answer: Probably all of them. They are all legal addresses according to RFC822 and RFC2822. RFC's are documents that describe how things are supposed to work so that when somebody wants to write a new MUA because they hate Outlook, they can be sure they are doing everything they are supposed to be doing.
So MOST (almost all) MTA's and MUA's will happily deliver "pcunix+anything@gmail.com" just as though it were "pcunix@gmail.com".
There are lots of RFC's on the Internet, most serious, but some are just meant to be funny - especially those published on April 1st of each year. See http://www.faqs.org/rfcs/ if you happen to be a computer geek.
By the way, have you ever gotten an email where a lot of the lines ended with "=" signs and another character or two? Like
This is a line=20
If you look at RFC2045 you can learn what that's all about. But what RFC2045 won't tell you is that this "quoted printable" encoding is often used by spammers to disguise their junk from mail filter rules.
Mail Filter Rules? Sure, Outlook and almost all MUA's have filter rules that can automatically delete messages or move them into special folders based on content.
Remember that "pcunix+hello@gmail.com"? Suppose I said "Use pcunix+ComputerClub@gmail.com"? I could then write a rule that looked for that address and put those in a special folder. I could tell my children to always use "pcunix+dad@gmail.com" and file those somewhere else - automatic email organization.
Is it hard to write rules? No. If you have Outlook, just give it a try - you'll probably have no trouble at all. Most Webmail programs have rule filters too.
Some mail servers (most) also have server side rules for the same kind of thing, though most of that today is for spam and virus filtering.
Ahh, viruses and spam. The curse of email, and particularly so if you run Windows. If you run Mac or Linux you don't worry very much about virus infection; it's almost all aimed at Microsoft. But spam is aimed at everyone..
Remember the reply address Outlook asked you for? What would stop you from putting MY email address in there?
Do you think that spammers use a legitimate reply address? They might if they want you to send them email, but usually they want you to go to a website, so the Reply-To may be bogus. How about email containing a virus? How likely is that to contain a real email address?
Actually, it usually does. Oh, not the address of the person really responsible, but a real address. Here's how it works:
A virus takes over your friend Mary's machine. Mary was very careless, she doesn't have a hardware firewall and she didn't buy any AntiVirus Software. She picked up a nasty virus and it's in her computer.
First thing the virus does is check Mary's Outlook. Oh, good, she uses that "wonderful" Microsoft product. Let's see who's in her address book, shall we? There's Bob, and Ellen, and.. OK, let's see if we can send Bob some spam and we'll say it's from Ellen so he might open it. We won't send any that says it's from Mary because we don't want anybody to trace the origin back to here - the longer we can run undeteced, the better. Maybe we'll send Ellen a copy of ourselves and say it's from Bob..
And off it goes. That's one use for Virus programs; there are others. Your computer might be used as part of an army of 'bots that will be used to annoy and distract a financial web site while another computer tries to break in.. please, use a hardware firewall and use anti-virus software.
Which A/V software? Cousin Joe says McAfee is junk. The computer guy that came to your house says Symantec is horrible and that he uses clamAV.
Truth? The free stuff, like ClamAV and a few others, is a lot better than nothing. The stuff you pay for (McAfee, Norton, et al.) will stop more threats but will also bog down your computer more. The number one reason Windows computers get so frustratingly slow is because of anti-spam and anti-virus software.
Pick your poison. Using SOMETHING is infinitely better than using nothing. I have a customer that scans with four different products: once before the mail server, twice at the mailserver, and again at the desktop. He still gets a virus infection every now and then.
I want to leave some time for questions, but before that I do want to cover some email etiquette.
First, don't send email with blank subject. Some email filters automatically delete anything with no subject. Put SOMETHING in there - "Hey" is better than nothing!
Don't type IN ALL CAPS. It's hard to read and it makes you look a little stupid. Don't do it.
If you are forwarding the latest joke, take a minute to delete out all the unnecessary stuff and remove those leading "<" and ">" signs.
When mailing to a bunch of people, put yourself in the To: box and put all the rest in the BCC: (Blind Carbon Copy) box. This cuts down on accidental Reply-All messages..
Oh, and when forwarding anything that says PopTarts give you cancer or that Obama kissed McCain on the lips, try checking it on Snopes.com first. You could save yourself some embarrassment.
Why can't I open the attachment Mary sent me?
Because Mary has a program on her computer that you don't. For example, I sometimes see people with older computers send out Microsoft Works attachments. Strangely, Microsoft Word (which is what most of you use now) can't open Works documents. There is a conversion program you can get from Microsoft that will let Word read Works files, but you have to download it.
Or: Outlook Express (version 6.0 onwards) has a security setting which prevents attachments being opened. To change this setting, go to the [Tools/Options/Security] dialogue and untick the box labeled "Do not allow attachments to be saved...".
It gets worse: Microsoft Outlook (version 2000 SP3 onwards) absolutely prevents the opening of certain types of attachments. Isn't that nice?
Why did the email I sent to Bob bounce back to me? Or why is it stuck in my Outbox?
Almost always I find that the address was mis-typed. It was supposed to be "bob@verizon.net" but you typed "bob@verizon.com" or "bob,@verizon.net" (comma instead of period).
Sometimes Bob has left Verizon and gone with Comcast.
How do I automatically send an "On vacation" message?
Many Webmail programs have such a setting (Gmail does, for example), but Outlook makes it hard. See http://www.mccordweb.com/newsletters/instructions/vacation-message.php for detailed Outlook instructions and http://email.about.com/od/outlookexpresstips/qt/et102806.htm for Outlook Express.
How can I find someone's email address?
There is no sure way. You can try Googling their name - it's easy to find people like me that way, but for most people you'll come up blank or get someone else's email.
I hit "Reply-All" but Outlook says there is something wrong with one of the addresses.
It got munged somehow. All you need is the "xyz@abc.com" part. So strip out everything else ("Joe Blow" <joe@xyz.com> becomes joe@xyz.com).
I have "mary@aol.com", "mary@verizon.net" and "mary@gmail.com".. it's very confusing!
All mail services let you "forward" your email somewhere else. So if you like Gmail, have all your AOL mail forwarded to there and do the same with your Verizon account.
Why do I get rejection messages for mail that I did not send?
Answered above in the section that talks about virus infection.
Do Challenge-Response systems prevent spam?
Yes, at the cost of really annoying everyone else. These are the systems that intercept email and won't send it to you until the sender proves who they are and you accept the proof. These do prevent spam, but are very, very annoying.
/Mail/intro-basics.html copyright and reprint notice
(Phil has two issues):
Has anyone compiled x11vnc for Openserver 5.0.5? I'm having a million problems trying to compile. If anyone has a binary please let me know.
I have a SCO 5.0.5 box that does not have a physical floppy disk. If I setup the BIOS to pretend there is a floppy the system boots fine, when I remove the floppy from the BIOS the system will not boot. I've read that issuing hd(40)unix at boot: first searches the floppy - I think this is why its failing. Is there any boot: command I can issue to skip searching for the floppy?
/Forum/boot-vnc.html copyright and reprint notice
This month's topic is about what can happen if your organization does not have a Change Control Management plan in place. This e-newsletter was based on an article that was taken out of the San Francisco Chronicle.
A disgruntled systems administrator is accused of sabotaging the city of San Francisco's multimillion-dollar computer system, which stores city records such as emails, payroll files, and law enforcement documents. Terry Childs, 43, of Pittsburg, Calif., was being held Tuesday on $5 million bail. The computer network administrator has been charged with four counts of computer tampering, the San Francisco Chronicle reported. Childs, who works in the city Department of Technology, allegedly created a password that gave him exclusive access to the city's new FiberWAN network, authorities told the newspaper. He has refused to divulge the password, leaving other system administrators locked out. Undoing Childs' alleged tampering could cost millions of dollars, city officials said. In the meantime, the system is operating, even though administrators have limited or no access. Childs, who has worked for the city for about five years, had been disciplined in recent months for poor job performance, and supervisors had tried to fire him, the newspaper reported.
"They weren't able to do it, and this was his kind of his insurance policy," an official who spoke on the condition of anonymity told the newspaper. Childs allegedly began tampering with the computer system June 20, building a tracing system to monitor what other administrators were saying or doing about his personnel case. Following Childs' arrest, authorities searched his home and car, fearing that he may have arranged for a third party to access the system by telephone or other electronic device to destroy sensitive city documents, the Chronicle said. No such device or evidence of such an arrangement was found. Childs' base pay in 2007 was $126,735. He earned an additional $22,534 for being on-call as a troubleshooter, the newspaper said. Security officials often warn organizations that employees are at least as big a threat to computer systems as outside hackers. Nevertheless, the 2008 Information Week Strategic Security Study found that 21% of the companies that responded, never conduct security risk assessments and of those that do, just one in five impose the rigor of using a specialized external auditor.
There you have it. This is precisely why an organization must implement a very detailed and accurate Change Control Management Plan. The term for this kind of behavior is "hero mentality", and this person has taken it to the extreme. A sound plan will have cross training as well as knowledge transfer built into the job descriptions for systems or network administrators. From a standpoint of risk management, this is a level of risk that should not and cannot be accepted by an organization.
To view more articles:
http://aplawrence.com/cgi-bin/getauthart.pl?Michael%20Desrosiers
or to inquire about an on-site presentation, please feel free to call me at 508-995-4933 or email me at mdesrosiers@m3ipinc.com.
Until next time.....
Regards,
Michael Desrosiers
Founder & Principal Consultant
m3ip, Inc.
Managing Your Security and Risk Needs
(O)508.995.4933
(C)774.644.0599
(F)508.995.4933
mdesrosiers@m3ipinc.com
http://www.m3ipinc.com
I've been having some strange problems with my Mac Book Pro lately. Nothing very serious; it just doesn't always go to sleep when I tell it to. The screen goes blank, and the little "sleep" light comes on, but it doesn't blink, and the hard drive and fans are still running. Sometimes it will complete the transition after a few minutes, but often I've come back after hours to find it still halfway there.
I've checked around; a few other people say they've seen this, but so far nobody knows why. I've tried shutting down all apps; it still does this. Lately, I've been doing full shutdowns when I quit for the day.
And THAT caused me more trouble. Monday night I remembered that I had not shutdown and headed toward the computer.. unfortunately I was carrying a glass of milk and, yeah, I spilled some on my keyboard..
Not much, just a little splash on the right hand side. I shut down immediately and tipped the machine upside down to drain, but I knew I was never going to get that milk out and while I could run a detached keyboard under water and have hope, I don't think that would be smart with the MacBook.
Sure enough, Tuesday morning found part of the keyboard dead. I was lucky that I was able to login - I had several dead keys and others would randomly capitalize.. ugggh. I had an 8:00 AM appointment with a new customer in R.I. so I threw the computer in its bag and rushed out the door. I got about a mile down the road when I realized I had no cash, so I turned around and went home to get some from my wife's wallet. I then set out again, a few minutes late but I always leave myself plenty of time so I'd be fine.
It was when I got onto Rte 295 heading into R.I. when I realized that I didn't have my cell phone.
My first rather stupid thought was that I needed to call my wife to tell her that I didn't have it. So I reached for my cell phone.. DUH!. OK.. pay phones? Ha.. darn few of those any more.. oh, well, wait til I get to the customer..
This customer had two problems: broken Visionfs and broken backups. The ancient SCO system was running on an old HP E-50 server - remember when those were cutting edge? SCO 5.0.5, appropriate patches, plenty of disk space.. I looked at Visionfs first although the customer said that it had stopped working coincidentally with the backup. I dismissed that as pure coincidence and dug in.
After a couple of false starts, I realized that the Visionfs was strictly a perms issue. Execute permission had been removed from everything, including directories. That made me very suspicious and nervous that someone had down a high level recursive chmod, but no, as far as I could see it was only Visionfs that had been changed. I fixed it, we tested and all was fine.. I did suggest that since all they were using this for was to let Unix print to two Windows attached printers, they'd be smarter to put those printers on print servers, and they said they thought that was a good idea.
The backup was just a dead tape drive. They knew that, but were hesitant to replace it because of cost. This system is slated for replacement Real Soon Now. They therefore were doing an FTP get from their New Hampshire offices, but of course ordinary FTP can't get the whole system - it will hang up on device files and pipes. As they had been running Microlite Edge, I suggested we just upgrade that to a new version that would be able to do ftp up to their New Hampshire office. Again, they agreed, so I downloaded the upgrade, installed it and configured it to do the backups.
I sent off an email to my wife before I left in case she was sleeping late and headed back for the road. Destination: Apple Store in Braintree.
The store was busy as most Apple stores are. As I've been buying Apple stock since they came out with OS X, I love seeing that. I didn't have to wait long for someone to look over my computer and agree that it needs a new keyboard - that'll be around $150 with labor.. an expensive glass of milk, but there it is. However, the Apple Genius suggested that since they did not have the part in stock, I might want to just buy a USB keyboard and take the machine home for now. I agreed that was a good idea..
I sent another email to my wife while at the store and found that she had taken one call for me, another new customer needing help relinking a SCO kernel. I told her I'd be home soon.
When I did get home, that customer had already called twice again and had sent email. The problem was that there was a syntax error in /usr/include/sys.h so the kernel couldn't compile. I arranged for remote access and soon enough was logged in. The USB keyboard was working fine, but suddenly started acting like the Enter key was being held down. Obviously that was coming from the built-in keyboard, so I pried the cap off and the repeating stopped. However, a few moments later the Delete key acted like it was stuck and I couldn't clear that, so I shut it all down. I suppose I could open the machine and disconnect the keyboard, but that's a big job.
So I switched to a Linux box and reconnected. The first thing I did was check the file date on /usr/include/sys/user.h - it was from the original install, so nobody had touched it. I compared the size to another 5.0.6 system; they were identical. However, when I looked at the offending line, it was obviously incorrect: it said
unsigned short u_];
Well, that's obviously wrong. I then did a "wc -l" on this and my known good file; this was shorter by 24 lines..
These clues told me that the disk drive itself was physically at fault. The inode still thought this had the right number of bytes, but they had to be nulls.. this file was damaged. I queried the customer and was told that one drive in their RAID-5 array had failed in mid July. That would explain this - the rebuild apparently hadn't been entirely succesful. I explained that I could fix this file, but of course I had no way of knowing if there was more damage elsewhere. The customer understood, so I replaced the file with a proper copy and succesfully relinked. However, I explained again that was no guarantee that all was perfect - there could be subtle problems elsewhere.
We rebooted and all looked good, but when I checked syslog I saw that the RAID array was reporting errors - recoverable errors, but errors. Looking back, I saw that this had been true right along since the bad drive had been replaced: obviously whoever did that didn't follow through. I warned the customer to investigate and effect repairs before this got worse.
So now I'm waiting for Apple to call to bring my machine in. I'm hoping they can do the repair while I wait, but if not, not. In the meantime, I'm happy enough on Linux.
/Unixart/bad-day.html copyright and reprint notice
Comments /Opinion/oil-reserves.html
Tue Aug 19 14:52:29 2008 mvgfr
as with most such large issues, it's complex and easily misunderstood - and can cost votes.
my read:
mccain says we must drill, to pacify his rabid base; he has totally sold out whatever ideals he seemed to have, before the bush regime bludgeoned him into submission - very sad.
obama says we should drill, to reach out to those to right of him, in order to gain votes. one hopes he intends to engage in this process in a more considered way the the "neocons".
anyone who attempts to explain why it would be of minimal benefit (and also engenders huge risk), loses votes.
this is NOT to say that voters are stupid. they ARE however, in general, under pressure from all sides (economy, DHS, war...) and thus able to devote little energy to drilling down into the details to sort fact from sound-bite. and so they go with what they've got - sound-bites.
BTW: Matt Deatherage, more astute than I, recently posted something apropos:
< http://friends.macjournals.com/mattd/2008/08/05#a1927>
Tue Aug 19 15:00:11 2008 TonyLawrence
Yes, that Matt Deatherage bit does sum it up.
But if the voters are not stupid, then why not have honest discussions?
I mean "stupid" in its most restricted sense: in a stupor, unthinking. I don't mean that people are incapable of understanding issues; I think (as you imply) that most are simply too stressed and distracted by everything else and prefer not to think.
That's frustrating, because the mess we are in now is pretty damn serious and ignoring it all isn't going to help.
Tue Aug 19 15:44:23 2008 jtimberman
http://www.globalresearch.ca/index.php?context=va&aid=8878
"The US Department of Energy’s Energy Information Administration (EIA) recently forecast that in the next few years global surplus production capacity will continue to grow to between 3 and 5 million barrels per day by 2010, thereby “substantially thickening the surplus capacity cushion.”
I read "surplus production" as above and beyond the requirement to meet consumer demand. So we've got a surplus already, and continuing to add to that surplus. Why then are prices going up (or staying up)? Futures investors, of course.
Tue Aug 19 17:42:27 2008 jambarama
The other thing no one talks about is the time it'll take before something like this actually produces usable gasoline. We're talking years. If you need cheap gas tomorrow, consider a life of crime - because anwar/offshore drilling isn't going to provide it. Nor will a gas-free holiday or a record-profit-windfall tax.
Tue Aug 19 20:19:43 2008 TonyLawrence
If we have a surplus, why do we need those 36 billion barrels?
Add your comments