Posts Tagged ‘ Apple ’

3
5
Mar

Howto: Use Linux as a networked TimeMachine volume for your Mac

Today we are going to set up a proxmoxVE Ubuntu openVZ container to allow AFP connections from your Mac.

You will need proxmoxVE already installed, and a 64bit Ubuntu 10.10 openVZ template. I had to rename this image to something like ubuntu-10.10-server_x86_amd64.tar.gz in order to import it into proxmoxVE.

Create a new VM:

Type: container
Network Type: Bridged Ethernet (veth)

If you don’t use this type of network you will not have the benefits of the bonjour service.

Now start up the VM and then SSH into your new system.  We need to make sure we are up to date on everything, so go ahead and issue the following to upgrade anything that needs it:

apt-get update
apt-get upgrade

Now we can install netatalk

apt-get install netatalk

Next we will need to configure afpd.  Open the conf file in your favorite editor:

vi /etc/netatalk/afpd.conf

Comment out the line at the bottom, and add this at the bottom:

- -transall -uamlist uams_randnum.so,uams_dhx2.so -nosavepassword -advertise_ssh

Next we need to set up the volumes that we will share. Open this config file in your favorite editor:

vi /etc/netatalk/AppleVolumes.default

Comment out the default line at the bottom and add this, and put real users names instead of username1 and username2.  These users need to exist on the linux box. (use adduser to add them)

~/ "$u" allow:username1,username2 cnidscheme:dbd

Add a line like this for each user to allow them to have an individual TimeMachine mount point also:

/home/username/TimeMachine      TimeMachine allow:username1,username2 cnidscheme:dbd options:usedots,upriv

If you are using OS X Tiger or lower you will need to remove the options upriv from the end

Next we have to install and set up cracklib to allow the authentication to work correctly:

apt-get install cracklib2 cracklib-runtime wamerican
update-cracklib /var/cache/cracklib/cracklib_dict

Finally, you must restart netalk to get all of this working:

/etc/init.d/netatalk restart

At this point you could stop and click on the Go menu in the Finder, and select connect to server and put in your URI to the afp mount you’ve added, but there is one final step to configure bonjour services so your Macs will just “see” your new service instead of having to specify it for each connection.  We start with installing avahi and mdns:

apt-get install avahi-daemon libnss-mdns

Next we need to turn it on.  Again, with your favorite editor, open the conf file:

vi /etc/nsswitch.conf

And make the hosts line look like this:

hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 mdns

Create the following file to put some specific configurations around the afpd service:

vi /etc/avahi/services/afpd.service

And add the following:

<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
   <service-group>
      <name replace-wildcards="yes">%h</name>
      <service>
         <type>_afpovertcp._tcp</type>
         <port>548</port>
      </service>
      <service>
         <type>_device-info._tcp</type>
         <port>0</port>
         <txt-record>model=Xserve</txt-record>
      </service>
   </service-group>

The following models are acceptable and all this really does is change the icon on your Mac desktop when you mount the fielsystem.

  1. RackMac (same as Xserve)
  2. PowerBook
  3. PowerMac
  4. Macmini
  5. iMac
  6. MacBook
  7. MacBookPro
  8. MacBookAir
  9. MacPro
  10. AppleTV1,1
  11. AirPort

Now we need to restart avahi:

/etc/init.d/avahi-daemon restart

To add support for TimeMachine to each mac, you will need to issue to following on the terminal:

defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1

This allows the Mac to use this unsupported network volume as a TimeMachine volume.  I hope this helps someone out there, I found a few tutorials and none of them seemed to work out of the box, so I decided to post this one.

1
27
Oct

Apple’s new In Store App

Today I had need of help in an Apple Store, so I went to the closest store in my area, the Northpoint Mall location.  My previous experience with this particular store has not been favorable.  Typically they will lose any reservation I have set, they have caused me to wait for at least an hour on more than one occasion, and they do not offer anything but a quick side apology.

Today I decided to try my luck with using the new features of the iPhone application.  What I experienced was less than great customer service once again from this store.  I checked in at 12:12 for a 12:15 appointment.  The app told me to go to the genius bar and that someone was already waiting for me.  There was no one at the bar waiting for me.  I stood there until 12:40 before anyone asked me if I had been helped yet.  I watched number of people came into the store and were immediately helped.  At least 6 sales reps passed by me without saying a word, some of them stopping to ask someone in front of me if they had been helped.  One even told me he liked my hat as he walked by.
So when I finally approached someone to get some help, they started looking for my reservation.  Somehow, they lost it even though I had a receipt in email from them.  So they set me up with a new appointment for 12:45 and someone was supposed to help me right away.  I waited until 1 and gave up and left.  If you ever need Apple Store help, stay away from the North Point Mall location.  This has been my experience over and over again.  When I ordered an iPad it took almost 2 months to arrive even though I ordered it the day it came out.  I found out later they had lost my order somehow.  Avoid like the plague.
1
26
May

Seven-Piece Minimal Lego iPad Stand

After seeing a couple of Lego iPad stands, I decided to make one myself.
This is my first generation version, look for second generation in the coming  days…

Link to photos

0
13
May

bjango software bad practices

Recently a company named Bjango decided to take their free iStat Menus application for the mac to a pay model. That’s fine, its a great app and I used it daily. I was considering upgrading from my free version. They announced this by popping up an upgrade window that had 3 buttons on it, Skip this version, remind me later, and upgrade now. I have this running on several macs, so it popped up on all of them. No problem, its only $10, I’ll probably do it to support them, so I hit the remind me later button. Popped back up the next day, I hit it again, remind me later. This went on for several days, by now I think I will remember to do it, so I hit the skip this version button and I will revisit it when I am ready to. Next day, it popped up again. Hmm, I hit skip again. A little later that same day, it popped up again. I thought it was just my laptop so I hit skip on my desktop. A little while later it popped up again. Well, now I’m a little bit miffed. You had me due to the benefits of the application, so I would have upgraded. Now you are spamming me on my screen using the free version that didn’t use to do this, and you put a button on the screen to make me think I can stop it.  Lost a customer.

There is no way I will use this product anymore, and I hope others will join me.  I found another app that does many of the same tasks, and I am really liking it so far.  And the best part is its still free, its called atMonitor.  Check it out, it has a mode that puts graphs on your desktop and/or in your menu bar.  So long iStat Menus, its been real….