ถ้าใครใช้งาน Trust Zero ของ Cloudflare แล้ว จำเป็นต้องติดตั้ง Cloudflare Warp บนเครื่อง Ubuntu 24.04 จะมีวิธีติดตั้งดังนี้

1.Add Cloudflare's GPG key:

ไปดาวน์โหลดคีย์ GPG ของ Cloudflare และ บันทึกไปยังตำแหน่งที่กำหนด ทำให้ APT สามารถตรวจสอบลายเซ็นของแพ็กเกจได้

curl -fsSL https://pkg.cloudflareclient.com/pubkey.gpg | sudo gpg --yes --dearmor --output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg

2.Check your Architecture

ตรวจสอบว่าเราใช้สถาปัตยกรรมของระบบของอะไรอยู่ โดยใช้คำสั่งนี้

dpkg --print-architecture

ของผมใช้เป็น amd64

จริงๆ ก่อนหน้านี้ผมไม่ได้ระบุ architecture แล้วมันเตือนข้อความนี้ขึ้นมา เลยต้องตรวจสอบและระบุ architecture arch=amd64 ลงไปใน step ถัดไป

N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://pkg.cloudflareclient.com noble InRelease' doesn't support architecture 'i386'

E: The repository 'https://ppa.launchpadcontent.net/appimagelauncher-team/stable/ubuntu noble Release' does not have a Release file.

N: Updating from such a repository can't be done securely, and is therefore disabled by default.

N: See apt-secure(8) manpage for repository creation and user configuration details.

Error install

3.Add the Cloudflare WARP repository

เพิ่มที่เก็บแพ็คเกจของ Cloudflare ลงในแหล่ง APT ในระบบของเรา ทำให้แพ็คเกจ cloudflare-warp พร้อมใช้งานสำหรับการติดตั้ง

echo "deb [arch=amd64 signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ noble main" | sudo tee /etc/apt/sources.list.d/cloudflare-client.list

4.Update package lists and install WARP

อัปเดตรายการแพ็คเกจ และ จากนั้นติดตั้งแพ็คเกจ cloudflare-warp

sudo apt-get update && sudo apt-get install cloudflare-warp

เท่านี้เราก็สามารถใช้งาน Cloudflare WARP ได้แล้ว