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
  • Save DarkPointer/5a7bb32d0284eb7a6f0791c37deee03b to your computer and use it in GitHub Desktop.
Save DarkPointer/5a7bb32d0284eb7a6f0791c37deee03b to your computer and use it in GitHub Desktop.
Installs inotifytools without the need to go through package managers thus removing the need for root access. Useful for shared seeboxes.
# 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
# - Imporant, absolute paths required for configure commands
$ ./configure --prefix=/home/user/.local --libdir=/home/user/.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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment