Live data from Hacker News

Show HN: Manage on-prem servers from my smartphone

github.com

11–20 of 37 posts

Re: Show HN: Manage on-prem servers from my smartphone

#11
post #6
post #3

I think it's very complicated and I'm not sure what it does, or why it has a go http server and calls itself a specification. But it's clear that your goal is to reboot on-prem servers through your phone. Something I've wanted to do with rundeck and a very simple web app that uses the rundeck API.

webmin

Thank you for a trip down memory lane :) Not seen that name in decades!

Re: Show HN: Manage on-prem servers from my smartphone

#12
> on-premise

I think the correct term here would be "on-premises".

A premise and a premises are not related concepts except in the sense that the "premise" of this comment is to let you know that "premises" is the correct term to use.

I'll also accept "on-prem" because it could reasonably be a shortened form of "on-premises" (even though most people probably don't realize this and are instead reinforcing their misconception when they use it).

Re: Show HN: Manage on-prem servers from my smartphone

#13
post #3

I think it's very complicated and I'm not sure what it does, or why it has a go http server and calls itself a specification. But it's clear that your goal is to reboot on-prem servers through your phone. Something I've wanted to do with rundeck and a very simple web app that uses the rundeck API.

surely it's easier to send SSH commands over SMS (with the appropriate protections) than use this janky Go thing?

Re: Show HN: Manage on-prem servers from my smartphone

#14
post #12

> on-premise I think the correct term here would be "on-premises". A premise and a premises are not related concepts except in the sense that the "premise" of this comment is to let you know that "premises" is the correct term to use. I'll also accept "on-prem" because it could reasonably be a shortened form of "on-premises" (even though most people probably don't realize this and are instead reinforcing their miscon…

You're absolutely right. The fun thing is that I googled it and saw a couple of articles doing the comparison between both. And to be honest, that's why I used the "on-prem" shortcut most of the time.

Re: Show HN: Manage on-prem servers from my smartphone

#15

If you use Python, you can restart the computer in one line using subprocess. Example: https://www.tutorialspoint.com/python-script-to-restart-comp... You can also use two scripts for security: 1. One that’s privileged for the shutdown command. 2. One with no privileges to accept the network request (eg Flask/REST), safely parse it, and send a message to process 1. You could send the message in many ways. It doesn’t…

Yes of course, the spec can be implemented in any language. I've used Go mainly for personal preferences and portability with only one binary to scp on the server. I'm going to try to propose other implementations as you suggest.

Re: Show HN: Manage on-prem servers from my smartphone

#16

Does it have FreeBSD support and any instructions for not using it with docker?

Of course you can compile the server from source if you have Go and the OpenAPI generator JAR (https://github.com/OpenAPITools/openapi-generator?tab=readme...)

Follow these steps : https://github.com/c100k/rebootx-on-prem/blob/master/.github...

And then :

(cd ./impl/http-server-go && GOARCH=amd64 GOOS=openbsd go build -o rebootx-on-prem-http-server-go-openbsd-amd64 -v)

By adapting the arch if needed. Not tested, but it should work.

Re: Show HN: Manage on-prem servers from my smartphone

#17

neat but ssh from your phone is hard to beat Sharing my current use case in case it's useful: reboot PARTITION: to reboot to a different partition systemctl stopping a service and starting another launching a wget checking if wget is still up and hasn't crashed

Nice use case. I'd be curious to see how it behaves by using the SSH feature.

Re: Show HN: Manage on-prem servers from my smartphone

#18
post #3

I think it's very complicated and I'm not sure what it does, or why it has a go http server and calls itself a specification. But it's clear that your goal is to reboot on-prem servers through your phone. Something I've wanted to do with rundeck and a very simple web app that uses the rundeck API.

The Go HTTP server is an implementation of the spec (swagger.json). It actually plays the same role as your web app. It's just to make it compatible with the native app, and not rely on Web.

Re: Show HN: Manage on-prem servers from my smartphone

#20
After one of my AWS accounts (with 2fa and an email I basically never used) was compromised I'm incredibly careful to expose services like this onto the public internet. What steps did you take to ensure the pipeline of your app to server endpoints was secure and in theory not vulnerable to someone traulling open ssh ports etc?
Post reply on HN