The Clarke Side
Do not under-estimate the power of the Clarke side.
Saturday, 9 August 2008
Keeping track of the time
A couple of days ago I made a change to the config on my ME1 server to tidy the samba setup. I'm going to call it a server now, as it's working with all my kit, both Mac and PC. Though to get to that point I had to make a fair few changes.

I used to have a PC running Ubuntu 6.06 LTS but I've retired that now. This PC used to be my samba server but it was not something I wanted sitting in the lounge. It was too large and too noisy. The samba config did work with my Mac, so it was just a case of applying the samba config I used on ubuntu to the ME1 and all should have been fine.

Firstly I noticed that the clock on the ME1 was not set correctly. I had fixed this on Ubuntu by using an NTP server, so I set about applying that. So I needed ntpdate installing on the debian image.

apt-get install ntpdate

That didn't work! after a little scratching around I checked that I had the correct source information.

apt-get update --fix-missing

That downloaded a shed load of updates to the sources lists. Issued the install command again and after a while (the ME1 is not the fastest at installing apps) I had the ntpdate command available.

ntpdate pool.ntp.org

That command takes the ntp time from the pool of ntp servers on the Internet. Time was set Ok, so I carried on. I'll see about updating the crontab in the debian image to fire this command off every so often.

So back to samba.
I located the ubuntu samba install on the howtoforge and set about applying the new smb.conf file. All when well until I needed to run an smbclient check to verify the setup. smbclient is not installed in the debian image we have for the ME1. so

apt-get install smbclient

whoa! that did a massive update as the whole samba installation got upgraded to the latest versions. still even though it took a long while to complete (and did look like it had frozen at a couple of points) I'm happy that its got the latest patches installed.

smbclient -L localhost -U%

Displays the information for the server and also finds the windows machines on my network too but no Mac!

I tried hooking up the Mac to the ME1 samba shares but they failed using smb://server/share. more digging required. I found that you need to specify the workgroup and the username when connecting to the share, so mounting drive as smb://domain;user@server/share works a treat!

So now samba works for all my devices, which was annoying my wife as she could get at her music or photos for a while.

Update
Thanks to stoobs for point out this on the ME1 Google Group.