// post · 328

Ubuntu on PPC

·

I decided to give Linux a shot again. I’ve never been a huge fan. Personally I feel much happier with BSD, but UNI runs Fedora Core 3 on most of the FIT computers so I felt I should give it a try again.


This time I didn’t feel like screwing around with installing Linux on my Athlon so I downloaded the live boot disc of Ubuntu version 5.04 for PPC (PowerPC) and booted it on my 12” 1.2GHz iBook.


To boot off a cdrom on the mac you need to hold down “c” as the system boots.


So anyway I’ve been using Ubuntu on my iBook for about 30 minutes and I thought I’d get down my first thoughts (I’ll probably write something more in detail later).


The system booted fairly quickly (remembering this is off a CD) and the first thing I noticed when Gnome (the default window manager for Ubuntu) appeared was that the mouse moved really quickly! Now when I say really quickly, I mean normal speed. Mac users take things slowly, so it was fast for ME!


Anyway the first test was network connectivity through the wireless card. Now I wasn’t really expecting it to work, considering it is a mac and all. Well it didn’t; no wireless. Aww. There is a good post about why it doesn't work here.


So I plugged in a network cable and turned on my network card and picked up an address via DHCP. Fired up firefox, working internet. Easy.


I then loaded “Music Player” and the first thing I noticed was that it seemed to support the iPod. So I plugged in my apple formatted iPod via firewire. Well it worked. The drive mounted and I could read all my music and files. Cool.


Only problem was that there is no MP3 support built in (or AAC for that mater). Oh well, not that hard to install.


sudo apt-get install gstreamer0.8-mad

apt-get couldn’t find some PPC binaries towards the end of the install but that didn’t really seem to break anything. MP3s now work, although the sound is really soft (and it is turned up to maximum).


