Last active
December 10, 2017 10:51
-
-
Save unhammer/cfa9cd907adcdf391290 to your computer and use it in GitHub Desktop.
This file contains 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 | |
set -e -u | |
wget -q http://packages.leonerd.org.uk/pool/main/x/xseticon/xseticon_0.1-0leo1_amd64.deb | |
mkdir tmp | |
dpkg -x xseticon_0.1-0leo1_amd64.deb tmp | |
mkdir -p ~/.local/bin | |
cp tmp/usr/bin/xseticon ~/.local/bin/ | |
chmod +x ~/.local/bin/xseticon | |
mkdir -p ~/.local/lib/x86_64-linux-gnu | |
cp /usr/lib/x86_64-linux-gnu/libgd.so.3 ~/.local/lib/x86_64-linux-gnu/libgd.so.2 | |
mkdir -p ~/bin | |
cat >~/bin/xseticon <<EOF | |
#!/bin/sh | |
LD_LIBRARY_PATH=\$HOME/.local/lib/x86_64-linux-gnu \$HOME/.local/bin/xseticon "\$@" | |
EOF | |
echo Now run ~/bin/xseticon |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment