Linux Is Here To Stay

You may have read here before about my ven­tures with Linux on the home pc, where things must work for the whole fam­ily, not just me the Linux Geek.

Back in March or so, I grew tired of Win­dows XP on my home desk­top. I was sick of hav­ing to keep up with WGA cracks (ahem), sick of bloated crap­ware, and not inter­ested what­so­ever in Vista.

So, I installed Red­Hat Linux (Fedora Core 6 to be exact). This was highly tol­er­a­ble for a cou­ple of months since I was used to using it at work all the time, and I am well versed in Red­Hat oper­at­ing sys­tems. How­ever, it caused issues for Ali­cia because it just wasn’t intu­itive enough, and it didn’t just work. There was always some fin­gling needed to be done in a ter­mi­nal window.

I decided a few weeks ago that I would install Ubuntu 7.4 Fiesty Fawn, and I haven’t looked back since. When I learned that Dell was ship­ping PC’s with Ubuntu instead of Linux, I knew it must be time. The instal­la­tion was fast, and it was insanely sim­ple to do. The Ubuntu devel­op­ers have thought of every­thing, and it seems like they are dri­ven to make some­thing with mass appeal that is bet­ter than Win­dows. In my opin­ion, they have.

It just works. Plugged in my iPod, it worked. Plugged in my old NTFS data drive, it worked. Plugged in my USB card reader, it worked. All of it works. Needed a codec to watch some video clip, and Ubuntu went and found it eas­ily, let­ting me start watch­ing within seconds.

The final test of Ubuntu’s readi­ness for the masses was how well my wife han­dled it. So far, the only com­plaint is that she can­not lis­ten to music she bought from iTunes (until I work around that). So all in all, Ubuntu passes with fly­ing colors.

 

Geeky Stuff

On the Dell web­site, they detail all the cool stuff Michael Dell has in his per­sonal tech arse­nal. I was suprised to see his pri­mary lap­top runs Ubuntu Linux, Open Office, and Fire­fox. Guess he’s as fed up with Win­dow as the rest of us!

Speak­ing of (free) alter­na­tives to (upgrades from) Microsoft prod­ucts, Thun­der­bird 2 is out! I have been eagerly wait­ing for this, as it will intro­duce some cool new fea­tures, such as the abil­ity to tag your mes­sages with key­words. Ooh! I gotta go upgrade now…I’ll let you know how it goes!

 

For the last few weeks, the techie blogs have been cir­cu­lat­ing sto­ries about how Microsoft Win­dows Vista can be installed and used for free for 120 days. You see, Microsoft gives you 30 days to try it out for noth­ing, but then they will dis­arm it and require you to pur­chase a license to con­tinue using it.

Some­one found out that Microsoft had built in a way to extend that 30 trial to 120 days through a lit­tle reg­istry tweak.

Well, now some­one has fig­ured out how to extend it indef­i­nitely, not by hack­ing or crack­ing the oper­at­ing sys­tem, but by using the built-in tools that Microsoft included in the oper­at­ing system.

From DailyCupOfTech.com:

“It appears that crack­ers need not break Win­dows Vista acti­va­tion because Microsoft has done it for them! Brian Liv­ingston of Win­dow Secrets writes in Microsoft allows bypass of Vista acti­va­tion about how to allow you to keep your Vista box run­ning indef­i­nitely with­out acti­vat­ing it.“

It is likely that MS will try and fix this through some future patch, but what will they break in doing so? They obvi­ously had a need to pro­vide this func­tion­al­ity for some reason.

Now that I’ve aban­doned Winders on the home desk­top com­pletely for Red­Hat Fedora linux, this makes me chuckle. How­ever, maybe I’ll give it a shot and see what happens!

 

I just got through set­ting up Tomcat5.5, Apache2, and mod_jk on a Red­Hat Enter­prise AS4.4 machine at work. In the past, I have done this by com­pil­ing each com­po­nent sep­a­rately and fin­gling with con­fig files until it all worked. But I wanted to stick with RedHat-approved RPM’s from the Red­Hat net­work to ease updates and patch man­age­ment, and to allow the orga­ni­za­tion to have sup­port options.

I had a lot of trou­ble find­ing any doc­u­men­ta­tion on how to do this any­where, so I thought I’d throw it out here for any­one in a sim­i­lar sit­u­a­tion in search of help.

The fol­low­ing are my notes, sprin­kled with a lit­tle help I got from a Red­Hat sup­port tech.

First, I had to enable the fol­low­ing chan­nel within the Red­Hat Net­work for this system:

–Red Hat Appli­ca­tion Server v. 2 (AS v. 4 for i386)

