Jigsaw-Code / outline-server

Outline Server, developed by Jigsaw. The Outline Server is a proxy server that runs a Shadowsocks instance and provides a REST API for access key management.
https://getoutline.org/
Apache License 2.0
5.79k stars 780 forks source link

Support server installation on macOS #801

Open iceman201 opened 3 years ago

iceman201 commented 3 years ago

I try to host the manager on my macOS Server I have this issue. I have no idea where goes wrong

╰─ sudo wget -qO- https://raw.githubusercontent.com/Jigsaw-Code/outline-server/master/src/server_manager/install_scripts/install_server.sh | bash

> Verifying that Docker is installed .......... OK
> Verifying that Docker daemon is running ..... OK
mkdir: illegal option -- -
usage: mkdir [-pv] [-m mode] directory ...

Sorry! Something went wrong. If you can't figure this out, please copy and paste all this output into the Outline Manager screen, and send it to us, to see if we can help you.
walterk2020 commented 3 years ago

same issue

fortuna commented 3 years ago

It seems mkdir macOS doesn't support --mode=770. The install script is for Linux only. You can download the script and edit to adjust as needed for macOS.

fortuna commented 3 years ago

I've renamed the issue to be about supporting server installation on macOS, since we only currently support Linux.

iceman201 commented 3 years ago

I've renamed the issue to be about supporting server installation on macOS, since we only currently support Linux.

Thank you.

oleg-codaio commented 6 months ago

Until this is officially supported, I took a stab at updating the script to support macOS, since I wanted to run Outline on my M2 Mac mini sitting at home.

Here are the changes: https://github.com/oleg-codaio/outline-server/commit/b9b5a1a621e771d17c02536548696ecdf92721b5. Nothing too extensive - but Docker works a bit differently on macOS so I had to expose the ports explicitly. Also, at first things the VPN was really slow (3 Mbps) but after I turned on Rosetta in Docker settings, performance improved significantly (up to 100 Mbps, which is about the limit of the mobile network I tested with).

Instructions

  1. Install Outline with brew install outline-server
  2. Click "Set up Outline anywhere"
  3. Instead of running the provided command, run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/oleg-codaio/outline-server/b9b5a1a621e771d17c02536548696ecdf92721b5/src/server_manager/install_scripts/install_server.sh)" and follow the instructions