Monday, June 09, 2008

Knoppix 5.3.1, HDD-installed, USB stick workaround

Knoppix 5.3.1 is one of the coolest Linux distributions around as a live CD. Some folks say you should keep it that way: don't install it to your hard disk drive as a bootable OS. I'll leave that question up to you, but I have found a workaround for two likely problems that could occur if one were to HDD install. The problems can occur due to how Knoppix handles permissions for USB drives and the sound system.


As a live CD, Knoppix gives permissions to the user named "knoppix." If you HDD install Knoppix, these permissions are still given to the user named "knoppix". This causes a problem because most people are not going to log in with a userid of "knoppix". If you have problems with a USB stick or audio in Knoppix, look to see if the permissions file is not set up properly.

The problem is that this bug had been around since at least Knoppix 5.0.

Here's the fix:

Edit the file /etc/udev/knoppix.rules.
(You might try sudo gedit /etc/udev/knoppix.rules )

For the items which say "knoppix" in the original file, change them to $USER.


ACTION=="add",SUBSYSTEM=="block",KERNEL=="[sh]d*" RUN+="/bin/sh -c '/usr/sbin/rebuildfstab -u knoppix -g knoppix -i &'" ACTION=="remove",SUBSYSTEM=="block", RUN+="/bin/sh -c '/usr/sbin/rebuildfstab -r -u knoppix -g knoppix -i &'"

change it to:


ACTION=="add",SUBSYSTEM=="block",KERNEL=="[sh]d*" RUN+="/bin/sh -c '/usr/sbin/rebuildfstab -u $USER -g $USER -i &'" ACTION=="remove",SUBSYSTEM=="block", RUN+="/bin/sh -c '/usr/sbin/rebuildfstab -r -u $USER -g $USER -i &'"



Enjoy.

Sunday, June 08, 2008

Hair for mancandy


Here, I used two "Empties" to set up a Wind and Spherical Curve Guide to the hair. It even works in blender 2.43! The figure is mancandy.

Based of course on the blender nation article on hair, which made reference to this avi video from the blender.org site.

Saturday, June 07, 2008

Supporting the Troops, but not in the way YOU think.

In this episode of "A Prairie Home Campanion", in the "News from Lake Wobegon" segment, Garrison Keillor offers an interesting tribute to our service personnel. He talks of a Memorial Day Service that takes place in the fictional town of Lake Wobegon, Minnesota. Listen especially to the monologue at around 9:38. Link to mp3 download from the show's webpage.

"[These] ... young men put on the uniform of anonymity in loyalty to us. And who went out there although they had grave doubts and misgivings. Grave doubts about this cause. They were full of doubt. And also feelings of terror. They went off in defense of the South, they went off to fight the Kaiser, they went off in defense of democracy in Korea and Vietnam and in Iraq they went off with grave misgivings, but nonetheless they were loyal to us, even at our worst, full of political foolishness and cruelty, they nonetheless they were loyal to us, knowing that we had better angels than these. And so they did what they needed to do."


And then Garrison led the crowd in singing the National Anthem. Moving.

Too often, today's prophets of political foolishness and cruelty use the words "Support our Troops" to hush any reflection on the grave doubts we've all had, about whether it's time to bring them home.

Friday, June 06, 2008

Settings for stylish hair in blender 2.46

I told my wife I was getting involved in designing hair styles. She said, "Might be stylish to SOME."

Anyway, here are some screen grabs of the parameters I found useful in making hair for a character in blender 2.46. If you click on an image you should be able to see a higher-pixel version where the parms are legible.

It was fun for me to make these images if this post is not actually value-add to anyone else.

Thursday, June 05, 2008

Does God love Woody Allen?

I saw this video at boingboing. In it, Billy Graham addresses the question of whether God finds Woody Allen lovable. Oh come on, he's so adorable here, you have to say yes.

Billy does a good job of witnessing to God as having love (even for Woody!) and to the beneficent intent behind God's law. (Yes, even fun things can hurt us if misused). No one could have done a better job. I applaud Billy for going and for how he carried himself. The interesting thing is how can a Theology of the Cross get expressed in such a situation? Does it lend itself to the genteel and glamor of a 1960's talk shows? Is it nice? If you're saying it right, does the host offer you an invitation to return, or a handful of stones?

