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
| // 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 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
| 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 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
| ### 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 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
| // 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 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
| 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 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
| ## 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 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
| # 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 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
| ## 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 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
| ## Repo | |
| curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - | |
| curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list > /etc/apt/sources.list.d/mssql-release.list | |
| ## Install Tools | |
| sudo ACCEPT_EULA=Y apt install msodbcsql17 mssql-tools autoconf libpcre3-dev unixodbc-dev -y | |
| ## Source path | |
| echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc |
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
| # Initiate Domain Transfer | |
| aws route53domains transfer-domain-to-another-aws-account --domain-name yourdomain.tld --account-id 123456789101 | |
| # Cancel Domain Transfer | |
| aws route53domains cancel-domain-transfer-to-another-aws-account --domain-name yourdomain.tld | |
| { | |
| "OperationId": "MNOP-MNOP-MNOP-MNOP-MNOP", | |
| "Password": "XYZXYZXYZXYZ" | |
| } | |
| # Accept Domain Transfer | |
| aws route53domains accept-domain-transfer-from-another-aws-account --domain-name yourdomain.tld --password "XYZXYZXYZXYZ" |