Beste allemaal,
Dankzij de hulp van een aantal gewaardeerde forum members heb ik mijn NAS kunnen installeren op basis van FreeBSD 7. Omdat her en der van alles staat geschreven en om de heren enigszins te ontlasten van allerlei newbie vragen (zoals mezelf
) leek het me wel handig als ik ook voor de overige tweakers een guide maak.
Deze guide is in het engels opgesteld zodat eenieder hiervan kan profiteren. Ik zal de guide later aanvullen met de Netatalk installatie + Samba.
Ondanks het feit dat deze guide met veel zorg is opgesteld kan het zijn dat er fouten in staan. Gelieve even te posten en ik zal de aanpassing doorvoeren.
Heel veel credit gaat in ieder geval naar
Enlightenment
en Itsacon 
DUMMIES GUIDE to installing FreeBSD 7 + NAS featuring AppleTalk and SAMBA
Many thanks go to Enlightenment & Itsacon for their support and most valuable input. It wouldn't have been possible without them!
====================
installation of FreeBSD 7
====================
# burn FreedBSD 7 to CDR from iso image available here: www.freebsd.org/where.html (Select the ISO link under FreeBSD which corresponds with your platform.)
# Startup from CD
# Select option 1: Boot FreeBSD [Default]
# To review the boot process press "scroll lock" on your keyboard and use Page Up / Page Down. Take note of the Hard Disk labels
# Select the region you're in
# Select keymap (for most people USA ISO will be ok)
# In the main Sysinstall menu select the "Standard" installation option
# Select OK when presented with the next message
# Select the disk where you want to install FreeBSD first (the Hard Disk labels correspond with what you saw during the boot process)
# Ignore the geometry warning and select OK
# If you have multiple disks and you want to create a partition on disk 1 for FreeBSD and the remainder for the Raid5 array, then please proceed.
# Select "C" [Create slice] to create a "slice" or partition for FreeBSD
# In the next dialogue enter the size you need. For example "4G" will create a 4 gigabyte slice which is pretty much sufficient for a nice install. Using the TAB key select "OK" and press ENTER
# In the following dialogue you need to enter the partition type. In this case we want to set up FreeBSD on this slice so select "OK" to accept the default [165] FreeBSD partition
# Using the arrow keys select the FreeBSD slice and select "S" [Set bootable] to enable FreeBSD to startup from this partition. Notice the "A" flag in the last column.
# Select the largest unused partition with the arrow keys and select "C" [create slice]
# In the next dialogue just press ENTER to accept. This will allocate all of the remaining space to the remaining partition on this disk.
# In the next dialogue enter the number for the partition type you need. This can be 6 for FAT, 131 for ext2fs or 4 if you want a unix partition for OSX. You can find a complete list of available partition types here:
# press "Q" to finish
# In the next dialogue select "Standard" if you are not running any other OS on the system and have a requirement to startup using another OS. Select "OK"
# You're now back to the screen where you can setup the rest of your disks. You can leave them for what they are but my experience is that it's best to create a partition and a filesystem so it's properly recognized later on.
# Select your 2nd disk using the arrow keys and press ENTER (repeat these steps for any remaining disks)
# Ignore the geometry warning and select OK
# Select "C" [Create slice] after having selected the unused partition with the arrow keys
# In the next dialogue select OK to assign all of the available space to this partition
# In the next dialogue enter the number for the partition type you need. This can be 6 for FAT, 131 for ext2fs or 4 if you want a unix partition for OSX.
# Select "Q" [Finish] to accept the changes
# In the next dialogue select "Standard" if you are not running any other OS on the system and have a requirement to startup using another OS. Select "OK"
# Repeat for the remaining disks
# When you have finished setting up your disks use the TAB key to select OK - next press ENTER to confirm. If all is well all of your disks will have an "X" in the box indicating that they have been configured
# Accept the message
# You're now presented with the DISK LABEL EDITOR. On the top of the screen it lists the first partition which we configured earlier for FreeBSD. In my case this is called ad4s1 since my first SATA disk is called ad4 - yours may be called differently.
# Select "A" [Auto Defaults] to create the various mount points.
# Select "Q" [Finish] to accept the changes.
# You're now presented with the Distribution Menu. Select the kind of distribution you want to install. In this particular case the "Developer" option will do since we're not going to play any games on our Nas device.
# You're now presented with the message asking to install the FreeBSD ports collection. Most likely they're not included on your CD image so we're going to select "NO" for now and download them later.
# You are presented again with the Distribution Menu. Use the TAB key to select "OK" and press ENTER
# In the next dialogue select the installation media you want to use. Since we've booted from the CD this is the preferred (and quickest!) option, therefore select option 1 and press ENTER
# You're now presented with a last dialogue in which you need to accept the configuration options. This is your last chance to bail out and be a chicken. Otherwise select OK and install FreeBSD on your system.
# This will take a little while so now is the time to get yourself a cup of hard earned coffee!
# CONGRATULATIONS > you have now installed FreeBSD on your system. Select OK to move on and answer some configuration questions.
# Would you like to configure ethernet? > select yes
# Select your ethernet adapter. In my case this is nfe0. Press ENTER to confirm.
# Do you want to configure ipv6? > select no. Press ENTER to confirm.
# Do you want to configure DHCP? > select yes. We can change this to a fixed ip later if required.
# In the next screen use the arrow down key to arrive at the OK field. Press Enter.
# Do you want this machine to function as a network gateway? Select no.
# Do you want to configure inetd? Select no.
# Would you like to enable SSH login? Select yes - might come in handy.
# Do you want anonymous FTP access? Select no.
# Do you want to configure this machine as an NFS server? Select no.
# Do you want to configure this machine as an NFS client? Select no.
# Would you like to customize the console settings? Select no.
# Would you like to set the machine's time zone? Select yes.
# In the next dialogue select NO
# Select the region you're in and press ENTER
# Select your country and press ENTER
# In the next dialogue (in my case) Does CET look reasonable? Select OK
# Do you have a mouse..? Select no.
# Would you like to browse the FreeBSD package collection? Select no.
# Would you like to add any initial user accounts to the system? Select NO for now.
# Select OK in the next dialogue to set the ROOT password.
# Enter the ROOT password and select ENTER. Enter the ROOT password again to confirm and select ENTER
# Visit the general configuration menu for a chance to set any last options? Select NO.
# You're now presented again with the main Sysinstall installation menu. Since we have finished configuring the installation use the TAB key to select EXIT INSTALL and press ENTER.
# Are you sure you want to exit? Select YES and remove the CD from the CD-Rom drive. The system will reboot from the FreeBSD partition you have created.
## This completes the initial FreeBSD installation and configuration ##
======================
Installation of Geom_Raid5
======================
# Next up is the installation and configuration of the raid array. We'll be using geom_raid5-eff for this.
DO NOT ENTER ANY COMMENTS ENCLOSED BY [brackets]
# Your system has rebooted. Please enter "ROOT" as the user and enter the associated password you have setup during the installation.
# You are now presented with the FreeBSD prompt: "#"
# If there's a legacy geom_raid5 install present we're going to remove any traces of this first by issuing the following commands:
cd /usr/src [we're changing directory by using the cd command]
cp -p /boot/kernel/geom_raid5.ko /usr/src/ [we're backing up the current module to /usr/src/]
# Most likely we'll get a message: No such file or directory. This is fine and means that there's no old module present to backup.
# Next, we're going to download the raid module from the internet using the "fetch" command:
fetch http://wgboome.homepage.t-online.de/geom_raid5-eff.tbz
# If all is well, the system will download the file and you can monitor it's progress.
# Now we need to unpack it using the "tar" command:
tar xvfz geom_raid5-eff.tbz
# The system will show you the different locations where it has moved and created the associated files.
# Let's compile and install the kernel module:
cd /usr/src/sys/modules/geom/geom_raid5 && make clean depend all install
# The system now throws a whole lot of output on your screen. This is what we want!
# We're now going to compile and install the userland binary / manpage:
mkdir -p /usr/include/geom/raid5
cp -p /usr/src/sys/geom/raid5/g_raid5.h /usr/include/geom/raid5/g_raid5.h
cd /usr/src/sbin/geom/class/raid5 && make clean && make depend && make && make install
# This will generate a whole lot of output which is good. Before we move on we need exit in order to move on.
exit
# You now need to enter ROOT again as the user and the root PASSWORD
# We've now installed geom_raid5. Before we can use it we'll need to do some configuration and of course build the array. We're going to do that by entering the following command: graid5 label [options] <name of volume> <devices>. Take note that you have to enter the different disks/partitions that form the complete array. Since we are going to use the 2nd partition on the first disk as part of the raid array we need to be more specific. The first partition on the first disk is used by FreeBSD in our case. Note that my disks start at ad4 and not ad0 or ad1.
graid5 label -v -s 131072 YOURRAIDNAME /dev/ad4s2 /dev/ad5 /dev/ad6
# if all is well you'll see that the system has created the raid array with the name YOURRAIDNAME and that it has been activated.
# if you enter the command
gstat
# you will see the progress of the array being build. To exit and return to the prompt enter CONTROL+C
# Next up is mounting and tuning the array. Enter the following command:
newfs -U -b 32768 /dev/raid5/YOURRAIDNAME
tunefs -m 1 /dev/raid5/YOURRAIDNAME
mkdir /raid5
mount /dev/raid5/YOURRAIDNAME /raid5
# Next enter the following command to see whether the raid volume mounted correctly:
df -h
# If all is well you should see the line with the raid array. This will look like this: /dev/raid5/YOURRAIDNAME and is followed by the size, available size etc.
# In the meantime the system will keep you updated on the progress of the build. The ETA is the estimated time remaining. This will take a while as you can see so it's best to make yourself a sandwich to go with the coffee you made earlier and probably is cold by now.....
# Before we move on we need to ensure that the raid array is mounted during startup. In order to do this we're going to edit the fstab file which is found in the /etc/ directory.
edit /etc/fstab
#The fstab file determines which volumes are mounted at boot time. We're going to add the following line at the end of the file:
/dev/raid5/YOURRAIDNAME /raid5 ufs rw 0 0
# Press the escape key and save changes.
# Next up is installing the Portstree, Appletalk (netatalk) & Samba. In order no to disturb the build it's best to wait until it is finished.
===============================================
# Installation of portstree. Just enter the following commands:
===============================================
portsnap fetch
# This might take a while - approx. 49MB download
portsnap extract
# This wil also take quite a bit of time.
# OPTIONAL - if you want to have an easy way to update your ports in the future you can also install:
/usr/ports/ports-mgmt/portupgrade
# OPTIONAL - After you have installed portsnap you may issue the commands below to update the ports in the future (not required now):
portsnap fetch
portsnap update
=================
Installation of Netatalk
=================
cd /usr/ports/net/netatalk
make install clean
# When presented with a dialogue to install extra encodings select yes, TAB, ENTER...(it takes a while before this comes up)
# Sit back and enjoy...
# we're going to reboot so that all changes are reflected when configuring:
reboot
# login as root
==========================================================
Installation of Howl > This will ensure that the server is found automagically!
==========================================================
# Howl is the "equivalent" of Bonjour or Rendezvous. Easy to install - just enter the following:
cd /usr/ports/net/howl
make install clean
# And wait until it has finished it's thing.
========================
Configuring Netatalk and Howl
========================
# Since we now have installed Netatalk we need to change some files and do some configuring. First we are going to edit the /etc/rc.conf file:
edit /etc/rc.conf
#This ensures that Netatalk is started up at boot time.
# You'll see that the file already contains some settings which agree to the initial installation of FreeBSD. Next we're going to add a couple of lines to the end of the file:
netatalk_enable="YES"
afpd_enable="YES"
mdnsresponder_enable="YES"
mdnsresponder_flags="-f /usr/local/etc/mDNSResponder.conf
# Once you have done so, press the ESCAPE key and select a) leave editor. Select a) and save changes.
# Edit the mDNSResponder config file (might or might not exist - no sure but also not important since this command will also create it if it doesn't exist), do so by entering the following:
edit /usr/local/etc/mDNSResonder.conf
# In this file add two lines:
yourservername _afpovertcp._tcp local. 548
yourservername _ssh._tcp local. 22
# Press the escape key and save changes.
# Next up is the AppleVolumes file which needs some editing. Enter the following:
edit /usr/local/etc/AppleVolumes.default
# In the file, browse to the very last line with the "tilde" sign *if that's the correct name for it". Remove the "tilde" and add the following:
/raid5 "yourservername" options:usedots,noadouble,nohexedit allow:yourusername
# The allow stuff is optional. Press the escape key and accept changes.
# Next we're going to configure afpd.conf This file controls the services & authentication methods used (and a few other bits).
edit /usr/local/etc/afpd.conf
# At the very end of the file (remove the "default" line without the # and -transall )add the following:
"Yourservername" -noddp -nouservolfirst -uamlist uams_dhx.so
# This means that only TCP is used, not Appletalk, the AppleVolumes file on the user volume is not used but instead the AppleVolumes file @ /usr/local/etc is used. The uam bit means that we're using the DHCAST128 authentication method. No passwords in cleartext allowed.
# Press the escape key and save changes.
# This is pretty much all we need to do. In order to get started with the "Connect to server" command on OSX we need to start the services. To do so type:
/usr/local/etc/rc.d/netatalk start
/usr/local/etc/rc.d/mdnsresponder.sh start
# Fire up that "Connect to server command and enjoy". It might also already be visible under network shares without using the connect to server command.
==============================
Installation and configuration of Samba
==============================
# Install Samba3:
cd /usr/ports/net/samba3
make install clean
#wait until it's done. Next go to the smb.conf file to edit the configuration:
edit /usr/local/etc/smb.conf
...................more to come soon!
Dankzij de hulp van een aantal gewaardeerde forum members heb ik mijn NAS kunnen installeren op basis van FreeBSD 7. Omdat her en der van alles staat geschreven en om de heren enigszins te ontlasten van allerlei newbie vragen (zoals mezelf
Deze guide is in het engels opgesteld zodat eenieder hiervan kan profiteren. Ik zal de guide later aanvullen met de Netatalk installatie + Samba.
Ondanks het feit dat deze guide met veel zorg is opgesteld kan het zijn dat er fouten in staan. Gelieve even te posten en ik zal de aanpassing doorvoeren.
Heel veel credit gaat in ieder geval naar
DUMMIES GUIDE to installing FreeBSD 7 + NAS featuring AppleTalk and SAMBA
Many thanks go to Enlightenment & Itsacon for their support and most valuable input. It wouldn't have been possible without them!
====================
installation of FreeBSD 7
====================
# burn FreedBSD 7 to CDR from iso image available here: www.freebsd.org/where.html (Select the ISO link under FreeBSD which corresponds with your platform.)
# Startup from CD
# Select option 1: Boot FreeBSD [Default]
# To review the boot process press "scroll lock" on your keyboard and use Page Up / Page Down. Take note of the Hard Disk labels
# Select the region you're in
# Select keymap (for most people USA ISO will be ok)
# In the main Sysinstall menu select the "Standard" installation option
# Select OK when presented with the next message
# Select the disk where you want to install FreeBSD first (the Hard Disk labels correspond with what you saw during the boot process)
# Ignore the geometry warning and select OK
# If you have multiple disks and you want to create a partition on disk 1 for FreeBSD and the remainder for the Raid5 array, then please proceed.
# Select "C" [Create slice] to create a "slice" or partition for FreeBSD
# In the next dialogue enter the size you need. For example "4G" will create a 4 gigabyte slice which is pretty much sufficient for a nice install. Using the TAB key select "OK" and press ENTER
# In the following dialogue you need to enter the partition type. In this case we want to set up FreeBSD on this slice so select "OK" to accept the default [165] FreeBSD partition
# Using the arrow keys select the FreeBSD slice and select "S" [Set bootable] to enable FreeBSD to startup from this partition. Notice the "A" flag in the last column.
# Select the largest unused partition with the arrow keys and select "C" [create slice]
# In the next dialogue just press ENTER to accept. This will allocate all of the remaining space to the remaining partition on this disk.
# In the next dialogue enter the number for the partition type you need. This can be 6 for FAT, 131 for ext2fs or 4 if you want a unix partition for OSX. You can find a complete list of available partition types here:
# press "Q" to finish
# In the next dialogue select "Standard" if you are not running any other OS on the system and have a requirement to startup using another OS. Select "OK"
# You're now back to the screen where you can setup the rest of your disks. You can leave them for what they are but my experience is that it's best to create a partition and a filesystem so it's properly recognized later on.
# Select your 2nd disk using the arrow keys and press ENTER (repeat these steps for any remaining disks)
# Ignore the geometry warning and select OK
# Select "C" [Create slice] after having selected the unused partition with the arrow keys
# In the next dialogue select OK to assign all of the available space to this partition
# In the next dialogue enter the number for the partition type you need. This can be 6 for FAT, 131 for ext2fs or 4 if you want a unix partition for OSX.
# Select "Q" [Finish] to accept the changes
# In the next dialogue select "Standard" if you are not running any other OS on the system and have a requirement to startup using another OS. Select "OK"
# Repeat for the remaining disks
# When you have finished setting up your disks use the TAB key to select OK - next press ENTER to confirm. If all is well all of your disks will have an "X" in the box indicating that they have been configured
# Accept the message
# You're now presented with the DISK LABEL EDITOR. On the top of the screen it lists the first partition which we configured earlier for FreeBSD. In my case this is called ad4s1 since my first SATA disk is called ad4 - yours may be called differently.
# Select "A" [Auto Defaults] to create the various mount points.
# Select "Q" [Finish] to accept the changes.
# You're now presented with the Distribution Menu. Select the kind of distribution you want to install. In this particular case the "Developer" option will do since we're not going to play any games on our Nas device.
# You're now presented with the message asking to install the FreeBSD ports collection. Most likely they're not included on your CD image so we're going to select "NO" for now and download them later.
# You are presented again with the Distribution Menu. Use the TAB key to select "OK" and press ENTER
# In the next dialogue select the installation media you want to use. Since we've booted from the CD this is the preferred (and quickest!) option, therefore select option 1 and press ENTER
# You're now presented with a last dialogue in which you need to accept the configuration options. This is your last chance to bail out and be a chicken. Otherwise select OK and install FreeBSD on your system.
# This will take a little while so now is the time to get yourself a cup of hard earned coffee!
# CONGRATULATIONS > you have now installed FreeBSD on your system. Select OK to move on and answer some configuration questions.
# Would you like to configure ethernet? > select yes
# Select your ethernet adapter. In my case this is nfe0. Press ENTER to confirm.
# Do you want to configure ipv6? > select no. Press ENTER to confirm.
# Do you want to configure DHCP? > select yes. We can change this to a fixed ip later if required.
# In the next screen use the arrow down key to arrive at the OK field. Press Enter.
# Do you want this machine to function as a network gateway? Select no.
# Do you want to configure inetd? Select no.
# Would you like to enable SSH login? Select yes - might come in handy.
# Do you want anonymous FTP access? Select no.
# Do you want to configure this machine as an NFS server? Select no.
# Do you want to configure this machine as an NFS client? Select no.
# Would you like to customize the console settings? Select no.
# Would you like to set the machine's time zone? Select yes.
# In the next dialogue select NO
# Select the region you're in and press ENTER
# Select your country and press ENTER
# In the next dialogue (in my case) Does CET look reasonable? Select OK
# Do you have a mouse..? Select no.
# Would you like to browse the FreeBSD package collection? Select no.
# Would you like to add any initial user accounts to the system? Select NO for now.
# Select OK in the next dialogue to set the ROOT password.
# Enter the ROOT password and select ENTER. Enter the ROOT password again to confirm and select ENTER
# Visit the general configuration menu for a chance to set any last options? Select NO.
# You're now presented again with the main Sysinstall installation menu. Since we have finished configuring the installation use the TAB key to select EXIT INSTALL and press ENTER.
# Are you sure you want to exit? Select YES and remove the CD from the CD-Rom drive. The system will reboot from the FreeBSD partition you have created.
## This completes the initial FreeBSD installation and configuration ##
======================
Installation of Geom_Raid5
======================
# Next up is the installation and configuration of the raid array. We'll be using geom_raid5-eff for this.
DO NOT ENTER ANY COMMENTS ENCLOSED BY [brackets]
# Your system has rebooted. Please enter "ROOT" as the user and enter the associated password you have setup during the installation.
# You are now presented with the FreeBSD prompt: "#"
# If there's a legacy geom_raid5 install present we're going to remove any traces of this first by issuing the following commands:
cd /usr/src [we're changing directory by using the cd command]
cp -p /boot/kernel/geom_raid5.ko /usr/src/ [we're backing up the current module to /usr/src/]
# Most likely we'll get a message: No such file or directory. This is fine and means that there's no old module present to backup.
# Next, we're going to download the raid module from the internet using the "fetch" command:
fetch http://wgboome.homepage.t-online.de/geom_raid5-eff.tbz
# If all is well, the system will download the file and you can monitor it's progress.
# Now we need to unpack it using the "tar" command:
tar xvfz geom_raid5-eff.tbz
# The system will show you the different locations where it has moved and created the associated files.
# Let's compile and install the kernel module:
cd /usr/src/sys/modules/geom/geom_raid5 && make clean depend all install
# The system now throws a whole lot of output on your screen. This is what we want!
# We're now going to compile and install the userland binary / manpage:
mkdir -p /usr/include/geom/raid5
cp -p /usr/src/sys/geom/raid5/g_raid5.h /usr/include/geom/raid5/g_raid5.h
cd /usr/src/sbin/geom/class/raid5 && make clean && make depend && make && make install
# This will generate a whole lot of output which is good. Before we move on we need exit in order to move on.
exit
# You now need to enter ROOT again as the user and the root PASSWORD
# We've now installed geom_raid5. Before we can use it we'll need to do some configuration and of course build the array. We're going to do that by entering the following command: graid5 label [options] <name of volume> <devices>. Take note that you have to enter the different disks/partitions that form the complete array. Since we are going to use the 2nd partition on the first disk as part of the raid array we need to be more specific. The first partition on the first disk is used by FreeBSD in our case. Note that my disks start at ad4 and not ad0 or ad1.
graid5 label -v -s 131072 YOURRAIDNAME /dev/ad4s2 /dev/ad5 /dev/ad6
# if all is well you'll see that the system has created the raid array with the name YOURRAIDNAME and that it has been activated.
# if you enter the command
gstat
# you will see the progress of the array being build. To exit and return to the prompt enter CONTROL+C
# Next up is mounting and tuning the array. Enter the following command:
newfs -U -b 32768 /dev/raid5/YOURRAIDNAME
tunefs -m 1 /dev/raid5/YOURRAIDNAME
mkdir /raid5
mount /dev/raid5/YOURRAIDNAME /raid5
# Next enter the following command to see whether the raid volume mounted correctly:
df -h
# If all is well you should see the line with the raid array. This will look like this: /dev/raid5/YOURRAIDNAME and is followed by the size, available size etc.
# In the meantime the system will keep you updated on the progress of the build. The ETA is the estimated time remaining. This will take a while as you can see so it's best to make yourself a sandwich to go with the coffee you made earlier and probably is cold by now.....
# Before we move on we need to ensure that the raid array is mounted during startup. In order to do this we're going to edit the fstab file which is found in the /etc/ directory.
edit /etc/fstab
#The fstab file determines which volumes are mounted at boot time. We're going to add the following line at the end of the file:
/dev/raid5/YOURRAIDNAME /raid5 ufs rw 0 0
# Press the escape key and save changes.
# Next up is installing the Portstree, Appletalk (netatalk) & Samba. In order no to disturb the build it's best to wait until it is finished.
===============================================
# Installation of portstree. Just enter the following commands:
===============================================
portsnap fetch
# This might take a while - approx. 49MB download
portsnap extract
# This wil also take quite a bit of time.
# OPTIONAL - if you want to have an easy way to update your ports in the future you can also install:
/usr/ports/ports-mgmt/portupgrade
# OPTIONAL - After you have installed portsnap you may issue the commands below to update the ports in the future (not required now):
portsnap fetch
portsnap update
=================
Installation of Netatalk
=================
cd /usr/ports/net/netatalk
make install clean
# When presented with a dialogue to install extra encodings select yes, TAB, ENTER...(it takes a while before this comes up)
# Sit back and enjoy...
# we're going to reboot so that all changes are reflected when configuring:
reboot
# login as root
==========================================================
Installation of Howl > This will ensure that the server is found automagically!
==========================================================
# Howl is the "equivalent" of Bonjour or Rendezvous. Easy to install - just enter the following:
cd /usr/ports/net/howl
make install clean
# And wait until it has finished it's thing.
========================
Configuring Netatalk and Howl
========================
# Since we now have installed Netatalk we need to change some files and do some configuring. First we are going to edit the /etc/rc.conf file:
edit /etc/rc.conf
#This ensures that Netatalk is started up at boot time.
# You'll see that the file already contains some settings which agree to the initial installation of FreeBSD. Next we're going to add a couple of lines to the end of the file:
netatalk_enable="YES"
afpd_enable="YES"
mdnsresponder_enable="YES"
mdnsresponder_flags="-f /usr/local/etc/mDNSResponder.conf
# Once you have done so, press the ESCAPE key and select a) leave editor. Select a) and save changes.
# Edit the mDNSResponder config file (might or might not exist - no sure but also not important since this command will also create it if it doesn't exist), do so by entering the following:
edit /usr/local/etc/mDNSResonder.conf
# In this file add two lines:
yourservername _afpovertcp._tcp local. 548
yourservername _ssh._tcp local. 22
# Press the escape key and save changes.
# Next up is the AppleVolumes file which needs some editing. Enter the following:
edit /usr/local/etc/AppleVolumes.default
# In the file, browse to the very last line with the "tilde" sign *if that's the correct name for it". Remove the "tilde" and add the following:
/raid5 "yourservername" options:usedots,noadouble,nohexedit allow:yourusername
# The allow stuff is optional. Press the escape key and accept changes.
# Next we're going to configure afpd.conf This file controls the services & authentication methods used (and a few other bits).
edit /usr/local/etc/afpd.conf
# At the very end of the file (remove the "default" line without the # and -transall )add the following:
"Yourservername" -noddp -nouservolfirst -uamlist uams_dhx.so
# This means that only TCP is used, not Appletalk, the AppleVolumes file on the user volume is not used but instead the AppleVolumes file @ /usr/local/etc is used. The uam bit means that we're using the DHCAST128 authentication method. No passwords in cleartext allowed.
# Press the escape key and save changes.
# This is pretty much all we need to do. In order to get started with the "Connect to server" command on OSX we need to start the services. To do so type:
/usr/local/etc/rc.d/netatalk start
/usr/local/etc/rc.d/mdnsresponder.sh start
# Fire up that "Connect to server command and enjoy". It might also already be visible under network shares without using the connect to server command.
==============================
Installation and configuration of Samba
==============================
# Install Samba3:
cd /usr/ports/net/samba3
make install clean
#wait until it's done. Next go to the smb.conf file to edit the configuration:
edit /usr/local/etc/smb.conf
...................more to come soon!
[ Voor 30% gewijzigd door Anoniem: 225708 op 27-11-2007 18:26 ]