npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

rpim

v1.0.4

Published

Automation library for easy setup and managing of Raspberry Pi's in the local network

Downloads

2

Readme

manage-raspberry-pi

CLI tool for easy setup and managing of Raspberry Pi's in the local network. List all Raspberry pi's, easily setup the SSH connection, read out type and model, configure a Raspberry pi as a kiosk or other...

platforms

Tested on Mac and Linux, if you find any issues please take the time to create a bug report for it on Github.

Installing

Run $ npm install rpim -g to install rpim globally on your computer. Or when you only want to use it once or test it you can use npx, like so $ npx rpim ls

Sub commands

To perform a specific task you can instruct rpim to perform that sub command for you. Run $ rpim <sub-command> in your terminal. An example $ rpim ls lists all Raspberry pi's in the local network with their mac address. The available sub commands are:

  • ls List all Raspberry pi's found on the local network with ip - and MAC address. This info may be outdated since it reads from the local connection cache. Run ping to update.
  • shutdown Shuts down the Raspberry pi
  • info Show detailed information about Raspberry pi's
  • setup-ssh Configures the local machine and Raspberry pi's so that this machine has password-less SSH access
  • ssh-config Display the SSH configuration that is used by this machine
  • configure Set's up a Raspberry pi with a specified intention, kiosk mode or other
  • log Display the management log from the Raspberry pi
  • ping Perform a mass ping to update the arp cache. This may help when Raspberry pi's can't be found
  • reset Resets all configurations done by rpim (local SSH configurations done by rpim and remote authorized keys)
  • set-hostname Sets the remote hostname(s)

Flags

You can provide rpim with information by providing flags. The available flags are:

  • verbose, v Show verbose feedback and debug data
  • username, u Username to use when logging in to a Raspberry pi
  • ip Select this ip (or ip's) to perform a sub command on. If not set all found Raspberry pi's ip's are used
  • ssh-key-file Local file name to store a generated SSH key in. File is added to the ~/.ssh directory
  • hostname Use this in combination with the set-hostname sub command to set the remote hostname(s)
  • ssh-prefix When generating SSH shorthand for Raspberry pi's use this prefix with the last numbers of the ip
  • default-hostname Use this as a value when checking if a Raspberry pi's hostname is changed
  • help, h Show this help text

For instance to use my-user as a username when logging into a Raspberry pi you can use $ rpim info --username my-user or $ rpim info -u my-user. To provide rpim with multiple ip's you can repeat the --ip flag like so $ rpim setup-ssh --ip 192.168.0.1 --ip 192.168.0.2

Use

This NPM module is meant to be used as a globally installed module

$ npm i -g rpim

or through npx to run specific sub commands

$ npx rpim ls