rssfs

command module
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2022 License: BSD-2-Clause Imports: 25 Imported by: 0

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.

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>

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL