Skip to content

Instantly share code, notes, and snippets.

@sebnyberg
Created October 17, 2017 17:10
Show Gist options
  • Save sebnyberg/1e4b0f3ae31d8120d8c05efba48b6758 to your computer and use it in GitHub Desktop.
Save sebnyberg/1e4b0f3ae31d8120d8c05efba48b6758 to your computer and use it in GitHub Desktop.
Install Sharenix on Ubuntu
# Bash script for installing Sharenix
rm -rf sharenix*
sudo rm /bin/sharenix*
rm ~/.sharenix.json
echo Downloading Sharenix...
wget https://github.com/Francesco149/sharenix/releases/download/0.6.5a/sharenix-x86_64.tar.xz >/dev/null 2>&1
wget https://raw.githubusercontent.com/Francesco149/sharenix/master/sharenix-section >/dev/null 2>&1
wget https://raw.githubusercontent.com/Francesco149/sharenix/master/sharenix-window >/dev/null 2>&1
echo Unzipping...
tar xf sharenix-*.tar.xz
echo Moving binaries to /bin
chmod +x sharenix-section sharenix-window sharenix-*/sharenix
sudo cp sharenix-section sharenix-window sharenix-*/sharenix /bin
echo Copying config file to ~/.sharenix.json
cp sharenix-*/sharenix.json ~/.sharenix.json
echo Cleaning up...
rm -rf sharenix*
echo Done!
echo
echo See Sharenix repo for more info: https://github.com/Francesco149/sharenix
echo
echo Commands:
echo
echo sharenix-window - screenshot a window
echo sharenix-section - screenshot a section of your screen
echo sharenix -h - list available sharenix commands
echo
echo Screenshots will be automatically uploaded to Imgur and the url will be copied to clipboard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment