Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ฮาร์ดแวร์ >> ฮาร์ดแวร์

Raspberry Pi 4: สามารถเป็น Mini Desktop จริงได้ไหม?

หัวข้อนี้ไม่ใหม่: 2014 ทดสอบ Pi ตัวแรก ทำ Media System → ผล: Typical Home Linux Effort - สนุก, Unique, แต่น่าเสียดาย ไม่ถึง Professional Polish

2020: กลับมาลอง Raspberry Pi 4 ใหม่ เป้าหมาย: ระบบ Mini Desktop ราคาถูก, สวย, ใช้งานได้จริงสำหรับ Casual Computing (Web, Mail, Movies, Streaming) ยกเว้น Heavy Rendering/Gaming

Raspberry Pi 4: สามารถเป็น Mini Desktop จริงได้ไหม?

ส่วนประกอบ Mini Desktop

  • Raspberry Pi 4 Model B (4GB): Quad-core Cortex-A72 1.5GHz 64-bit, 4GB LPDDR4, Dual-band WiFi 5, BT5.0, Gigabit Ethernet, 2x USB 2.0, 2x USB 3.0, 40-pin GPIO, 2x micro HDMI (4K 60Hz), Audio Jack - $65
  • Flirc Case (Silver): สวย, สติ๊บ - $25
  • Official 5.1V 3A USB-C Power Adapter - $12
  • 50cm HDMI Cable + micro HDMI Adapter - $18
  • 64GB Samsung EVO Plus microSDXC U3 (Fake → Refunded) → 64GB SanDisk Ultra microSDXC U1 - $22
  • VicTsing Wireless Keyboard/Mouse Combo: Full-size Keyboard Feedback ดี, Mouse Dongle ใน Battery Bay (3x AAA) ISO Layout (ใช้ US) - $28
  • BenQ GW2280 22" 1080p Monitor: เลือกมากกว่า Dell เพราะ: $12 ถูกกว่า, 2x HDMI, Stand Design Wicked (Perfect สำหรับ Pi + Flirc Case) - $104

Total: $274 (ประมาณ $250-300 ขึ้นกับที่ตั้ง) เปรียบเทียบ: Lenovo G50 2015 = $450 (8GB RAM, DVD, 1TB HDD) 64GB Flash ไม่พอ → ใช้ WD External HDD (640GB) + Network Shares

Hint: PINEBOOK Pro ~ครึ่งราคา → สนใจอนาคต แต่เรื่องอื่น

Notes: อยาก Pi 4 8GB (Sold Out), Argon ONE Case (Sold Out), จอเล็กลง (Laptop-style) แพงกว่า

Mini Desktop Ready!

ประกอบเสร็จ: สวย, Elegan ทำให้ Monitor Stand กว้างเท่า Pi Case (Design Exactly!) → วาง Pi บน Stand ไม่เห็นว่าเป็น Com Line Up Cases อื่นๆ หรือ Mount หลังจอได้ (Like Smart TV Setup)

Raspberry Pi 4: สามารถเป็น Mini Desktop จริงได้ไหม?

Raspberry Pi 4: สามารถเป็น Mini Desktop จริงได้ไหม?

Perfect Width Match - Extremely Stylish ไม่เห็นว่ามี Computer อยู่

Raspberry Pi 4: สามารถเป็น Mini Desktop จริงได้ไหม?

เหลือแค่เลือก OS!

The Hunt for the Tux (October)

ยากกว่าคิด: 64-bit SoC ทำให้ Linux Community ยังไม่พร้อม มี 2 ตัวเลือกที่ Viable (ไม่ต้อง Hack มาก)

  1. Raspberry Pi OS (Raspbian) Base Debian Buster, LXDE Desktop (ไม่ Mature/Visually Pleasing พอสำหรับ Daily Use)
  2. Ubuntu MATE: Images สำหรับ Pi 3 แต่ Pi 4 ยังไม่มี → Workaround: Ubuntu Server 20.04 → Install Desktop (MATE)

OS อื่นๆ: Technobabble เยอะ (64-bit Kernel/32-bit Userland, EEPROM Flashing, NOOBS) Pi = Tinkerer's Heaven แต่ควรมี Simple Desktop Solution ด้วย (Not Mutually Exclusive) ลองทั้ง 2 ทาง

Attempt 1: Ubuntu MATE (2-Step Hop)

Write Image to SD Card

Download → dd (หรือ Raspberry Pi Imager Tool) ระวัง of= อย่าทับข้อมูลสำคัญ

sudo dd if="image path" of=/dev/"SD card device e.g. mmcblk0" conv=sync bs=1M

Network Config

