Compare commits
5 Commits
99369a95aa
...
49be486142
Author | SHA1 | Date |
---|---|---|
Can202 | 49be486142 | |
Can202 | 72ea2b6784 | |
Can202 | 1cded717bc | |
Can202 | 1010310e71 | |
Can202 | 27fdea7de2 |
|
@ -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)
|
||||
|
|
|
@ -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
|
|
@ -1,4 +1,3 @@
|
|||
#!/usr/bin/env xdg-open
|
||||
[Desktop Entry]
|
||||
Categories=Utility;
|
||||
Comment=Linux front-end for ZeroTier
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#!/usr/bin/env xdg-open
|
||||
[Desktop Entry]
|
||||
Categories=Utility;
|
||||
Comment=Linux front-end for ZeroTier
|
||||
|
|
|
@ -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/
|
Loading…
Reference in New Issue