Free Oracle VM
Create server
* Choose Ubuntu
* Paste .ssh/id_rsa.pub
* Ignore the estimate cost, just click create
* ssh from raspberry pi
Install Docker
This is the same as raspberry pi, see
here
Start nginx and alist
Stat docker containers
mkdir -p docker/{service,data} && cd docker/service
cat > docker-compose.yaml <<EOF
version: '3.3'
services:
nginx:
image: 'jc21/nginx-proxy-manager:latest'
container_name: nginx
restart: unless-stopped
ports:
- '80:80'
- '81:81'
- '443:443'
volumes:
- ../data/nginx_data:/data
- ../data/letsencrypt:/etc/letsencrypt
alist:
image: 'xhofe/alist:latest'
container_name: alist
volumes:
- ../data/alist:/opt/alist/data
- /ssd/share/book:/book:ro
network_mode: 'host'
environment:
- PUID=1001
- PGID=1001
- UMASK=022
restart: unless-stopped
EOF
docker compose up -d
docker exec -it alist ./alist admin set changeme
Setup Ingress Rules
Allow traffic to port 80 81 443
Setup iptables
sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 5244 -j ACCEPT
sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 80 -j ACCEPT
sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 81 -j ACCEPT
sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 443 -j ACCEPT
sudo netfilter-persistent save
The job is running, now you can login from the browser, http://
:5244 using
username: admin
password: changeme
You can also access http://<public-ip>:81 to set up proxy.
VNC
- Set up the vncserver
sudo apt update
sudo apt install xfce4 xfce4-goodies
sudo apt install tightvncserver
vncserver
vncserver -kill :1
cat ~/.vnc/xstartup
#!/bin/bash
xrdb $HOME/.Xresources
startxfce4 &
vncserver
- Allow vnc access in iptable
sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 5901 -j ACCEPT
sudo netfilter-persistent save
- Allow vnc access in OCI
- Access from Finder: Finder -> Go -> Connecto to Server: vnc://<public-ip>:5901