Server Image Boot = CLI Only (No UI) SSH หรือ Console + Monitor/Keyboard ต้องมี Network ใช้ Wireless Only → Config ด้วย netplan หรือ network-config auto-file

netplan Errors: YAML (Spaces not Tabs), Apply ไม่ได้ → Switch to network-config

Mount system-boot Partition → Edit network-config ใส่ WiFi Credentials:

wifis:
  wlan0:
    dhcp4: true
    optional: true
    access-points:
      "WiFi Name":
        password: "WiFi Password"

MATE Desktop Installation

Boot Server Image → IP OK → รัน desktopify Script (โดย Ubuntu MATE Project Manager)

sudo ./desktopify -de ubuntu-mate

เสร็จ → ได้ MATE Desktop

MATE Config & Tweaks

Issues หลัก:

  • Display 1824x984 ไม่ใช่ 1920x1080 → Fix: Disable Overscan ใน /boot/firmware/usercfg.txt (Pi 4 64-bit)
  • Fonts ขาวจาง (Not Pure Black) → Custom Theme "MOTE" (Pure Black Fonts) แก้ Theme คล้าย GNOME 3
  • No Compositing → Fiddle Marco Window Manager (Transparency Plank + Cupertino Layout) dconf-editor Permanent Fix
  • Half-dozen Tweaks (Window Positioning ฯลฯ) → Guide แยก
  • No Hardware-Accelerated Video (Big Issue)

Raspberry Pi 4: สามารถเป็น Mini Desktop จริงได้ไหม?

Raspberry Pi 4: สามารถเป็น Mini Desktop จริงได้ไหม?

ทีหลังได้ Desktop สวย, Presentable, Software เยอะ, Smooth (Even from SD Card) RAM Usage ต่ำ 4GB พอ (No Swap)

Raspberry Pi 4: สามารถเป็น Mini Desktop จริงได้ไหม?

แต่เล่น Video...

Video Playback

Pi ควรเล่น 1080p/4K ได้ (Pi Gen 1 ทำได้) แต่ Firefox/VLC = Choppy Firefox CPU ~300% (3 Cores) → Software Rendering (llvmpipe)

Raspberry Pi 4: สามารถเป็น Mini Desktop จริงได้ไหม?

Fix ได้แต่มันไม่ Trivial: Edit usercfg.txt เพิ่ม:

dtoverlay=vc4-fkms-v3d
max_framebuffers=2
gpu_mem=128
hdmi_enable_4kp60=1

Reboot → Config Browser/Media Player ใช้ HW Accel (Firefox, Chromium, VLC แยกกัน) → Guide แยก ~2 วันเต็ม

Raspberry Pi 4: สามารถเป็น Mini Desktop จริงได้ไหม?

Attempt 2: Raspberry Pi OS (Official)

SD Card ใหม่ Test Official Release LXDE Desktop 過亮 Network Config ง่าย First-time Guide Handy

Raspberry Pi 4: สามารถเป็น Mini Desktop จริงได้ไหม?

Fonts, Contrast, Thickness, Type - Not Best

First-run Guide: Black Borders (มีอยู่) → Fix Auto, raspi-config Enable GL Driver ฯลฉ น่าเบื่อ/Geeky

Raspberry Pi 4: สามารถเป็น Mini Desktop จริงได้ไหม?

Raspberry Pi 4: สามารถเป็น Mini Desktop จริงได้ไหม?

Raspberry Pi 4: สามารถเป็น Mini Desktop จริงได้ไหม?

Raspberry Pi 4: สามารถเป็น Mini Desktop จริงได้ไหม?

Browser = Chromium (Adblock + h.265 Ext) HD Video OK แต่ Install Firefox → Error (Package ไม่มี) มีแค่ firefox-esr (Paradox of Open Source: Choice แต่ไม่จริง)

Issues บน Official Image:

  • Browsing Fail: Time Out of Sync → sudo timedatectl set-ntp true
  • VLC HW Accel OK แต่ Full Screen ไม่ Render → Fix แยก Guide
  • Audio: raspi-config เลือก Output → ใช้ได้ → Reboot 1-2 ครั้ง Auto-fixed
  • WiFi Speed ≤30 Mbps (Devices อื่น 3-4x) Flaky: DNS Timeout, Mobile Pages แทน Desktop (Ubuntu MATE ไม่มีปัญหานี้)

→ ลอง Desktop Environments อื่น...

ลอง Desktop อื่นๆ... ล้มเหลว... และสำเร็จ!

คิดว่า Xfce=Xfce, MATE=MATE แต่บน Raspberry Pi OS/Debian: MATE ขาด Utilities ครึ่ง, ไม่มี Layouts (MATE Tweak), Themes/Icons ขาด

