Sunday, December 19, 2010

Ubuntu 10.10 Day 0

Yesterday I installed Ubuntu 10.10 on my laptop, and have a couple quick encryption-related comments.

I installed from the alternate install image. The standard image does not include encrypted LVM. It does, however, allow one to encrypt user home directories. Is this good enough? No.

(1) In Ubuntu, encrypting a user's home directory fails to protect users who lose their passwords. This could happen a number of ways. It happened to me once via shoulder surfing. Many people use the same password for multiple services--a bad idea. The user password and encryption pass phrase should be distinct.

(2) Users tend to use weak passwords. Hopefully they choose better pass phrases.

(3) With just the home directory encrypted, swap is in the clear. This is a well-known leak and part of why secure software generally overwrites passwords and keys in memory as soon as they are no longer needed. Garbage collection is not good enough for keys. In general any data could show up in swap, and so swap should be encrypted.

Friday, December 17, 2010

The WikiLeaks Furor

There has been an uproar about WikiLeaks in the press lately, and until recently I've felt that Wikileaks has done more good than bad, pointing out cases where the US (and other) governments have lied to their populaces, condoned torture, etc. I won't go into the ethics of the current batch of releases because there is simply too much to review, but I would like to make a few comments.

1) http://news.netcraft.com/ has been doing a great job of covering the back-and-forth of WikiLeaks availability, changes in their hosting and DNS services, etc.

2) Tonight I decided to spend a few minutes looking at the site. Among other things, I was interested in whether it would be difficult to get to. Two things worked right away. (a) Googling WikiLeaks led directly to 213.251.145.96 (registered to wikileaks.org in a block owned by OVH ISP in Paris), so the DNS is not necessarily needed. (b) Verizon's DNS service redirected me to http://mirror.wikileaks.info/, but some of the links at that site, e.g., the one to obtain a secure connection, did not work.

3) Some of the calls for the US government to launch web attacks against WikiLeaks are largely over the top and naively stupid. I wouldn't be surprised to discover attempts to hack into their database or their servers, but the idea of launching DDoS attacks against ISPs and hosting services in the US, Europe, and elsewhere is just silly. The US launching cyber attacks against France and Russia? Not a good idea.

4) I read one leaked dispatch, http://213.251.145.96/cable/2009/08/09BRASILIA1017.html. This is tagged "UNCLASSIFIED//FOR OFFICIAL USE ONLY." One phrase I really like is advice to the USG (US Government, I suspect), "speak softly and carry no stick." The article talks about attempts to keep the Brazilian government from authorizing pharmaceuticals in Brazil to produce generic versions of AIDS drugs, in other words the bureaucratese seems to suggest that the US government is more interested in corporate profits than in dying Brazilians. Not a big surprise.

This is exactly the sort of thing US (and Brazilian) voters should be aware of, and also not the type of leak causing much of the uproar.

Saturday, November 20, 2010

Guilty Until Proven Innocent

CCBC-Catonsville has barred a veteran from campus for a piece he wrote for an English class, received an A on, and was encouraged by his instructor to seek publication. In it, he talks about the appeal of killing. This is very different from saying he will kill in the future.

Many of these veterans have gone through hell and many are having trouble re-integrating with life stateside, especially with the economy in its current state. Now it appears that community colleges also require them to be dishonest in their writings or face threat of losing access to campus, education, and perhaps a future career.

The Baltimore Sun article: http://www.baltimoresun.com/news/bs-md-veteran-suspension-20101121,0,1268392,full.story

Sunday, October 24, 2010

Verizon Violates DNS Standards

Verizon is in violation of DNS standards. When I type the address www.foo.bar.baz.no, assuming there is no such server in Norway, I am redirected to http://searchassist.teoma.com/. Interestingly, I see correct behavior if I leave out the www, "Server not found".

Friday, October 1, 2010

LinkedIn, Maybe Worth it Again

Some time back I said that LinkedIn was no longer worthwhile since every visit required a log in, which made every visit take longer than it was worth. Sometime in recent months this situation was remedied, and so a quick visit to LinkedIn in again a quick visit.

XKCD #800 Features The Game

Beautiful Dream


According to Wikipedia, the rules of the game are

  1. Everyone in the world is playing The Game. (Sometimes narrowed to: "Everybody in the world who knows about The Game is playing The Game", or alternatively, "You are always playing The Game.") You cannot not play The Game; it does not require consent to play and you can never stop playing.
  2. Whenever one thinks about The Game, one loses.
  3. Losses must be announced to at least one person (either by using a statement such as "I Lost The Game" or by alternative means).

