Skip to content

Instantly share code, notes, and snippets.

@DarkPointer
Forked from Goon3r/inotify-without-root.sh
Created April 2, 2023 15:50
Show Gist options
  • Select an option

  • Save DarkPointer/5a7bb32d0284eb7a6f0791c37deee03b to your computer and use it in GitHub Desktop.

Select an option

Save DarkPointer/5a7bb32d0284eb7a6f0791c37deee03b to your computer and use it in GitHub Desktop.

Revisions

  1. @Goon3r Goon3r revised this gist Mar 13, 2020. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion inotify-without-root.sh
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,8 @@ $ cd inotify-tools-3.20.2.2

    # Install inotifytools
    # - Configure it to use directories under non root user home dir
    $ ./configure --prefix=~/.local --libdir=~/.local/lib
    # - Imporant, absolute paths required for configure commands
    $ ./configure --prefix=/home/user/.local --libdir=/home/user/.local/lib
    $ make
    $ make install

  2. @Goon3r Goon3r renamed this gist Mar 12, 2020. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. @Goon3r Goon3r created this gist Mar 12, 2020.
    16 changes: 16 additions & 0 deletions inotify-without-root
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    # Download inotifytools
    # - Version, url's, directory names could change, use your brain.
    $ wget https://github.com/inotify-tools/inotify-tools/releases/download/3.20.2.2/inotify-tools-3.20.2.2.tar.gz
    $ tar -xvf inotify-tools-3.20.2.2.tar.gz
    $ cd inotify-tools-3.20.2.2

    # Install inotifytools
    # - Configure it to use directories under non root user home dir
    $ ./configure --prefix=~/.local --libdir=~/.local/lib
    $ make
    $ make install

    # Add executable binaries to path
    # - Recommended to this inside relevant .profile .bashrc file etc etc
    # - Binary path changes based on configured prefix/libdir again, use your brain
    PATH="~/.local/bin:$PATH"