If you don’t have a RHEL license for updat­ing your sys­tem, you will need one.

Once those chan­nels were enabled, I installed the fol­low­ing pack­ages using up2date at the com­mand line:


# up2date tomcat5
# up2date tomcat5-webapps
# up2date tomcat5-admin-webapps
# up2date mod_jk-ap20

With the pack­ages installed, I set out to con­fig­ure a vir­tual host to pass requests to Tom­cat as needed by using the mod_jk con­nec­tor. The fol­low­ing steps explain how to do this for a web site called example.com using IP address 123.123.123.123. Sub­sti­tute your domain and IP accordingly.

Step 1. — Add mod_jk to Apache

In /etc/httpd/conf/httpd.conf add this:


LoadModule jk_module modules/mod_jk.so
<ifmodule mod_jk.c>
JkWorkersFile "/etc/httpd/conf/workers.properties"
JkLogFile "/etc/httpd/logs/mod_jk.log"
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
</ifmodule>

That loads the mod­ule into Apache, tells apache where the worker is that will han­dle jsp/servlets, and tells Apache where to record log entries for mod_jk.

Step 2. — cre­ate a new file called /etc/httpd/conf/workers.properties and add this to it:


[channel.socket:example.com:8009]
port=8009
host=example.com
[uri:example.com/*.jsp]
worker=ajp13:example.com:8009

Step 3. Cre­ate a vir­tual host in /etc/httpd/conf/httpd.conf like so:


<virtualhost 123.123.123.123:80>
ServerAdmin webmaster@example.com
ServerName www.example.com
DocumentRoot /var/www/html
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
# Deny direct access to WEB-INF
</virtualhost>

Step 4. Set up Tomcat5 by adding this to /etc/tomcat5/server.xml just before the very last </Engine> tag at the bot­tom of the doc­u­ment:


<host name="example" appBase="/var/www/html" unpackWARs="true" autoDeploy="true">
<context path="" docBase="" debug="0" reloadable="true"/>
<alias>www.example.com</alias>
<valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="web1_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
</host>

Still with me? We are almost done.

Step 6. Cre­ate a sam­ple jsp file called /var/www/html/test.jsp and add this to it:


Time: < %= new java.util.Date() %>

Step 7. Start up the ser­vices

# apachectl start
# service tomcat5 start

Step 8. Try it!

Browse to http://www.example.com/test.jsp

If all went well, you should see the system’s cur­rent date and time when you load the web page. Con­grats. Hope it works for you!

 

Odds; Ends

From The “That’s So Dis­gust­ing” Depart­ment
Found a rather hilar­i­ous writeup about my Fin­ger­nail and Toe­nail Col­lec­tion today over at I Am Such a Child. The pics aren’t work­ing on that page, but you should be able to fol­low along.

I was con­tacted by MyHeavy.com about doing a video of myself per­form­ing my toe­nail lick­ing rit­ual and sub­mit­ting it to their site. June had orig­i­nally men­tioned that idea a cou­ple of months ago, and I’ve just been wait­ing until the moment feels right. Stay tuned.

From The Online Web Tools Depart­ment
Check out this huge list of online gen­er­a­tors for gen­er­at­ing things such as 3-column CSS lay­out and acces­si­ble forms.

From The Toot­ing My Own Horn Depart­ment
Some­one has erected a Myspace page for Crain. Nice job of col­lect­ing stuff.

From The Cru­cial Apps Depart­ment
If you use mul­ti­ple mon­i­tors on your PC, then you must get Multi Mon­i­tor Taskbar, a free­bie tool that puts a taskbar at the bot­tom of your sec­ond mon­i­tor, sav­ing you mouse mileage and win­dow con­fu­sion. It also has a nifty clip­board mem­ory tool built in.

 

A com­mon task I always find myself doing in Fire­fox is search­ing through my boat­loads of book­marks (1100+) for some­thing I remem­ber the look of, but not the name or URL of. I tend to remem­ber things visu­ally, so this is a com­mon prob­lem I run into.

I’ve looked around for a Fire­fox exten­sion that would do the fol­low­ing, but haven’t found any­thing. Does any­one know of a book­mark exten­sion that would pro­vide the fol­low­ing functionality?

  • Take a screen­shot of a web page when it is book­marked. (This could be optional somehow).
  • Show the screen­shot when hov­er­ing over book­marks in the Book­marks menu.
  • Retroac­tively take screen­shots of web sites already in your Bookmarks.
  • Be com­pat­i­ble with Fox­marks.

Yeah, so that’s prob­a­bly ask­ing quite a lot…but hey! This would be a killer exten­sion if it did half of what I listed.

Any tak­ers?