3

So I'm an Linux fan and word is spreading. People bring their laptops to me to have a new installation. Now I want to help people easier without requiring them to bring me their laptop. I'm looking for an application that would allow me to:

  • Download a puppet script from my server or easily feed a script send via email into it,
  • Authenticate the script and make sure it originates from myself (GnuPG comes to mind here),
  • Run the script as root via puppet, so it can make the necessary system changes,
  • Send the output as an email to me.

Is there something out there that would allow me to do this with the correct controls in place? Doesn't necessarily have to be puppet, bash or ansible or whatever would be nice as well. Ssh is not an option, most home connections that people use are behind a NAT router. I do not want a direct access connection, just the ability to tell someone "here, run this script the way I showed you" without them having to open a terminal.

I'm thinking about writing something to do this, but there might be something out there that I'm simply not aware of?

  • If it matters, I generally install Linux Mint, but a solution would preferably be desktop-agnostic. – Tim Stoop Jun 4 '15 at 15:48
  • Attention: Running admin scripts from an Internet server or email is exactly the propagation vector of computer viruses, which most security packages do try to block. Are you sure you want to open this doorway on your friends' computers? – harrymc Jun 9 '15 at 14:15
  • 1
    Hence the signing. I want a secure solution, where trust is explicitly given. – Tim Stoop Jun 9 '15 at 15:08
  • Digital signatures can be counterfeited. – harrymc Jun 9 '15 at 15:17
  • I think you can make a huge amount of money if you can counterfeit GnuPG signatures without the private key! It's Pretty Good ;-) – Tim Stoop Jun 9 '15 at 15:19
0

Why reinvent the wheel? If these are "Just Work" type folks, they aren't going to want to deal with downloading a script, making it executable, sudo'ing, etc., that goes along with installing Linux programs.

I'd give them a basic rundown on using the built in Software Manager/Software Center. Once they know how it works, they can install 99% of what they want without your intervention. This also mitigates the issues of authenticating a script and letting a script run wild with root privileges.

I'll also strongly recommend TeamViewer. It makes it easy for them to reach out for help without having to mess with configuration. I use it on several computers, all behind NAT routers.

  • That's what I want the thing to solve, download from my server and deploy. No saving and making executable or anything, just "here's the script" and drag it onto an icon or something. You know, something easy to do even your your greatgrandmother. :) TeamViewer requires me being available and I prefer doing stuff asynchronous. – Tim Stoop Jun 11 '15 at 13:25
0

If you'll bite the bullet to maintain your own update repositories, you can modify the config file of "people"'s update manager to point at your repository, and any patch you built will be pulled by the system on designated time.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.