紀錄工作上的點點滴滴

howdy 人臉辨識

2025-06-29 linux

環境 OS: Debian 12 安裝 git clone [email protected]:boltgolt/howdy.git sudo apt-get update && sudo apt-get install -y \ python3 python3-pip ... Read More

UxPlay - IPhone 螢幕投影

2025-06-29 linux

安裝 UxPlay 安裝必要套件 sudo apt install pkg-config pkgconf cmake build-essential libssl-dev libplist-dev \ libgstreamer1.0-dev ... Read More

我使用Debian的方式

2025-06-14 linux linux debain

移除 Gnome 桌面預設 sudo apt remove packagekit 移除 packagekit : 因為我想100%決定我何時更新 Read More

Linux Gdisk Error

2025-02-06 linux

今天在實驗室中擴充一顆虛擬硬碟到 150 G,原先是 50G。但是不管是重新開機都無法識別。 後來發現 GPT 分割表未更新,如下 root@moniter:~# fdisk -l /dev/sda GPT PMBR size mismatch (104857599 != 314572799) ... Read More

linux 登入使用 google auth 二階段驗證

2025-01-11 linux

環境 OS: Debian 12 安裝及部屬 安裝 安裝 libpam-google-authenticator sudo apt -y install libpam-google-authenticator 設定 ssh 登入 /etc/pam.d/sshd auth required ... Read More

Disable Gnome Auto Upate

2025-01-09 linux gnome

禁止 Gnome 自動背景更新 設定文件: /etc/PackageKit/PackageKit.conf 設定文禁止更新 #PreventNetworkAccess=false PreventNetworkAccess=true sudo systemctl daemon-reload sudo ... Read More

將腳本丟到背景執行

2024-12-30 linux

# 將腳本丟到背景執行,會輸出背景執行 PID Number nohup /usr/local/bin/example-shell.sh & # 監控結果 tail -f nohup.out # 監控背景程序還有執行 watch -n 1 "ps -p 120448 -o ... Read More

systemctl

2024-12-22 linux

變更 systemctl 默認編輯器 sudo update-alternatives --config editor 執行結果 root@example:~# sudo update-alternatives --config editor There are 3 choices for the ... Read More

nmcli 指令操作

2024-12-18 linux NetworkManager

處理前動作 檢查文件中已經有配置: /etc/network/interfaces 如果有需要註解,範例如下: # The primary network interface # allow-hotplug enp1s0 # iface enp1s0 inet dhcp 新增網卡配置 sudo ... Read More

關閉centos7防火牆firewalld改用傳統的iptables

2024-11-21 linux firewalld iptables

關閉 centos7 防火牆 firewalld 改用傳統的 iptables 這樣做的原因 因為firewalld 政策是對外嚴謹對內寬鬆,所以當需求是需要對內嚴謹時無法滿足需求 處理方式 預設開機不啟動 且 立即停止 systemctl disable --now firewalld ... Read More