tiny-pilot / tinypilot

Use your Raspberry Pi as a browser-based KVM.
https://tinypilotkvm.com
MIT License
3.04k stars 255 forks source link

Cannot change listening port after install #173

Closed MikeRotch76 closed 4 years ago

MikeRotch76 commented 4 years ago

I initially installed Tinypilot using the https://github.com/mtlynch/tinypilot#simple-installation.

It worked fine. However, I am now trying to change the listen port to something else. I tried

_export TINYPILOT_INSTALL_VARS="tinypilotport: 44556" curl --silent --show-error https://raw.githubusercontent.com/mtlynch/tinypilot/master/quick-install | bash - &&

and then rebooting, but listening port did not change I confirmed during the install that the install var was being read by the installer:

_+ echo 'Install vars: tinypilot_port: 44556' Install vars: tinypilotport: 44556

Is there a way I can fully uninstall TinyPilot or wipe the settings so I can do a clean install?

mtlynch commented 4 years ago

Thanks for filing this!

TinyPilot actually listens on two separate ports. By default it listens for external connections on port 80 (via nginx) and then nginx forwards messages directly to the app, listening at 8000.

I've clarified this distinction and made it easier to specify a port other than 80:

https://github.com/mtlynch/ansible-role-tinypilot/pull/46/files

To listen for external connections on port 44556, you can do this:

export TINYPILOT_INSTALL_VARS="tinypilot_external_port=44556"
curl \
  --silent \
  --show-error \
  https://raw.githubusercontent.com/mtlynch/tinypilot/master/quick-install | \
    bash - && \
  sudo reboot

Is there a way I can fully uninstall TinyPilot or wipe the settings so I can do a clean install?

In general, you should never have to uninstall TinyPilot to fix settings. Every time you install, the installer makes sure that anything you configured in a previous installation is updated with whatever your new settings are.

MikeRotch76 commented 4 years ago

Thanks. This works perfectly.

MikeRotch76 commented 4 years ago

Thanks Michael. Thanks for resolving this so quickly and also adding the M, in KVM. I am eagerly awaiting the update to the power issue although powering from a USB 3.0 port seems to be working fine (as you've stated in your post). But of course, I would like to meet the 3A spec. I donated $20 to you as a thank you for your hard work.

Transaction ID 1908289K4308231M

On Fri, 28 Aug 2020 at 13:15, Michael Lynch notifications@github.com wrote:

Thanks for filing this!

TinyPilot actually listens on two separate ports. By default it listens for external connections on port 80 (via nginx) and then nginx forwards messages directly to the app, listening at 8000.

I've clarified this distinction and made it easier to specify a port other than 80:

https://github.com/mtlynch/ansible-role-tinypilot/pull/46/files

To listen for external connections on port 44556, you can do this:

export TINYPILOT_INSTALL_VARS="tinypilot_external_port=44556" curl \ --silent \ --show-error \ https://raw.githubusercontent.com/mtlynch/tinypilot/master/quick-install | \ bash - && \ sudo reboot

Is there a way I can fully uninstall TinyPilot or wipe the settings so I can do a clean install?

In general, you should never have to uninstall TinyPilot to fix settings. Every time you install, the installer makes sure that anything you configured in a previous installation is updated with whatever your new settings are.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mtlynch/tinypilot/issues/173#issuecomment-683096020, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQY74RA2KZY4QTAQME332D3SC764BANCNFSM4QOHLKNA .