-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathNetwork3.sh
More file actions
39 lines (27 loc) · 833 Bytes
/
Copy pathNetwork3.sh
File metadata and controls
39 lines (27 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
# Script Error Handling
set -e
# Navigate to Home Directory
cd ~
# Install WireGuard
sudo apt install -y wireguard
# Download the Network3 Node Archive
wget https://network3.io/ubuntu-node-v2.1.1.tar.gz
# Extract the Archive
tar -xf ubuntu-node-v2.1.1.tar.gz
# Install Net Tools
sudo apt-get install -y net-tools
# Navigate to the Extracted Directory
cd ubuntu-node
# Start the Node
sudo bash manager.sh up
# Generate Keys for the Node
sudo bash manager.sh key
# Remove the ubuntu-node-v2.1.1.tar archive
echo "Kurulum tamamlandı, ubuntu-node-v2.1.1.tar dosyası siliniyor..."
rm -f ~/ubuntu-node-v2.1.1.tar.gz
# Remove the script itself (Network3.sh)
echo "Script dosyası (Network3.sh) siliniyor..."
rm -f ~/Network3.sh
# Completion Message
echo "WireGuard and Network3 Node setup completed successfully."