Twitter Updates

7/7/2007

Dodged the bullet

Filed under: — AlienMind @ 4:22 pm

Not long ago we had a problem with our main UPS; it started to smell like hot plastic.

Which, it turns out, was true as the UPS was so hot I had to use oven mitts to remove it from the closet. I mean, that thing was hot. Later, after it had cooled down, I plugged it in to see if it passed the Power On Self Test. It failed miserably.

Today there was a free “E-Waste Removal” drive at Diablo Valley College, so I decided to take both of our dead UPS systems over there. While they would take the UPS electronics, I would have to dispose of the Lead-Acid batteries myself. I had already removed the battery from the smaller UPS, but I had not yet gotten to remove them from the large “hot” UPS.

When I opened it up and pulled them out this is what I saw (click for much larger image):

Wow. The batteries had gotten so hot that they had welded themselves together. We’re lucky we didn’t have a fire.

1/15/2007

History repeats itself

Filed under: — AlienMind @ 12:05 am

Thousands – possibly millions – of dollars spent on research? Check.

Thousands – millions? – of dollars spent on strong-arming vendors into only supporting your HD format, and no combo systems allowed? Check!

A super-duper-secret encryption method that has never been peer-reviewed (“someone might steal it!”) and, therefore, only passes the test of “well, WE can’t crack it!” ? CHECK.

The content you were supposed to be protecting cracked in a few weeks and now available on BitTorrent? CHECK

12/6/2006

Hello, Linux (Part 2)

Filed under: — AlienMind @ 9:06 pm

In Part One of “Hello, Linux” I described the basic machine and setup I use with Knoppix.

Knoppix runs off of a CD-ROM; simply pop in the CD, boot the machine and you’ll have a fully running Knoppix Linux system in a few minutes, and no need for a hard drive.

As my machine has 2 gigabytes of RAM, I can afford to lose some – I won’t be using nearly that amount during normal operations under Knoppix.

There is a downside to loading the whole CD into RAM - this increases the boot time from about a minute to about 8 minutes as it takes a while to read all of that data. However, the advantage is that you won’t have to wait for the CD to spin up when you type command or run programs on the system – all of the executables will be in RAM. It very much depends on what you are doing – for quick system recovery tasks I don’t bother loading things to RAM. For long-term login sessions I almost always do load it into RAM. YMMV

When the boot screen comes up it prompts you for any startup options you wish to give the system. In my case I want to make sure that the system will copy the entire contents of the CD-ROM into RAM (faster, and no disk to spin up and spin down wasting battery life). Also, I want to make sure the system uses the correct screen resolution. Knoppix is pretty good about guessing, but it can be conservative in the guesses and you often end up with a resolution of 800×600 – not bad, but a waste on a machine that can do 1280×1024.

So, my startup arguments to the boot prompt are:

knoppix toram screen=1280×1024 depth=24

This copies Knoppix to the system RAM (“toram”), sets my resolution to 1280×1024 (screen=1280×1024) and sets my screen color depth to 24 bit (depth=24). The options you need to use may vary; simply hit F3 on your keyboard while the boot prompt is displayed to see the various options, or consult the Knoppix Cheat Sheet.

Also, keep in mind that if you don’t type anything for a small period of time (usually 30 seconds) the system will automatically boot.

The biggest disadvantage of Knoppix is the very thing that makes it attractive; it is run off of a CDROM. This means that, with the exception of areas that are layered by a Union Filesystem (more on that later), the entire system is read-only. No changes possible.

That’s nice for making sure that no one can alter your system, but if you want to have persistent data across boots then something has to be done.

Enter the idea of a “persistent home image”. In my case, I have a 100Mb persistant home directory and system setting image on a removable SanDisk thumb drive. This stores all of my settings for various programs (like X-Chat, and IRC client) and also saves all of the system settings for my desktop, such as the placement of icons and the system settings that control my screen resolution.

Creating this is very easy.

  • Insert your thumbdrive – no need to mount it explicity, the system will find it
  • Make any changes to the system you may need to keep permanently
  • Find this entry in the system menus and choose it (click for larger image):

  • Answer this dialog correctly:

At this point the system will ask you where you want to put your persistant image. In my case I chose the thumbdrive I had inserted into the system:

You will then be asked if you want to encrypt the thumbdrive image. As I am on the road and don’t want anyone reading my files, I answered yes. Keep in mind that they system will want a 20 character password so start thinking of that password now, and don’t forget it.

Finally, the system will prompt you for how large you want your persistant home directory to be. 100Mb is the default, but you can have a much larger one if you need it; it all depends on available space.

After this the system will proceed to create your persistant directory and populate it and, optionally, ask you to type in your initial password.

Once you’ve done this it is best to reboot to check out the persistant storage to make sure it works. Do this by logging out of Knoppix and choosing to restart – don’t forget to have your thumbdrive plugged into the machine during boot. . Once the boot prompt comes back up you only need to type “knoppix” or, if you want to run from RAM, “knoppix toram”. Your home directory and settings should be found automatically; if they aren’t, use the additional boot parameters of “home=scan” and/or “config=scan” so they system will search for them.

If the system finds your persistant home it will prompt you, asking if you want to use it. If so, hit the Left arrow key and hit return, accepting the defaults. Also, if you encrypted your persistant home then you will be prompted for your (at least) 20 character password. I hope you haven’t forgotten it…

One additional caveat; once you’ve set up a persistant home the settings contained therein will override the screen resolution you specify in your boot line; so, if you booted with 800×600 and saved your persistant home with that resolution, booting later with “screen=1280×1024” will not do what you want; you will still boot into 800×600 configuration because that is what you have saved on your persistant storage. You will need to change the screen resolution while running Knoppix, then reboot. This will save the new resolution settings to your persistant storage and make sure your boot resolution is what you want it to be.

Next for Part 3: Ok, but my thumbdrive isn’t big enough – I need more space! How to create an encrypted space on the hard drive.

12/3/2006

Hello Linux (Part 1)

Filed under: — AlienMind @ 9:09 pm

For reasons I will not go into here I am going to be using Linux for the next week. Here is a picture of my desktop (click for gigantic-sized image):

I’m running Knoppix 5.01 on an IBM T43 Laptop. The T43 is a Pentium “M” based laptop running at 2.0Ghz, with 2GB of RAM and an 80GB hard disk. The maximum screen resolution is 1280×1024, and it has built-in WiFi and a CD Burner/DVD reader.

So, as Non-Apple Intel hardware goes, it’s not too bad. I will admit to being an Apple bigot, and as I have a MacBook I have noticed a few things that drive me crazy. Let’s get those out of the way right now:

  • It feels big and clunky
  • The screen hinges on top of the body, making the screen very tall. So, it feels… big and clunky
  • The fan runs all the time. It hardly ever shuts off. This may be partly due to the Linux distro I’m running, but it hardly ever shut off when using Windows, either. It certainly puts a lot of heat out of the exhaust port – don’t sit this on your lap
  • The fan issues contribute greatly to the not-so-great battery life – about 2 hours
  • The plastic feels cheap and flimsy
  • The screen is a 4×3 arrangement instead of a 16×9 – I’m surprised at how much this bothers me

Ok, that’s out of the way. None of this is a manufacturing flaw; it’s just me whining because it isn’t what I would buy… but I didn’t buy this machine. So I’ll quit whining now.

On to the operating system.

The machine originally came with – of course – Microsoft Windows XP. I actually used it that way for a while. I have a license for VMWare under Windows, and at that time the only free VMWare product was VMWare Player. As I needed to be able to create and snapshot the virtual machines I had to use the pay-for product, and the only license I had for that only ran under Windows. So, Windows it was. And this worked just fine for me for about 3 months – I ran two virtual Linux machines under Windows and it only locked up twice. Not bad for 24×7 service – which simply backs up my assertion that XP was the first Windows OS that was “good enough”. (This makes me wonder what the incentive is for upgrading to Vista.)

Eventually I wanted to have a base OS that was actually useful for other Linux-oriented tasks, so I put Fedora Core 5 on the machine as a base OS. This worked fine, and although I’ve never managed to get the WiFi drivers to work, it does a very good job. Like the previous Windows install, it serves as a host for virtual machines – in this case, using Parallels Workstation for Linux instead of VMWare.

  1. Yes, I am aware the VMWare server is now free. I bought Parallels before that happened. VMWare server is a very good product.
  2. Yes, I am aware that we are up to Fedora Core 6. Please don’t write me about this.

So, what I have now is:

  • An IBM laptop that runs Fedora Core 5 and Parallels Workstation
  • It is specially configured to run my companies product in virtual machines
  • It really isn’t designed – or hardened – to run on public networks
  • It is the machine I have to attach to various public networks

In light of this I decided to use Knoppix on this machine. Knoppix is normally a “Live CD” based Linux distribution – you use the CD to boot the system and all of the system binaries are run off of the CD - without touching the hard drive on the computer. You can store your private files on a thumb drive, so all you really need to have a computer is an Intel-compatible machine, your thumb drive and the Knoppix boot disk. Almost any machine will do.

This gives me the best of both worlds; I can boot Fedore Core whenever I need to use that setup, but otherwise I can run Knoppix off of a read-only CD-ROM… which means the boot disk is read-only and cannot be altered no matter what happens on a public network. Add to that the ability to have a permanent, encrypted home directory and you’ve got a winning combination.

Next: Knoppix boot options and creating a portable, permanent home directory.

12/1/2006

An APE stole my performance

Filed under: — AlienMind @ 12:09 am

So, I replaced the hard drive in my MacBook

Instead of 80GB I now have 160GB. Yum.

However, I noticed a problem with my system; it seemed slow. Wait, no, that’s not correct – it was S L O W. Over a minute to boot and log in. Applications were taking a long time to start, and some just stopped working altogether. I was seriously starting to worry that my hard drive was working perfectly… but was just slow – which just means that I could not return it. :(

Thankfully I was totally wrong.

It turns out that Application Enhancer – “APE” – really did not play well with others. Application Enhancer is a plugin that allows you to run some very nice interface enhancements like WindowShade and FruitMenu. Sadly, turning off APE returned my MacBook to its former glory – fast boot times and nearly instantaneous logins.

Now, if my other problems could be solved this painlessly. I also got rid of a number of startup items that were slowing things down. Perhaps if I get rid of all the other software on this system I could … nah.

  22 queries. 0.697 seconds. Powered by WordPress