Created
January 12, 2026 13:40
-
-
Save nukhes/56d39243e8900b5489b1a1ec466f402a to your computer and use it in GitHub Desktop.
Compile Profile-sync-daemon from source and install it with stow.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # This script compile Profile-sync-daemon from source and install it with stow. | |
| # To uninstall run 'sudo stow -D /usr/local/stow/psd'. | |
| # Support Fedora, Arch and Debian/Ubuntu based distros. | |
| # Despite that, you can run this in any Linux distro with stow installed. | |
| # Install stow if missing | |
| command -v stow >/dev/null && echo "Stow is already installed" || { echo "Installing Stow..."; (command -v apt >/dev/null && sudo apt update && sudo apt install -y stow) || (command -v dnf >/dev/null && sudo dnf install -y stow) || (command -v pacman >/dev/null && sudo pacman -S --noconfirm stow); } | |
| # Cleanup older install | |
| sudo stow -D /usr/local/stow/psd | |
| sudo rm -rf /usr/local/stow/psd | |
| # Clone psd in /tmp | |
| cd /tmp | |
| git clone --depth 1 https://github.com/graysky2/profile-sync-daemon.git | |
| cd ./profile-sync-daemon | |
| # Build and symlink | |
| sudo make -j$(nproc) | |
| sudo make install DESTDIR=/usr/local/stow/psd | |
| sudo stow -t / /usr/local/stow/psd | |
| # Success message | |
| echo "----------------------------------------------------------------------------------" | |
| echo -e "\033[32mSuccess! PSD was installed.\033[0m" | |
| echo "Check https://wiki.archlinux.org/title/Profile-sync-daemon for setup instructions." |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run with one command
curl -fsSL https://gist.githubusercontent.com/nukhes/56d39243e8900b5489b1a1ec466f402a/raw/ | sudo bash