Falling Empire

Another sign that the Microsoft empire is fail­ing and falling:

Steve Jobs acknowl­edges that Microsoft will be forced to embrace web-to-deskptop tech­nol­ogy. He’s about two years too late. Google, Yahoo, and many oth­ers are way ahead in this game.

 

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.

 

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!

 

Windows Free — Update 1

After about 4 hours of using Ubuntu Linux, I ditched it and installed Fedora Core 4. The main rea­son was that Ubuntu does not have a root user. This may seem odd to expe­ri­enced Linux folks, but the inten­tions behind it are good. Unless you know what you are doing, you can com­pletely hose a Linux oper­at­ing sys­tem as the root user. So, in order to become as user-friendly as pos­si­ble for Linux new­bies, they require you to use ‘sudo’ for every­thing in Ubuntu.

To me, this was a slow­down. I decided to go with what I am most famil­iar with, and that is the RedHat-based Fedora Core 4.

More on my ven­ture to dis­card Win­dows from my life will soon follow.

 

Windows Free!

I got fed up. Fed up with a bogged down oper­at­ing sys­tem. I got tired of viruses, spy­ware, licenses, etc etc etc.

Tonight I made the switch.

No, not to Apple. To Linux. Full-time, full-on Linux. Ubuntu, to be exact.

Within two hours I was up and run­ning a smooth desk­top, play­ing music from my iTunes library, brows­ing with Fire­fox, check­ing all my email in Thun­der­bird, and enjoy­ing the feel­ing of being free from Windows.

The remark­able thing is that almost all of my USB devices work. My web­cam does not, but a quick lookup found a tuto­r­ial on set­ting it up. Trans­fer­ring all of my files was easy too. I just mounted my WinXP hard drive and whammo — it’s all accessible.

It’s still very early to tell how well I will adjust to this in my day-to-day work­ing envi­ron­ment at home, so I will report back here on the mat­ter in a week or two.

 

Google OS — Goobuntu

Remem­ber the other day when I not-so-sarcasticly sug­gested that Google might make an oper­at­ing sys­tem and how funny it would be because they pose the biggest threat to the fal­ter­ing Microsoft Borg Collective?

Well…

Google con­firms devel­op­ment of a desk­top OS.

It isn’t clear yet what their inten­tions are, but know­ing Google, they will likely be good.