Just rants

Posted March 29th, 2009. Filed under Uncategorized

The past few weeks has had some pretty interesting news going on in the blogosphere or at least at Apple. I’m not fanboy yet, I’d consider myself being right on the fence but leaning towards the apple side of things for various reasons. In anycase I actually sat in front of my computer refreshing my browser watching the iPone 3.0 operating system announcement. In the beginning I was a little excited because there are a whole bunch of additions to the OS that is going to make the iPhone yet more functional and what not. Then when I thought of it I noticed that a good deal of those features have already existed on a jail broken iPhone. Having jail broken my iPhone nearly about a month ago I realize that maybe even with the new additions to the operating system that will be released sometime in the summer I may find myself reluctant to upgrade my firmware until its mandatory to do so.

By the way I’ve also been playing around with the Qik app for the iPhone which is pretty awesome because it enables you to stream a live video feed onto the net and from there upload onto Seesmic, Youtube and a few other services.

http://www.qik.com/lagrz

Server Pic 2

The Home Server Setup

Parts used:

Installing the Ubuntu Desktop Operating system is pretty plain and simple. All I basically did was install the Ubuntu distro onto my flash drive (I didn’t install a disc drive on the server) and booted the server computer with my flash drive and followed the installation process from there. I decided on using the Ubuntu Desktop version primarily because I wanted to have the ability to use the computer for more purposes than one, for example as a Boxee TV set top, or just as another internet terminal in the household.

Once after I finished installing the operating system I went ahead and installed all the necessary updates which in a sense almost took just as long as the actual operating system installation itself, but no problem that was used as good quality time to serve myself a nice refreshment (beer) and sit back and relax a bit.

Note: Once after installing all the Ubuntu updates and restarted the system I noticed that the NIC card was no longer connecting to the Internet. As I searched through the Ubuntu forums I found out that one of the kernel updates has a little issue with the Intel D945GCLF motherboard. After couple of minutes searching around I came across a post with recompiled version of the update with the issue patched.

The fun part begins

Installing Samba was a walk in the park, all I did was created a folder named TimeMachine (I’ll explain later), and right clicked it and selected sharing options. It prompted me that I needed to install Samba in order to share that folder , and did it automatically after going through the menus. Once having the folder I wanted to share the folder I selected I went on to setup Avahi to broadcast that the server has Samba up and running to the rest of the computers in the network:

Opening Terminal on the Ubuntu Machine and running the following command:

Sudo gedit /etc/avahi/services/samba.service

Copy and paste this into the text editor:

<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h</name>
<service>
<type>_smb._tcp</type>
<port>139</port>
</service>
</service-group>

Save and Close the file editor, and restart the Avahi service by doing the following:

Sudo /etc/init.d/avahi-daemon restart

Now that my MacBook was able to see the new server setting up TimeMachine to backup to the server was a little trickier. I had to follow a guide that explains how to do this same process but with Netatalk so I had to skip a couple of steps. Basically you have to set up TimeMachine so that it can use network devices for back ups. This is done by going on Terminal on the Mac and punching in a mini code:

defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1

once running this command you should be able to select a network share for backing up data.

The next step was a little trickier.

Time Machine didn’t work right away, it gave me an error, telling me it was unable to create disk image and what not. So what I ended up doing was going under the Utilities folder in the applications folder and running Console, on the left navigation menu I selected All Messages and re-ran TimeMachine’s BackUp Now option and waited while it did its thing. On the Console application you’ll notice after a couple of seconds or minutes a message with something along the lines of:

Creating disk image /Volumes/TimeMachine/computername_0014e3856bd0.sparsebundle

Of course with computername being the name you gave your mac during initial setup. Open up the DiskUtility app and from the toolbar Create a New Blank Disk Image with the name that showed up in the console:

computername_0014e3856bd0.sparsebundle

Unfortunately I didn’t really added a Volume name to it so I left its default name but for the Volume Size I selected a small size.

Volume Format: Mac OS Extended (Journaled)
Encryption: none
Partitions: Single partition – Apple Partition Map
Image Format: sparse bundle disk image

Copied over the image to the shared folder on the server, and jumped on Terminal with my Mac to bloat up that tiny image to something usable, lets say around 500 gigabytes. Navigated to the following:

cd /Volumes/Name of Shared Folder

Remember I had already mounted the share folder on my MacBook simply by going under the file manager and on the left hand side clicking on the server share and connecting as the user I created on the server. Once in the Volumes folder and inside the mounted drive can do a quick ls command to make sure that the sparsebundle image is there. There I ran the command to resize the image file which was:

hdiutil resize -size 500g filename.sparsebundle

Time to give TimeMachine another run.

Believe me that you’ll be glad to have resized the image file after  it was transferred onto the server, otherwise you’d have to sit and wait for an empty 500gig image to be transferred from one computer to another.

TimeMachine worked perfectly after this, the only thing is that it did take some time doing the initial backup because it was nearly 150gigs of data that was transferred.

Links and Resources:

Building a linux home server

Posted March 2nd, 2009. Filed under Computers, Internet, Tech

Ubuntu Logo

I’m going to be making a small server for my house to hold all my music files, as well as serve my TimeMachine backups for my Macbook. This server is also going to be more than that, being a geeky kind of guy that likes to try out several different things I also plan on adding a full fledged web server with the works “LAMP,” and possibly Ruby on Rails. Unfortunately none of the home servers sold have these capabilities or the ability to add custom software to them, aside from that their price point is a little hefty compared to buying the parts and building it yourself. Besides Linux is free, and very customizable.

So over the weekend I went out and bought a 1.5 terabyte hard drive at Frys Electronics for $130, and purchased a case, and stick of memory from New Egg under $70. Now I just need to go out and purchase the motherboard and CPU that will be the heart and brains of this. I’ve decided on going with an ATOM based CPU mainly because it does require much power (go green!) and fits in a small ITX case.

fedora_logoThe only dilemma I am now having is trying to decide on what Linux flavor I am going to be using for this server. I’ve been doing a little bit of testing using VMWare and Fedora 10 on getting Netatalk and TimeMachine working together but have not succeeded in the task. I have had a little more success using Ubuntu and a small tutorial I found online on how to get it running, except that Ubuntu does not come with the installation packages for a LAMP server as an option during the initial installation, which will cost me more time than if I were to use Fedora. I can always go with the Ubuntu server option but I plan on keeping a Gnome gui set up on the Linux box just in case if in the future I decide on adding Boxee, Miro, or some other online media software of that type.

Of course this will be an on going project and I will do my best to keep all changes made and hopefully some pictures while building it posted on the site.

Update: added links to its respected sites :)

iphone-bestbuy

Exactly a month after I purchased my iPhone I recieve an e-mail from Best Buy’s Rewardszone membership with this insane deal on the iPhone for those who are Premier Silver members since last year. In order to get the Premier Member status you have to spend over $2,500 in Best Buy stores but if you have their Mastercard you can qualify by spending that same money anywhere. If only I knew they would have this crazy deal I would have waited a month and gotten $100 discount, oh well im still happy with my new iPhone. Hopefully there will be better offers than this later this year.

apache_logo

Today I was playing around with a few php scripts that I’ve been writing to automate a couple of things on another web host. I also wanted to test them out and see them live before I uploaded them onto  my web space. I could have easily just ran MAMP on my computer and just got around the obstacle that way but I’d figure that OS X comes pre-installed with Apache and PHP and might as well make use of it. I made a quick search and came across the FoundationPHP book site which details on how to do this as well as shows images of the process and basically just simplifies it as best as possible.

Enabling PHP and Apache in Leopard