Code Monkey home page Code Monkey logo

pushlogind's Introduction

Pushlogind

An Efficient Linux-specific login monitor for your Pushover. It pushes you when someone logins on your machine. Written in C, uses almost no resources beacuse of Inotify, /var/log/lastlog and cURL.

This program can't work without Pushover. Get yourself one if you haven't already: https://pushover.net

Registration

You need to create an application token (i.e. register) to use this program.

It is easy as pie: just go over https://pushover.net/apps/build (assuming that you are logged in) and fill the form. You'll be redirected to a page with your token.

Installation

Mind that you can use it on Linux machines only.

Clone the repo:

git clone https://github.com/somu/pushlogind.git
cd pushlogind

Then you configure it. Use ./configure -h to see all avaliable params. There are two mandatory params: --user for your user token and --token for your application token (go over “Registration” chapter of this README if you don’t know what it is). For example:

./configure --user aynQmp6OfoHzu1oF2vPWc0dDhO1HTB \
            --token arYm28oFmGHzuo5nAmpOwQ8mfOamoq

Configure script is written in Python, so if you haven’t got it, go directly to src/config.h and make the changes as described there in the comments.

Then run make install to compile the program and will put it into /usr/bin. It will also put an init script to /etc/init.d if the folder is detected. Alternatively you can run make and decide yourself where to put it.

See ya!

pushlogind's People

Contributors

lukateras avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  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.