-
-
Save ohsevin/df2322930247ef47e5c57c3bd3fc798c to your computer and use it in GitHub Desktop.
This is a shell script to install command line "termbin" online paste service from [virtualhacker.net--broken] check out kohek.xyz instead
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 | |
## Termbin installer | |
## By marduk191 | |
## email: [email protected] | |
### Modified (fixed) source code by: github.com/ninetyfivenorth | |
printf "%s\n" "Checking dependencies" | |
if ! dpkg-query -W netcat | grep . | |
then printf "%s\n" "netcat isn't installed. Setting up netcat." | |
gksudo apt-get install netcat | |
else printf "%s\n" "netcat is already installed!" | |
fi | |
if ! dpkg-query -W xclip | grep . | |
then printf "%s\n" "xclip isn't installed. Setting up xclip." | |
gksudo apt-get install xclip | |
else printf "%s\n" "xclip is already installed!" | |
fi | |
#Save some lines: modify if you are using POSIX without bash style echo | |
echo 'alias termbin="netcat virtualhacker.net 9999"' >> ~/.bashrc | |
echo 'alias copy="xclip -selection c"' >> ~/.bashrc | |
sleep 1 | |
source ~/.bashrc | |
clear | |
printf "%s\n" "Usage: input | termbin | copy. Then paste the link from your X clipboard" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment