Archive | Computers RSS for this section

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 [...]

Continue Reading

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 [...]

Continue Reading

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

Continue Reading

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”

Continue Reading

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> [...]

Continue Reading

Using Apple Filing Protocol (AFP) with FreeBSD

I want to access my files on the FreeBSD NAS via AFP and not SMB. SMB is too Windows-like First we nee Bonjour to multicast the DNS-name of the server. This is implemented by avahi. (Why does it nee to install so many X ports…?) # cd /usr/ports/net/avahi # make install clean Now start the daemons [...]

Continue Reading

How not to install Plex Media Server on FreeBSD

I have a FreeBSD server with a lot of out media on it. And I want to view this contents on my Apple TV. Plex and Plex Media Server (PMS) comes to mind. There is, however, not a port for FreeBSD of PMS. But fortunately there is good Linux support in FreeBSD, so I was [...]

Continue Reading

Remounting geli and ZFS partitions

As I did a clean install and not an upgrade of my FreeBSD 8.2 to 9.0, I have to reconfigure everything from scratch I have 4 Western Digital disks with data – all in RAID-Z. And because they are Western Digital, they have 4K sectors and don’t work well with ZFS. So I also have [...]

Continue Reading

Installing FreeBSD on my NAS

Using the new bsdinstall works like a charm Thanks! I want a very small install – no doc, no games, no lib32, no src (I’m ok with the prebuilt kernels). So I just selected ports – I want to be able to add ports. It turns out that after boot I needed to install the [...]

Continue Reading

Time to reinstall FreeBSD

Back in November 2009 I installed my NAS with the newest FreeBSD: 8.0. I made some choices about partitioning that I now want to redo. My initial partitioning was / had around 4.5 GB /tmp had around 0.5 GB /var had around 3 GB /home had around 895 GB And back then I actually decided that [...]

Continue Reading
  • Facebook
  • Google+
  • LinkedIn