[リモートの Linux サーバを開発環境にする | text․superbrothers․dev](https://text.superbrothers.dev/210316-using-a-linux-server-as-a-development-environment/)
[superbrothers/opener: Open URL in your local web browser from the SSH-connected remote environment.](https://github.com/superbrothers/opener)
#remotedev
## Install
### Local (OSX)
```shell-session
$ brew install superbrothers/opener/opener
$ brew services start opener
```
```shell-session
Host remotedev01
RemoteForward /home/ubuntu/.opener.sock /Users/y-tsubouchi/.opener.sock
```
### Remote (Ubuntu)
```shell-session
# open command
$ curl -L -o ~/bin/open https://raw.githubusercontent.com/superbrothers/opener/master/bin/open
$ chmod 755 ~/bin/open
# xdg-open command
$ curl -L -o ~/bin/xdg-open https://raw.githubusercontent.com/superbrothers/opener/master/bin/xdg-open
$ chmod 755 ~/bin/xdg-open
```
openにはsocatが必要なので、socat install
```shell-session
$ sudo apt install socat
```
```shell-session
echo "StreamLocalBindUnlink yes" | sudo tee /etc/ssh/sshd_config.d/opener.conf
sudo systemctl restart ssh
```