These rules were written by someone with rather weak logic. I'm in the world (more-or-less), I know about the game, and I have never played the game nor do I think I ever will. I'm thinking about the game right now, but I do not acknowledge any loss, other than the time to type this. I will likely think of the game again at some point, but I won't tell anyone I lost the game, so I won't be playing the game at that point, either.

I imagine that as I type this, some twit is twitting "I lost the game."

Tuesday, September 28, 2010

OpenOffice Inserting Page Breaks

I've been using OpenOffice more than usual lately (and still greatly prefer emacs/LaTeX for speed and accuracy). One annoyance has been inserting page breaks: Insert|Manual Break|Page Break. Very clumsy and slow. There's no hint regarding an equivalent shortcut adjacent to the menu item, so I tried ^L--it is the standard ASCII page break character--but no joy. Googling led to http://www.oooforum.org/forum/viewtopic.phtml?t=35045, where Bhikkhu Pesala suggests ^enter (or control enter for newbs). Thanks Bhikku.

Why can't we have a finance minister like the Swiss?



Or directly from youtube: http://www.youtube.com/watch?v=lylgA7DWBXU

Thursday, September 23, 2010

Alert! Alert!

UMBC police are using a false alarm as an argument that we should sign up for text alerts. I guess the argument is "See, we sent out another useless alert. Don't you want to be sure you don't miss any of this irrelevant information?"

This country has been running scared since 9/11/01, and the situation a couple years ago in Blacksburg didn't help. But enough is enough, and "e2campus" is too much. We're expected to sign up to be alerted for events of near-zero probability, so almost any e2campus alert will be a waste of time.

> September 23, 2010
>
> To: The UMBC Community
>
> Fr: Mark Sparks, Chief of Police
>
> Re: False Report of a Shooting on Campus
>
> This morning, Baltimore County Police responded to a 911
> call of a possible shooting in front of the Retriever
> Activities Center (RAC) within about two minutes of
> receiving the call. Both police agencies did a thorough
> search of the RAC and surrounding area and found no evidence
> of a shooting through the search or citizen interviews on
> the scene. The call was apparently unfounded, and is being
> treated as a False Report call by the Baltimore County
> Police Department.
>
> An e2Campus text alert was sent out once the UMBC officers
> developed enough information about the call, to tell the
> campus the nature of the call and that it was unfounded.
>
> Members of the campus community are encouraged to sign up
> for e2campus, an emergency alert text-messaging system that
> will permit the University to notify subscribers to any
> campus-related emergency (such as potential campus safety
> hazards or campus closures due to weather). It is compatible
> with mobile phones, Blackberries, "smart phones," satellite
> phones, e-mail, wireless PDAs and pagers. Normal
> text-messaging rates apply. There are no additional
> charges. Sign up for this important service today at
> http://my.umbc.edu/go/alerts.

Tuesday, August 24, 2010

Human-Readable Dired in Emacs

In emacs, dired defaults to

ls -al

format, but I would prefer

ls -alh

For example, I'd rather see this:

total 200M
drwx------ 2 jdm jdm 20K Mar 24 22:00 .
drwxr-xr-x 9 jdm jdm 52K Mar 21 03:04 ..
-rw------- 1 jdm jdm 520K Mar 24 21:03 252.jpg
-rw------- 1 jdm jdm 1.4M Mar 24 21:04 253.jpg
-rw------- 1 jdm jdm 1.3M Mar 24 21:04 254.jpg
-rw------- 1 jdm jdm 1.3M Mar 24 21:05 255.jpg
-rw------- 1 jdm jdm 1.3M Mar 24 21:05 256.jpg
-rw------- 1 jdm jdm 1.1M Mar 24 21:05 257.jpg
-rw------- 1 jdm jdm 1.1M Mar 24 21:06 258.jpg

as opposed to this:

total 204060
drwx------ 2 jdm jdm 20480 Mar 24 22:00 .
drwxr-xr-x 9 jdm jdm 53248 Mar 21 03:04 ..
-rw------- 1 jdm jdm 532078 Mar 24 21:03 252.jpg
-rw------- 1 jdm jdm 1369711 Mar 24 21:04 253.jpg
-rw------- 1 jdm jdm 1285739 Mar 24 21:04 254.jpg
-rw------- 1 jdm jdm 1320355 Mar 24 21:05 255.jpg
-rw------- 1 jdm jdm 1328517 Mar 24 21:05 256.jpg
-rw------- 1 jdm jdm 1101028 Mar 24 21:05 257.jpg
-rw------- 1 jdm jdm 1077152 Mar 24 21:06 258.jpg


