紀錄工作上的點點滴滴
Redmine Api
2024-09-15 工作雜記 redmine
以下是 redmine API 筆記 在使用 API 之前記得先取得 token,token 會在 [我的帳戶] - [API 存取金鑰] 中,每個帳戶都會有一組。 取得 Token 之後就可以進行操作了 在這邊我會使用兩個參數方便接下來的操作 API_KRY=your_token ... Read More
linux 設定網路
2024-08-05 工作雜記 linux
設定網路 啟動網卡 sudo ip link set eth0 up 透過 DHCP 取得IP sudo dhclient eth0 安裝 NetworkManager Debian sudo apt install network-manager sudo systemctl start ... Read More
Debiain 桌面設定
2024-08-01 工作雜記 linux
筆電 蓋上螢幕不休眠 /etc/systemd/logind.conf HandleLidSwitch=ignore sudo systemctl restart systemd-logind sudp reboot Read More
docker overlay2
2024-07-19 工作雜記 linux docer
經驗分享 linux /var/lib/docker/overlay2 這層目錄不能亂刪 刪了 本機的 docker image 通通不見 服務會瞬間死光光 以下是誤刪的解決方式 重啟 docker sudo systemctl restart docker 清除docker資源 docker ... Read More
在 Linux 中 製作 USE 開機牒
2024-07-17 工作雜記 linux
方案 BalenaEtcher 環境 OS: Debian 12 處理步驟 curl -1sLf 'https://dl.cloudsmith.io/public/balena/etcher/setup.deb.sh' | sudo -E bash sudo apt update ... Read More
尋找作業系統帳號建立日期
2024-07-17 工作雜記 linux
weindows Write-Output "User,Birth" # 取得所有用戶名和主目錄路徑 $users = Get-WmiObject Win32_UserAccount | Where-Object { $_.LocalAccount -eq $true -and ... Read More
DB2 Audit Rc Table
2024-07-12 工作雜記 db2
db2diag -l Warning | db2diag -g "comp^=bsu security" DB2 稽核 失敗 rc 對照表 # rc Corresponding SQL30082N rc Explanation 1 -2146500508 1 Password has ... Read More
故障排除: Linux 連接 windows AD
2024-07-08 工作雜記 linux windows ad
環境 AD server: windows server 2022 Client server: Oracle Linux 9 症狀: 無法抓取 AD 新資訊 [root@client-server ~]# id testacconut id: ‘testacconut’: no such user ... Read More
Linux Iconv
2024-07-05 工作雜記 linux
Linux 轉碼工具 # 查詢檔案編碼 file -i source-file.sql # 執行轉碼 iconv -f utf-16le -t UTF-8 source-file.sql -o gole-file.sql Read More
在 Linux 中,su account 和 su - account 有以下主要差別
2024-07-04 工作雜記 linux
su account 保持當前環境:su account 切換到 account 用戶時,會保留當前用戶的環境變量和當前目錄。 不會加載 account 用戶的環境配置:這意味著 account 用戶的 .bash_profile 或 .profile 等配置文件不會被執行。 當前目錄不變: ... Read More