got guts

October 18, 2007 under Kubuntu, Linux, Ubuntu

Ubuntu Linux 7.10, aka: Gutsy Gibbon, is officially available as of right now – right this very second. My plan is to upgrade my Kubuntu 7.04 desktop to Kubuntu 7.10 (because I like KDE more than Gnome) tonight.

A few things I’m interested in the new release are:

  • The upgrade process from 7.04 (aka: Feisty Fawn) to 7.10 (aka: Gusty Gibbon)
  • Dolphin file manager
  • Compiz – I know the regular Ubuntu distro has it but is it even included with the Kubutnu?
  • Strigi Desktop Search

I see that Kubuntu includes KDE 3.5.8 and that’s okay, but I’ll be more interested in KDE 4.0 when it’s out of beta. KDE 4.0, I predict, will be the only desktop that can give Mac OS X Leopard a run for its money – Vista is likely out of the running.

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
comments: 0 »

make amarok, ummm, amarawk

May 23, 2007 under Amarok, Linux, MySQL

I mentioned before that since I dumped Windows XP on my desktop computer in favour of Kubuntu, I’ve been using Amarok as my replacement for iTunes. I like Amarok much better, actually. But I noticed that Amarok would perform terribly when it was switching tracks, loading albums, finishing a playlist and more. Being a music dork, I have a pretty big collection – we’re talking > 30 GBs. And this may have been part of the problem.

A default install of Amarok will use an internal implementation of SQLite to manage your music library. SQLite is a nifty embeddable database engine that developers can embed into their apps. It’s well suited to small data sets and a minimal number of transactions. I should’ve first clued in when it took Amarok over 15 minutes to initially scan my music folder and store the info in the music library. Rifling through the file system of 7000 songs to get artist/album/title/genre/track number/album art info and then run INSERT queries shouldn’t take that long on a P4 2.4GHz with 1GB of RAM, but it did. And then the general sluggishness followed.

Thankfully, Amarok also supports the use of MySQL and PostgreSQL to store music library data. I chose MySQL, mostly because I haven’t installed PostgreSQL yet, and don’t have a pressing need to. Let me tell you, it took less than 5 minutes to rescan my music folder and load the data into the music library, and the sluggishness is gone completely.

For future reference, or for those interested in learning how to configure Amarok to use MySQL, do the following (assuming you already have MySQL installed and ready to rock):

Log into MySQL with your root account:

$ mysql -p -u root

At the MySQL prompt, create a database. I called mine ever-so-apropriately ‘amarok’ πŸ™‚

CREATE DATABASE amarok;

Now let’s use our new database and create a user. Again, here I go with the appropriateness, and called mine ‘amarok’. I won’t tell the password I chose, so let’s pretend it’s ‘12345’:

USE mysql;
GRANT ALL ON amarok.* TO amarok@localhost
IDENTIFIED BY '12345';
FLUSH PRIVILEGES;

The fire up Amarok and go to the settings dialog under Settings | Configure Amarok. Next, click on the Collection tab. Change the value of the Database listbox to “MySQL”. If the music is on your computer, keep the host as “localhost”, the port can probably remain as 3306 (unless you’ve changed your MySQL config), and the name of the database that you created for it (in my case, it’s “amarok”). Finally, the username and password, in my case, are “amarok” and “12345” .

amaRAWK!

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
comments: 1 »

the ol' switcharoo

May 16, 2007 under KDE, Linux, Ubuntu

This weekend I made the switch, leaving Windows behind. Sure, those Get a Mac ads are ever-so charming, but I did not switch to OS X – I’m not made out of money πŸ˜‰ I switched to Linux – specifically Kubutnu 7.0.4 (aka: Feisty Fawn), the KDE-powered version of Ubutnu Linux (which uses Gnome). I chose KDE over Gnome because KDE, to me, seems more full-featured. Hell, even Linux creator Linus Torvalds recommends KDE over Gnome.

I installed Kubuntu on my desktop PC at home and decided to keep Windows XP on my laptop for the time being. But for the desktop PC, it’s all Linux all of the time. No dual-booting – just Linux. Before eradicating Windows from the hard drive, I did use the VMware Converter to create a virtual machine of my (now former) Windows desktop. This way if I ever absolutely need Windows on my desktop (most likely for .NET/IIS/SQL Server development work), I can run it from within Vmware Server as a virtual machine.

Switching was surprisingly easy and there isn’t much that I’m missing out on in Linux. All of my hardware was detected properly, and the ability to read/write to NTFS partitions works flawlessly in Feisty. Apps like Firefox, OpenOffice and Skype come in Linux flavours, which is welcoming and familiar. Otherwise, I have found a Linux-equivalent for almost every other critical app that I use on a regular basis. I think I prefer Kopete to any other multi-protocol instant messenger. Amarok, which discovered my iPod right off the bat, seems better-organized than iTunes. Quanta Plus doesn’t leave me missing Dreamweaver. KTorrent is a suitable replacement for ¡Torrent. The only thing Linux lacks is support for PC games; it can’t compare to Windows. Yet I have no problem with that, since I haven’t done a whole lot of PC gaming lately. And besides, when it comes to gaming, that’s what I have a Wii for πŸ™‚

I’ve tried Linux on the desktop before in the past and it’s always sucked. I remember having a bitch of a time getting anything to work in RedHat Linux 5.1; here’s some proof. But I’ve been watching the Ubuntu distro and it is extremely good, and I figured it’s a good time to take the plunge. I love not having to worry about virii or malware like spyware and trojans. It’s great to be able to install software from one location (Adept on Kubutnu/Synaptic on Ubutnu) and always have it kept up to date. The kicker is that it’s all free πŸ™‚

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
comments: 1 »

linux gets flashy

February 7, 2007 under Beryl, Flash, Linux, Ubuntu

Last night while updating some Firefox extensions in my Ubuntu virtual machine, I decided to try an experiment. The recently released Flash Player 9 also has a version for Linux. The last version for Linux was version 7, which made sites like YouTube unusable. And installing Flash 7 player on Linux was never a treat, regardless of which Linux distribution you were using. You couldn’t even install Flash via Firefox’s plug-in finder feature. However, when I visited YouTube last night, Firefox’s plug-in finder successfully installed Flash Player 9 and everything worked flawlessly.

To digress a bit, take a look at the latest version of Beryl in action. Beryl provides hardware-accelerated usability enhancements like the ones found in Mac OS X and Windows Vista. The difference is that Beryl (as well as Linux) is free, requires far less hardware resources than OS X and Vista, and the project is barely six-months old.

All of this is pointing toward Linux becoming a viable operating system for home use – it still has a ways to go on the corporate desktop. For our home computers, I’m seriously considering a switch…if my wife will let me πŸ˜‰

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
comments: 1 »

the ubuntu way, part 2

September 6, 2006 under Computers, Linux, Programming, Ubuntu

Upon reviewing my web server’s logs, a lot of people stumble upon this website o’ mine by submitting queries for “ubuntu phpmyadmin” to search engines like Google, Yahoo! and MSN. I’ll assume that it’s because installing PHPMyAdmin on a fresh Ubuntu Linux install isn’t all that straightforward. Everybody lands on this post from last year. Unfortunately, I never actually mentioned how I installed PHPMyAdmin on Ubuntu in that post at all, so it’s probably pretty useless to most. Like Dr. Sam Beckett, I will attempt to put right what once went wrong, and hope that each time somebody wants to install PHPMyAdmin on Ubuntu, this will be the leap home.

Once you have installed Apache, PHP, MySQL and configured MySQL by creating users and maybe a database or two, you’ll quickly find out that you can’t install PHPMyAdmin from Synaptic or apt-get (Synaptic is merely a nice GUI for apt-get). The reason? All of the software (“packages” in Ubuntu parlance) that you can install via Synaptic or apt-get comes from repositories. Out-of-the-box, Ubuntu is configured to use only three Ubuntu-approved repositories, none of which have PHPMyAdmin on them. You can, however, add other repositories. On those other repositories, you’ll find PHPMyAdmin. To quickly add those repositories via Synaptic, go Settings | Repositories. For the Ubuntu 6.06 LTS, Ubuntu 6.06 LTS Security Updates, and Updates repositories, add the Official and Restricted Copyright to each one. Make sure you click the OK button for each repository to make the changes stick.

Synaptic Channels

Now you can search for “phpmyadmin” in Synaptic.

Synaptic PHPMyAdmin

Using apt-get from a console should accomplish the same thing:

$ sudo apt-get phpmyadmin

Fire up your browser and go to http://localhost/phpmyadmin/, and you should be pleasantly surprised. Now, off you go to build the next Digg or Flickr. Or maybe skip the whole Web 2.0 flurry entirely and be a Web 3.0 pioneer; Web 3.0 being the designation given to websites that can…whoa whoa, I’m not giving away that secret just yet πŸ˜‰

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
comments: 0 »

the ubuntu way, part 1

August 29, 2006 under Computers, Linux, PostgreSQL, Software, Ubuntu

This might be the first part in a series. Ubuntu is unlike any Linux distro that I’ve ever used before. Its installation and quick ‘n’ painless and its ease-of-use are (currently) second to none. Ubuntu‘s package management app, Synaptic, is stellar. It allows you to easily install apps (and their depenecies) from a simple yet effective interface. However, one thing I’ve noticed is that when you install software via Synaptic, you’re installing it in a different way than you would when you build from source or even use another package management system like RedHat‘s RPM. Some installations via Synaptic pre-configure the software for you – you never really know when this will be the case. Last night, I discovered this while installing PostgreSQL 8.1.

For the benefit of myself and anyone else who becomes confused when following the documentation and being faced with plenty of errors, here’s what it took for me to make it work.

Once you’ve installed the PostgreSQL packages, fire up a terminal window. PostgreSQL cannot be run as root, but when it’s installed, it’s also not setup to use your regular login account. The installer creates a postgres user for you. So you need to create a password for this user:

$ sudo su postgres -c psql template1

You’ll now have a PostgreSQL prompt instead of a Bash (or whatever shell you’re using) prompt. Issue this to change the password of the postgres user:

ALTER USER postgres WITH PASSWORD 'your_chosen_password';
 
 \\q

Now all you need is a database. If you wanted to create one called, say ‘bestdbever’, enter the following at your shell prompt:

$ sudo su postgres -c createdb -O bestdbever postgres

Now you have a database that you can start creating a schema, tables, sprocs and more for. There’s no need to add anything to rc.local, as the package installer will create the daemon for you. You also don’t have to run initdb. Now when you’re developing an application with PHP, Ruby, C++ or whatever, you would connect with the postgres username and the password that you setup in the ALTER statement. This was mostly for my own reference, but maybe it’ll help somebody else.

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
comments: 0 »

ridin' the rails with ubuntu

November 25, 2005 under Computers, Linux, Programming, Ruby, Ruby on Rails, Software, Ubuntu

I had enough of hearing about how wonderful Ruby On Rails is, so I wanted to see it for myself. Being the type of person who’s interested in many things all at the same time, I had a reason to try out another much-talked about thing. In order to properly try out RoR, I wanted a decent web server, so I installed Ubuntu Linux. Ubuntu is by far the easiest Linux distro I’ve used thus far. As such, its installation is quite basic – aiming at the desktop user demographic. But that didn’t stop me, and Ubuntu makes it simple to add what you want. Sometimes I used apt-get and other times I used the GUI app that allows you to search for and install new and updated packages.

First, I needed web server software, so installing and configuring Apache 2.0 was my top priority. The next thing that I installed was PHP 5.0; I’m familiar with 3.x and 4.x but I thought I should begin to explore 5. MySQL 5 wasn’t available in the repository at the time, so I installed the latest 4 release. To make life easier, I installed PHPMyAdmin; normally I prefer a command line but sometimes I just need to stave the RSI symptoms. Then came time to install the Ruby interpreter. Finally, using Gems, I installed Rails.

After browsing some tutorials, I saw how easy it was to generate the skeleton of a data-driven web application with Ruby On Rails. As such, it got me thinking of what’s possible now that a lot of overhead is taken care of by RoR. I just need a way to narrow down my list of possible project ideas.

Take a look at my screenshots below of my Ubuntu web server.

php_info() | RoR WEBrick | PHPMyAdmin

Total time to get everything installed and configured = 1.5 hours πŸ™‚

EDIT (09.05.2006): If you’re interested in learning how to install PHPMyAdmin on Ubuntu Linux, I’ve posted something explaining how to accomplish that here.

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
comments: 0 »