Ubuntu 24.04 Install Docker & Docker Compose

I’m running an Ubuntu 24.04 LTS (Noble) server on an AWS t3.large instance, and I need Docker to manage containers for my applications. In this guide, I’ll walk through the exact steps to install Docker and Docker Compose on Ubuntu 24.04, configure it to start on boot, and allow it to run without sudo.

Update System

Before installing, always update your package lists:

1
2
3
sudo apt update
sudo apt upgrade -y
sudo apt full-upgrade -y

Add Docker Repository and Prerequisites

Read More

Ubuntu 22.04 Install Docker & Docker Compose

Install Docker & Docker Compose on Ubuntu 22.04

Update System

Open the terminal and run:

1
2
3
sudo apt update
sudo apt upgrade
sudo apt full-upgrade

Add Docker Repository and Prerequisites

  1. Install required packages and HTTPS support:

    1
    sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg lsb-release
  2. Add Docker’s official GPG key:

    1
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
  3. Add Docker APT repository:

    1
    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

Read More

聲音的魔法師!任何人都能用的 AI 語音複製工具 (Part 1. VoxCPM 介紹與實戰)

前言

你是否曾經想為你的影片或專案配音,卻發現市面上的 TTS (文字轉語音) 工具要嘛聲音生硬得像機器人,要嘛就是要價不菲?想找專業配音員,預算又是一大考驗。這些煩惱,可能即將成為過去式。

今天,我們要來介紹一個強大的開源 AI 語音模型:VoxCPM。它就像一個聲音的魔法師,不僅能生成極富感情的語音,甚至還能複製幾乎任何人的聲音!最棒的是,它是開源的,代表著我們每個人都能親手體驗這個黑科技。

VoxCPM 展示網站,往下看如何使用

Read More

🔥 M4 Crushes M2: Apple Silicon VLM Benchmark Shows Up to 5× Speed Boost!

🚀 Image Captioning and Visual Understanding with VLM

Ever wondered how fast cutting-edge vision-language models can run on Apple Silicon? This script puts Moondream2 to the test with a wide range of visual understanding tasks:

  • 📝 Image Captioning — short, detailed, streamed, and non-streamed
  • Visual Queries — ask natural language questions about what’s inside the image
  • 🎯 Object Detection — find all instances of a given object
  • 📍 Pointing — locate objects in the image by name

It also benchmarks runtime performance of these tasks to compare different Apple Silicon chips (M2 vs M4) using the Metal Performance Shaders (MPS) backend.

Read More

Ed H. Chi: The Future of Personalized Universal Assistant

The Dr. Chi start with the histroy of Sequence to sequence model. He have mention the early researchers used RNNs. But what does that mean? It means information is passed step by step, with each step depending on the previous one.

But then came the Transformer model Vaswani et al., 2017. Instead of relying on recursive steps, Transformers carry information forward using matrix multiplications. That changes the computation from linear time to quadratic time (O(n²)). heavier, yes, but much better suited for GPUs.

Read More

Fixing iTerm2 Gray Overlay on Inactive Panes in macOS(解決 macOS iTerm2 非活動視窗灰色蒙層問題)

修復 macOS iTerm2 非活動(失焦)時出現灰色蒙層的問題
如果你的 iTerm2 在失去焦點(分割視窗或背景視窗)時會出現灰色蒙層,可以透過調整或關閉變暗效果來解決。

preview

操作步驟:

  1. 開啟 iTerm2 設定(**Ctrl + ,**)。

  2. 進入 Appearance → Dimming

  3. 你可以選擇:

    • 降低 Dimming amount(變暗程度),或
    • 取消勾選 Dim inactive split panes(和/或 Dim background windows)。

這樣就能移除或減弱 iTerm2 在失焦時的灰色蒙層。
setting

Fixing iTerm2 Gray Overlay on Inactive Panes in macOS

Fixing the Gray Overlay Issue in macOS iTerm2 When Inactive (Defocused)
If your iTerm2 shows a gray overlay when losing focus (split panes or background windows), you can fix it by adjusting or disabling the dimming effect.

preview

Steps:

  1. Open iTerm2 Settings (Ctrl + ,).

  2. Go to Appearance → Dimming.

  3. You can either:

    • Decrease the Dimming amount, or
    • Uncheck Dim inactive split panes (and/or Dim background windows).

This will remove or reduce the gray overlay when iTerm2 is inactive.

setting

(下) 擁有超能力?!大型語言模型輔助學習,從無到有學會使用 RAG (Part 2. Anything LLM 基礎)

前言

在上一篇文章中,我們學會了如何在自己的電腦上使用 TAIDE。這次,我們將透過 Anything LLM,簡單地把你的所有資料當作燃料,啟動 AI 的力量。

本次教學建立在上一篇的基礎之上,如果你還沒跟上,可以參考 AI 焦慮?怕被 AI 淘汰?手把手教你在筆電上使用 TAIDE!(Part 1. LM-Studio)

TAIDE 啟動

相關工具介紹

在開始教學之前,讓我們先了解一下會用到的工具:

Read More

(上) AI 焦慮?怕被 AI 淘汰?手把手教你在筆電上使用 TAIDE!(Part 1. LM-Studio)

前言

近年來,人工智慧(AI)的快速發展引起了廣泛的關注和討論。許多人對 AI 的崛起感到焦慮,擔心自己的工作可能被 AI 取代,進而影響生計。然而,與其恐懼 AI,不如主動學習並運用 AI 工具來提升自己的工作效率和競爭力。
本文將分為上下兩篇,手把手教你如何在自己的筆記型電腦上使用台灣在地化的語言模型 TAIDE。上篇將介紹如何透過 LM Studio 應用程式在本地端運行 TAIDE 模型;下篇則會進階說明如何利用 AnythingLLM 平台更靈活地使用 TAIDE。
讓我們一起擁抱 AI 浪潮,化危機為轉機,開啟全新的工作與學習體驗吧!

介紹

關於 TAIDE

根據 TAIDE 官方 Huggingface 介紹 「TAIDE計畫 致力於開發符合台灣語言和文化特性的生成式人工智慧對話引擎模型,同時建構可信任的人工智慧環境。結合產學研能量,推動可信任生成式人工智慧的發展,提升台灣在國際競爭中的地位,促進產業發展,避免對外國技術的依賴。」

簡單扼要地說,TAIDE 是一個台灣在地化的語言模型,雖然我習慣使用外語學習,但是使用中文學習起來還是更輕鬆一些。

面對這波的 AI 浪潮,我想藉由這次 TAIDE 模型的釋出,撰寫一篇手把手的教學文章,希望可以幫助大家跟上 AI 的腳步。讓我們一起來學習如何在筆電上使用 TAIDE 吧!

前情提要

Read More