outline-server icon indicating copy to clipboard operation
outline-server copied to clipboard

Support server installation on macOS

Open iceman201 opened this issue 4 years ago • 6 comments

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.

iceman201 avatar Jan 28 '21 14:01 iceman201

same issue

walterk2020 avatar Jan 28 '21 15:01 walterk2020

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 avatar Jan 28 '21 16:01 fortuna

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

fortuna avatar Jan 29 '21 20:01 fortuna

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

Thank you.

iceman201 avatar Jan 31 '21 00:01 iceman201

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

oleg-codaio avatar Mar 20 '24 06:03 oleg-codaio