Friday Oct 12, 2007

WiFi (WPA) with Solaris Express on my Thinkpad laptop

Setting up wireless with Solaris SXDE 9/07 on a x86 laptop.[Read More]

Saturday Sep 01, 2007

Ebook File Creation from HTML

Automatically generating ebook file formats from HTML. That is, generating Plain Text, PDF, PalmOS DOC PDB, zTXT, and Plucker from HTML on Solaris or other UNIX-class system[Read More]

Thursday Jun 14, 2007

The Wrong Stuff

Book about Randy "Duke" Cunningham, convicted ex-congressman and Federal prisoner[Read More]

Wednesday Dec 20, 2006

American Accent

Quiz that determines your American English accent.[Read More]

Sunday Dec 03, 2006

Solaris Wine

Solaris wine[Read More]

Sunday Nov 26, 2006

Using CUPS Print Server for Solaris 10

Using CUPS printing software with Solaris 10[Read More]

Solaris laptop battery status

How to display the battery status from laptops running Solaris.[Read More]

Thursday Nov 16, 2006

Mounting a Linux NFSv4 filesystem on Solaris

Fix for mounting a NFSv4 filesystem from Linux on Solaris (NFSv4 is broken on Linux)[Read More]

Tuesday Oct 31, 2006

The Signature Collection

A collection of email signature tag lines, several with ASCII graphics[Read More]

Tuesday May 02, 2006

Cookies

Origin of the computer term "cookies"[Read More]

Sunday Apr 16, 2006

Hotel San Diego Implosion

Hotel San diego, NE corner
Before: Hotel San Diego, Northeast corner, May 2002

Yesterday, the historic Hotel San Diego was demolished. The seven-story hotel lived on 339 W. Broadway in downtown San Diego, California. The hotel was built in 1914 by John D. Spreckels, who made his riches from Spreckels Sugar and shipping. Spreckels moved out of San Francisco after the 1906 San Francisco earthquake (100 years ago today) to someplace safer and nicer.

The hotel was built by architect Harrison Albright and is one of only three that remain (now zero of two). In recent years, before the Hotel was closed in 2002 Hotel San Diego became a ran-down, dirty residential hotel, occupied mainly by elderly and low-income residents on a weekly or monthly basis.

The hotel was demolished for a Federal Courthouse annex. The Federal Courthouse is on overload to take care of all the drug smugglers and illegal immigrant smugglers being hauled into court—we are on the Mexican border after all.

Hotel San Diego demolition, April 15, 2006
After: Hotel San Diego after demolition, Northeast corner, April 15, 2006

Historic preservationists wanted the hotel exterior preserved. The interior could have been gutted, earthquake retrofitted, and renovated for courthouse space. That way, we would have kept an historic and attractive building, yet still be functional. However, Federal rules require a large setback from the street to keep terrorists (both domestic and foreign) from blowing up the building. The new courthouse annex will be a 22-story (and probably sterile) building. I see their thinking about a setback, but isn't it ironic that we're blowing up a building in the name of homeland security?

More information

<script type="text/javascript" src="http://embed.technorati.com/embed/ds7ksshp3e.js"></script> Technorati Tags: San Diego, Hotel San Diego

Friday Mar 31, 2006

Another fake photo by Howard Kaloogian?

In my Congressional District we're having a special election to replace disgraced Congressman Randy "Duke" Cunningham. One of the 18 candidates running is former Republican State Assemblyman Howard Kaloogian. He recently got caught for posting a scene of a street picture his group took showing how peaceful Baghdad is, that turned out to be suburban Istanbul, Turkey. (This was originally discoverd by anthonyLA and jem6x of Daily Kos.)

Kaloogian also was caught for claiming false endorsements from the California Pro-Life Council, Center for Reclaiming America, and State Senators Tom McClintock and Bill Morrow.

Anyway, here's another fake photo. On Kaloogian's campaign website is a photo of him posing with President George Bush, in a rotating "Flash" slideshow. (Here's a screenshot in case it's taken down or you don't have Flash). Why is it fake? Well, both Kaloogian and Bush's shoulder's merge into each other. This is more evident from a fuller-length photo on Gabrielle Reilly's website. (Here's a copy in case it's taken down). Here's another version of the short Kaloogian photo. Observe how Kaloogian and Bush merge into each other: Kaloogian's left shoulder appears to be behind Bush, and Bush's right arm appears to be behind Kaloogian! Also Kaloogian is shorter in the Gabrielle photo than his campaign photo.

By itself, not a biggie, but with two fake photos and at least four fake endorsements, what can you believe?

Update: Problem solved. a reader found a comment from Republican political strategist Matt Rexroad who was at the photoshoot. He says the photoshoot was real, although at least one photo is obviously doctored for height and taken when Bush was governor. He has some unkind words to say about Kaloogian, such as a false endorsement and Kaloogian endorsing Bush and Bauer in 2000 at the same time.

Update 2: Yet another fake photo: A reader points out yet another fake Iraq photo was actually taken at MacDill AFB, Florida.

Howard Kaloogian 'posing' with George Bush (screenshot of fake photo) Howard Kaloogian 'posing' with George Bush (fake photo)

<script type="text/javascript" src="http://embed.technorati.com/embed/ds7ksshp3e.js"></script> Technorati Tags: Politics, Howard Kaloogian

Another fake photo by Howard Kaloogian

In my Congressional District we're having a special election to replace disgraced Congressman Randy "Duke" Cunningham. One of the 18 candidates running is former Republican State Assemblyman Howard Kaloogian. He recently got caught for posting a scene of a street picture his group took showing how peaceful Baghdad is, that turned out to be suburban Istanbul, Turkey. (This was originally discovered by anthonyLA and jem6x of Daily Kos.)

Kaloogian also was caught for claiming false endorsements from the California Pro-Life Council and State Senator Tom McClintock.

Anyway, here's another fake photo. On Kaloogian's campaign website is a photo of him posing with President George Bush, in a rotating "Flash" slideshow. (Here's a screenshot in case it's taken down or you don't have Flash). Why is it fake? Well, both Kaloogian and Bush's shoulder's merge into each other. This is more evident from a fuller-length photo on Gabriell Reilly's website. (Here's a copy in case it's taken down). Observe how Kaloogian and Bush merge into each other: Kaloogian's left shoulder appears to be behind Bush, and Bush's right arm appears to be behind Kaloogian! By itself, not a biggie, but with two fake photos and two fake endorsements, what can you believe?

Howard Kaloogian 'posing' with George Bush (screenshot of fake photo) Howard Kaloogian 'posing' with George Bush (fake photo)

<script type="text/javascript" src="http://embed.technorati.com/embed/ds7ksshp3e.js"></script> Technorati Tags: Politics, Howard Kaloogian

<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>

Monday Mar 06, 2006

Congressman Randy "Duke" Cunningham in prison

Cunningham prosecutors: US Assistant Attorneys Phil L. B. Halpern, Jason Forge, Sanjahy Bharali
Cunningham prosecutors: US Assistant Attorneys Phil L. B. Halpern,
Jason Forge, Sanjahy Bharali after Cunningham sentencing 3/3/2006

I went to Cunningham's sentencing Friday (March 3, 2006) at the U.S. Courthouse in Downtown San Diego. There were lots of news camera and vans around all day. For those who don't know he was my Representative to the U.S. Congress from San Diego, before he was imprisoned for $2.4 million in bribes.

I listened to Judge Burns deal with a counterfeiting case and drug user parole violation case in the morning. Burns seemed even-handed and careful in his rulings.

I then went upstairs to wait in line for the sentencing in a bigger courtroom. I talked to Union-Tribune columnist Logan Jenkins who happened to be nearby in line. Most of the people were press. I knew the names, but didn't know what they looked like. I saw Seth Hettena of the AP, who has written several Cunningham articles.

Then we were led in. The seats were split between the press, public, and family (includes Cunningham friends). The friends I recognized were Congressman Duncan Hunter, Father Joe Carroll, Dan McKinnon (son of a former congressman; Dan is boarding Cunningham), and Cunningham's RIO in Vietnam, Willie Driscoll. Former Congressman Clair Burgener, who has Alzheimers, sat directly in front of me. The children were not present, at the request of Cunningham (and his wife was not present).

The defense and prosecution plead their cases, rehashing what were in their previously-filed briefs. Cunningham made a statement. He seemed emotionally and physically weak and sad, and much thinner. I couldn't hear all his statement, as his voice was shallow, but it seems some of the press did (with better seats). He expressed regret for what he did. The one sentence I wrote down was: "I think I'll trust my friends less, your honor, so I won't make those same wrong U-turns [criminal acts]". Burns listened carefully through it all.

Here's an outline of Judge Burns' ruling:

Sentencing guidelines:

  • $2.4 million bribe earns 16 sentencing "points"
  • 4 points for being an elected official
  • 0 points for orchestrating the bribes (not clear either way if he did nor not)
  • 0 points for public statements denying the crimes (Burns says that's common with public officials)
  • 2 points for obstruction of justice (prompting rug vendors to lie).
  • -3 points subtracted because Cunningham accepted responsibility
  • -2 points for assistance to Department of Justice (more reduction may be coming for future assistance, but it's too early in the investigation).
  • Total of 33 points, giving 135-168 months to sentencing guidelines.

Here's some comments made by Burns:

  • Bribes spread over 5 years, 2000-2005 is aggravating. It wasn't just one "U turn".
  • The $2.4 in bribes "emasculates" all other bribes.
  • "Bid rigging" affected many defense contractors, who thought the system was honest
  • Hugely affected confidence in government.
  • Burns was bothered by Cunningham's bullying. It was reprehensible, beyond pale. Defense officials were trying to do their jobs.
  • Burns was confounded by the choice you (Cunningham) made. Burns recalled reading an article about a lobbyist who made $2.5 million in 2003. Burns didn't name the lobbyist, but said Cunningham knows who he's talking about [my note: was this Bill Lowery, who earned $2 million in 2003? See http://www.signonsandiego.com/news/politics/20051223-9999-lz1n23lewis.html ]. Burns said Cunningham with his stature in Congress should have earned at least twice as much in a year as a lobbyist if he wanted more money. Burns said you (Cunningham) weren't wet, cold, hungry, yet you did these things (took bribes).
  • Burns said the real harm was loss of confidence in government works.
  • Burns lamented that politics today is more shrill today. Opponents are now "enemies". Burns said he was an optimist, that your (Cunningham's) conduct was an abberation (among members of Congress).
  • Burns took in account Cunningham's brave military service in an unpopular war.
  • Burns was also impressed by two letters of Support:
    • Ronald Ress -- Cunningham intervened with Vietnamese government to get Ress' wife out of custody and out of the country
    • Charles Nesby -- Cunningham mentored Nesby at a time when Black pilots were rare.

Judge Burns then dished out the sentence:

  • 100 months (8 years, 4 months). Count 1 60 months [Conspiracy to Bribe] and Count 2 40 months [Tax Evasion]
  • 3 years suspended release.
  • $1,804,031.50 tax liability to be paid at $1500/month while in prison and $1000/month after release.
  • Forfeit $1.8 million in cash.
  • Forfeit furniture (now in possession of the U.S. government)
  • No upgraded sentencing score.
  • Imprisoned immediately at MCC San Diego. Report Friday by next week for the permanent facility. Burns \*recommends\* a Level 2 institution. He recommended Taft [Central California] (ran by a contract agency, not the U.S. Bureau of Prisons)
  • Good time can reduce sentence by 10%-15%

We all left the courtroom and there were a billion (or so) cameras and newspeople outside the courthouse. Outside, the prosecution gave a quick news conference, as did Rep. Duncan Hunter, Fr. Joe Carroll, and Dan McKinnon.

Cunningham was imprisoned immediately at MCC San Diego across the street (prisoner locator).

- Dan Anderson

Related news articles (more Cunningham scandal news articles and cartoons):

<script type="text/javascript" src="http://embed.technorati.com/embed/ds7ksshp3e.js"></script> Technorati Tags: Politics Congress Bribes Duke Cunningham Randy Cunningham

Wednesday Nov 16, 2005

Solaris ZFS and Zones: Simple Example

The following is a simple example of creating a ZFS filesystem and using it to hold a newly-created Solaris Zone (Solaris Container). Zones are in Solaris 10 now. ZFS is a new filesystem in OpenSolaris that allows for large, more reliable filesystems. Tke three key advantages are:

  • Simple administration
  • Data integrity (64-bit checksums on data)
  • Large capacity format for future growth (2\*\*128 512-byte block files). That's 256 quadrillion zettabytes.
Other features are:
  • Filesystems built on virtual storage "pools"
  • Copy-on-write removes need for recovery (no fsck)
  • Dynamic striping and multiple block sizes optimizes throughput (512 to 128K)
  • Optional compression
  • No modifications needed for apps

ZFS software is in packages SUNWzfsr and SUNWzfsu.

Create a ZFS Pool

First, you need a virtual device for ZFS. Normally this would be raw disk (or raw disk slice, if you prefer). However, for testing/demonstration, I'll create a regular file (this takes a few minutes):

# mkfile 5g /virtualDeviceForZFS
 4m12.95s

Now I create a "ZFS Storage Pool" for one or more ZFS filesystems:

# zpool create poolForZones /virtualDeviceForZFS
# zpool list
NAME                    SIZE    USED   AVAIL    CAP  HEALTH     ALTROOT
poolForZones           4.97G   32.5K   4.97G     0%  ONLINE

To create a mirrored-pool use the keyword "pool" and specify two virtual devices.

Create a ZFS Filesystem

Now, I'll create a ZFS filesystem using the ZFS pool I just created:

# zfs create poolForZones/twilightZone
# zfs set mountpoint=/twilightZone poolForZones/twilightZone
# zpool status -z
  pool: poolForZones
 state: ONLINE
 scrub: none requested
config:

        NAME                    STATE     READ WRITE CKSUM
        poolForZones            ONLINE       0     0     0
          /virtualDeviceForZFS  ONLINE       0     0     0

# mount |grep twilightZone
/twilightZone on poolForZones/twilightZone read/write/setuid/devices/exec/atime/dev=3f50004 on Mon Nov 14 12:34:37 2005
# df -k /twilightZone
Filesystem            kbytes    used   avail capacity  Mounted on
poolForZones/twilightZone
                     5169408       8 5169341     1%    /twilightZone
# ls -l /twilightZone
total 0

Note that /twilightZone is not in /etc/vfstab. Mounting is done automatically at boot time by ZFS:

# grep /twilightZone /etc/vfstab
#

If you want to allow the filesystem to be managed inside the zone, use the zfs zoned=on option when creating or modifying the filesystem.

Create a Solaris Zone

Use zonecfg to setup your zone:

# zonecfg -z twilightZone
twilightZone: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:twilightZone> create
zonecfg:twilightZone> set zonepath=/twilightZone
zonecfg:twilightZone> set autoboot=true
zonecfg:twilightZone> add net
zonecfg:twilightZone:net> set address=10.140.1.25
zonecfg:twilightZone:net> set physical=ce0
zonecfg:twilightZone:net> end
zonecfg:twilightZone> verify
zonecfg:twilightZone> commit
zonecfg:twilightZone> exit

Install a Solaris Zone

Now install packages to your Solaris Zone:

# zoneadm -z twilightZone install
/twilightZone must not be group readable.
/twilightZone must not be group executable.
/twilightZone must not be world readable.
/twilightZone must not be world executable.
could not verify zonepath /twilightZone because of the above errors.
zoneadm: zone twilightZone failed to verify

Ooops. We need to set proper permissions. The directory must not be world or group read, write, or execute:

# ls -ld /twilightZone
drwxr-xr-x   2 root     sys            2 Nov 14 12:34 /twilightZone
# chmod go-rxw /twilightZone
# ls -ld /twilightZone
drwx------   2 root     sys            2 Nov 14 12:34 /twilightZone

Try install with zoneadm again.  This takes several minutes:

# zoneadm -z twilightZone install
Preparing to install zone <twilightZone>.
Creating list of files to copy from the global zone.
Copying <2808> files to the zone.
Initializing zone product registry.
Determining zone package initialization order.
Preparing to initialize <946> packages on the zone.
Initializing package <252> of <946>: percent complete: 26%
. . .
Initialized <946> packages on zone.
Zone <twilightZone> is initialized.
The file </twilightZone/root/var/sadm/system/logs/install_log> contains a log of the zone installation.

Later, if you wish to halt, uninstall, or delete a zone, use these commands, respectively:

zoneadm -z twilightZone halt
zoneadm -z twilightZone uninstall
zonecfg -z twilightZone delete

By default zonecfg creates a "sparse" zone--that is read-only files are shared from the "global" zone. This saves a lot of space as shown below: only 68 MB is used (as opposed to the 4GB or so for the global zone):

# df -k /twilightZone
Filesystem            kbytes    used   avail capacity  Mounted on
poolForZones/twilightZone
                     5169408   68508 5100754     2%    /twilightZone

If a "sparse" zone isn't desired, use "create -b" instead of "create" in zonecfg above. This prevents the new zone from "inheriting" packages from the global zone. This is called a "whole root" configuration.

The zone has been created, but it won't show up until after the initial boot:

# zoneadm list -v
  ID NAME             STATUS         PATH
   0 global           running        /

Boot and Configure a Solaris Zone

Lets boot the zone and login to the console with zoneadm and zlogin. The initial boot prompts for basic configuration information (language, locale, terminal, hostname, name service, time zone, and root password):

# zoneadm -z twilightZone boot
# zlogin -C twilightZone
[Connected to zone 'twilightZone' console]
Loading smf(5) service descriptions:   1/108
. . .
twilightZone2 console login: root
. . .
~.

Use "~." to disconnect from the console.

More Info

Technorati Tags: ZFS Zones Solaris OpenSolaris

<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
About

Solaris cryptography and optimization.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today