I guess if a Theology of the Cross might require "saying a thing like it is," it may be just as important to realize that it's not merely being a jerk. I've met religious conversationalists who seem to confuse the two.


Wednesday, June 04, 2008

A review of blender-containing live CD's

ABSTRACT:
Nineteen different live CD Linux distros were tested on a laptop. Knoppix 5.3.1, SLAMPP, and Wolvix make the cut in my first round of evaluation of the best live Linux CD for 3D graphics work. Artistix and Sabayon showed some problems but get an honorable mention for the sheer quantities of graphics software available.

DISCLAIMER1:
Don't go messing with live CD's on a computer where you cannot afford the risk of losing all the data on your HDD. If a distro were poorly designed, or you were not to pay attention to what you are doing, you could end up installing Linux ON TOP OF the existing files on the computer. You could also end up erasing files on the HDD. Get experience with linux and with a particular distro's quirks before putting a loved one's computer at risk.

DISCLAIMER2:
These opinions are solely those of my own. My day job has to do with computer hardware. I studied Materials Science in college.

DISCLAIMER3:
It is theoretically possible that an improper DVD burn could have cause some the distros in this list not to boot properly on my computer. (Good distro, bad physical media.) In discussions with some distro developers in years past, they were quick to point out how a bad burn could ruin one's impression of an otherwise fully functioning distro. I would ask why some distros seem to be more prone to problems with the DVD burning process. :)

WHAT IS A LIVE CD?
A live CD is a CD that contains a bootable operating system, usually Linux. You put the CD in your computer, turn it on, make some arrangements for it to boot the CD, and you are running Linux! It's great fun to be able to try out radically different versions of Linux. And so this post is a review of live CD's. Here's a description of the two things I think that live CD's are good for:

1) INTRODUCING LINUX TO YOUR FRIENDS.
I have some associates that are smart enough that they were able to install Vista on their own computers, but perhaps not so well-informed that they chose to do so. A live CD is the perfect introduction to Linux, at no cost. Towards that end, I look for a live CD that "comes with" as much as possible. Why force a newbie to go to such lengths as downloading drivers for things like a wireless driver card? Why cannot the distro come with flash or video display drivers? If you're getting the drivers eventually from the same server that you got the "distro" from, then it's a moot point as far as legality or any moral principle about free-as-in-speech software.

2) A QUICKIE SESSION FOR COMPUTER GRAPHICS ON A BORROWED COMPUTER.
I've been on computers in hotels or at my in-laws, or even borrowed my wife's work laptop, and wanted to be able to tinker with my favorite computer graphics applications: povray and blender. There's no sense, for example, in going to the trouble of installing blender on my wife's computer if I were able to boot an OS from the CD which already had the applications I like on them. The point about a Linux distribution "coming with" appropriate drivers becomes poignant when a live CD won't even run your favorite application. Consider what happened when I tried to use blender with a version of edubuntu booted as a live CD.

CRITERIA
As a result, here are the criteria I look for in choosing the best live CD distro.
Does it boot on a variety of machines?
Does it come with povray and blender?
Does it work well on a box with an ATI graphics card?
Can it render a scene in blender and/or "play" a game in blender?
Does it come with the madwifi driver for wireless cards, maybe with Flash, maybe with ATI graphics cards?
Can it recognize a USB stick? Can it play an MP3 file off the USB stick? Can it play an MPEG-I animation off the USB stick?

Too often, I've seen Linux enthusiasts argue against some of the above criteria as being important; I've seen them argue that these are bad things to ask for out-of-the-box in a distro. Ten minutes later they turn around and whine that it's only the evil schemes of Microsoft and the stupidity of the American people that prevents widespread adoption of Linux. Go figure. Too many enthusiasts are too complacent with all these barriers to adoption.

SELECTION OF DISTROS:
I was originally looking for distros that come with blender or povray. Some distros gave me the impression that they might have these apps from the googling I did about them. Some were simply important distros that merited a mention.

THE TEST VEHICLE:
An IBM Thinkpad, T41, with 1600 MHz chip, and ATI Graphics card.
The laptop has a trackpoint mouse and I plugged in a Belkin USB mouse.
I plugged in a 4GB Memorex USB thumb drive which had some MP3's (podcasts) and an MPEG-I animation that I myself had created.


THE CANDIDATES, IN ALPHABETICAL ORDER:
Some of the reports below show a screen shot of the distro. This is an indication that I was able to find some screen capture software and save a file to a USB thumb drive.

