Last active
October 19, 2017 21:32
-
-
Save henriqueutsch/26ef28649ded5990b0c54b2ad5ac955e to your computer and use it in GitHub Desktop.
Arquivos Configuração
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#sudo nano /usr/local/etc/afp.conf | |
; | |
; Netatalk 3.x configuration file | |
; | |
[Global] | |
mimic model = TimeCapsule6,106 | |
afpstats = yes | |
[Backup] | |
path = /media/Backup | |
valid users = henriqueutsch,pi | |
directory perm = 777 | |
[Drive 5T] | |
path = /media/Drive5T | |
valid users = henriqueutsch, pi | |
directory perm = 777 | |
[Time Machine] | |
path = /media/TimeMachine | |
valid users = henriqueutsch,pi | |
time machine = yes | |
directory perm = 777 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#sudo nano /etc/avahi/services/afpd.service | |
%h | |
_afpovertcp._tcp | |
548 | |
_device-info._tcp | |
0 | |
model=TimeCapsule |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#sudo nano /etc/netatalk/AppleVolumes.default | |
# Netatalk 2.x afp volume cofiguration | |
/media/TimeMachine "Time Machine" allow:pi,henriqueutsch perm:0770 cnidscheme:cdb options:usedots,upriv,tm | |
/media/Backup "Backup" allow:pi,henriqueutsch perm:0770 option:upriv | |
/media/Drive5T "Dive5T" allow:pi,henriqueutsch perm:0770 option:upriv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo mkdir /media/Backup | |
sudo chmod 777 /media/Backup | |
sudo mkdir /media/TimeMachine | |
sudo chmod 777 /media/TimeMachine | |
sudo mkdir /media/Drive5T | |
sudo chmod 777 /media/Drive5T | |
sudo mount -a | |
sudo service avahi-daemon start | |
sudo service netatalk start | |
sudo systemctl enable avahi-daemon | |
sudo systemctl enable netatalk |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#sudo nano /etc/fstab | |
/dev/sda1 /media/TimeMachine hfsplus force,rw,user,auto 0 0 | |
/dev/sda2 /media/Backup hfsplus force,rw,user,auto 0 0 | |
/dev/sdb2 /media/Drive5T hfsplus force,rw,user,auto 0 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#sudo nano /etc/nsswitch.conf | |
# /etc/nsswitch.conf | |
# | |
# Example configuration of GNU Name Service Switch functionality. | |
# If you have the `glibc-doc-reference' and `info' packages installed, try: | |
# `info libc "Name Service Switch"' for information about this file. | |
passwd: compat | |
group: compat | |
shadow: compat | |
gshadow: files | |
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 mdns | |
networks: files | |
protocols: db files | |
services: db files | |
ethers: db files | |
rpc: db files | |
netgroup: nis |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment