Compare commits

...

5 Commits

Author SHA1 Message Date
Can202 49be486142 v1.0 2021-09-12 01:19:08 -03:00
Can202 72ea2b6784 remove gui 2021-09-12 01:15:18 -03:00
Can202 1cded717bc move 2021-09-12 01:05:44 -03:00
Can202 1010310e71 edit 2021-09-12 01:03:41 -03:00
Can202 27fdea7de2 quit KDE additions 2021-09-12 01:00:05 -03:00
5 changed files with 27 additions and 4 deletions

View File

@ -6,8 +6,13 @@ works on Debian-based (apt), Manjaro (pacman, AUR), Fedora-like(dnf) and OpenSUS
## Tutorial
use this command with root or an admin user
### sudo
~~~
cd /tmp/ && rm -vrf zerotier.sh && curl -LO https://github.com/Can202/ZeroTierInstaller/releases/download/v0.9/zerotier.sh && chmod a+x zerotier.sh && clear && ./zerotier.sh* && rm zerotier.sh*
cd /tmp/ && rm -vrf zerotier.bash && curl -LO https://raw.githubusercontent.com/Can202/ZeroTierInstaller/v1.0/zerotier.bash && chmod a+x zerotier.bash && clear && sudo ./zerotier.bash && rm -vrf zerotier.bash
~~~
### su
~~~
cd /tmp/ && rm -vrf zerotier.bash && curl -LO https://raw.githubusercontent.com/Can202/ZeroTierInstaller/v1.0/zerotier.bash && chmod a+x zerotier.bash && clear && su root -c './zerotier.bash' && rm -vrf zerotier.bash
~~~
## Dependencies (before the script)

18
media/zerotier-gui-remove Executable file
View File

@ -0,0 +1,18 @@
#!/bin/bash
if [ ! $(whoami) = "root" ]
then
if [ -f "/usr/bin/dialog" ] || [ -f "/usr/sbin/dialog" ] || [ -f "/usr/games/dialog" ]
then
dialog --title "root" --msgbox "You need run this script as root" 0 0
else
echo "You need run this script as root"
fi
clear
exit
fi
rm -vrf /usr/share/applications/zerotier-gui*
rm -vrf /opt/ZeroTierInstaller/
rm -vrf /usr/bin/zerotier-gui
rm -vrf /usr/bin/zerotier-gui-remove

View File

@ -1,4 +1,3 @@
#!/usr/bin/env xdg-open
[Desktop Entry]
Categories=Utility;
Comment=Linux front-end for ZeroTier

View File

@ -1,4 +1,3 @@
#!/usr/bin/env xdg-open
[Desktop Entry]
Categories=Utility;
Comment=Linux front-end for ZeroTier

View File

@ -86,8 +86,10 @@ cp ZeroTier-GUI/src/zerotier-gui /usr/bin/
git clone https://github.com/Can202/ZeroTierInstaller
cd ZeroTierInstaller/
git checkout dev
git checkout v1.0
cd media/
chmod a+x zerotier-gui-remove
cp zerotier-gui-remove /usr/bin/zerotier-gui-remove
cp zerotier-gui.png /opt/ZeroTierInstaller/
chmod a+x zerotier-exec
cp zerotier-exec /opt/ZeroTierInstaller/