Git Product home page Git Product logo

arch-avahi-linker's Introduction

arch-avahi-linker

common media dirs for avahi nfs-shares (using autofs) and local files

Installation: Install and enable a local NFS server: https://wiki.archlinux.org/index.php/NFS

Install and start avahi-daemon https://wiki.archlinux.org/index.php/Avahi

Enable NFS automounts for autofs: https://wiki.archlinux.org/index.php/Autofs#NFS_Network_mounts

##Install Package

Set media directory an vdr recording directory in /etc/avahi-linker/default.cfg Enable and start avahi-linker.service

Usage: avahi-linker.py [options]

Options:
  -h, --help            show this help message and exit
  -c CONFIG_FILE, --config=CONFIG_FILE

Note: depending on the network configuration it may take some time until the autofs paths are available.

Writing avahi-service files Add the directories to your /etc/exports

Example for a vdr recording dir announcement: /etc/avahi/services/vdr-rec.service

<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">Recordings on %h</name> ## Name
<service>
       <type>_nfs._tcp</type>
       <port>2049</port>
       <txt-record>path=/srv/vdr/video</txt-record> ## path to shared Folder
       <txt-record>subtype=vdr</txt-record> ## subtype
</service>
</service-group>

Example for a movie video dir announcement: /etc/avahi/services/video-movies.service

<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">Movies on %h</name> ## Name
<service>
       <type>_nfs._tcp</type>
       <port>2049</port>
       <txt-record>path=/srv/video/movies</txt-record> ## path to shared Folder
       <txt-record>subtype=video</txt-record> ## subtype
       <txt-record>category=movies</txt-record> ## category
</service>
</service-group>

arch-avahi-linker's People

Contributors

seahawk1986 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.