apt-mark / vfs_fruit
apt-mark
apt install にて、手動インストールされたというマーク(autoremoveされなくなる)を外すには、以下のようにする。apt-mark auto PACKAGE_NAME
ubuntu - How to remove the "installed manually" flag and revert to "automatically installed" with apt-get? - Server Fault
vfs_fruit
SAMBA で TimeMachine Volume を作る方法。以下は Ubuntu を想定。
/etc/samba/smb.conf
[global]
:
ea support = yes
vfs objects = catia fruit streams_xattr
fruit:resource = xattr
fruit:metadata = stream
:
[TimeMachine]
comment = Time Machine
path = PAHT_TO_YOUR_DIRECTORY
browseable = yes
read only = no
guest ok = no
valid users = USERS_TO_ALLOW
fruit:time machine = yes
fruit:time machine max size = 1TB
/etc/avahi/services/timemachine.service
<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h</name>
<service>
<type>_smb._tcp</type>
<port>445</port>
</service>
<service>
<type>_adisk._tcp</type>
<txt-record>dk0=adVN=TimeMachine,adVF=0x82</txt-record>
</service>
</service-group>
おまけとして、Bonjourで発見されるデバイスのアイコンを変えるには、以下のようにする。
/etc/avahi/services/device-info.service
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h</name>
<service>
<type>_device-info._tcp</type>
<port>0</port>
<txt-record>model=Xserve</txt-record>
</service>
</service-group>