Skip to content

Latest commit

 

History

History
129 lines (94 loc) · 3.1 KB

Extention-IN.md

File metadata and controls

129 lines (94 loc) · 3.1 KB

Pengaturan Ekstensi VPS

Persyaratan :

Minimum :

  • 1 CPU+ / 2 GB RAM / 4 MBit/sec

Direkomendasikan :

  • 2+ CPU / 4+ GB RAM / 8+ MBit/sec

Jalankan perintah berikut untuk memperbarui dan meningkatkan paket sistem:

sudo apt update -y && sudo apt upgrade -y

2. Instal paket yang diperlukan :

sudo apt install htop ca-certificates zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev tmux iptables curl nvme-cli git wget make jq libleveldb-dev build-essential pkg-config ncdu tar clang bsdmainutils lsb-release libssl-dev libreadline-dev libffi-dev jq gcc screen unzip lz4 -y

3. Instal Docker :

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io -y
docker version

4. Instal Docker Compose :

VER=$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep tag_name | cut -d '"' -f 4)
curl -L "https://github.com/docker/compose/releases/download/$VER/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
docker-compose --version

4. Izin Pengguna Docker

sudo groupadd docker
sudo usermod -aG docker $USER

Mari pelajari zona waktu ;

realpath --relative-to /usr/share/zoneinfo /etc/localtime
  • Simpan Zona Waktu

Instal Chromium ;

mkdir chromium
cd chromium

Membuat File Kompilasi Docker ;

nano docker-compose.yaml

Tempat yang akan kami ubah ;

  • User
  • Password
  • TZ
---
services:
  chromium:
    image: lscr.io/linuxserver/chromium:latest
    container_name: chromium
    security_opt:
      - seccomp:unconfined #optional
    environment:
      - CUSTOM_USER=username
      - PASSWORD=password
      - PUID=1000
      - PGID=1000
      - TZ=Europe/London
      - CHROME_CLI=https://github.com/FurkanL0 #optional
    volumes:
      - /root/chromium/config:/config
    ports:
      - 3010:3000   #Change 3010 to your favorite port if needed
      - 3011:3001   #Change 3011 to your favorite port if needed
    shm_size: "1gb"
    restart: unless-stopped
  • Contoh ;

resim

CTRL X CTRL Y Enter Tersimpan.

Mari Mulai Server Chromium ;

cd $HOME && cd chromium
docker compose up -d
  • Akses Server Kami ;
http://server-ip:3010/
https://server-ip:3011/
  • Masukkan Nama Pengguna - Kata Sandi yang telah Anda tetapkan.

resim

  • Setelah itu, Anda bisa mengunduh plugin dan masuk melalui chromium seolah-olah Anda terhubung ke server Windows.

resim