Last active
January 2, 2024 10:57
-
-
Save masih/d529694465805f94d930 to your computer and use it in GitHub Desktop.
Installs XClip locally
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 | |
# Script for installing xclip on systems without root access. | |
# xclip will be installed in $HOME/local/bin. | |
# It's assumed that wget and a C/C++ compiler are installed. | |
# exit on error | |
set -e | |
XCLIP_VERSION=0.12 | |
# create our directories | |
mkdir -p $HOME/local $HOME/xclip_tmp | |
cd $HOME/xclip_tmp | |
# download source files for XClip | |
wget https://versaweb.dl.sourceforge.net/project/xclip/xclip/${XCLIP_VERSION}/xclip-${XCLIP_VERSION}.tar.gz | |
# extract files, configure, and compile | |
tar xvzf xclip-${XCLIP_VERSION}.tar.gz | |
cd xclip-${XCLIP_VERSION} | |
./configure --prefix=$HOME/local --disable-shared | |
make | |
make install |
As of Sep 2022, the link in your file does not work. Instead, use
wget https://versaweb.dl.sourceforge.net/project/xclip/xclip/0.12/xclip-0.12.tar.gz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ensure that $HOME/local/bin is in your path.
put this into your $HOME/.bashrc file