Create the user, replacing example_user with your desired username. You’ll then be asked to assign the user a password:
adduser ubuntu
Add the user to the sudo group so you’ll have administrative privileges:
| #!/usr/bin/env bash | |
| #Blog:https://www.moerats.com/ | |
| Green="\033[32m" | |
| Font="\033[0m" | |
| Red="\033[31m" | |
| #root权限 | |
| root_need(){ | |
| if [[ $EUID -ne 0 ]]; then |
| #!/bin/bash | |
| REGION=$1 | |
| readonly REGION | |
| echo -e '*****************************************************************' | |
| echo -e '***************************** START *****************************' | |
| echo -e '*****************************************************************' | |
| #定义主进程 |
| # WP ... | |
| # Hide .htaccess and wp-config.php | |
| <Files .htaccess wp-config.php> | |
| order allow,deny | |
| deny from all | |
| </Files> | |
| # Block wp-includes folder and files | |
| <IfModule mod_rewrite.c> |
Create the user, replacing example_user with your desired username. You’ll then be asked to assign the user a password:
adduser ubuntu
Add the user to the sudo group so you’ll have administrative privileges:
| # This script makes Nginx only allow IPs from Cloudflare | |
| # Create file with the following at: /etc/nginx/cloudflare-allow.conf | |
| # Then add in server {} block this line: include /etc/nginx/cloudflare-allow.conf; | |
| # https://www.cloudflare.com/ips | |
| allow 173.245.48.0/20; | |
| allow 103.21.244.0/22; | |
| allow 103.22.200.0/22; | |
| allow 103.31.4.0/22; | |
| allow 141.101.64.0/18; |
| #!/bin/sh | |
| MAC=$(m=$(openssl rand -hex 5) && echo "00":${m:0:2}:${m:2:2}:${m:4:2}:${m:6:2}:${m:8:2}) | |
| logger "Changing MAC address to $MAC" | |
| nvram set wan0_hwaddr_x="$MAC" | |
| nvram commit | |
| service "restart_wan_if 0" |
The Oracle Cloud Ubuntu images come with somewhat restrictive iptables rules by default. Docker manages the instance firewall and we have the Oracle Cloud firewall in front, so let's remove the current firewall to avoid trouble:
apt purge netfilter-persistent iptables-persistent
Download the cloudflared daemon.
wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64
mv cloudflared-linux-amd64 /usr/sbin/cloudflared
chmod -x /usr/sbin/cloudflared
cloudflared --version
Start the DNS proxy on an address and port in your network.
https://console.aws.amazon.com/iam/home#/users
For example, user is arn:aws:iam::AccountA-ID:user/Dave.
Add as JSON, under permission tab:
Install dependency
yum groupinstall 'development tools'
yum install m4 libtool gettext libcurl-devel psmisc libevent-devel intltool gtk3-devel openssl-devel
Download Transmission official release