README

rssfs

builds.sr.ht status GoDoc

about

rssfs is a 9p server serving the contents of rss feeds. it's main purpose is being an example of how to use my neinp go package.

installation

go get go.rbn.im/rssfs

usage

./rssfs [OPTIONS] URL [URL URL ...]
  -addr string
        listen address (default "localhost:9999")
  -debug
        enable debug mode
  -gid string
        gid name (default "nogroup")
  -uid string
        uid name (default "nobody")
example
$ ./rssfs https://www.kernel.org
$ mount -t9p -o port=9999,noextend 127.0.0.1 /mnt/tmp
$ tree /mnt/tmp/ | head -14
/mnt/tmp/
└── The Linux Kernel Archives
    ├── About Linux Kernel
    │   ├── content
    │   ├── description
    │   ├── guid
    │   ├── link
    │   └── title
    ├── Active kernel releases
    │   ├── content
    │   ├── description
    │   ├── guid
    │   ├── link
    │   └── title
$ cat /mnt/tmp/The\ Linux\ Kernel\ Archives/About\ Linux\ Kernel/description | head
<div class="section" id="what-is-linux">
<h2>What is Linux?</h2>
<p>Linux is a clone of the operating system Unix, written from scratch by
Linus Torvalds with assistance from a loosely-knit team of hackers
across the Net. It aims towards POSIX and <a class="reference external" href="http://www.unix.org/">Single UNIX Specification</a>
compliance.</p>
<p>It has all the features you would expect in a modern fully-fledged Unix,
including true multitasking, virtual memory, shared libraries, demand
loading, shared copy-on-write executables, proper memory management, and
multistack networking including IPv4 and IPv6.</p>

bugs

Gos mime package loads mime definitions on the fly from /etc/mime.types, /etc/apache2/mime.types or /etc/apache/mime.types. at least slackware installs apaches config dir to /etc/httpd so in order to have the magic working, you need to ln -s /etc/httpd/mime.types /etc/mime.types.

Expand ▾ Collapse ▴

Documentation

Overview

    Command rssfs is a 9p filesystem serving contents of RSS feeds.

    go get go.rbn.im/rssfs
    

    Usage

    ./rssfs [OPTIONS] URL [URL URL ...]
    -addr string
    		listen address (default "localhost:9999")
    -debug
    		enable debug mode
    -gid string
    		gid name (default "nogroup")
    -uid string
    		uid name (default "nobody")
    

    Example

    $ ./rssfs https://www.kernel.org
    $ mount -t9p -o port=9999,noextend 127.0.0.1 /mnt/tmp
    $ tree /mnt/tmp/ | head -14
    /mnt/tmp/
    └── The Linux Kernel Archives
    	├── About Linux Kernel
    	│   ├── content
    	│   ├── description
    	│   ├── guid
    	│   ├── link
    	│   └── title
    	├── Active kernel releases
    	│   ├── content
    	│   ├── description
    	│   ├── guid
    	│   ├── link
    	│   └── title
    $ cat /mnt/tmp/The\ Linux\ Kernel\ Archives/About\ Linux\ Kernel/description | head
    <div class="section" id="what-is-linux">
    <h2>What is Linux?</h2>
    <p>Linux is a clone of the operating system Unix, written from scratch by
    Linus Torvalds with assistance from a loosely-knit team of hackers
    across the Net. It aims towards POSIX and <a class="reference external" href="http://www.unix.org/">Single UNIX Specification</a>
    compliance.</p>
    <p>It has all the features you would expect in a modern fully-fledged Unix,
    including true multitasking, virtual memory, shared libraries, demand
    loading, shared copy-on-write executables, proper memory management, and
    multistack networking including IPv4 and IPv6.</p>
    

    Source Files