Skip to content

A Chrome extension that can run terminal commands directly from the browser.

Notifications You must be signed in to change notification settings

theGeekyLad/run.it-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

Run.it

A Chrome extension that lets you run local terminal commands on your local Linux / MacOS machine directly from the browser.

Why do I need it? 😕

Here are some possible cases where the extension immensely accelerates working with the shell:

  • Installing npm or Python libraries from a documentation website
  • Setting up a Linux installation (especially Arch!)
  • Fixing a bug in Linux (maybe the Wi-Fi wasn't working and you need a board.bin?)

I want it! 🔧

Coming soon to the Chrome Web Store!

As of now, head over to releases and install the latest you can find (and maybe ... pin it?).

What's in it? 💎

Here's what you can do with the extension:

run it-demo

  • Open a website that contains some commands
  • Use the mouse to select a command
  • Right-click and select Run command
  • Wait for a success notification!
  • Click the extension icon in the Chrome extension bar (or Alt+X)
  • See the output and be zen!

F.A.Q. 🙋‍♀️

Does it work with sudo?

In short, yes. Read on to know how.

I'm concerned. How exactly does it work with sudo?

For privacy sake, you're totally justified wanting to know. Well, every other layer of abstraction over password input increases your chances of getting snooped. This feature is no exception. As of now, the password is bundled into the body of every POST request to a local Node.js server that ultimately executes the command in question. The password is in clear and not hashed and if you're serious about stuff like MITM, I'd recommend you clear the password from the extension settings (which also clears it from the browser storage). In that case, you're super safe for sure but, of course, you can't run sudo commands!

Internally, the Node.js server takes the password from the request body and runs echo <your-password> | sudo -S -p "" <your-command>.

I ran a command with this extension but didn't receive a notification of completion. What's going on?

It's quite likely that the command is waiting for some kind of user input or the sudo password could be wrong or maybe the command is long-running.

I see the status "Disconnected" or "Connecting ..." all the time. What do I do?

You're probably not running the local server or maybe the port 7236 is taken. Head over to releases and carefully run through the installation once more.

Note: As of now, the port of the local server cannot be changed. You might've to close another application that's using this port.


Made with ❤️ by theGeekyLad

About

A Chrome extension that can run terminal commands directly from the browser.

Resources

Stars

Watchers

Forks

Packages

No packages published