Raspberry Pi 4: สามารถเป็น Mini Desktop จริงได้ไหม?

Plasma: Performance ไม่ดี, Xfce: Ugly → กลับมาทweak MATE ให้สวย/Presentable → New Problems:

  • Edit lightdm.conf Manual เพื่อ Login Screen เปลี่ยน Session (Pi-Greeter Default ไม่มี Option)
  • MATE: No Network Icon (แค่ Volume) Install network-manager-gnome → Icon โผล่ แต่ไม่ List WiFi (Claim Not Ready) แม้ Connected → Conflict: WPA Supplicant (LXDE Default) vs Network Manager → Fixable
  • Cross-Contamination: Plank Autostart MATE → โผล่ใน Xfce, LXDE, Plasma ด้วย!
  • Plank ใน Pi ต่าง Ubuntu: No Right-click Preferences, Config ผ่าน CLI เท่านั้น
  • Apps ไม่ Center (dconf-editor Fix ได้แต่ Chromium ไม่ฟัง)
  • Pluma ไม่จำ Last Opened Docs (Ubuntu MATE จำได้)
  • Compton GPU WM: Tearing เยอะ → Marco (Adaptive) ดีที่สุด
  • Control Center: Raspberry Pi Config (Simplified raspi-config), "Recommended Software" ไม่ทำงาน (Offline Error แม้ Net OK) → Test LXDE ก็ Fail

Raspberry Pi 4: สามารถเป็น Mini Desktop จริงได้ไหม?

Raspberry Pi 4: สามารถเป็น Mini Desktop จริงได้ไหม?

สุดท้าย... เริ่มได้รูปแบบ

Invest อีก 1-2 วัน Polish:

  • Copy Themes/Icons จาก Ubuntu MATE (รวม Custom Theme Black Fonts) → Setup Slick เกือบเหมือนกัน
  • Tweak Firefox (HW Accel, User Agent)
  • Install Software เยอะ

MATE บน Raspberry Pi OS → Modern, Presentable!

Performance พอใช้, Video Accel OK, Audio OK, Programs มาก Downside: Manual Work มาก (Nothing Default)

Raspberry Pi 4: สามารถเป็น Mini Desktop จริงได้ไหม?

Raspberry Pi 4: สามารถเป็น Mini Desktop จริงได้ไหม?

Raspberry Pi 4: สามารถเป็น Mini Desktop จริงได้ไหม?

Raspberry Pi 4: สามารถเป็น Mini Desktop จริงได้ไหม?

Raspberry Pi 4: สามารถเป็น Mini Desktop จริงได้ไหม?

Looks the Part, Must Admit

Before/After (Left→Right):

Raspberry Pi 4: สามารถเป็น Mini Desktop จริงได้ไหม?

อื่นๆ: Performance, Heating

Pi 4 ร้อน: ~50°C (ไม่ Throttle แต่ไม่ Ideal) Pi 3 = Cool เลย ไม่รู้ Flirc, Pi, หรือ Both Inevitable: Power มาก = Hot มาก จะลอง Case ที่มี Fan (Fanless ดีกว่า) Firmware Updates ช่วยเล็กน้อย (Lukewarm แทน Cozy Hot)

Performance: WebGL Aquarium ~22 FPS (Slimbook Pro2 = 60 FPS Capped) → ยังมีหัวข้อปรับ HW Accel (Firmware, Kernel, GL Support ใหม่)

Raspberry Pi 4: สามารถเป็น Mini Desktop จริงได้ไหม?

สรุป

ใช้ 3-4 วัน Fiddle → ได้ 100% Working Desktop ที่นั่ง Chill ได้ แต่วันที่ลงทุนเยอะ → ไม่ Smooth/Plug-n-Play

คำตอบ: YES Mini Desktop ดีได้ ถ้า Run MATE + มีความอดทน Fix ทุกอย่าง

Pi = Nerd Technology (Hardcore Nerddom, Tweak Unto Oblivion) Fine, No Surprises แต่ Binary Choice: Zero หรือ Everything ไม่มี Middle Ground (Simple Modern PC โดยไม่ Hack) → Perennial Symptom ของ Linux-at-home

Pi 4 มี Potential มาก เป็น Mini Desktop ได้จริง พอใจ Setup: Looks, Performance, Capabilities Solid/Jolly Good (ราคา Device) แต่ยังไม่ Plug-n-Play → จะ Fiddle/Tweak ต่อ (Nerd Duty) จะ Bombard Guides/Articles ความก้าวหน้า Hopefully วันนึง: "Perfect Mini Desktop, Grab It, Bob's Your Uncle" Close, Almost There Stay Tuned!

Cheers.