This file contains 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
## Update System | |
sudo apt update -y && sudo apt upgrade -y && sudo apt dist-upgrade -y && sudo apt autoremove -y | |
## Install Dependency | |
sudo apt install libc6-i386 libc6-x32 curl -y | |
## Install Jave | |
wget https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.deb && sudo dpkg -i jdk-17_linux-x64_bin.deb && rm jdk-17_linux-x64_bin.deb | |
## Download and install Minecraft |
This file contains 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
# This | |
location ^~ /.well-known/mta-sts.txt { | |
try_files $uri @mta-sts; | |
} | |
# Or This | |
location @mta-sts { | |
# add_header Content-Type "text/plain"; | |
return 200 "version: STSv1\nmode: enforce\nmx: mailserver.example.com\nmax_age: 1036800\n"; | |
} |
This file contains 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
## Update Packages | |
sudo apt -y update && sudo apt -y upgrade && sudo apt -y dist-upgrade && sudo apt -y autoremove | |
## Setup Hostname | |
hostnamectl set-hostname subdomain.domain.tld | |
## Create Host Record | |
sudo nano /etc/hosts | |
## Add this line |
This file contains 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
server | |
{ | |
# Listen | |
listen 80; | |
listen [::]:80; | |
listen 443 ssl http2; | |
listen [::]:443 ssl http2; | |
# Directory & Server Naming | |
server_name fqdn.domain.tld; |
This file contains 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
// Update Packages | |
sudo apt-get update && sudo apt-get -y upgrade && sudo apt dist-upgrade -y && sudo apt-get autoremove -y | |
// Setup Hostname | |
hostnamectl set-hostname subdomain.domain.tld | |
// Create Host Record | |
sudo nano /etc/hosts | |
// Add this line |
This file contains 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
### The original Author of this package had enabled CloudFlare JS verification. As a result, this automated script will not work. | |
### Therefore you have to download each package and install it manually. | |
## Change Directory | |
cd /tmp/ | |
## Update opkg | |
opkg update | |
## If wget not installed already |
This file contains 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
curl -fsSL https://tailscale.com/install.sh | sh | |
sudo apt-get update && sudo apt-get install tailscale -y | |
echo 'net.ipv4.ip_forward = 1' | sudo tee -a /etc/sysctl.conf | |
echo 'net.ipv6.conf.all.forwarding = 1' | sudo tee -a /etc/sysctl.conf | |
sudo sysctl -p /etc/sysctl.conf | |
## Linux Up |
This file contains 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
// Update Packages | |
sudo apt-get update && sudo apt-get -y upgrade && sudo apt dist-upgrade -y && sudo apt-get autoremove -y | |
// Setup Hostname | |
hostnamectl set-hostname subdomain.domain.tld | |
// Create Host Record | |
sudo nano /etc/hosts | |
// Add this line |
This file contains 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
## Remove Existing Host Files | |
rm /etc/ssh/ssh_host_* | |
## Regenerate Host Files | |
ssh-keygen -t rsa -b 4096 -f /etc/ssh/ssh_host_rsa_key -N "" | |
ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N "" | |
## Enable Host Files | |
sed -i 's/^HostKey \/etc\/ssh\/ssh_host_\(dsa\|ecdsa\)_key$/\#HostKey \/etc\/ssh\/ssh_host_\1_key/g' /etc/ssh/sshd_config |
This file contains 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
<VirtualHost *:80> | |
ServerAdmin [email protected] | |
ServerName sql.domain.tld | |
DocumentRoot /usr/share/phpmyadmin | |
RewriteEngine on | |
RewriteCond %{SERVER_NAME} =sql.domain.tld | |
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] | |
</VirtualHost> |