ARTISTIX

Link: http://www.artistx.org/site2/
Notes: contains enough applications to choke a horse.
Did not boot on this laptop. (This screen grab is from a session on my desktop).
Verdict: survives this round, just on the basis of the amount of software.

COOL LINUX
Link: http://sourceforge.net/project/showfiles.php?group_id=55396&release_id=123430
Notes: Trackpoint mouse moved around randomly
Belkin mouse only worked in vertical movement.
Graphics apps: blender
Verdict: Not recommended

DREAM LINUX
Link: http://www.dreamlinux.com.br/
Version: 3.1
Graphic Apps: no povray, no blender
Played MP3 off USB stick with MPlayer.
Verdict: not for this purpose

DYNE 2.5
Link: http://www.dynebolic.org/
Version: dyne-2.5.2.iso
Graphics apps: blender, but not povray
Notes: Belkin mouse acts freaky
Blender will render a scene, but the screen refreshment is not correct afterwards.
USB stick worked
Played MP3's and MPEG-1
Live distro session did not shut down well: "kernel panic" message.
Verdict: not recommended

ELIVE
Link: http://www.downloadtube.com/Linux/System/Elive-download.html
Version: elive_1.7_unstable.iso
Note: Gives error message: "Elive do not recommends to use ATI graphic cards, it gives graphical problems and freezes the system, especially the FGLRX, is recommended that you try all of these options ..."
Verdict: Greg do not recommends to use Elive distro, it gives graphical problems.

FRANKIE
Link: http://news.softpedia.com/news/Frankie-Linux-28651.shtml
Version: 5
Notes: "isolinux disk error 80 AX = 42DE" "Boot failed: press a key to retry"
Verdict: Not recommended

GNUSTEP
Link: http://io.debian.net/~tar/gnustep/
Version: GNUSTEP-i486-1.iso
Graphic apps: Blender, no povray
Notes: Blender rendered. Trying to resize the window froze the OS.
Could not see any way to get to the USB stick
Did not log off properly.
Verdict: not recommended

INSTANT GRID:
Link: http://www.instant-grid.org/
Version:INSANT-GRID1.1-realease.iso
Graphics files: povray, but not blender
Notes: long boot up
Difficult to find a way to see files on HDD
Some German language on screen:
Verdict: not for this purpose

KNOPPIX 5.3.1

Link: http://www.knoppix.org/
Version: Knoppix-v.5.3.1DVD-2008-03-26EN.iso
Graphic apps: Blender, no povray
Notes:
Blender rendered, played a game
Saw files on USB stick
Clicking MP3 played it with XMMS 1.2.10
Clicking MPEG-I invoked Kaffeine, but it didn't play. MPEG-I didn't play with MPlayer, but did with Totem Movie Player 2.20.3. I ask, why the heck do they ship with all these crippled apps?
Verdict: a winner!

KNOPPIX MATH

Link: http://www.knoppix-math.org/wiki/index.php?KNOPPIX%2FMath%2FEnglish
Graphic apps: neither povray nor blender
Notes: played MPEG-I with XMMS, MP3 with XMMS.
It contains enough math-related software to choke a horse. Makes me want to go back to school and be a math major!
Verdict: Very cool, but not for this purpose.

LINUX MINT

Link: http://www.linuxmint.com/
Version: LinuxMint-4.0-KDE-CE.iso
Graphics Apps: neither povray nor blender
Notes: Played MP3 with Amarok
Comes with Flash-- you can play YouTube videos out of the box.
Verdict: Commendation for ease of use, but not for this purpose. This is the distro I would recommend to that person who was smart enough to install Vista, but was caught off guard by the difficulties associated with it. Meanwhile, some advocates of Open Source Software may bristle at Linux Mint's inclusion of all sorts of closed-source drivers. I say if you're bothered, get to work on ease-of-use for Linux, folks!

PAIPIX
Link: http://www.paipix.org/tiki-index.php?page=PaiPix_EN&bl
Version: PAIPIX-i386-7.10-etch
Graphic Apps: no blender
Notes: did not see HDD
Verdict: Not for this purpose. I thought earlier versions of this distro had a better selection of software.

PC LINUX OS

Link: http://www.pclinuxos.com/
Version: PC LINUX OS 2007
Notes: auto-configuration of wireless is handily displayed on the screen.
Graphic apps: no povray, no blender
Played MP3 w/ Amarok, MPEG-I with MPlayer
Verdict: not for this purpose

PUPPY LINUX

Link: http://www.puppylinux.com/
Version: puppy-4.00-K2.6.2.17-seamokey.iso
Notes: Gave error when tried to mount the HDD, giving notice that it had detected a hibernated Windows NFT partition. I'm not sure if that's a good thing or not.
Played MP3 and MPEG-I.
Graphics Apps: No povray, no blender, no GIMP.

QUANTIAN SCIENTIFIC COMPUTING ENVIRONMENT
Link: http://dirk.eddelbuettel.com/quantian.html
Graphic apps: Blender, povray
Notes: Played MPEG-I, MP3, both with XMMS
Blender crashes when you ask it to render!
Verdict: Not recommended at this time, but with improved driver set it could be the best ever. Last release was in 2006.

SABAYON

Link: http://www.sabayonlinux.org/
Sabayon linux is a distro that is dear to my heart because it is the only distro that ships with code I wrote! I wrote some scene files that get shipped with povray, and Sabayon has povray's example files. The screen shot for Sabayon shows how my file is rendering.
Notes: Long boot up
No immediate access to the HDD
Graphics Apps: povray, but not Blender
MP3 test: worked with Noatun.
Verdict: makes it to next round for sentimental reasons

SLAMPP

Link: http://slampp.abangadek.com/wiki/wikka.php?wakka=HomePage
Version: 1.1
Graphics apps: blender 2.37a
Notes: Blender rendered, played a game
File manager sees files on USB stick, but doesn't play with any right click option. Was able to get them to play with Beep Media Player.
Verdict: Makes it to next round

SYMPHONY ONE
Link: http://www.tuxmachines.org/node/6982
Did not boot well.
Graphic Apps: none
Did not shut down properly.
Verdict: Not recommended

WOLVIX

Link: http://wolvix.org/
Version: Wolvix-Hunter-1.1.iso
Graphic apps: Blender, no povray
Notes: Both mice worked
MP3 played off of USB stick with MPlayer
Blender rendered, but game engine was disabled.
Look and feel: No offense guys, but just not that cool.
Verdict: Makes it to the next round.

CONCLUSIONS :
Nineteen different live CD Linux distros were tested on a laptop. Knoppix 5.3.1, SLAMPP, and Wolvix make the cut in my first round of evaluation of the best live Linux CD for 3D graphics work. Artistix and Sabayon showed some problems but get an honorable mention by virtue of the sheer quantities of graphics software they have available.

Tuesday, June 03, 2008

The suspects are in!


Here's a collage of a set of characters I'm starting to create with MakeHuman and blender. So far, the women all look too much alike. It's interesting that with the men, I can just tweak the parms like crazy in order to make different characters, and all the characters are still male. With the women, trying to keep them feminine caused me to hamper my tweaking, ending up with the same form to the upper torso. Oh, and I ended up with one really creepy character that I think i should delete-- its picture peeks out in the lower right above.

Monday, June 02, 2008

Democracy with Liberty (Sheeps and Wolves)

I've heard the quote,
Democracy is two wolves and a sheep voting on what to have for dinner.
Liberty is a well-armed sheep contesting the vote.
This slogan is supposed to show the differences between libertarianism and mob rule democracy.

Here's my spin on the matter. I believe we have as much to fear from conservative libertarians (libertarian-think-tank-ism) as we do from mob rule. Because of everything from global warming denial to winking at torture and massive borrowing (i.e., "tax cuts"). Here are my spins on the matter:
Neo-conservatism is one wolf telling three sheep that fences deprive all of us of our God-given liberty.

Sunday, June 01, 2008

Blender hair: render time vs. number of hairs




Here's an experiment I did to compare the render time and image quality as a function of the number of hairs in a hair simulation. I found a sweet spot around 3k to 10k hairs before render time appreciably increased.

Hair problems in Blender 2.46

Here's some tinkering with hair in Blender 2.46.

The first image is a funny mistake I made. Somehow I ended up selecting the wrong vertex group, so hair came out of every place EXCEPT the top of the head. I LOL'ed at that.
[edit]
The second one represents a problem you might run into with blender's hair system. Putting hair on a character may make those meshes invisible to the render. In order to see it in the render, you need to click on the Emitter button under the Render section of your particle physics dialog.