Kevin Chiu

Things are only impossible until they’re not.

Archive for the ‘Linux’ tag

Installing Ruby on Rails the Easy Way

with 3 comments

update: There’s an even easier way to get up and running with Ruby on Rails. Try Locomotive.

I created this script to install Ruby on Rails on OS X 10.4. It should also work on Ubuntu or other types of Linux as long as you have Bash.

First, have MySQL and gcc installed.

Then, open the Terminal and use this command:

sudo curl http://kevinchiu.org/ror.sh|bash

After a few minutes you should see something like this:

Select which gem to install for your platform
1. mysql 2.7.1 (mswin32)
2. mysql 2.7 (ruby)
3. mysql 2.6 (ruby)
4. mysql 2.5.1 (ruby)
5. Cancel installation

Select the option highest on the list that has (ruby) in the description. In this case it’s 2.

Here’s what the script installs:

readline 5.2
ruby 1.8.5
rubygems 0.9.0
rails
fastcgi 2.4.0
ruby-fcgi 0.8.7
pcre 6.7
lighttpd 1.4.11
mysql native bindings

If you have any problems, leave a comment and I’ll see what I can do.

If this helped you, please Digg it. That way it’s more likely to help others as well.

The script is an updated version of the process found here.

Written by Kevin Chiu

December 14th, 2006 at 7:15 am

Posted in Uncategorized

Tagged with , ,

Linux (Kubuntu) vs Windows XP vs OS X

without comments

Installing the OS

  • Linux - It works, most of the time, with most hardware.
  • Windows - It works, almost all the time, with all supported hardware.
  • OS X - It works, all the time, on Macs.

Look and Feel

  • Linux - Plasticky, with occasional glitches, but super fast
    • Programs that use GTK will have buttons and other controls that look like they came straight out of Windows 3.11
    • Many themes available: kde-looks.org
  • Windows - Nothing to write home about.
    • Third party themes are a pain to install.
  • OS X - It’s the gold standard.
    • If anything, it may be a bit too much eye candy for some people.
    • Awesome attention to detail - Notice how dialog boxes have a glowing button and an outlined one? Pressing space bar activates the outlined one and pressing Enter activates the glowing one.

Application Availability

  • Linux - Not that good, since most companies don’t develop open source software, but nearly everything is free.
  • Windows - Super Good. It’s ubiquitous, so it makes sense that it has the most application support.
  • OS X - OK. Everything you need is there, except games.

Application Installation

  • Linux - Easy
    • Use apt-get, or copy and paste some command line entries from the package maintainer’s site.
  • Windows - Easier
    • Double click the install.exe
  • OS X - Easiest
    • Drag to Applications folder

Perceived Application Quality

  • Linux - Good
    • considering it’s all free stuff
    • Things can be crashy… Perhaps it’s because the dynamic libraries they depend on are constantly changing.
  • Windows - Mostly Crap
    • Most of the programs that cost money aren’t even as good as their open source counterparts (check out the multitude of CD-burning programs).
    • However, there are a small number of very high quality Windows-only apps… It’s sort of a “long-tail” distribution.
  • OS X - Awesome
    • Super !!! 111 One One One 0xFFFFFF !!!
      • Even dysfunctional apps appear to ooze with quality.

Consumer Hardware Utilization

  • Linux - Passable.
    • Most vendors don’t provide open source drivers for their products, so people have to make new drivers, which, from my experience, either work flawlessly, or only provide the basics (3 out of 9 mouse buttons isn’t too bad).
  • Windows - Awesome.
    • If it doesn’t work on Windows, it probably won’t sell that well…
  • OS X - Slick, as long as it’s supported hardware. Otherwise, you’re screwed.
    • Normally, when you install new hardware, you expect to configure it and step through some sort of install process On the Mac, you just plug it in and it automagically knows how you wanted it set up, (most of the time). So you can just use it.

Viruses and Spyware

  • Linux - I’ve been running without Antivirus for a few days and I haven’t noticed any strange events. However, a good virus would hide its presence until called upon to perform its duty. I wonder how I would detect a virus before it’s too late…
  • Windows - Not having both antivirus and antispyware scanning is blasphemy.
  • OS X - No antivirus, no antispyware, no problem. Again, I wouldn’t know how to detect a virus if it somehow infected the system. Oh well.

Community Support

  • Linux - There are a lot of distros. Fortunately, I chose Kubuntu, which is (allegedly) a very user-friendly distro with a large following. Therefore, getting help was easy.
  • Windows - Highlight error. Paste it into Google. Instant support.
  • OS X - Large swaths of Mac users use the same hardware, and the software choices do not vary that much; so, even though the Mac-using population is small, the homogeneity of hardware and software configurations guarantees a sizeable support group.
    • Plus, there are sites like MacRumors and ThinkSecret that host forums that serve as secondary support groups.

Inspiration

  • Linux - Inspires one to hack.
    • since everything comes with source
  • Windows - Inspires one to try other OS’s.
    • since it’s old and crufty
  • OS X - Inspires one to create good-looking things.
    • since it’s elegant

Written by Kevin Chiu

December 31st, 2005 at 6:15 pm

Posted in Uncategorized

Tagged with , ,

Trying out Linux

without comments

OS Install

I downloaded the Kubuntu CD image from the official site, burned it to a CD, set my BIOS to boot from removable media first. I have a Dell Dimension 9100 and it was set to boot from HD first. The installation seemed to go smoothly. The only option I had to change from the default was the time zone.

Unfortunately, after booting up, I discovered that my display was stuck at a sub-optimal resolution. To remedy this, I used sudo dpkg-reconfigure xserver-xorg and was able to select the correct resolution for my FP2405.

Additionally, my Logitech MX510’s extra buttons were miss-mapped. For example, the foreword and back buttons don’t go foreword or backwards in any of the browsers.

Installing and Upgrading with apt-get

Kubuntu includes a apt-get GUI called Adept. One of the first things I did was use the System Update Wizard. I basically just pressed “Upgrade” and everything on my machine was upgraded.

Next, I used the System>Package Manager (Adept) to install the linux-686-smp kernel metapackage, which, I hope, took advantage of the HyperThreading available on my 3.0Ghz Intel P4. This required a reboot.

I’d heard of Native Eclipse and wondered if Adept had it. All I had to do was type “Eclipse” into the Adept search box and install everything. Apparently, the GCJ appended packages provide the natively compiled portions of the installation.

Eventually, I discovered Kubuntu-Automatix. This is basically a super-install shell script with a GUI. I used to install common codecs, media players, Firefox + all plugins (flash etc.), SUN Java, MS TrueType Fonts, RAR, ACE, MPlayer, OpenOffice.org 2.0, and DMA (Direct Memory Access - devices can directly shuttle information to memory without using the CPU). This script includes a ton of packages. There are even DVD decoders, (which the installer says are illegal to install in the United States).

Written by Kevin Chiu

December 31st, 2005 at 4:56 pm

Posted in Uncategorized

Tagged with ,

Running Linux 5th Edition

without comments

I just finished reading Running Linux. As a result, I am hyped up about linux. I think I’m going to install openSUSE or Fedora Core 4 on an old junker and try it out.

Written by Kevin Chiu

December 29th, 2005 at 6:47 pm

Posted in Uncategorized

Tagged with ,