ad0s1a - / - 2000MB - UFS2 - Y
ad0s1b - swap - 1000MB - SWAP -
ad0s1d - /var - 2000MB - UFS2+S - Y
ad0s1e - /tmp - 1000MB - UFS2+S - Y
ad0s1f - /usr - Rest - UFS2+S - Y
If you have a bigger hdd, use the following:
ad0s1a - / - 5000MB - UFS2 - Y
ad0s1b - swap - 2000MB - SWAP -
ad0s1d - /var - 5000MB - UFS2+S - Y
ad0s1e - /tmp - 1000MB - UFS2+S - Y
ad0s1f - /usr - Rest - UFS2+S - Y
On my machine I use a separate network card, onboard Network devices seem to always give me headache. I Choose fxp1
Sysinstall
Choose: Configure --> Fdisk
shutdown -h NOW
When the system is halted, I pull out the powercord, and then I switch off the secondary power supply.
F1Start FreeBSD
F5 Drive 1
Choose F5 to switch from Primary hdd to Secondary HDD (On the Primary IDE Cable).
cd /dev/
and get the directory dump on your screen:
ls
Look for a drive with s2 at the end. On my machine, the drive is called: ad0s2.
geli init –b –s 4096 –l 256 /dev/ad0s2
You will be asked to enter a passphrase, enter this twice.
geli attach /dev/ad0s2
Message will appear:
GEOM_ELI: Device ad0s2.eli created
GEOM_ELI: Encryption: AES-CBC 256
GEOM_ELI: Crypto: software
bsdlabel –w /dev/ad0s2.eli
bsdlabel –e /dev/ad0s2.eli
After the last line you will be presented with an editor, make it look like this:
# /dev/ad0s2.eli:
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
a: 125000 0 4.2BSD 0 0
b: 118164 125000 swap 0 0
c: 1418759 0 unused 0 0 # don’t edit
d: 309082 243164 4.2BSD 0 0
e: 125000 552246 4.2BSD 0 0
f: * 677246 4.2BSD 0 0
# /dev/ad0s2.eli:
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
a: 500000 0 4.2BSD 0 0
b: 472656 500000 swap 0 0
c: ?????? 0 unused 0 0 # don’t edit
d: 618164 972656 4.2BSD 0 0
e: 250000 1590820 4.2BSD 0 0
f: * 1840820 4.2BSD 0 0
cd /dev
ls
Are there any .eli devices? If Yes, Go ON!
newfs –i 1024 /dev/ad0s2.elia
newfs /dev/ad0s2.elid
newfs /dev/ad0s2.elie
With the label mounted as /usr it is important to be able to write a lot of small files:
newfs –i 1024 /dev/ad0s2.elif
mkdir /fixed
Then mount it:
mount /dev/ad0s2.elia /fixed
mkdir /fixed/var
mkdir /fixed/tmp
mkdir /fixed/usr
mount /dev/ad0s2.elid /fixed/var
mount /dev/ad0s2.elie /fixed/tmp
mount /dev/ad0s2.elif /fixed/usr
/bin/sh
export DESTDIR=/fixed/
/bin/csh
Mount the CD-ROM drive:
mount /cdrom
Change to the correct directory:
cd /cdrom/8.1-RELEASE/base
./install.sh
You are about to extract the base distribution into /fixed/ - are you SURE you want to do this over your installed system (y/n)? If /fixed/ is mentioned, press: {y}
cd /cdrom/8.1-RELEASE/kernels
./install.sh GENERIC
cd /cdrom/8.1-RELEASE/manpages
./install.sh
cd /cdrom/8.1-RELEASE/catpages
./install.sh
mount /dev/ad0s1 /mnt
Copy the boot directory to the boot drive:
cp –Rpv /fixed/boot /mnt
cd /mnt/boot/kernel
gzip kernel geom_eli.ko acpi.ko
vi /mnt/etc/fstab
Make the Fstab file look like this:
# Device Mountpoint Fstype Options Dump Pass#
/dev/ad0s2.elib none swap sw 0 0
/dev/ad0s2.elia / ufs rw 1 1
/dev/ad0s2.elie /tmp ufs rw 2 2
/dev/ad0s2.elif /usr ufs rw 2 2
/dev/ad0s2.elid /var ufs rw 2 2
/dev/acd0 /cdrom cd9660 ro,noauto 0 0
Save the file and exit.
mkdir /fdd
mkdir /mnt/fdd
mkdir /fixed/fdd
For the cdrom drive:
mkdir /cdrom
mkdir /mnt/cdrom
mkdir /fixed/cdrom
cp /mnt/etc/fstab /fixed/etc
echo geom_eli_load=\”YES\” >> /mnt/boot/loader.conf
cp -Rpnv /mnt/boot /fixed
Wait for all the files to be copied.
shutdown -h NOW
shutdown -h NOW
When the machine says the system is halted, turn off your system and disconnect the powercables.
shutdown -r NOW
I have to restart it until all the LEDs are off or a device is not detected.
Sysinstall
Select: Configure --> Networking --> Interfaces
Shutdown -r NOW
sysinstall
Choose: Configure --> Networking --> (Scroll down with arrow keys) sshd, choose {Ok}
vi /etc/rc.conf
Check if you see the tag: sshd_enable="YES". If so, ssh will be enabled at next bootup.
shutdown -r NOW
Make a Stripe set (Raid0) with FreeBSD
If you are using one controller card with 4 IDE drives and another controller card with 4 Sata drive's and you want one big volume you can use FreeBSD to stripe with the GEOM software.
Enable striping driver
Search Geom_Stripe and type "YES" instead of "NO"vi /boot/defaults/loader.conf
Save the file with ":w!" (The i is to write a read-only file, only possible as root user)
Do the same for unencrypted part
First mount the unencrypted part of the HDD
Search Geom_Stripe and type "YES" instead of "NO"mount /dev/ad0s1a /mnt vi //mnt/boot/defaults/loader.conf
Save the file with ":w!"
Reboot to activate striping
shutdown -r NOW
And YES! it is native!
Create first striping set
I explained about the problem between the Seagate and the barracuda, so I solve this the software way. We are going to create a striping set from ad4,6,8 and 10. (The names may be different on your system, check the /dev directory).
This will create a striping set with the name ide0. It will give some errors that it will not use the entire drive's capacity, but that is common with RAID 0 sets -- all volumes must be the exact same size.gstripe label -v ide0 /dev/ad4 /dev/ad6 /dev/ad8 /dev/ad10
Check your striping set
You can check your striping set by:
and search for ide0cd /dev/stripels
Stripe over stripe
Striping over striping... It's unbelievable that this is possible. In Windows, I would be afraid what will happen with the data, but on my FreeBSD box... I am confident!
My other Rocket Raid (Model 1740) has created 3 striping sets so we have 4 times 2 TB of striping sets, create a second striping set:
gstripe label -v big0 /dev/stripe/ide0 /dev/da0 /dev/da1 /dev/da2
/dev/dax is the most common name for a hardware striping set, I have seen this in FreeBSD 8.x and in a VirtualMachine enviroment with iSCSI. Once I have seen arx in FreeBSD6.2
Make the stripe (big0) encrypted
And yes we want to encrypt this too! When I format the big0 volume it is somewhat slow, but the only thing this system has to do is duplicate data and share it when disaster strikes, so I don't care.
geli init –b –s 4096 –l 256 /dev/stripe/big0
Type your secret passphrase twice.
Attach the big0 array
Type type the passphrase and the usual confirmation will be shown.geli attach /dev/stripe/big0
Label the striped encrypted drive"]
bsdlabel –w /dev/stripe/big0.eli bsdlabel –e /dev/stripe/big0.eli
[x] to delete characters, Press {I} to edit/insert, Change unused behind a: to 4.2BSD, [ESC], :w, :q
Format the encrypted .elia drive
When I look at the drive, I see the let's making disco, so I know all drive's are being used to stripe!newfs /dev/stripe/big0.elia
When working with older stuff, it helps to connect all the LEDs, for 20,- Euro's you got 10 of them with a wire and a little connector
Mount it and check it"]
A list with the mounted drives will be presented, check if the size checks out.mount /dev/stripe/big0.elia /encrypt_a df -h
Mount at startup
Add the following line at the end of the file:vi /etc/fstab
Save the file and exit vi./dev/stripe/big0.elia /encrypt_a ufs rw 2 2
Copy the new fstab to the unecrypted part
mount /dev/ad0s1a /mnt cp /etc/fstab /mnt/etc/fstab
cd /dev
ls
geli init –b –s 4096 –l 256 /dev/da0
Enter the passphrase twice.
geli attach /dev/da0
Enter the passphrase you defined in the last step.
bsdlabel –w /dev/da0.eli
bsdlabel –e /dev/da0.eli
[x] to delete characters, Press {I} to edit/insert, Change unused behind a: to 4.2BSD, [ESC], :w, :q
# /dev/da0.eli
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
a: 1953431549 2 4.2BSD 0 0 0
c: 1953431549 0 unused 0 0 #"raw" part, don't edit
cd /dev
ls
You should see devices like da0.elia or ar0.elia.Format the new device:
newfs /dev/stripe/big0.elia
This may take a while, please wait!
mkdir /encrypt_a
Mount the big device:
mount /dev/stripe/da0.elia /encrypt_a
df -h
Filesystem size Used Avail Capacity Mounted on
/dev/ad0s2.elia 1.8G 315M 1.3G 19% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/ad0s2.elie 961M 24K 884M 0% /tmp
/dev/ad0s2.elif 64G 1.7G 47G 3% /usr
/dev/ad0s2.elid 2.3G 834M 1.3G 38% /var
/dev/da0.elia 7.2T 2.6T 4.0T 40% /encrypt_a
vi /etc/fstab
Add the following line at the bottom:
/dev/da0.elia /encrypt_a ufs rw 2 2
sysinstall
Select Configure --> Packages --> CD/DVD --> net --> rsync-3.x.x
vi /usr/local/etc/rsyncd.conf
Remove # before "UID" & "GID" and change "nobody" to "rsync", the file will look like this:
# rsyncd.conf - Example file, see rsyncd.conf(5)
#
# Set this if you want to stop rsync daemon with rc.d scripts
pid file = /var/run/rsyncd.pid
# Edit this file before running rsync daemon!!
uid = rsync
gid = rsync
#use chroot = no
#max connections = 4
#syslog facility = local5
#[ftp]
# path = /var/ftp/pub
# comment = whole ftp area (approx 6.1 GB)
#[sambaftp]
# path = /var/ftp/pub/samba
# comment = Samba ftp area (approx 300 MB)
#[rsyncftp]
# path = /var/ftp/pub/rsync
# comment = rsync ftp area (approx 6 MB)
#[sambawww]
# path = /public_html/samba
# comment = Samba WWW pages (approx 240 MB)
#[cvs]
# path = /data/cvs
# comment = CVS repository (requires authentication)
# auth users = tridge, susan
# secrets file = /usr/local/etc/rsyncd.secrets
# rsyncd.conf - Example file, see rsyncd.conf(5)
#
# Set this if you want to stop rsync daemon with rc.d scripts
pid file = /var/run/rsyncd.pid
# Edit this file before running rsync daemon!!
uid = rsync
gid = rsync
use chroot = no
max connections = 4
syslog facility = local5
pid file = /var/run/rsyncd.pid
auth users = roland, speciaal, copycop
secrets file = /usr/local/etc/rsyncd.secrets
[test]
path = /encrypt_a/tmp/
comment = Test to sync the samba tmp directory
[encrypt_a]
path = /encrypt_a/
comment = Shared Directory Tree
#[ftp]
# path = /var/ftp/pub
# comment = whole ftp area (approx 6.1 GB)
#[sambaftp]
# path = /var/ftp/pub/samba
# comment = Samba ftp area (approx 300 MB)
#[rsyncftp]
# path = /var/ftp/pub/rsync
# comment = rsync ftp area (approx 6 MB)
#[sambawww]
# path = /public_html/samba
# comment = Samba WWW pages (approx 240 MB)
#[cvs]
# path = /data/cvs
# comment = CVS repository (requires authentication)
# auth users = tridge, susan
# secrets file = /usr/local/etc/rsyncd.secrets
adduser
Fill in all the credentials.
vi /usr/local/bin/rsyncd.bat
It must contain:
#!/bin/sh
/usr/local/bin/rsync -avz --stats --delete copycop@10.30.0.4::encrypt_a /encrypt_a --password-file /usr/local/etc/copycop.rsyncd
chmod 0760 /usr/local/bin/rsyncd.bat
vi /usr/local/etc/copycop.rsyncd
Type the password in the file and save it!
chmod 0640 /usr/local/etc/copycop.rsyncd
chmod 0640 /usr/local/etc/rsyncd.conf
/usr/local/bin/rsyncd.bat
You should see:
receiving file list …
and then popping a lot of file's on your screen! (And of course the led's playing disco, as a matter a fact I feel Disco! Wheee!!!)
If you get an error like: "rsync error error starting client-server protocol code 5", check the password you have used in the password file on the primary and backup server. Also check on the primary server if host allow contains the correct IP Address.
rsync error: some files/attrs were not transferred (see previous errors) (code23)
at main.c(1508) [generator=3.0.7]
Scroll back and see on which directory's you don't have access. Change the rights of those directories on the primary server.
The error you should see an error in the copy files tree like this: send_files failed to open "dir/ectory/" (in encrypt_a): Permission denied (13)
vi /etc/rc.conf
Add the following to lines at the bottom:
ntp_date="10.30.0.4"
This is the IP adress of your head server, so all systems in your network al synced together!
ntpdate_enable="YES"
sysinstall
Wait for FreeBSD to complete the operation.
vi /usr/local/etc/smb.conf
Here is an example of smb.conf file:
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# For a step to step guide on installing, configuring and using samba,
# read the Samba-HOWTO-Collection. This may be obtained from:
# http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf
#
# Many working examples of smb.conf files can be found in the
# Samba-Guide which is generated daily and can be downloaded from:
# http://www.samba.org/samba/docs/Samba-Guide.pdf
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not made any basic syntactic errors.
#
#======================= Global Settings =====================================
[global]
# workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
workgroup = Wayward
# server string is the equivalent of the NT Description field
server string = BSD02 Samba Server
## Samba Time Server?
#
time server =yes
## getpeername failed. Error was socket is not connected, solution:
#
smb ports = 139
# Security mode. Defines in which mode Samba will operate. Possible
# values are share, user, server, domain and ads. Most people will want
# user level security. See the Samba-HOWTO-Collection for details.
security = user
# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
hosts allow = 10.30.0. 127.
# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
load printers = no
# you may wish to override the location of the printcap file
printcap name = /dev/null
# on SystemV system setting printcap name to lpstat should allow
# you to automatically obtain a printer list from the SystemV spool
# system
; printcap name = lpstat
# It should not be necessary to specify the print system type unless
# it is non-standard. Currently supported print systems include:
# bsd, cups, sysv, plp, lprng, aix, hpux, qnx
printing = bsd
# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user "nobody" is used
; guest account = pcguest
# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba34/log.%m
# Put a capping on the size of the log files (in Kb).
max log size = 50
# Use password server option only with security = server
# The argument list may include:
# password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name]
# or to auto-locate the domain controller/s
# password server = *
; password server = <NT-Server-Name>
# Use the realm option only with security = ads
# Specifies the Active Directory realm the host is part of
; realm = MY_REALM
# Backend to store user information in. New installations should
# use either tdbsam or ldapsam. smbpasswd is available for backwards
# compatibility. tdbsam requires no further configuration.
; passdb backend = tdbsam
# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting.
# Note: Consider carefully the location in the configuration file of
# this line. The included file is read at that point.
; include = /usr/local/etc/smb.conf.%m
# Most people will find that this option gives better performance.
# See the chapter 'Samba performance issues' in the Samba HOWTO Collection
# and the manual pages for details.
# You may want to add the following on a Linux system:
; socket options = SO_RCVBUF=8192 SO_SNDBUF=8192
# Configure Samba to use multiple interfaces
# If you have multiple network interfaces then you must list them
# here. See the man page for details.
; interfaces = 192.168.12.2/24 192.168.13.2/24
# Browser Control Options:
# set local master to no if you don't want Samba to become a master
# browser on your network. Otherwise the normal election rules apply
; local master = no
# OS Level determines the precedence of this server in master browser
# elections. The default value should be reasonable
; os level = 33
# Domain Master specifies Samba to be the Domain Master Browser. This
# allows Samba to collate browse lists between subnets. Don't use this
# if you already have a Windows NT domain controller doing this job
; domain master = yes
# Preferred Master causes Samba to force a local browser election on startup
# and gives it a slightly higher chance of winning the election
; preferred master = yes
# Enable this if you want Samba to be a domain logon server for
# Windows95 workstations.
; domain logons = yes
# if you enable domain logons then you may want a per-machine or
# per user logon script
# run a specific logon batch file per workstation (machine)
; logon script = %m.bat
# run a specific logon batch file per username
; logon script = %U.bat
# Where to store roving profiles (only for Win95 and WinNT)
# %L substitutes for this servers netbios name, %U is username
# You must uncomment the [Profiles] share below
; logon path = \\%L\Profiles\%U
# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
; wins support = yes
# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
; wins server = w.x.y.z
# WINS Proxy - Tells Samba to answer name resolution queries on
# behalf of a non WINS capable client, for this to work there must be
# at least one WINS Server on the network. The default is NO.
; wins proxy = yes
# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The default is NO.
dns proxy = no
# Charset settings
; display charset = koi8-r
; unix charset = koi8-r
; dos charset = cp866
# Use extended attributes to store file modes
; store dos attributes = yes
; map hidden = no
; map system = no
; map archive = no
# Use inherited ACLs for directories
; nt acl support = yes
; inherit acls = yes
; map acl inherit = yes
# These scripts are used on a domain controller or stand-alone
# machine to add or delete corresponding unix accounts
; add user script = /usr/sbin/useradd %u
; add group script = /usr/sbin/groupadd %g
; add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
; delete user script = /usr/sbin/userdel %u
; delete user from group script = /usr/sbin/deluser %u %g
; delete group script = /usr/sbin/groupdel %g
#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = no
writable = yes
# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon]
; comment = Network Logon Service
; path = /usr/local/samba/lib/netlogon
; guest ok = yes
; writable = no
; share modes = no
# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
;[Profiles]
; path = /usr/local/samba/profiles
; browseable = no
; guest ok = yes
# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
comment = All Printers
path = /var/spool/samba34
browseable = no
# Set public = yes to allow user 'guest account' to print
guest ok = no
writable = no
printable = yes
# This one is useful for people to share files
;[tmp]
; comment = Temporary file space
; path = /tmp
; read only = no
; public = yes
# A publicly accessible directory, but read only, except for people in
# the "staff" group
;[public]
; comment = Public Stuff
; path = /home/samba
; public = yes
; writable = yes
; printable = no
; write list = @staff
# Other examples.
#
# A private printer, usable only by fred. Spool data will be placed in fred's
# home directory. Note that fred must have write access to the spool directory,
# wherever it is.
;[fredsprn]
; comment = Fred's Printer
; valid users = fred
; path = /homes/fred
; printer = freds_printer
; public = no
; writable = no
; printable = yes
# A private directory, usable only by fred. Note that fred requires write
# access to the directory.
;[fredsdir]
; comment = Fred's Service
; path = /usr/somewhere/private
; valid users = fred
; public = no
; writable = yes
; printable = no
# a service which has a different directory for each machine that connects
# this allows you to tailor configurations to incoming machines. You could
# also use the %U option to tailor it by user name.
# The %m gets replaced with the machine name that is connecting.
;[pchome]
; comment = PC Directories
; path = /usr/pc/%m
; public = no
; writable = yes
# A publicly accessible directory, read/write to all users. Note that all files
# created in the directory by users will be owned by the default user, so
# any user with access can delete any other user's files. Obviously this
# directory must be writable by the default user. Another user could of course
# be specified, in which case all files would be owned by that user instead.
;[public]
; path = /usr/somewhere/else/public
; public = yes
; only guest = yes
; writable = yes
; printable = no
# The following two entries demonstrate how to share a directory so that two
# users can place files there that will be owned by the specific users. In this
# setup, the directory should be writable by both users and should have the
# sticky bit set on it to prevent abuse. Obviously this could be extended to
# as many users as required.
;[myshare]
; comment = Mary's and Fred's stuff
; path = /usr/somewhere/shared
; valid users = mary fred
; public = no
; writable = yes
; printable = no
; create mask = 0765
#-=-=-=-=-=-=-=-=-= My Shares =-=-=-=-=-=-=-=-=-=-
#################################################
# All drives on the backup server are read only
#
# This one is useful for people to share files
[tmp]
comment = Temporary file space
path = /encrypt_a/tmp
writeable = no
public = yes
# Log share
#
[log]
comment = Log files of BSD03
path = /var/log
public = yes
writeable = no
browseable = no
# Private-drives
#
[private]
comment = Eigen Prive directory op de Server
path = /encrypt_a/Private/%U
public = no
writeable = no
browseable = no
# Appz Drive
#
[appz]
comment = Programma's, Games en dergelijke.
path = /encrypt_a/Appz
public = no
writeable = no
browseable = no
force create mode = 0775
force directory mode = 0775
# Special Drive
#
[special]
comment = Special Drives for: Ftp, Images, Sound, Apache
path = /encrypt_a/Special
public = no
writeable = no
browseable = no
force create mode = 0775
force directory mode = 0775
# Media
#
[media]
comment = Media Audio, Video, Multimedia
path = /encrypt_a/Media
public = no
writeable = no
browseable = no
force create mode = 0775
force directory mode = 0775
# Ons
#
[ons]
comment = Gezamelijke schijf
path = /encrypt_a/Ons
public = no
writeable = no
browseable = no
force create mode = 0770
force directory mode = 0770
# Startup With batch files for connecting to BSD03
#
[startup]
comment = Batch files to connect to the BSD03 FreeBSD Server
path = /encrypt_a/Startup
public = yes
writeable = no
browseable = yes
# Share to dump all the Ghost images from dos
[image]
comment = Drive to dump all the Ghost image's to
path = /encrypt_a/Images
public = no
writeable = no
browseable = yes
force create mode = 0775
force directory mode = 0775
# Shares for the Media Center
#
[video]
comment = Video Files for the media center
path = /encrypt_a/Media/movies
writeable = no
browseable = yes
force create mode = 0775
force directory mode = 0775
[TV]
comment = Alle the tv programs we like to keep
path = /encrypt_a/Media/TV
writeable = no
browsable = yes
force create mode = 0775
force directory mode = 0775
[pictures]
comment = All our pictures
path = /encrypt_a/Media/pictures
writeable = no
browseable = yes
force create mode = 0775
force directory mode = 0775
[audio]
comment = All our avaible audio
path = /encrypt_a/Media/audio
writeable = no
browseable = yes
force create mode = 0775
force directory mode = 0775
On the backup server I have set writable = no on every share, this is a backup server not a working server!
vi /etc/rc.conf
Add the following lines at the bottom of rc.conf
nmbd_enable="YES"
smbd_enable="YES"
If you get the following errors: "nttrans.c:2119(call_nt_transact_ioc tl)" you can add the following lines to every share you have in the /usr/local/etc/smb.conf file:
oplocks = false
level2 oplocks = false
vi ./etc/motd
FreeBSD 8.1-RELEASE (BSD02) - 2010 /Node:3 (Original file:/etc/motd.bak)
Running:
- Apache2, Php 5, Mysql 5
- Pure-FTPd, SSH
- Samba 3
- NFS
IP: 10.30.0.4 / Gateway: 10.30.0.100
- FreeBSD Handbook: http://www.FreeBSD.org
- Use sysinstall to install additional Packages
Save the message with :w and exit.
shutdown -r NOW
smbpasswd -a username
Enter the password twice and do this for every user you want to be able to access Samba.
\\bsd02\
You should be able to access the shares, read it, but you cannot write it
crontab -e
Add the following line:
00 3 * * * /usr/local/bin/rsyncd.bat
Save the file and exit, you should see the line:
crontab: installing new crontab
...then you know it is about to run!
passwd root
Enter the password twice.
Have a question about something in this article? You can receive help directly from the article author. Sign up for a free trial to get started.
Comments (1)
Author
Commented:Open in new window
After that my system rebooted, after fiddling around with drivers, it appeared to be an IRQ problem. I Solved this problem by swapping the VGA card with the NIC card from PCI Slot.