I then decided to put the thing to sleep. The iBook quite happily went to sleep. So I went off to dinner. When I came back the laptop was still sleeping (good thing) so I opened it, bad idea. I got a blast of sound through the speakers, it didn’t stop. I quickly reset it (and no I didn't need to take the exploding iBattery out). Pity. There is a bit of information about it here

So I restarted back into Ubuntu to have a last play.


It is a bit hard to work with one button in Ubuntu; probably could bind the keys to something else, haven’t really looked.


Also the laptop seems to be working pretty hard. The fan does come on, which doesn’t happen much at all in OS X.


A part from those issues, it is fairly usable. The system runs really fast. I’m impressed. Video seems to work okay (the iBook has an ATi Radeon 9200, ATi aren’t known for their great linux support). I haven’t tried any 3D a part from the screen saver.


So final thoughts?


Would I use it?


No, not just yet. Lack of wireless and sleep support really make it hard to use for what I do. But saying that, I am impressed with the system. I wasn’t expecting much out of a mac version of linux, but it runs fine.


Hopefully in the future we’ll see better support for the mac hardware.


If I had an older mac that couldn’t run OS X then I’d probably seriously look at Ubuntu.


I think I could get to like Ubuntu, no wait I already like it. I’ll defiantly look at putting it on my PC which should have better support for everything.


Now there are probably ways around the problems I had, but I didn’t look all that hard into it. I did notice that the update system showed a new kernel version (not much use on a live CD) which might fix some stuff. But at the moment I’ll have to leave it.

// post · 316

File copying, from OS X to Windows

·

If I get time tomorrow I am going to purchase tiger. So I decided to do a backup of my Mac to my Windows 2003 file server.


I have Windows sharing turned on for the Mac and am copying the files from the Windows system.


Currently the Mac cannot access Windows shares on a Server 2003 system because of the authentication used, I’m hoping tigers adds support for this. (Note that a Mac works happily with every other Windows OS).


There were a few problems copying files, mainly to do with permissions and the simple fact that the Mac file system (HFS+ if I remember correctly) is much more advanced than NTFS.


Although there were a few problems I was impressed with the way Windows handled the errors (of course Samba on the Mac translated most of the file structure differences into something Windows understands).


General Access Denied Error

Permissions of the current user do not have access to the file (above).


Unable to copy a symlink

Unable to copy a symlink


locked file

Locked file


permissions properties

General Permissions.


Advanced Permissions

Advanced Permissions

// post · 313

bluetrait

·

I haven't had the chance to work on the code for this site for a while, been pretty busy with uni. Anyway I have a week off (some Faculty of IT thing, not uni wide) which is cool. I did a touch up on some code tonight. I'm now running version 0.3.9 of my code. 0.3.8 added the following:



  • Trackback support

  • Newer version of FCKeditor (which still sucks a bit)

  • Small fixes to work on unix systems

  • Some backend support for PostgreSQL (although this will take sometime to complete)

  • Some other general fixes


I'd like to release something at version 0.4.0 but we'll see. If I release it at that version it probably still isn't ready for general use. But I'll get there slowly.

// post · 293

email about setting up a cron file

·

I received an email earlier today from a reader who has a better way to manage and run backups. Here is a slightly edited version of the email.


I tackled the same problem at my own company and I think my solutions a little nicer than yours so I thought I'd share it with you :)


Ok so this is how I do backup for the local server at my company:


General Steps:



  1. Take a snapshot of everything I want to backup (every night)

  2. Archive and compress that snapshot (once a week)

  3. Upload that snapshot to a remote location (once a week)

  4. Leave the compressed archive lying around in a samba share so I can  burn it to DVD from my desktop machine whenever I get around to it.


The process is very similar to yours, the main difference between our implementations is that I use rsync to speed everything up and my scripts log their actions. I also wrote a couple of tests scripts to automate testing and prove everything works. The whole thing is a little hacky and I'd like to make the format of the log files look nicer but it does work :) It's also a really really fast way to do backups. The technical details are:



  1. Use rsync to copy your data from it's current folder to the snapshot folder. This is really fast as rsync only copies the differences not the entire tree. Logs on my server shows it usually takes about 3 mins. I call this script 'snapshot.sh'

  2. Use tar to create an archive.

  3. Gzip the archive with a version of gzip that has the '--rsyncable' patch applied[1]. I call the script that does 2 and 3 'archive.sh'

  4. Upload the compressed archive to the remote server using rsync. I call this script 'upload_archive.sh' (I'm really creative)


I wrap these scripts in two scripts called 'everyday.sh' and 'weekly.sh' depending on what needs to happen on each of those days. There also a little timer script that writes the time each command takes.


For connecting to the remote server I use ssh with keys so I don't need to worry about storing passwords in any of the scripts.


The really cool part of this whole thing is in step 4 where rsync will only copy the different bits in the compressed archive. I don't know exactly how this brilliant piece of magic works[2] but it's save me and my clients quite a bit of time and money.


[1] The patch is already in redhat's gzip so hopefully it's in the default freebsd one. Nothing in the man page about it yet though. [2] I first read about it here where the guy provides some explanation of what its doing: http://lists.ubuntu.com/archives/ubuntu-devel/2005-January/003327.html


 


--


Myles Byrne Web Architect

// post · 292

IPv6 tunnel

·

I have setup an IPv6 tunnel through AARNET

E:\>tracert vee-six.telstra.net

Tracing route to vee-six.telstra.net [2001:360::3] over a maximum of 30 hops:

1 22 ms 19 ms 18 ms 2001:388:f000::246
2 39 ms 53 ms 40 ms gigether0-2-0.bb1.a.syd.aarnet.net.au [2001:388:1:5001:204:e0ff:fe00:1022]
3 19 ms 17 ms 19 ms gigabitethernet2.7304.syd.aarnet.net.au [2001:388:1:5006:20f:23ff:fea3:ef02]
4 26 ms 26 ms 39 ms 2001:388:200:4::2
5 26 ms 24 ms 26 ms vee-six.telstra.net [2001:360::3]

Trace complete.

I'll have a play around with it some more later. :)

// post · 288

The case of the crashing iPod

·

I’ve got a Generation 4 20gb iPod that I’ve had since late last year. It is a pretty cool device and is built well. But I always had the problem of it crashing on me once or twice a week. Worse than my Windows box!



Now I also used to charge it via Firewire on either the PC or the Mac laptop. But anyway a few months ago I decided to setup my dock for it properly. I didn’t want to have to turn the computer on to listen to music. So I decided to play everything through my iPod.



The dock is connect via the lineout to my amplifier and also connected to the 240v AC to Firewire power converter.



Since I’ve been charging my iPod through the mains power it hasn’t crashed since. It’s the same Firewire cable as I used to charge with on the computer. I also charged the thing on two different computers.



So for some very odd reason, the iPod crashes every now and then if you don’t charge it at least once a week through mains power.



So now my iPod is as stable as my Mac. Cool.

// post · 281

Spring Timetable

·

Updated Spring timetable can be found here



























































































































Spring Timetable
Monday Tuesday Wednesday Thursday Friday
This will most likely change.
8am Networking 2 (31471) Itl, 07 TBA
9am Introduction to Collaborative Systems (31472) Lec, 01 TBA Object-oriented Design (31469) Lec, 01 TBA
10am
11am Object-oriented Design (31469) Itl, 01 TBA Distributed Computing Architecture (31470) Lec, 01 TBA
12pm Introduction to Collaborative Systems (31472) MTP TBA Distributed Computing Architecture (31470) Tut, 01 TBA
1pm Object-oriented Design (31469) Tut, 07 TBA
2pm
3pm Distributed Computing Architecture (31470) Itl, 04 TBA
4pm
5pm
6pm
7pm
8pm
9pm


I am able to change that 4 hour networking session to Wednesday, but I'm unsure if I want to...

// post · 270

Autumn Timetable

·

Let us see if this comes out correctly, I think I'll need to hack at my filter thing...























































































































Autumn Timetable
Monday Tuesday Wednesday Thursday Friday
This will most likely (90% chance) change.
9am Database Fundamentals (31474) Lec, 01 CB06.03.28 Information, Classification and Control (31468) Lec, 01 CB03.05.10 Object-oriented Programming (31465) Lec, 01 CM05B.01.11
10am
11am Information, Classification and Control (31468) Itl, 04 CB10.02.430
12pm Database Fundamentals (31474) Tut, 02 CB10.02.460
1pm Object-oriented Programming (31465) Itl, 03 CB10.03.210
2pm Object-oriented Programming (31465) Tut, 07 CB10.04.470
3pm
4pm
Principles of Distributed Computing (31466) Tut, 08 CB10.03.410
5pm
6pm
7pm
8pm Principles of Distributed Computing (31466) Lec, 01 CB06.03.28
9pm