Making WakeOnLan work

I was looking for a solution to have the server in our cottage ready for “service”, but not using a lot of power. Of course I have used hdparm to make the disk spin down, but the rest of the computer is also using power. So I thought of WakeOnLan (WOL) combined with some kind of sleep. […]

Setting up Boxbackup

I have been looking into getting a remote backup. I run TimeMachine backups in my Mac-environment, but I need a remote backup of eg. my digital pictures. So I have been working on a server in our cottage that could be a backup server, and my NAS back home could be a client to that […]

Booting FreeBSD from USB

I have (again) changed disk layout on my NAS. I have got a PATA SSD on which I need to install and boot FreeBSD. I hope this can save me som electicity (the non SSD can spin down). And of course it will give me some speed. First get the newest boot image for USB […]

Replacing Ford 6000CD RDS EON

The radio in our Ford Mondeo reported a strange code: “RICP”. This happened every time you tried to turn up the volume. In the manuals this is described to be a mode the radio can be in, if there is a read panel for controlling the radio. Only – there is no such panel in […]

Installing pygame on my Mac

I have a MacBook Air running Mountain Lion (10.9). I also have a RaspberryPi that I want to use as a digital picture frame (along with a monitor – of course). My choice of digital picture frame software is – home brew pygame – running from the console on the RaspberryPi. On the RPi I […]

Remember the permissions for .ssh

I had a weid experience. All of a sudden I wasn’t able to login on my NAS with ssh. I use PKI (RSA) for login and have disabled pure password login. A ssh -v revealed: debug1: Authentications that can continue: publickey 3 times. First I thought that the keys didn’t match – that was not […]

Automounting AFS shares from the NAS

Instead of mounting shares manually every time at login, one can use autos. I have followed the guide here. So in my case I created a file /etc/fstab and inserted a file for the home directory on my server (local ip: 192.168.1.40): 192.168.1.40:/jesper /Users/jesper/tranquil/jesper url automounted,url==afp://jesper:PASSWORD@192.168.1.40/jesper 0 0 Then I created the directory locally on […]

Keeping my FreeBSD box up-to-date

Every once in a while the ports software on the NAS needs to be “rebased” with the newest. I have made a script that I can run in a screen. It will update the ports tree and compile the new software: portsnap fetch extract update pkgdb -F portsdb -Fu portupgrade -ac

Get rid of the warning when mounting AFP shares

Does your Mac also complain when you mount a share via AFP (netatalk-FreeBSD)? Something like this: Something wrong with the volume’s CNID DB, using temporary CNID DB instead. Check server messages for details. Switching to read-only mode. I solved this by adding a little to the rc.conf: cnid_metad_enable=”yes”

Change the icon of a FreeBSD served AFP server

I found a blogpost describing the setup of the icon: http://www.simonwheatley.co.uk/2008/04/06/avahi-finder-icons/ So create (if not already present) a file: /usr/local/etc/avahi/services/afp.service And put e.g. this in it: <?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> […]