aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2017-05-13 00:16:33 +0200
committerTeddy Wing2017-05-13 00:16:33 +0200
commit6868d0818923e3d01592811da121827f0e7ebde4 (patch)
treecb9fde7d8a3b2a32b469711f390921c29ecf2751
parent58d5965c724099a9321d69ac35102d8caeb93184 (diff)
downloadHearURL-6868d0818923e3d01592811da121827f0e7ebde4.tar.bz2
Add README
Include a description of the program, example usage with SSH instructions, install & uninstall help, and license information.
-rw-r--r--README.md57
1 files changed, 57 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..4adeea6
--- /dev/null
+++ b/README.md
@@ -0,0 +1,57 @@
+HearURL
+=======
+
+A URL launcher. The program listens over TCP and opens URLs it receives in a
+local browser.
+
+This makes it easy to open URLs from SSH sessions. When using programs like
+Irssi and Mutt over SSH, a URL can be sent to HearURL to be opened
+locally.
+
+
+## Usage
+Start HearURL in the background:
+
+ $ nohup hearurl --browser Firefox > /tmp/hearurl.out 2>&1&
+
+(Or use an init system like `systemd` or `launchd`.)
+
+To use over SSH, set up remote forwarding to HearURL's local port (by default
+set to `37705`):
+
+ $ ssh -R 34254:localhost:37705 user@example.com
+
+On the remote server, send a URL to `localhost:34254`, and it will open
+locally.
+
+A shell script ([`open_url.sh`][1]) is provided to simplify sending URLs over
+the socket. Here's an example:
+
+ $ ./open_url.sh https://duckduckgo.com/
+
+
+## Install
+**Note:** Only works for Mac OS X since the program delegates to
+[`open`][2].
+
+A binary built for Mac OS X is available on the [releases][3] page. Download the
+binary and put it in your `PATH`.
+
+To compile from source:
+
+ $ cargo install --git https://github.com/teddywing/HearURL.git --root /usr/local
+
+
+## Uninstall
+
+ $ cargo uninstall --root /usr/local hearurl
+
+
+## License
+Copyright © 2017 Teddy Wing. Licensed under the GNU GPLv3+ (see the included
+COPYING file).
+
+
+[1]: ./open_url.sh
+[2]: https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/open.1.html
+[3]: https://github.com/teddywing/HearURL/releases