The fix was this line of Lisp added to the end of my .emacs file:

(setq dired-listing-switches "-alh")


Monday, August 23, 2010

Security on the Client Side

Common--and good--advice is to not trust the client. If an organization has no control over the client, as is the case in web-based client-server applications, the client is not trustworthy. The Milwaukee Journal-Sentinel's Packer Insider is a very good low-stakes example of a site that has gotten this wrong. The Packer Insider is intended to be a subscription-only service, but I was reading it for a while, perhaps a long while, before I realized I was reading for-pay content.

If I visit http://www.jsonline.com/sports/packers/ in Firefox I get full access. If I visit it with Opera or Chrome, and click one of the Insider links, I get a login screen. What's the difference?

The difference is NoScript, an indispensable Firefox tool. NoScript is not intended to circumvent security, but rather to enhance client-side security. The idea is that if I let any given web site execute any script it wants on my machine, my personal data and the integrity of my machine are at risk. NoScript also helps me limit more obnoxious advertising by selectively shutting off Flash, JavaScript, Java, etc. NoScript uses a default-deny model, meaning that sites are not allowed to run client-side scripts unless I assent. NoScript is not for everyone because it does cause problems with some sites and it does require some effort on the part of the user, but it does provide a much safer browsing environment.

So, if I disable scripting, I get a much cleaner, more pleasurable view of the Journal Sentinel's Packer pages. As a side effect, I also get access to the Packer Insider materials. This is due entirely to poor security architecture at the Journal Sentinel's site, and, IMHO, strong evidence that the design was not done by an experienced professional. OTOH, there may have been other constraints making this desirable, and they may not actually care. If I were to lose access to these pages, I wouldn't really care because the Green Bay Press Gazette has comparable content that's openly-available.

As an aside, there are those that think it is bad to disable advertisements that support web sites. I have sympathy for this view, but I don't want their scripts running on my machine, eating cycles, providing animations which make it difficult to concentrate on the actual content, and, in extreme cases, making noise or damaging my system. I will aggressively block Flash, animated GIFs, etc., that damage the user experience.

This shows a general advantage of server-side over client-side scripting. Providers have a better idea of what their pages look like on the client side if they use server-side scripting--which is controlled by the provider--rather than client-side scripting, which is controlled by the end user, the browser, malware, etc.

Summary: security must be on the server side.

Sunday, August 22, 2010

BOINC, Social Good, and Energy Consumption

Apropos of nothing, do you have BOINC running on any of your machines? I installed it a day or two ago on my HP and on my work laptop. Already I've made a material contribution to some important projects that can't afford supercomputer time; something to do with a disease I think. Anyway, I'm a member of the World Community Grid and Einstein@Home, but I'm thinking about dropping the space stuff in favor of the terrestrial problems [ ... ].

The real question is, what's your take on this stuff. Am I contributing more to the energy companies than to the advancement of human knowledge?


I used to run SETI@Home on a few systems. I noticed that my laptop was always hot when I ran it, so I stopped using it there and then gradually stopped using it altogether. That may be BOINC-based now. I also tried to donate cycles to some Brit climate project a while back, but they didn't have Linux support.

Even on a non-laptop it does cost you power. Most current CPUs have frequency scaling, and use much less power when running at lower frequencies. Gnome has applets that let you monitor CPU frequency and temperature if your hardware supports it.

I don't know how to weigh energy use vs. benefit to mankind. It will cost more when run in an air-conditioned room since you pay the electric company to heat the machine and then pay the electric company to cool the room containing the machine. OTOH it could save you a tad on heating in the winter (at OSU we had an Intel hypercube that could easily heat a couple rooms). If your machines suspend after a couple hours of no keyboard or mouse activity, then the impact may not be very large. I'd be leery of running it on a laptop, especially if it keeps the machine from suspending (as SETI@Home did a decade ago).

Soundtrack: "Danger" by the Motels

Friday, August 20, 2010

Cousin Done Good

Tracy Hamlin has been elected by judges and the SQL Server community as the Exceptional DBA of 2010. See http://www.exceptionaldba.com/hall-of-fame/

Sent from my iTouch

It seems pretty common nowadays to get e-mails with statements such as Sent from my iTouch and the like appended. This is analogous to the advertisements that HotMail used to stick on e-mail messages. Why do people want to send advertising copy with their e-mail? Didn't you pay for your iTouch? If so, why provide Apple (or whoever) with free advertising? My advice would be to remove such tripe from e-mails, or, if you can't, then be very ware that you are not in control of the image you project when using such tools.

Soundtrack: "I Robot" by The Alan Parsons Project.