Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anyterm for Config UI X #110

Closed
razer4908 opened this issue Jun 3, 2018 · 4 comments
Closed

Anyterm for Config UI X #110

razer4908 opened this issue Jun 3, 2018 · 4 comments

Comments

@razer4908
Copy link
Contributor

Hi,

Do you think it is possible to implement Anyterm for an "in-Browser" administration of your Homebridge Device e.g Raspberry Pi ?

@oznu
Copy link
Member

oznu commented Jun 5, 2018

When running in docker this plugin actually already provides this exact feature. I didn't enable it for other platforms as I thought it might present a security risk that users may not particularly like if I added the feature with an update.

@razer4908
Copy link
Contributor Author

Im not too much into programming but do you think it is possible to implement this feature if you want, so if you do not want it you have to uncheck a checkbox for example ?

@palasinio
Copy link

Is it difficult to install AnyTerm on the PI? Or is it for a single webinterface?

@oznu
Copy link
Member

oznu commented Jun 7, 2018

Available in 3.8.3.

@razer4908 - I have enabled this. However, it's not a simple config.json flag, since this could be toggled from inside the UI itself which would defeat the purpose of having it disabled by default.

You'll need to run the process with the environment variable HOMEBRIDGE_CONFIG_UI_TERMINAL=1.

If you're running with systemd you can add this to your /etc/default/homebridge file then run:

sudo systemctl daemon-reload
sudo systemctl stop homebridge
sudo systemctl start homebridge

The shell will spawn as the user you run homebridge as, ensuring that user has the ability to spawn a shell is up to you. For example, if you're service user is named homebridge:

sudo usermod -s /bin/bash homebridge
sudo mkdir /home/homebridge
sudo chown homebridge:homebridge /home/homebridge

image

image

image

@oznu oznu closed this as completed Jun 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants