[RPi] The Matrix Screensaver สำหรับ Raspberry Pi

Sathittham (Phoo) Sangthong
SS Blog
Published in
2 min readJul 17, 2016

หนังโปรดของผมเรื่องหนึ่งก็คือ The Matrix ครับ และสิ่งหนึ่งที่สุดเท่สำหรับหนังเรื่องนี้ก็คือ หน้าจอสีดำที่มีตัวอักษรวิ่งๆ มันก็น่าจะดีถ้าเราเอา Screensaver แบบ The Matrix จะเอามาใส่ Raspberry pi ลอง Google ดูก็ไปเจอ ‘CMatrix’ ที่เขียนโดยคุณ Chris Allegretta ติดตั้งง่ายมากครับ แค่ apt-get แล้วรัน …ว่าแล้วก็ไปลองดูกันครับ

มาลองทำกันเลย !

Step 1 : ติดตั้ง cmatrix

  • เปิด Terminal แล้วพิมพ์คำสั่ง
sudo apt-get install cmatrix

Step 2 : รัน cmatrix

  • พิมพ์คำสั่ง
cmatrix
  • ได้มาแล้วครับ หน้าจอแบบ Matrix
  • หากจะออกต้องกด Ctrl+C นะครับ

Step 3 : การตั้งค่าและปุ่มต่างๆ

  • Options ดังต่อไปนี้ ให้พิมพ์คำสั่ง cmatrix แล้ว ตามด้วยคำสั่งเหล่านี้ครับ เช่น -a
cmatrix -a
  • Options:
    -a: Asynchronous scroll, more like the movie/original screensaver
    -b: Partial bold text mode
    -B: All bold text mode
    -f: Force the linux $TERM type to on
    -l: Linux support for linux console matrix.fnt font
    -n: No bold text mode
    -o: Use “old-style” scrolling — less like the movie, more like the Win/Mac screensaver.
    -s: “Screen saver” mode. Any key aborts (default is “eye candy” mode, must abort with control C)
    -x: X window mode, use if your xterm is using mtx.pcf
    -u [update]: Update delay (0–9, default 4).
    -C [color]: Use color for matrix (default green).
  • ปุ่มเหล่านี้ สามารถกดได้ ขณะที่ Screen Saver ทำงานอยู่ครับ (แต่ใช้กับโหมด -s ไม่ได้):
    a: Toggle asynch mode
    b: Enable partial bold text
    B: Enable all bold text
    n: Disable bold text
    0–9: Change update delay
    ! @ # $ % ^ & ): Change the color of the matrix to the corresponding color: ! — red, @ — green, # — yellow, $ — blue, % — magenta, ^ — cyan, & — white, ) — black.

Ref.

--

--

Sathittham (Phoo) Sangthong
SS Blog

Hi! It's me Phoo! I’m a Software Developer 👨‍💻 , a Startup Entrepreneur 📱 and a Runner 🏃 . Currently, I’m a Co-Founder and CTO of a Startup name “Urbanice”.