Giter VIP home page Giter VIP logo

jat's Introduction

James' Admin Tool

Making administering my machines slightly easier.

Features

Update APT repositories and debs that are listed by HTTP URL in a single command. No more manually downloading and install the latest versions of some software that doesn't have an APT repository. I currently use this for Slack, Zoom, Mullvad and Bluejeans. I am happy to look at other pages if you can't get them working.

Future

Read only HTTP server of ZFS snapshots

Usage

$ jat update    # apt update, upgrade, autoremove
$ jat reboot    # update + reboot
$ jat shutdown  # update + fstrim + shutdown

Configuration

Create ~/.jat.yaml

manual_packages:
  slack:
    url: https://slack.com/intl/en-gb/downloads/instructions/ubuntu
    regexp: https://downloads.slack-edge.com/linux_releases/slack-desktop-(.*)-amd64.deb
    name: slack-desktop
  zoom:
    url: https://zoom.us/download
    download: https://zoom.us/client/latest/zoom_amd64.deb
    name: zoom
    selector: ".linux-ver-text"
    regexp: "Version (.*)"
  mullvad:
    url: https://mullvad.net/en/download/
    name: mullvad-vpn
    regexp: https://github.com/mullvad/mullvadvpn-app/releases/download/(.*)/.*.deb
  bluejeans:
    url: https://www.bluejeans.com/downloads
    regexp: https://swdl.bluejeans.com/desktop-app/linux/(.*)/BlueJeans.deb
    name: bluejeans-v2
  rclone:
    url: https://rclone.org/downloads/
    regexp: https://downloads.rclone.org/v(.*)/rclone-v.*-linux-amd64.deb
    download: https://downloads.rclone.org/rclone-current-linux-amd64.deb
    name: rclone

For a manual package download you need to specify:

  1. url: A page to look for the latest release
  2. regexp: How to extract the version number from the page downloaded from url. By default this will just look through all hrefs.
  3. selector: Optional: A CSS selector to specify where to look that isn't all hrefs. For example Zoom doesn't have the version in the package name, but does have a fixed URL to download the package from, so all we need to do is find the version. We used a CSS selector to find <span class="linux-ver-text" style="display: none;">Version 5.1.412382.0614</span> and check the inner HTML against the dpkg reported version.

jat's People

Contributors

dooferlad avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.