<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://www.ichiayi.com/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>Jonathan&#039;s Wiki 筆記 - tech</title>
        <description></description>
        <link>https://www.ichiayi.com/</link>
        <lastBuildDate>Fri, 05 Jun 2026 19:21:45 +0000</lastBuildDate>
        <generator>FeedCreator 1.8</generator>
        <image>
            <url>https://www.ichiayi.com/_media/wiki/dokuwiki.svg</url>
            <title>Jonathan&#039;s Wiki 筆記</title>
            <link>https://www.ichiayi.com/</link>
        </image>
        <item>
            <title>Linux 上 3gp 轉 mp4</title>
            <link>https://www.ichiayi.com/tech/3gp2mp4</link>
            <description>Linux 上 3gp 轉 mp4

只要有安裝 ffmpeg 就可以轉.. 以下 test.3gp 是透過 HTC Incredible S 錄下的 3gp 檔案, 預計轉成 mp4 格式, 影像解析度不變 (800*480).


ffmpeg -i test.3gp -r 25 -b 3200k -vcodec mpeg4 -ab 128k -ac 2 -ar 44100 -acodec libfaac &quot;test.mp4&quot;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 02 Sep 2011 09:32:30 +0000</pubDate>
        </item>
        <item>
            <title>CentOS 底下解決 unzip 出來的中文檔名問題</title>
            <link>https://www.ichiayi.com/tech/7zip_centos</link>
            <description>CentOS 底下解決 unzip 出來的中文檔名問題

最近大量使用 zip 壓縮檔案後, 上傳到 CentOS 主機內, 但是發現使用 unzip 來解壓縮後, 中文檔名會變成無法 convert 回來的亂碼. 找了一些網路上的文章, 發現是 unzip 在解壓縮時會轉錯,</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 13 Feb 2009 11:02:07 +0000</pubDate>
        </item>
        <item>
            <title>7-Zip 自解壓縮 script 說明</title>
            <link>https://www.ichiayi.com/tech/7zip_sfx</link>
            <description>7-Zip 自解壓縮 script 說明

這部分目前在 WinRAR 很容易達成, 其實 7-Zip 這套開源碼自由軟體也具有這樣的功能, 只是需要額外透過命令列模式達成.

安裝相關程式檔案

	*  至 7-Zip 官網下載 7zxxx.exe 以及 7zxxx_extra.7z Exp.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 16 Jan 2009 03:38:46 +0000</pubDate>
        </item>
        <item>
            <title>20200715 銳角雲 AAC mini PC 安裝 PVE 紀錄</title>
            <link>https://www.ichiayi.com/tech/aac-pve</link>
            <description>20200715 銳角雲 AAC mini PC 安裝 PVE 紀錄

	*  因為 PVE 環境還少一台就可以湊成穩定的 Cluster Quorum, 所以一直再找一台便宜的 mini PC, 剛好看到 OSSLab 有這二手 AAC NT$2000 的 mini PC  

	*  拿到後直接使用 PVE6.2 ISO USB 進行 Boot 安裝, 結果出現無法正確寫入 /dev/sda (內建 64GB EMMC)</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 12 Jan 2025 14:48:08 +0000</pubDate>
        </item>
        <item>
            <title>abc notation 轉出五線譜與 midi 系統安裝</title>
            <link>https://www.ichiayi.com/tech/abc</link>
            <description>abc notation 轉出五線譜與 midi 系統安裝

不知道這是什麼東西, 請先看這裡 &lt;http://www.walshaw.plus.com/abc/&gt;

- 預先安裝程式

- ImageMagick

	*  Centos 有包含在內, 如果沒安裝, 可透過 yum install ImageMagick
	*  主要用到 /usr/bin/convert

- Ghostscript&#039;s ps2pdf</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 20 May 2018 07:04:58 +0000</pubDate>
        </item>
        <item>
            <title>AI 修照片工具</title>
            <link>https://www.ichiayi.com/tech/ai-photos</link>
            <description>AI 修照片工具

	*  執行環境 : 
		*  VM : 8vCPU / 2GRAM / 32GSSD / No GPU
		*  OS : Ubuntu 20.04.5
		*  已安裝套件版本
			*  git version 2.25.1
			*  Python 3.8.10 



CodeFormer

	*  網址 - &lt;https://github.com/sczhou/CodeFormer&gt;
	*  安裝 Pytorch &gt;= 1.7.1 , Ref - &lt;https://varhowto.com/install-pytorch-ubuntu-20-04/&gt; 
	*</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 14 Jan 2023 13:05:40 +0000</pubDate>
        </item>
        <item>
            <title>使用 BMad-Method 進行軟體專案規劃</title>
            <link>https://www.ichiayi.com/tech/ai-swe-bmad_method</link>
            <description>使用 BMad-Method 進行軟體專案規劃

安裝到 Gemini 方式

	*  &lt;https://gemini.google.com/&gt;
	*  探索 Gem -&gt; 新增 Gem -&gt; Exp.
		*  名稱 : BMad-Method
		*  使用說明 : Your critical operating instructions are attached, do not break character as directed
		*  相關資訊 : 上傳</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 04 Aug 2025 06:18:49 +0000</pubDate>
        </item>
        <item>
            <title>安裝 AirSonic 音樂串流服務</title>
            <link>https://www.ichiayi.com/tech/airsonic</link>
            <description>安裝 AirSonic 音樂串流服務

	*  安裝環境 :
		*  VM : 2vCore / 4GRAM / 32GSSD
		*  OS : Alpine 3 參考 - 在 Alpine Linux 3 底下安裝 docker + docker-compose


安裝程序

	*  建立相關資料目錄 
	*  將 NAS 內的 mp3 目錄掛上 /airsonic/music 
	*  驗證 /airsonic/music 掛載 NAS 的路徑, Exp.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 10 Mar 2023 14:21:43 +0000</pubDate>
        </item>
        <item>
            <title>Alpine Linux 操作整理</title>
            <link>https://www.ichiayi.com/tech/alpine</link>
            <description>Alpine Linux 操作整理

設定時區

	*  參考 - &lt;https://wiki.alpinelinux.org/wiki/Setting_the_timezone&gt;
	*  Exp. 設定為台北時間 
	*  實際操作過程++

更改 IP

	*  Exp. 設定 IP 為 192.168.11.60 

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address 192.168.11.60
        netmask 255.255.255.0
        gateway 192.168.11.254</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 14 Dec 2025 14:41:45 +0000</pubDate>
        </item>
        <item>
            <title>在 Alpine Linux 3 底下安裝 Bind 當 DNS</title>
            <link>https://www.ichiayi.com/tech/alpine_bind</link>
            <description>在 Alpine Linux 3 底下安裝 Bind 當 DNS

	*  採用 PVE 內提供的 alpine-3.14 (2.5MB) 建立 CT
	*  預計安裝與配置:
		*  CPU:1vcore / RAM:512MB / Root Disk:8GB
		*  啟動主機的 IP 網段 10.20.0.0/24
		*  允許本機與 10.0.0.0/8 來源詢問任何 Domain Name</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 30 Jan 2022 08:50:20 +0000</pubDate>
        </item>
        <item>
            <title>Alpine 設定網路同步系統時間(chronyc)</title>
            <link>https://www.ichiayi.com/tech/alpine_chronyc</link>
            <description>Alpine 設定網路同步系統時間(chronyc)

	*  因為 安裝 Joplin Server(Docker) 執行一段時間系統時間就會差異超過 2 秒, 導致 joplin server 無法正常提供 Client 同步服務
	*  找了一下網路同步時間方案, chronyc 比 ntp 更輕量, 也符合這情境需求</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 17 Nov 2024 00:01:26 +0000</pubDate>
        </item>
        <item>
            <title>Alpine 設定 CIFS(SAMBA) 方式</title>
            <link>https://www.ichiayi.com/tech/alpine_cifs</link>
            <description>Alpine 設定 CIFS(SAMBA) 方式

	*  假設將 / /192.168.11.245/Photos 以 cifs 方式掛上 /nas_Photos

安裝與設定

	*  安裝相關套件
	*  設定登入 / /192.168.11.245/Photos 帳號密碼檔 -&gt; /root/.cifscreds 
	*  建立掛載目錄與驗證</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 07 Apr 2024 15:17:14 +0000</pubDate>
        </item>
        <item>
            <title>在 Alpine Linux 3 底下安裝 docker + docker-compose</title>
            <link>https://www.ichiayi.com/tech/alpine_docker</link>
            <description>在 Alpine Linux 3 底下安裝 docker + docker-compose

	*  採用 alpine-standard-3.16.2-x86_64.iso 在 PVE 內建立 VM
	*  預計安裝與配置:
		*  CPU:2vcore / RAM:4GB / Disk:32GB


Alpine 安裝後首次設定

	*  使用 root 直接登入(不須密碼)後執行 setup-alpine</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 11 May 2024 15:36:08 +0000</pubDate>
        </item>
        <item>
            <title>Alpine 設定日誌至遠端 Log Server</title>
            <link>https://www.ichiayi.com/tech/alpine_log</link>
            <description>Alpine 設定日誌至遠端 Log Server

本篇說明如何在 Alpine 系統上配置日誌轉發至遠端 Log Server，範例中使用的 Log Server 為 10.20.2.30。

環境需求

	*  Alpine 系統（本文以 Alpine 3.21 為例）
	*  Log Server IP：10.20.2.30（需確保已啟用 Syslog 服務並開放 UDP 514 端口）</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 09 May 2025 10:41:12 +0000</pubDate>
        </item>
        <item>
            <title>Alpine 寄出信件設定</title>
            <link>https://www.ichiayi.com/tech/alpine_mail</link>
            <description>Alpine 寄出信件設定

安裝設定

	*  安裝套件 
	*  設定 smtp server -&gt; /etc/msmtprc 

# Set default values for all following accounts.
defaults
auth           on
tls            on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
syslog         on

# Gmail
account        gmail
host           smtp.gmail.com
port           587
from           &lt;your email&gt;
user           &lt;your gmail account&gt;
password       &lt;your password&gt;

# Set a default account
account default : gmail
aliases        /etc/aliases…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 07 Apr 2024 16:24:23 +0000</pubDate>
        </item>
        <item>
            <title>Alpine 設定 NFS Client 方式</title>
            <link>https://www.ichiayi.com/tech/alpine_nfs</link>
            <description>Alpine 設定 NFS Client 方式

	*  設定環境 Alpine Linux 3.18
	*  Exp. 要掛載 10.20.2.253 內 NFS Server 的 /mnt/datastore/zfs-backup/docs 分享目錄到本機的 /data 目錄

設定程序

	*  安裝相關套件 
	*  測試掛載 
		*  看結果訊息</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 04 Feb 2024 14:56:09 +0000</pubDate>
        </item>
        <item>
            <title>Alpine 安裝 Nginx 當 Web Proxy</title>
            <link>https://www.ichiayi.com/tech/alpine_nginx</link>
            <description>Alpine 安裝 Nginx 當 Web Proxy


建議改用 Nginx Proxy Manager 來替代




	*  安裝環境 : 
		*  使用 PVE 7 的 CT Template - alpine-3.15-default_20211202_amd64.tar.xz


安裝程序

	*  先更新預設套件 
	*  安裝與設定 nginx 

:
http {      
:
        client_max_body_size 0m;  
:
        #tcp_nopush on;    
:
        gzip on;    
:
}</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 28 Jun 2023 05:56:38 +0000</pubDate>
        </item>
        <item>
            <title>安裝 Ansible UI - SemaphoreUI (Docker)</title>
            <link>https://www.ichiayi.com/tech/alpine_semaphore</link>
            <description>安裝 Ansible UI - SemaphoreUI (Docker)

	*  安裝環境 : 參考 - 在 Alpine Linux 3 底下安裝 docker + docker-compose

安裝程序

	*  建立 docker-compose.yml 

services:
  postgres:
    restart: unless-stopped
    image: postgres:14
    hostname: postgres
    volumes: 
      - semaphore-postgres:/var/lib/postgresql/data
    environment:
      POSTGRES_USER: semaphore
      POSTGRES_PASSWORD: semaphore
      POSTGRES_DB: semaphore
  semaphore:
    restart: unless-stopped
    ports:
      - 3000:3000
    image: semaphoreu…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 25 Nov 2025 08:00:11 +0000</pubDate>
        </item>
        <item>
            <title>在 Alpine Linux 3 底下安裝 Squid 當 Proxy</title>
            <link>https://www.ichiayi.com/tech/alpine_squid</link>
            <description>在 Alpine Linux 3 底下安裝 Squid 當 Proxy

	*  採用 PVE 內提供的 alpine-3.14 (2.5MB) 建立 CT
	*  預計安裝與配置:
		*  CPU:1vcore / RAM:512MB / Root Disk:8GB
		*  啟動主機的 IP 網段 10.20.0.0/24 與 192.168.100.0/24
		*  接受 SSL Port : 443 31443 32443</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 08 Dec 2021 03:50:26 +0000</pubDate>
        </item>
        <item>
            <title>[draft]在 Alpine Linux 3 底下安裝 Subversion(SVN) Server + submin</title>
            <link>https://www.ichiayi.com/tech/alpine_subversion</link>
            <description>[draft]在 Alpine Linux 3 底下安裝 Subversion(SVN) Server + submin

	*  採用 PVE 內提供的 alpine-3.15 (3.4MB) 建立 CT
	*  預計安裝與配置:
		*  CPU:1vcore / RAM:512MB / Root Disk:28GB
		*  啟動主機的 IP 網段 192.168.11.0/24
		*</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 10 Jan 2022 11:38:15 +0000</pubDate>
        </item>
        <item>
            <title>[Draft]Android APP 的開發測試環境整理</title>
            <link>https://www.ichiayi.com/tech/android_dev</link>
            <description>[Draft]Android APP 的開發測試環境整理

因為想要 root 我舊的 HTC M8 手機, 才有機會來了解這部分, 隨手整理一下.

安裝開發工具

	*  連結手機的 Drive - HTC Mobile Driver v4.17.0.001.exe
	*  ADB / FastBiit 工具組 - M8 ROOT.zip</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 06 Sep 2021 02:24:58 +0000</pubDate>
        </item>
        <item>
            <title>運用 Ansible 進行多主機管理</title>
            <link>https://www.ichiayi.com/tech/ansible</link>
            <description>運用 Ansible 進行多主機管理

	*  管理端環境 :
		*  CT - Ubuntu 20.04 LTS (2 vCore/ 2G RAM / 20G SSD)
		*  預計使用 git 管理 ansible 的定義檔


安裝程序

	*  確認版本
	*  設定自動寫入第一次 ssh 登入主機的 host key</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 29 Dec 2023 09:40:58 +0000</pubDate>
        </item>
        <item>
            <title>評估防堵垃圾郵件方案</title>
            <link>https://www.ichiayi.com/tech/anti-spam</link>
            <description>評估防堵垃圾郵件方案

&lt;html&gt;

&lt;script type=“text/javascript”&gt;
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: &#039;zh-tw&#039;, layout: google.translate.TranslateElement.InlineLayout.SIMPLE, multilanguagePage: true}, &#039;google_translate_element&#039;);</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 06 Mar 2017 08:32:34 +0000</pubDate>
        </item>
        <item>
            <title>Apache WebServer 設定技巧</title>
            <link>https://www.ichiayi.com/tech/apache</link>
            <description>Apache WebServer 設定技巧

設定啟用 HSTS

	*  點這裡了解 HSTS(HTTP Strict Transport Security)
	*  將 httpd.conf 內的 headers_module 啟用

:
LoadModule headers_module modules/mod_headers.so
:

	*  VirtualHost 內增加 header 設定

:
&lt;VirtualHost www.example.com:80&gt;
Header always set Strict-Transport-Security &quot;max-age=63072000; includeSubdomains; preload&quot;
&lt;/VirtualHost&gt;

&lt;VirtualHost www.example.com:443&gt;
Header always set Strict-Transport-Security &quot;max-age=63072000; includeSubdomains; preload&quot;
&lt;/VirtualHost&gt;
:…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 17 Oct 2025 02:59:59 +0000</pubDate>
        </item>
        <item>
            <title>Apache 設定雙向 SSL 認證方式</title>
            <link>https://www.ichiayi.com/tech/apache_ssl</link>
            <description>Apache 設定雙向 SSL 認證方式

	*  需要自己產生免費 Server 憑證，請參考 OpenSSL 簽發憑證方式。
	*  將產生的 ServerCA.crt, ServerCA.key, RootCA.crt 放入 /etc/pki/tls/certs/ 內 

cp ServerCA.crt /etc/pki/tls/certs/
cp ServerCA.key /etc/pki/tls/certs/
cp RootCA.crt /etc/pki/tls/certs/
cd /etc/pki/tls/certs/
chmod og-rwx ServerCA.crt
chmod og-rwx ServerCA.key
chmod og-rwx RootCA.crt</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 02 Nov 2009 06:03:46 +0000</pubDate>
        </item>
        <item>
            <title>Apache 關閉 SSL v2 的方式</title>
            <link>https://www.ichiayi.com/tech/apache_sslv2</link>
            <description>Apache 關閉 SSL v2 的方式

	*  OS : CentOS 4 (CentOS 5 預設就是關閉, 可以不用處理)
	*  httpd-2.0.52-41.ent.6.centos4
	*  mod_ssl-2.0.52-41.ent.6.centos4

設定關閉 SSL v2

重點只是在設定檔內增加 SSLProtocol all -SSLv2


vi /etc/httpd/conf.d/ssl.conf</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 08 Feb 2010 02:34:45 +0000</pubDate>
        </item>
        <item>
            <title>安裝 APCUPSD 監看 APC 的 UPS 供電狀況系統</title>
            <link>https://www.ichiayi.com/tech/apcupsd</link>
            <description>安裝 APCUPSD 監看 APC 的 UPS 供電狀況系統

	*  網址 : &lt;http://www.apcupsd.org/&gt;
	*  打算要完成的架構如下 :



下載與安裝


yum install apcupsd





su - root
wget http://nchc.dl.sourceforge.net/sourceforge/apcupsd/apcupsd-3.14.14.tar.gz
tar -zxvf apcupsd-3.14.14.tar.gz
cd apcupsd-3.14.14
./configure --enable-cgi
make
make install</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 17 Oct 2025 03:01:28 +0000</pubDate>
        </item>
        <item>
            <title>Linux 網路不通先檢查 ARP</title>
            <link>https://www.ichiayi.com/tech/arp</link>
            <description>Linux 網路不通先檢查 ARP

通常是將實體網路更換 switch PORT 或是更換 IP 後，發現網路不通的狀況..

	*  可以先用 arping &lt;gateway ip&gt; 讓 switch 更新 arp table


[root@pd920 ~]# arping 192.168.11.254
ARPING 192.168.11.254 from 220.130.131.239 eth0
Unicast reply from 192.168.11.254 [00:90:1A:82:83:FE]  41.405ms
Unicast reply from 192.168.11.254 [00:90:1A:82:83:FE]  41.848ms
Unicast reply from 192.168.11.254 [00:90:1A:82:83:FE]  41.642ms
Unicast reply from 192.168.11.254 [00:90:1A:82:83:FE]  38.575ms
Unicast reply from 192.168.11.254 [00:90…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 12 Apr 2012 09:56:23 +0000</pubDate>
        </item>
        <item>
            <title>安裝 AutoGPT 紀錄</title>
            <link>https://www.ichiayi.com/tech/autogpt</link>
            <description>安裝 AutoGPT 紀錄

在 Ubuntu 22.04

	*  安裝環境 : PVE 內啟動一個 CT - ubuntu22.04 範本建立

安裝過程

	*  更新與安裝 Ubuntu 套件
	*  查看 python 版本是否高於 3.8 
	*  下載與安裝 AutoGPT 
	*  至 OpenAI 取的</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 16 Apr 2023 05:27:22 +0000</pubDate>
        </item>
        <item>
            <title>安裝與設定 AutoMySQLBackup</title>
            <link>https://www.ichiayi.com/tech/automysqlbackup</link>
            <description>安裝與設定 AutoMySQLBackup

	*  安裝環境 : CentOS 6.9 x86_64
	*  安裝版本 : automysqlbackup-v3.0_rc6

下載與安裝

	*  

su - root
mkdir -p source/automysqlbackup
cd source/automysqlbackup
wget https://nchc.dl.sourceforge.net/project/automysqlbackup/AutoMySQLBackup/AutoMySQLBackup%20VER%203.0/automysqlbackup-v3.0_rc6.tar.gz
tar -zxvf automysqlbackup-v3.0_rc6.tar.gz
./install.sh</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 20 Apr 2018 01:05:35 +0000</pubDate>
        </item>
        <item>
            <title>CentOS 安裝設定 AWStats 分析 http log</title>
            <link>https://www.ichiayi.com/tech/awstats</link>
            <description>CentOS 安裝設定 AWStats 分析 http log

	*  安裝環境 : CentOS 5.8 i386

安裝程序

	*  透過 rpmforge Repository 來安裝


yum install awstats



(1/3): perl-Geo-IP-1.38-1.el5.rf.x86_64.rpm
(2/3): geoip-1.4.6-1.el5.rf.x86_64.rpm     
(3/3): awstats-7.0-2.el5.rf.noarch.rpm</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 09 Apr 2012 11:49:26 +0000</pubDate>
        </item>
        <item>
            <title>Linux bash 常用命令語法整理</title>
            <link>https://www.ichiayi.com/tech/bash_tips</link>
            <description>Linux bash 常用命令語法整理

找目錄內檔案所佔磁碟空間

	*  磁碟空間滿了通常都想知道被那些大檔案佔用了
	*  只看第一層目錄就好, 並依目錄檔案由大到小排序 
		*  看範例結果++

	*  只看第一層目錄就好, 並依目錄名稱排序</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 03 Sep 2025 23:07:05 +0000</pubDate>
        </item>
        <item>
            <title>bind DNS 安裝與設定</title>
            <link>https://www.ichiayi.com/tech/bind</link>
            <description>bind DNS 安裝與設定

以下是針對 CentOS 6.x 預設 bind 的安裝與設定來說明, 似乎在 CentOS 7.x/5.x/4.x 也可以適用

bind 安裝程序


yum install bind


	*  CentOS 7.x 安裝 bind 版本為 : 9.9.4-61.el7_5.1
	*  CentOS 6.x 安裝 bind 版本為 : 9.8.2-0.17</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 16 Jan 2021 06:38:43 +0000</pubDate>
        </item>
        <item>
            <title>CentOS 5 設定 PDF Printer</title>
            <link>https://www.ichiayi.com/tech/centos-pdf</link>
            <description>CentOS 5 設定 PDF Printer

主要是安裝 cups-pdf 來產生這個 PDF Printer, 這個 rpm 在 epel 內已經有打包好直接安裝..

安裝 epel 的方式可以參考 &lt;http://fedoraproject.org/wiki/EPEL/FAQ#howtouse&gt;


su - root
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
yum install cups-pdf</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 07 Dec 2010 12:49:47 +0000</pubDate>
        </item>
        <item>
            <title>CentOS5 升級 PHP 5.2 的方式</title>
            <link>https://www.ichiayi.com/tech/centos5_php</link>
            <description>CentOS5 升級 PHP 5.2 的方式

現在 PHP 官方網站已經釋出到 5.3, 但目前穩定運作使用的 CentOS5 還是提供 PHP 5.1 (CentOS6 已提供 PHP 5.3), 因此對於愈來愈多 OpenSource PHP 專案都強調採用 PHP 5.2 以上的版本要求, 就讓使用 CentOS5 的用戶有對 PHP 相關套件升級為 5.2 版本的需求..</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 08 Nov 2011 03:21:01 +0000</pubDate>
        </item>
        <item>
            <title>CentOS 6 KVM 命令操作相關</title>
            <link>https://www.ichiayi.com/tech/centos6_kvm</link>
            <description>CentOS 6 KVM 命令操作相關

列出 VM 清單

	*  
virsh list --all


建立 qcow2 格式的 image

	*  
qemu-img create -f qcow2 -o preallocation=off kvm.30G.qcow2 30G

	*  參考網址 - &lt;http://kashyapc.wordpress.com/2011/09/24/creating-a-qcow2-virtual-machine/&gt;

建立虛擬網路

	*  Exp. 建立 virtbr1 

brctl addbr virbr1</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 03 Jun 2018 00:11:55 +0000</pubDate>
        </item>
        <item>
            <title>CentOS6 KVM 使用 console 模式建立 VM</title>
            <link>https://www.ichiayi.com/tech/centos6_kvm_console</link>
            <description>CentOS6 KVM 使用 console 模式建立 VM

之前都透過 X Win 下的 virt-manager 來建立 VM , 當無法啟用 X Win 的環境下, 就需要透過文字命令模式建立 VM

	*  環境 Host : CentOS 6.8 x86_64
	*  預計建立 Guest : CentOS 7 x86_64</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 09 Jun 2017 06:42:44 +0000</pubDate>
        </item>
        <item>
            <title>CentOS 6 安裝 MySQL5.6</title>
            <link>https://www.ichiayi.com/tech/centos6_mysql</link>
            <description>CentOS 6 安裝 MySQL5.6

因為 Mantis 建議安裝 mysql 5.6 但 CentOS 6.9 內建 MySQL 只到 5.1 所以需另外安裝

安裝程序


rpm -Uvh http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
yum -y install mysql-server


啟動設定</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 23 Nov 2017 07:13:07 +0000</pubDate>
        </item>
        <item>
            <title>CentOS6(RHEL6) 網路相關設定方式</title>
            <link>https://www.ichiayi.com/tech/centos6_network</link>
            <description>CentOS6(RHEL6) 網路相關設定方式

CentOS6(RHEL6) 在網路設定上改變很多.. 陸續將設定差異整理在這頁面.

static route

CentOS 5 之前版本要增加


route add -net 192.168.16.0/24 gw 192.168.11.249


CentOS 6 要改成使用 iproute2 的設定方式</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 12 Oct 2011 01:34:46 +0000</pubDate>
        </item>
        <item>
            <title>CentOS 6 安裝 php7</title>
            <link>https://www.ichiayi.com/tech/centos6_php</link>
            <description>CentOS 6 安裝 php7

因為 Mantis 建議安裝 php7 但 CentOS 6.8 內建 php 只到 5.3.3 所以需另外安裝

安裝程序


rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
yum install php70w php70w-opcache php70w-mysql php70w-gd php70w-mbstring php70w-soap php70w-xml</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 17 Oct 2017 10:42:38 +0000</pubDate>
        </item>
        <item>
            <title>CentOS7/Debian10 安裝 Redis5</title>
            <link>https://www.ichiayi.com/tech/centos7-redis</link>
            <description>CentOS7/Debian10 安裝 Redis5

	*  CentOS7 from PVE6 CT-template
		*  因為 EPEL 的 redis 版本只到 3 , 發現透過 IUS repo 可以安裝版本 4 或 5 

	*  Debian10 from PVE6 TurnKey CT-template

CentOS7 安裝啟動程序

	*  安裝 
	*  啟動</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 26 Mar 2021 07:42:05 +0000</pubDate>
        </item>
        <item>
            <title>CentOS 7 安裝 Dokuwiki + Nginx</title>
            <link>https://www.ichiayi.com/tech/centos7_dokuwiki</link>
            <description>CentOS 7 安裝 Dokuwiki + Nginx

	*  安裝環境是在 PVE(Proxmox VE 5.2) 的 CentOS7 CT Template 產生的 Container
	*  透過 Linux 修改時區 以及 CentOS 修改語系方式

安裝 Nginx + php-fpm

	*  

rpm -ivh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
yum install nginx wget</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 09 Jul 2019 03:36:22 +0000</pubDate>
        </item>
        <item>
            <title>CentOS 7 安裝 MariaDB 10.5</title>
            <link>https://www.ichiayi.com/tech/centos7_mariadb10</link>
            <description>CentOS 7 安裝 MariaDB 10.5

	*  安裝環境 : CentOS Linux release 7.9.2009 (Core)

安裝程序

	*  建立 Yum Repo 

# MariaDB 10.5 CentOS repository list - created 2021-06-13 09:08 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.5/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 13 Jun 2021 09:48:02 +0000</pubDate>
        </item>
        <item>
            <title>CentOS7 網路相關整理</title>
            <link>https://www.ichiayi.com/tech/centos7_network</link>
            <description>CentOS7 網路相關整理

可先透過 &lt;https://wiki.centos.org/zh-tw/FAQ/CentOS7&gt; 來了解 CentOS7 和之前版本的一些差異

沒有 ifconfig 命令問題


yum install net-tools


安裝紀錄


[root@centos7-tmp ~]# yum install net-tools
Loaded plugins: fastestmirror
base                                                     | 3.6 kB     00:00
extras                                                   | 3.4 kB     00:00
updates                                                  | 3.4 kB     00:00
(1/4): base/7/x86_64/group_gz                              …</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 11 Sep 2021 06:57:03 +0000</pubDate>
        </item>
        <item>
            <title>CentOS7 出現 slice User 訊息的解法</title>
            <link>https://www.ichiayi.com/tech/centos7_slice</link>
            <description>CentOS7 出現 slice User 訊息的解法

	*  CentOS 7 的 /var/log/messages 系統紀錄內會大量出現 slice User 的訊息如下: 
	*  主要的原因是和 systemd 服務有關, 可以透過紀錄篩選規則設定, 來隱藏這些 slice User 訊息, 設定方式如下:</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 16 Jan 2021 06:41:13 +0000</pubDate>
        </item>
        <item>
            <title>CentOS7 安裝 SVN + submin</title>
            <link>https://www.ichiayi.com/tech/centos7_svn</link>
            <description>CentOS7 安裝 SVN + submin

	*  安裝相關套件 

yum install epel-release httpd mod_ssl subversion mod_dav_svn subversion-python wget apr-util-sqlite apr-util


	*  安裝 submin 

su - root
wget --no-check-certificate https://github.com/mjholtkamp/submin/archive/master.zip
unzip master.zip
cd submin-master
python2 setup.py install</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 15 Nov 2019 08:50:58 +0000</pubDate>
        </item>
        <item>
            <title>CentOS8 GitLab 安裝程序</title>
            <link>https://www.ichiayi.com/tech/centos8_gitlab</link>
            <description>CentOS8 GitLab 安裝程序

	*  安裝環境 - PVE 6.2 - CentOS 8 Template
	*  安裝相關套件 

dnf install -y curl policycoreutils openssh-server
systemctl enable sshd
systemctl start sshd
dnf install postfix
systemctl enable postfix
systemctl start postfix</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 19 Oct 2020 14:42:36 +0000</pubDate>
        </item>
        <item>
            <title>CentOS8 安裝 WordPress 5 程序</title>
            <link>https://www.ichiayi.com/tech/centos8_wordpress</link>
            <description>CentOS8 安裝 WordPress 5 程序

	*  centOS 8.2.2004 (Core)
	*  Nginx 
	*  MariaDB 10
	*  PHP 8

安裝 Nginx / MariaDB 10 / PHP 7.4

	*  EPEL 

dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm


	*  REMI 啟用 PHP 7.4</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 19 Nov 2020 07:39:25 +0000</pubDate>
        </item>
        <item>
            <title>CentOS x86_64  Firefox 3 開啟 flash 頁面方式</title>
            <link>https://www.ichiayi.com/tech/centos64_flash</link>
            <description>CentOS x86_64  Firefox 3 開啟 flash 頁面方式

	*  CentOS 6 只要安裝 &lt;http://pkgs.repoforge.org/flash-plugin/flash-plugin-10.3.162.29-0.1.el6.rf.x86_64.rpm&gt;

發現 &lt;http://labs.adobe.com/downloads/flashplayer10_64bit.html&gt; 已經關閉下載 libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz 所以改找其他的解決方式. 方法如下:

	*  安裝需要的 lib 

yum install curl compat-libstdc++-33 glibc nspluginwrapper</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 02 Oct 2011 02:26:54 +0000</pubDate>
        </item>
        <item>
            <title>CentOS 5 x86_64 安裝 mplayer</title>
            <link>https://www.ichiayi.com/tech/centos64_mplayer</link>
            <description>CentOS 5 x86_64 安裝 mplayer

只要先安裝 rpmforge-release-xxxx.rpm 就可以很容易將大部分的多媒體軟體快速透過 yum install 安裝進來..


rpm -Uvh http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
rpm -Uvh http://download1.rpmfusion.org/free/el/updates/testing/5/x86_64/rpmfusion-free-release-5-0.1.noarch.rpm</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 05 May 2010 15:19:17 +0000</pubDate>
        </item>
        <item>
            <title>CentOS+基本服務安裝程序</title>
            <link>https://www.ichiayi.com/tech/centosinstall</link>
            <description>CentOS+基本服務安裝程序

安裝 CentOS 作業系統

	*  適用 5.x / 6.x / 7.x x86_64 版本
警告

確認 CentOS 安裝完成

	*  建立備援 root 帳號(Exp. misadm) 
	*  建立登入帳號 (Exp. jonathan) 
	*  網路可否正常運作 (ssh 到外部主機, 然後再 ssh 回來)</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 30 Oct 2019 00:14:11 +0000</pubDate>
        </item>
        <item>
            <title>CentOS 修改語系方式</title>
            <link>https://www.ichiayi.com/tech/centoslocale</link>
            <description>CentOS 修改語系方式

	*  查看目前語系 
locale

	*  列出支援語系 
locale -a

	*  設定語系 Exp. zh_TW.utf8
		*  正常作法: 
localectl set-locale LANG=zh_TW.utf8

		*  LXC 內作法: 
LANG=zh_TW.utf8



	*  如果重開機候登入出現類似以下的錯誤訊息</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 21 Jul 2018 05:20:42 +0000</pubDate>
        </item>
        <item>
            <title>Linux 修改時區</title>
            <link>https://www.ichiayi.com/tech/centostimezone</link>
            <description>Linux 修改時區

	*  Ubuntu 20.04 x86_64
	*  CentOS 6.9 x86_64
	*  想改成台北時區 Asia Taipei

處理方式


cp /etc/localtime /root/old.timezone
rm -f /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Taipei /etc/localtime


 操作畫面 

參考網址</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 27 Jan 2021 16:09:02 +0000</pubDate>
        </item>
        <item>
            <title>CentOS 自動更新 rpm 設定方式</title>
            <link>https://www.ichiayi.com/tech/centosupdate</link>
            <description>CentOS 自動更新 rpm 設定方式

	*  CentOS7 可直接改用 yum-cron 來自動更新
	*  參考 設定 yum-cron 自動升級

- 確認基本需求工具

- yum

CentOS 的 rpm 更新最主要是透過 yum 這個工具, 原則上預設就會安裝 yum 進去. 可以執行以下的指令確認:</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 04 Oct 2019 08:28:30 +0000</pubDate>
        </item>
        <item>
            <title>Centos 5 上配置 iSCSI 設定</title>
            <link>https://www.ichiayi.com/tech/centos_iscsi</link>
            <description>Centos 5 上配置 iSCSI 設定

iSCSI 主機端

	*  安裝 iscsitarget 

yum install kernel-devel openssl-devel gcc rpm-build
rpm -q kernel-devel openssl-devel gcc rpm-build
wget http://downloads.sourceforge.net/project/iscsitarget/iscsitarget/1.4.18/iscsitarget-1.4.18.tar.gz
tar -xvf iscsitarget-1.4.18.tar.gz
cd iscsitarget-1.4.18
make 
make install</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 10 Jun 2022 01:07:56 +0000</pubDate>
        </item>
        <item>
            <title>CentOS 掛載 NTFS 硬碟</title>
            <link>https://www.ichiayi.com/tech/centos_ntfs</link>
            <description>CentOS 掛載 NTFS 硬碟

	*  因為現在攜帶式硬碟容量都超過 1TB, 因此需要在 Windows 底下使用的攜帶硬碟都會 format 為 NTFS 格式, 對此要將接上 Linux 複製檔案就需要特別處理.

安裝方式

	*  安裝 fuse ntfs-3g</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 25 Nov 2014 04:08:27 +0000</pubDate>
        </item>
        <item>
            <title>CentOS 7 SNMP 設定</title>
            <link>https://www.ichiayi.com/tech/centos_snmp</link>
            <description>CentOS 7 SNMP 設定

	*  安裝環境 : CentOS Linux release 7.5.1804 (Core)
	*  getenforce : Disabled
	*  firewall-cmd --list-services : http https ssh snmp

安裝套件


yum -y install net-snmp net-snmp-utils


設定 snmp 的定義

	*  設定 192.168.1. 的網段可以透過 community nms01 讀取</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 29 Oct 2018 10:25:24 +0000</pubDate>
        </item>
        <item>
            <title>安裝 CheckMK 監控系統</title>
            <link>https://www.ichiayi.com/tech/checkmk</link>
            <description>安裝 CheckMK 監控系統

	*  安裝環境 :
		*  VM : 2vCore / 4GRAM / 32GSSD
		*  OS : Alpine 3 參考 - 在 Alpine Linux 3 底下安裝 docker + docker-compose

	*  啟動  如果要試用企業版可將 image 改成 check-mk-free:2.1.0p25
	*  確認預設登入帳號密碼 會看到類似以下的訊息畫面</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 26 Mar 2023 08:39:29 +0000</pubDate>
        </item>
        <item>
            <title>Perl / PHP 檢測變數有否定義方式</title>
            <link>https://www.ichiayi.com/tech/check_null</link>
            <description>Perl / PHP 檢測變數有否定義方式

最近也開始回來 Coding Perl / PHP.. 所以對於未定義變數的警告訊息也進一步瞭解解決方式，這樣也是避免未來 debug 時花一大堆時間抓出一隻很可笑的 bug.

- Perl</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 15 Sep 2009 16:46:25 +0000</pubDate>
        </item>
        <item>
            <title>Perl / PHP 檢測變數有否 UTF-8 方式</title>
            <link>https://www.ichiayi.com/tech/check_utf8</link>
            <description>Perl / PHP 檢測變數有否 UTF-8 方式

採用 w3c FAQ 的 regular expression 檢驗方式

- Perl


#!/usr/bin/perl

$a=&quot;測試&quot;;
$b=&quot;yyy&quot;;

$ca=is_utf8($a)?&quot;UTF-8&quot;:&quot;ASCII&quot;;
$cb=is_utf8($b)?&quot;UTF-8&quot;:&quot;ASCII&quot;;

print(&quot;[$a] : $ca\n&quot;);
print(&quot;[$b] : $cb\n&quot;);
exit;

# 判別是否 UTF-8 字串
sub is_utf8 {
  local($p_string) = @_;
  
	#From http://w3.org/International/questions/qa-forms-utf-8.html
	# It will return true if $p_string is UTF-8, and false otherwise.
	return($p_string =~ m/\A(
     [\x09\x0A\x0D\x20-\x7E]            # ASCII
   …</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 02 Mar 2009 17:07:20 +0000</pubDate>
        </item>
        <item>
            <title>CentOS 安裝 ChkRootkit 檢查後門</title>
            <link>https://www.ichiayi.com/tech/chkrootkit</link>
            <description>CentOS 安裝 ChkRootkit 檢查後門

	*  CentOS 需要先安裝 EPEL

yum install chkrootkit


	*  掃描檢查後門

chkrootkit
chkrootkit | grep INFECTED


如果有出現 INFECTED 表示已經被植入後門.


參考網址

	*  &lt;http://www.server-world.info/en/note?os=CentOS_6&amp;p=chkrootkit&gt;

rootkit</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 24 Mar 2016 08:49:51 +0000</pubDate>
        </item>
        <item>
            <title>Chrome DevTools MCP (Linux/WSL) 使用方法</title>
            <link>https://www.ichiayi.com/tech/chrome-devtools-mcp</link>
            <description>Chrome DevTools MCP (Linux/WSL) 使用方法

	*  針對在 WSL (或是單純 Linux Server) 的環境內並不會安裝 Chrome 瀏覽器, 因此在上面執行 Chrome DevTools MCP 時就會出現呼叫異常
	*  解決方案是讓 WSL 內的 MCP 使用到 Windows 上的 Chrome</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 15 Oct 2025 03:43:04 +0000</pubDate>
        </item>
        <item>
            <title>Chrome 相關有用資訊整理</title>
            <link>https://www.ichiayi.com/tech/chrome</link>
            <description>Chrome 相關有用資訊整理

&lt;quote&gt;
chrome index


&lt;/quote&gt;

chrome browser tips</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 16 Jan 2021 09:22:36 +0000</pubDate>
        </item>
        <item>
            <title>Linux 主機內防毒軟體-ClamAV</title>
            <link>https://www.ichiayi.com/tech/clamav</link>
            <description>Linux 主機內防毒軟體-ClamAV

很多企業組織的資安要求主機需要安裝防毒軟體, 對於 Linux 主機可以安裝 ClamAV 來因應.

Ubuntu / Debian 環境

	*  安裝與設定 

Alpine 環境

	*  安裝與設定 

手動處理命令</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 04 Dec 2024 06:30:57 +0000</pubDate>
        </item>
        <item>
            <title>安裝 Claude Code (Ubuntu 24.04)</title>
            <link>https://www.ichiayi.com/tech/claude_code</link>
            <description>安裝 Claude Code (Ubuntu 24.04)

安裝程序
也推薦大家使用 開源的 OpenCode 替代工具

	*  
	*  之後如果要更新 

使用方式

	*  

安裝與選用 MCP

	*  Context7 (動態文檔) 
	*  Fetch 
	*  Chrome DevTools
		*  針對 WSL 環境的 Linux 沒有安裝 Chrome 的環境下, 可以透過啟用外部 chrome 服務方式來運作, 可參考</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 23 Mar 2026 02:39:00 +0000</pubDate>
        </item>
        <item>
            <title>Cloudflare 關閉 TLS 1.0 與 1.1 的方式</title>
            <link>https://www.ichiayi.com/tech/cloldflare_ssl</link>
            <description>Cloudflare 關閉 TLS 1.0 與 1.1 的方式

因為透過 WebInspect 掃描發現出現  Insecure Transport: Weak SSL Cipher ( 11285 ) CWE: 326,327 這風險, 再經由 Qualys SSL Labs 的掃瞄發現等級是 B , 了解要關閉 TLS 1.0 與 1.1 才能達到等級 A 的安全強度</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 02 Dec 2021 03:58:05 +0000</pubDate>
        </item>
        <item>
            <title>CloudFlare CDN 的使用 Tips</title>
            <link>https://www.ichiayi.com/tech/cloudflare</link>
            <description>CloudFlare CDN 的使用 Tips

	*  &lt;https://www.cloudflare.com/zh-tw/plans/&gt; 申請 Free 方案
	*  只要將 Domain Name Server 指向 CloudFlare 一切就算完成設定
	*  如果需要將用戶端實際 IP 傳遞出現在後端 Web Server 的 log 內, 可參考 Nginx 擔任 Web Proxy 傳遞真實 IP 的設定方式

CentOS 8 設定只允許來自 Cloudflare 的網站流量</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 09 Apr 2021 02:21:55 +0000</pubDate>
        </item>
        <item>
            <title>由 Cloudflare 擔任 CDN 設定 log 顯示用戶實際 IP (Apache)</title>
            <link>https://www.ichiayi.com/tech/cloudflare_proxy_real_ip</link>
            <description>由 Cloudflare 擔任 CDN 設定 log 顯示用戶實際 IP (Apache)

	*  如果是 Nginx 可以參考 Nginx 擔任 Web Proxy 傳遞真實 IP 的設定方式
	*  設定環境 : Debian GNU/Linux 10

設定方式

	*  使用 root 權限操作 
	*  啟動 remoteip 
	*  更新 000-default.conf 設定, 加入 RemoteIPHeader CF-Connecting-IP</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 30 Nov 2021 23:14:05 +0000</pubDate>
        </item>
        <item>
            <title>設定 Cloudflare Tunnel 提供對外網站服務</title>
            <link>https://www.ichiayi.com/tech/cloudflare_tunnel</link>
            <description>設定 Cloudflare Tunnel 提供對外網站服務

架構說明

原本架構



	*  這架構需要 Firewall 上面有固定 IP , 並設定 Port Forwarding 到 Reverse Proxy 主機上
		*  在 Reverse Proxy 上面設定每個 WebServer 的 Proxy Forward 網址與 SSL 憑證</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 05 Oct 2025 20:15:24 +0000</pubDate>
        </item>
        <item>
            <title>設定 Cloudflare WARP + Tunnel 取代 VPN</title>
            <link>https://www.ichiayi.com/tech/cloudflare_warp</link>
            <description>設定 Cloudflare WARP + Tunnel 取代 VPN

	*  預計配置架構



1. 確認 tunnel 的 Private Network

	*  &lt;https://one.dash.cloudflare.com/&gt; Networks -&gt; Routes 


2. 設定存取權限

設定群組

	*  Access -&gt; Rule groups -&gt; Add a group Exp. Staff -&gt; Email 後面符合 @ichiayi.com</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 06 Apr 2025 13:46:43 +0000</pubDate>
        </item>
        <item>
            <title>Linux 內設定 CPU 頻率的方式</title>
            <link>https://www.ichiayi.com/tech/cpufrequtils</link>
            <description>Linux 內設定 CPU 頻率的方式

	*  安裝環境 Debian 12.1

安裝方式

	*  

使用方式

	*  查詢目前 CPU 個核心執行頻率 cpufreq-info 看結果++

	*  設定 CPU 運行模式 powersave(省電模式), userspace(使用者自訂), ondemand(自動調整), conservative(保守模式), performance(高效能模式)  Exp. 設定為 powersave</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 29 Sep 2023 13:07:30 +0000</pubDate>
        </item>
        <item>
            <title>使用 CUPS + SAMBA 分享網路印表機問題</title>
            <link>https://www.ichiayi.com/tech/cpus_tips</link>
            <description>使用 CUPS + SAMBA 分享網路印表機問題

在 CentOS 5 上面很容易就可以將主機端印表機分享出來給 Windows 的 Client 端當網路印表機使用.. 主要是透過 cups 與 samba 兩個模組來達成. 當然也會面對一些技術的問題, 所以以下將目前遇到的問題陸續整理下來.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 02 Mar 2009 17:04:27 +0000</pubDate>
        </item>
        <item>
            <title>CentOS 上的 crontab 設定紀錄</title>
            <link>https://www.ichiayi.com/tech/crontab</link>
            <description>CentOS 上的 crontab 設定紀錄

針對 /etc/crontab 的設定問題與解法進行紀錄

log 檔名使用 date 問題

原本設定如下 


# dwgchk
5 0 * * * root perl /root/dwgchk/scandwgfiles.pl &gt; /var/log/scandwgfiles_`date +%Y%m%d%k%M`.log</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 13 Feb 2018 00:03:05 +0000</pubDate>
        </item>
        <item>
            <title>cURL 上傳 multipart/form-data 檔案語法</title>
            <link>https://www.ichiayi.com/tech/curl_post_file</link>
            <description>cURL 上傳 multipart/form-data 檔案語法

假設要上傳的網頁 form 如以下所示:


&lt;form enctype=&quot;multipart/form-data&quot; action=&quot;/api/api.php&quot; method=&quot;POST&quot;&gt;
	&lt;input type=&quot;text&quot; name=&quot;id&quot; MAXLENGTH=500 value=&quot;fromServerQueue/pid,2008-10-29 18:10:32&quot;&gt;
    &lt;br /&gt;
    Send this file: &lt;input name=&quot;uploadfile&quot; type=&quot;file&quot; /&gt;
    &lt;input type=&quot;submit&quot; value=&quot;Send File&quot; /&gt;
&lt;/form&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 02 Nov 2008 07:56:40 +0000</pubDate>
        </item>
        <item>
            <title>cURL 讀取雙向 ssl 認證 Web Server 網頁方式</title>
            <link>https://www.ichiayi.com/tech/curl_ssl</link>
            <description>cURL 讀取雙向 ssl 認證 Web Server 網頁方式

	*  Server 端的 RootCA 是 RootCA.crt
	*  Server 端測試網址 : &lt;https://mail.ichiayi.com/t.txt&gt;
	*  Client 端的憑證是 ClientCA.crt
	*  Client 端的密鑰是 ClientCA.key
	*  產生 Client 端 pem 格式含有密鑰的憑證檔</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 13 Jun 2021 01:43:21 +0000</pubDate>
        </item>
        <item>
            <title>cURL 在 MS-Windows 環境的使用</title>
            <link>https://www.ichiayi.com/tech/curl_ssl_win</link>
            <description>cURL 在 MS-Windows 環境的使用

如果不需要 ssl 加密直接下載 cURL 沒有 ssl 版本執行就可，如果需要 ssl 加密，除下載 cURL 有 ssl 版本外，還需要下載 openssl 的相關 dll。
  cURL 下載網頁    不含 ssl 加密功能</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 26 Apr 2012 09:35:05 +0000</pubDate>
        </item>
        <item>
            <title>使用 curl 來查看 SSL 憑證資訊</title>
            <link>https://www.ichiayi.com/tech/curl_view_ssl_cert</link>
            <description>使用 curl 來查看 SSL 憑證資訊

目前大多網站都已經改用 https , 如果在 linux 命令列模式想快速查看網站 SSL 憑證資訊, 可以透過 curl 來查詢.

查詢方式

	*  curl -v -k [網址] 2&gt;&amp;1 | grep -E “Connected to|subject|expire</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 02 Oct 2021 03:06:04 +0000</pubDate>
        </item>
        <item>
            <title>Debian 10 相關設定整理</title>
            <link>https://www.ichiayi.com/tech/debian10</link>
            <description>Debian 10 相關設定整理

網路 IP 設定

	*  參考 
		*  &lt;https://www.debian.org/doc/manuals/debian-reference/ch05.zh-tw.html&gt;
		*  &lt;https://kingjoy1235.pixnet.net/blog/post/28565594&gt;
		*  &lt;http://note.drx.tw/2008/02/ubuntu-ip.html&gt;

	*  Exp. 更改 IP 設定為 10.20.0.34 
sudo vi /etc/network/interfaces


:
allow-hotplug ens18
iface ens18 inet static
        addresses 10.20.0.34/24
        gateway 10.20.0.254
        dns-nameserver 8.8.8.8</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 01 Jan 2024 14:15:39 +0000</pubDate>
        </item>
        <item>
            <title>Debian 10 安裝 MariaDB 10.5</title>
            <link>https://www.ichiayi.com/tech/debian10_mariadb10</link>
            <description>Debian 10 安裝 MariaDB 10.5

	*  安裝環境 : Debian GNU/Linux 10.10

安裝程序

	*  建立 APT Repo 
	*  安裝 MariaDB Server 
	*  初始化設定

參考網址

	*  &lt;https://downloads.mariadb.org/mariadb/repositories/&gt;

mariadb</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 03 Jul 2021 02:58:01 +0000</pubDate>
        </item>
        <item>
            <title>Debian 自動更新資安套件</title>
            <link>https://www.ichiayi.com/tech/debian_autoupdate</link>
            <description>Debian 自動更新資安套件

因為大量使用 PVE 內提供的 CT Templates 建立出來的應用服務(採用 TurnKey GNU/Linux 16.0 - Debian 10/Buster), 因之前使用 CentOS 都有設定自動更新, 所以也找一下如何來設定 Debian 可自動更新

設定方式</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 29 Jun 2021 00:51:28 +0000</pubDate>
        </item>
        <item>
            <title>Debin Wi-Fi 網路介面設定</title>
            <link>https://www.ichiayi.com/tech/debian_net_tips</link>
            <description>Debin Wi-Fi 網路介面設定

因為設備有 wifi 網卡與 Ethernet 網卡, 安裝時只有自動抓到有線網卡, 現在想要啟動 wifi 網卡來使用

	*  設定環境 PVE 7.1 (debian_version : 11.2 Bullseye)
	*  預計連上 SSID : ichiayi</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 23 Jan 2022 13:38:36 +0000</pubDate>
        </item>
        <item>
            <title>Debian 10 升級 php 至 7.4</title>
            <link>https://www.ichiayi.com/tech/debian_php_upgrade</link>
            <description>Debian 10 升級 php 至 7.4

	*  升級環境 : Debian GNU/Linux 10 \n \l
	*  原本安裝 php 7.3

升級程序

	*  進行已安裝套件更新 
	*  下載 PHP 7.4 的 Sury PPA 與設定
	*  Apache 環境安裝 PHP 7.4
	*  可以至 /etc/apache2/mods-enabled 看是否已經切換為 php7.4</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 26 Jun 2023 08:47:43 +0000</pubDate>
        </item>
        <item>
            <title>dnsmasq 輕型 dns/dhcpd 安裝設定</title>
            <link>https://www.ichiayi.com/tech/dnsmasq</link>
            <description>dnsmasq 輕型 dns/dhcpd 安裝設定

- 安裝 dnsmasq


yum install dnsmasq


- 設定 dnsmasq

	*  預計 dhcp  設定目標:
		*  分配 ip 範圍是 192.168.11.101-192.168.11.150
		*  取得 ip 有效時間為 12 小時
		*  只接受 eth1 連入才能分配 IP</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 13 Oct 2012 15:33:30 +0000</pubDate>
        </item>
        <item>
            <title>對 DNS 進行壓力測試</title>
            <link>https://www.ichiayi.com/tech/dnsperf</link>
            <description>對 DNS 進行壓力測試

	*  環境 debian

1.安裝 dnsperf

	*  
		*  看安裝訊息++


2.建立壓測查詢清單

	*  Exp. google.com, facebook.com ... 

3.執行壓測

	*  Exp. DNS : 192.168.11.6 測試結果:</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 21 Feb 2025 23:04:17 +0000</pubDate>
        </item>
        <item>
            <title>Docker 容器負載監看小工具 CTOP</title>
            <link>https://www.ichiayi.com/tech/docker-ctop</link>
            <description>Docker 容器負載監看小工具 CTOP

	*  在一台主機內運行多個容器的環境, 若想了解每個容器的負載狀況, 就可以使用這 ctop 來查看

一般執行方式

	*   


rootless 的執行方式

	*  主要是在 docker.sock 的位置不同, Exp. 如果 rootless 的 docker.sock 路徑是在</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 23 Jan 2024 03:07:51 +0000</pubDate>
        </item>
        <item>
            <title>使用 watchtower 自動更新 docker images</title>
            <link>https://www.ichiayi.com/tech/docker-upgrade</link>
            <description>使用 watchtower 自動更新 docker images
Watchtower Docker API 版本不相容問題
	*  這問題已在 Watchtower GitHub 上被多人回報
		*  Issue #2122 - 77+ 人反應相同問題（2025年11月11日開立）
		*  Issue #2124, #2125, #2126 - 多個重複問題</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 25 Dec 2025 07:57:58 +0000</pubDate>
        </item>
        <item>
            <title>Docker 語法與操作整理</title>
            <link>https://www.ichiayi.com/tech/docker</link>
            <description>Docker 語法與操作整理

安裝程序

Ubuntu 22.04 / 24.04

	*  安裝語法 
		*  標準安裝 


Ubuntu 20.04

	*  安裝語法 
		*  標準安裝 
		*  指定 docker 版本  


設定使用者與權限

	*  設定特定使用者使用 docker 權限 Exp. jonathan</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 25 Sep 2025 04:33:06 +0000</pubDate>
        </item>
        <item>
            <title>建立與設定 DockerHub Proxy</title>
            <link>https://www.ichiayi.com/tech/dockerhubproxy</link>
            <description>建立與設定 DockerHub Proxy

	*  因為 DockerHub 設定每個 IP 抓取 image 的限制, 所以建立一個 DockerHub Proxy 可解決多台主機抓取相同 image 而不讓每台直接過去 DockerHub 抓取, 降低出現 Pull rate limit 的議題

registry:2 方案(適合小型服務情境)</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 24 Jun 2025 04:33:26 +0000</pubDate>
        </item>
        <item>
            <title>Docker Build &amp; Run</title>
            <link>https://www.ichiayi.com/tech/docker_build</link>
            <description>Docker Build &amp; Run

	*  假設至 GitHub clone 一個開源專案 Exp. &lt;https://github.com/iiidevops-templates/nodejs-express-hello&gt; 內有包含產生 image 的 Dockerfile 來建立與執行這個專案的服務

操作的步驟

	*  操作環境 Ubuntu 20.04

	*  複製專案 
	*  建立 image 指定 Dockerfile.local 預計產生的 image 打上 myapp1 的標籤</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 17 Feb 2022 10:42:37 +0000</pubDate>
        </item>
        <item>
            <title>在 Docker compose 加上 log server 設定</title>
            <link>https://www.ichiayi.com/tech/docker_compose_log</link>
            <description>在 Docker compose 加上 log server 設定

	*  希望將 docker compose logs -f 的訊息轉到 log server

作法

	*  針對 docker-compose.yml 內的每個服務設定 logging Exp. 

docker logserver</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 09 May 2025 02:41:14 +0000</pubDate>
        </item>
        <item>
            <title>Docker Images 內的狀態查看方式</title>
            <link>https://www.ichiayi.com/tech/docker_images</link>
            <description>Docker Images 內的狀態查看方式

因為愈來愈多的機會會取用到 Docker Hub 上的 images , 所以整理一下可以快速用這個 image 啟動一個 docker container 來看 images 內的系統版本與檔案相關路徑等資訊

基本語法</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 14 Oct 2021 06:53:11 +0000</pubDate>
        </item>
        <item>
            <title>清除本地 docker 不需要的 image 方式</title>
            <link>https://www.ichiayi.com/tech/docker_prune</link>
            <description>清除本地 docker 不需要的 image 方式

	*  執行 K8s cluster 一段時間後發現 node 的 32G 硬碟就很快就滿了, 主要的原因是在 /var/lib/docker 內有大量的 docker images
	*  可透過以下語法進行移除已經不使用的 docker images</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 11 Jul 2022 10:22:45 +0000</pubDate>
        </item>
        <item>
            <title>Docker Swarm (Docker 多主機方案)</title>
            <link>https://www.ichiayi.com/tech/docker_swarm</link>
            <description>Docker Swarm (Docker 多主機方案)

	*  因進入 Kubernetes 的學習門檻高, 以及需要較高規格的硬體資源議題, 因此快速安裝測試 Docker Swarm 方案.

安裝與部署

	*  確保每一台已經安裝好 docker 環境且每台之間都可以透過 TCP port 2377 互相溝通</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 19 Nov 2025 03:49:14 +0000</pubDate>
        </item>
        <item>
            <title>[Draft] 建立可讓 Windows 遠端桌面登入的 xrdp 環境(Docker)</title>
            <link>https://www.ichiayi.com/tech/docker_xrdp</link>
            <description>[Draft] 建立可讓 Windows 遠端桌面登入的 xrdp 環境(Docker)

	*  採用 Docker Image : frxyt/xrdp:xfce

驗證環境

	*  Ubuntu 20.04 + Docker 
	*  驗證程序 : 
		*  建立驗證目錄 t 設定可以完全寫入的權限
		*  啟動 xrdp 的驗證容器 登入帳號:localadmin 密碼:ChangeMe 服務Port:33890 將 localadmin 目錄掛載出來</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 05 Dec 2023 12:06:53 +0000</pubDate>
        </item>
        <item>
            <title>在 Ubuntu 內安裝 Dockge 管理 Container</title>
            <link>https://www.ichiayi.com/tech/dockge</link>
            <description>在 Ubuntu 內安裝 Dockge 管理 Container

	*  先參考 Ubuntu Docker 安裝程序
	*  Default Stacks Directory: /opt/stacks
	*  Default Port: 5001
	*  執行以下語法 
	*  接下來直接連上 

參考網址

	*  &lt;https://www.youtube.com/watch?v=E805XcbTzgY&gt;
	*  &lt;https://github.com/louislam/dockge&gt;

docker alpine container-manager</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 21 Nov 2023 05:59:03 +0000</pubDate>
        </item>
        <item>
            <title>安裝 DockOVPN 的 OpenVPN Docker 方案</title>
            <link>https://www.ichiayi.com/tech/dockovpn</link>
            <description>安裝 DockOVPN 的 OpenVPN Docker 方案

可參考 安裝 openvpn-ui (OpenVPN + 簡易 WebUI) 方案

	*  因為之前主要的 OpenVPN Docker 方案(Exp. kylemanna/openvpn, linuxserver/openvpn-as 似乎都已不再更新, 因此找了 DockOVPN 來安裝使用
	*  目前 DockOVPN 版本是 v1.13.0 (Release:2023-10-28) 系統算是穩定, 但實際使用還是需要一些手動程序</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 13 Jan 2026 04:22:45 +0000</pubDate>
        </item>
        <item>
            <title>用 docker-compose 啟動一個 Windows 環境</title>
            <link>https://www.ichiayi.com/tech/dockur_windows</link>
            <description>用 docker-compose 啟動一個 Windows 環境

	*  想找一個可以在 Linux 環境下不用 VM 方式可啟用的 windows 方案, 找到這個用 docker 啟動的方式.. 不過技術原理還是透過 Linux 內的 kvm 來達成 

測試方式

	*</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 08 Mar 2024 13:41:05 +0000</pubDate>
        </item>
        <item>
            <title>Dokuwiki 升級方式</title>
            <link>https://www.ichiayi.com/tech/dokupgrade</link>
            <description>Dokuwiki 升級方式

Dokuwiki 升級方式只要將新版檔案蓋掉原本檔案即可，但是因為有些是參數或設定檔案，有些是預設 Plugin 檔案，所以直接蓋掉有可能會將部份檔案恢復成預設值，所以如果只 patch 差異的部份，這樣的問題將可減低不少。</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 16 Apr 2012 03:00:23 +0000</pubDate>
        </item>
        <item>
            <title>Dokuwiki bitnami docker 版本安裝設定程序</title>
            <link>https://www.ichiayi.com/tech/dokuwiki-docker</link>
            <description>Dokuwiki bitnami docker 版本安裝設定程序

	*  請參考 DokuWiki安裝程序(Docker)
在 bitnami 已經找不到 dokuwiki docker image---Jonathan Tsai 2025/06/21 23:15
參考網址

	*  &lt;https://hub.docker.com/r/bitnami/dokuwiki&gt;

dokuwiki wiki</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 21 Jun 2025 23:16:55 +0000</pubDate>
        </item>
        <item>
            <title>DokuWiki安裝程序(Docker)</title>
            <link>https://www.ichiayi.com/tech/dokuwiki</link>
            <description>DokuWiki安裝程序(Docker)

Docker 安裝方式

	*  安裝環境
		*  Alpine 3 + Docker compose
		*  Ubuntu 20.04 + Docker compose


採用 linuxserver/dokuwiki 的 image

	*  參考網址 - &lt;https://github.com/linuxserver/docker-dokuwiki&gt;
	*  安裝方式
		*  編輯 docker-compose.yml 

version: &#039;2&#039;
services:
  dokuwiki:
    image: lscr.io/linuxserver/dokuwiki:latest
    container_name: dokuwiki
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Asia/Taipei    
    ports:
      - &#039;80:80&#039;
      - &#039;443:443&#039;
    restart: always
 …</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 03 Oct 2025 10:48:16 +0000</pubDate>
        </item>
        <item>
            <title>DokuWiki 採用 Mantis 認證權限</title>
            <link>https://www.ichiayi.com/tech/dokuwiki_auth_mantis</link>
            <description>DokuWiki 採用 Mantis 認證權限

	*  Dokuwiki : 2016-06-26a “Elenor of Tsort”
	*  Mantis : 1.3.4

Dokuwiki

	*  安裝 Mantis Authentication Integration Plugin
	*  設定 Mantis 相關資訊 /conf/local.protected.php 

&lt;?php
define( &#039;MANTIS_ROOT&#039;, &#039;/var/www/html/mantis/&#039; );
define( &#039;MANTIS_URL&#039;, &#039;http://192.168.0.242/mantis/&#039; );
require_once( MANTIS_ROOT . &#039;core.php&#039; );
?&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 14 Dec 2016 15:33:14 +0000</pubDate>
        </item>
        <item>
            <title>Dokuwiki 相簿應用的 plugin</title>
            <link>https://www.ichiayi.com/tech/dokuwiki_gallery</link>
            <description>Dokuwiki 相簿應用的 plugin

以下是整理最近安裝 Gallery Plugin後整理出來方便上傳與呈現的相簿相關 plugin

- 安裝相關 plugin

	*  主要 plugin
		*  Gallery Plugin

	*  配合 plugin
		*  Plugin ArchiveUpload
		*  Add New Page Plugin
		*  Styler plugin
		*  Indexmenu plugin


- 設定與建立頁面

	*  本範例是將 scucs83:gallery 當相簿清單頁面, 主要的 code 如下:</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 21 Oct 2023 15:52:44 +0000</pubDate>
        </item>
        <item>
            <title>設定 Dokuwiki 使用 Google OAuth 認證方式登入</title>
            <link>https://www.ichiayi.com/tech/dokuwiki_google_oauth</link>
            <description>設定 Dokuwiki 使用 Google OAuth 認證方式登入

因為大量使用 Google 的服務, 也順便測試一下 dokuwiki 上 Google OAuth 的認證方式.

	*  Google+ API 2019/3/7 正式停用 - &lt;https://developers.google.com/+/api-shutdown&gt;
	*  目前使用的 dokuwiki authgoogle plugin 沒改版很可能就無法使用</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 12 Feb 2019 09:06:08 +0000</pubDate>
        </item>
        <item>
            <title>Dokuwiki mermaid Plugin</title>
            <link>https://www.ichiayi.com/tech/dokuwiki_mermaid</link>
            <description>Dokuwiki mermaid Plugin

	*  mermaid - &lt;https://mermaid.js.org/&gt;
	*  Dokuwiki Plugin - &lt;https://www.dokuwiki.org/plugin:mermaid&gt;
	*  Mermaid.js 是一個輕量級的 JavaScript 庫，用於 以簡單的文字語法（Markdown 風格）繪製圖表和流程圖。它適合開發人員、技術文檔撰寫者等，能夠快速生成 流程圖、時序圖、甘特圖、類別圖、ER 圖等，且能直接嵌入 Markdown 文件、Wiki、或 Web 應用中。 Exp. 流程圖</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 28 Mar 2025 02:31:11 +0000</pubDate>
        </item>
        <item>
            <title>Dokuwiki 自動切換 Mobile 呈現頁面方式</title>
            <link>https://www.ichiayi.com/tech/dokuwiki_mobile</link>
            <description>Dokuwiki 自動切換 Mobile 呈現頁面方式

因為最近開始使用 hTC Incredible S , 有這樣的需求, 很快找了一些現成的資料, 立即實現這樣的功能.

處理程序



	*  下載安裝 dokumobile Template 

cd /var/www/html/wiki/lib/tpl
wget http://kjh.ca/dokumobile_2010_02_28.zip
unzip dokumobile_2010_02_28.zip</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 01 May 2012 09:31:49 +0000</pubDate>
        </item>
        <item>
            <title>DokuWiki Plugin 精選</title>
            <link>https://www.ichiayi.com/tech/dokuwiki_plugin</link>
            <description>DokuWiki Plugin 精選

- 版面相關

- PopUpViewer

	*  &lt;https://www.dokuwiki.org/plugin:PopUpViewer&gt;
	*  下載網址 : &lt;https://github.com/i-net-software/dokuwiki-plugin-popupviewer/archive/master.zip&gt;
	*  參考網址 : &lt;https://github.com/i-net-software/dokuwiki-plugin-popupviewer&gt;

使用語法


{{popup&gt;%IMAGE/PAGE%?[%SIZE%]&amp;[keepOpen]|[%TEXT/IMAGE%]}}

 . %IMAGE/PAGE% 	在 DokuWiki 內的圖檔或頁面 Exp. tech:dokuwiki_plugin
 . %SIZE% (optional) 	跳出視窗的大小 (選用參數) Exp. 200×300
 . keepOpen (optional) 	
 . %TEXT/IMAGE% (optional) 顯示在頁面上的…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 16 Jan 2021 06:51:36 +0000</pubDate>
        </item>
        <item>
            <title>Dokuwiki 使用技巧整理</title>
            <link>https://www.ichiayi.com/tech/dokuwiki_tips</link>
            <description>Dokuwiki 使用技巧整理

- Dokuwiki 本身頁面異動 RSS 的使用方式

	*  通常使用者可會針對特定的 Name Space(NS) 內容有興趣, 因此想訂閱這 NS 的 RSS, 呼叫語法如下:

http://{myWikiUrl}/feed.php?ns={Name Space}&amp;view={Type}</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 25 Jul 2018 00:48:39 +0000</pubDate>
        </item>
        <item>
            <title>設定 Fail2Ban 阻絕暴力破解 dovecot / sendmail / bind / openvpn / ssh / apache 方式</title>
            <link>https://www.ichiayi.com/tech/dovecot_fail2ban</link>
            <description>設定 Fail2Ban 阻絕暴力破解 dovecot / sendmail / bind / openvpn / ssh / apache 方式

前幾天查看 maillog 發現一堆來自特定 ip 使用 pop3/imap 的登入掃描帳號攻擊, 看到後手動加入 iptable 阻絕掉這個 ip 的來源, 但是過幾天, 又看到相同的行為來自不同的 ip , 所以上網找一下是否有人已經寫好這樣的自動阻絕工具.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 16 Jan 2021 06:40:23 +0000</pubDate>
        </item>
        <item>
            <title>dovecot 在 nfs 儲存環境設定</title>
            <link>https://www.ichiayi.com/tech/dovecot_nfs</link>
            <description>dovecot 在 nfs 儲存環境設定

這問題在我更換大硬碟之後將 mail 實際存放改到 nfs 磁碟, 就出現 imap 搬移信件到特定目錄 lock 失敗的困擾, 剛剛終於解決.. 

我的目的不是多台 mail server 共享讀取 nfs 的檔案資料, 只是一台安裝在 VMWare 內的 mail server 讀取實體主機上面硬碟, 當 mail server 掛點, 可以快速切換恢復上線的需求.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 16 Jan 2021 06:38:43 +0000</pubDate>
        </item>
        <item>
            <title>draw.io 繪圖工具(Docker)</title>
            <link>https://www.ichiayi.com/tech/drawio</link>
            <description>draw.io 繪圖工具(Docker)

	*  安裝環境 :
		*  VM : 4 vCores / 8G RAM / 16G(SSD)
		*  OS : Alpine3 + Docker Compose


安裝方式

	*  編輯 docker-compose.yml 

#This compose file adds draw.io to your stack
version: &#039;3.5&#039;
services:
  drawio:
    image: jgraph/drawio
    container_name: drawio
    restart: unless-stopped
    ports:
      - 8081:8080
      - 8443:8443
    environment:
      PUBLIC_DNS: domain
      ORGANISATION_UNIT: unit
      ORGANISATION: org
      CITY: city
      STATE: state
      COUNTRY_COD…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 16 Feb 2024 02:23:46 +0000</pubDate>
        </item>
        <item>
            <title>CentOS 5 x86_64 上安裝 Dropbox</title>
            <link>https://www.ichiayi.com/tech/dropbox_centos</link>
            <description>CentOS 5 x86_64 上安裝 Dropbox

	*  安裝基本元件 

su - root
yum install bzip2 wget make gtk+-devel.x86_64 libnotify-devel.x86_64 nautilus-extensions.x86_64 nautilus-devel.x86_64 gnome-vfs2-devel.x86_64 compat-glibc-headers.x86_64 compat-glibc.x86_64 gnome-desktop-devel.x86_64</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 09 Jun 2011 16:44:45 +0000</pubDate>
        </item>
        <item>
            <title>設定 DuckDNS 的 DDNS 服務</title>
            <link>https://www.ichiayi.com/tech/duckdns_ddns</link>
            <description>設定 DuckDNS 的 DDNS 服務

	*  想讓原本 HiNet 光世代的動態 IP 可以對應到自己的 DNS Exp. myvpn.ichiayi.com 的設定方式

設定程序

	*  申請 DuckDNS 的免費服務 - &lt;https://www.duckdns.org/&gt;
		*  用 Google 帳號登入
		*  點下 reCaptcha , 如果使用 Brave 瀏覽器可能會出現</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 19 Nov 2023 11:30:17 +0000</pubDate>
        </item>
        <item>
            <title>ExcaliDraw 繪製草圖工具(Docker)</title>
            <link>https://www.ichiayi.com/tech/excalidraw</link>
            <description>ExcaliDraw 繪製草圖工具(Docker)

	*  安裝環境 :
		*  VM : 4 vCores / 8G RAM / 16G(SSD)
		*  OS : Alpine3 + Docker Compose


安裝方式

	*  編輯 docker-compose.yml 

version: &quot;3.8&quot;

services:
  excalidraw:
    image: excalidraw/excalidraw:latest
    container_name: excalidraw
    ports:
      - &quot;3000:80&quot;
    restart: on-failure
    stdin_open: true
    healthcheck:
      disable: true
    volumes:
      - ./:/opt/node_app/app:delegated
      - ./package.json:/opt/node_app/package.json
      - ./yarn.lock:/opt/nod…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 16 Feb 2024 04:12:24 +0000</pubDate>
        </item>
        <item>
            <title>CentOS 轉換 Ext3 到 Ext4</title>
            <link>https://www.ichiayi.com/tech/ext3_ext4</link>
            <description>CentOS 轉換 Ext3 到 Ext4

	*  假設原有 4TB ext3 格式的 /dev/VGData/lvdata 設定掛上 /data 
	*  預計將 ext3 轉成 ext4 資料能維持不變

轉換程序

	*  檢查現有 ext3 的完整度 (要三個小時)

umount /data
fsck.ext3 -pf /dev/VGData/lvdata</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 13 Jun 2016 09:21:54 +0000</pubDate>
        </item>
        <item>
            <title>CentOS 安裝 Fail2BAN 阻絕暴力破解</title>
            <link>https://www.ichiayi.com/tech/fail2ban</link>
            <description>CentOS 安裝 Fail2BAN 阻絕暴力破解

之前安裝過 DenyHosts阻絕透過暴力破解 ssh

	*  官方網站 - &lt;http://www.fail2ban.org/&gt;

安裝

	*  透過 yum + RPMForge repos 安裝

yum install fail2ban


	*  現在安裝版本是 fail2ban-0.8.2-3.el5.rf

fail2ban denyhosts</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 19 Oct 2012 01:54:28 +0000</pubDate>
        </item>
        <item>
            <title>手動解除 fail2ban 封鎖的 IP</title>
            <link>https://www.ichiayi.com/tech/fail2ban_unban</link>
            <description>手動解除 fail2ban 封鎖的 IP

因為常常發現更換密碼後, 來不及更改 client 端, 一下子 client 端的 IP 就被列入封鎖, 重新啟動 iptable , fail2ban 還是馬上會倍加回封鎖清單內, 因此找到以下的作法.

	*</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 02 Jan 2019 05:33:29 +0000</pubDate>
        </item>
        <item>
            <title>Facebook 操作整理</title>
            <link>https://www.ichiayi.com/tech/fbtips</link>
            <description>Facebook 操作整理

更改帳號與名稱方式

這問題剛開始的介面還很好找到, 現在比之前難找..

	*  畫面左上角的帳號-&gt;帳號設定 

	*  設定 


fb facebook</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 21 Mar 2011 07:12:25 +0000</pubDate>
        </item>
        <item>
            <title>FireFox Plugin 精選</title>
            <link>https://www.ichiayi.com/tech/firefox_plugin</link>
            <description>FireFox Plugin 精選

&lt;quote&gt;

	*  找尋 FireFox Plugin 網址 : &lt;https://addons.mozilla.org/en-US/firefox/search&gt;
	*  台灣社群推薦 : &lt;http://www.moztw.org/firefox/extension_top_15/&gt;

&lt;/quote&gt;


&lt;style box background&gt;
  名稱    下載安裝網址    簡單說明   ReminderFox                     &lt;https://addons.mozilla.org/en-US/firefox/addon/1191&gt;  支援 webdav 的 iCal 行事曆   FlahsGot</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 16 Jan 2021 06:51:36 +0000</pubDate>
        </item>
        <item>
            <title>Linux 修復 fstab 簡易方式</title>
            <link>https://www.ichiayi.com/tech/fixfstab</link>
            <description>Linux 修復 fstab 簡易方式

	*  當修改 /etc/fstab 之後，出現錯誤時，重新開機就無法正常完成開機程序，會卡在要求修復 Storage 的程序..
	*  當一顆資料硬碟損壞取出時，如果沒有修改 /etc/fstab 重新開機後也會出現無法正常完成開機程序</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 03 Oct 2010 08:29:29 +0000</pubDate>
        </item>
        <item>
            <title>安裝 flac 轉 mp3 工具程式</title>
            <link>https://www.ichiayi.com/tech/flac2mp3</link>
            <description>安裝 flac 轉 mp3 工具程式

- 安裝環境與主要工具

	*  作業系統 : CentOS 5.6 x86_64
	*  先安裝 RPMforge
	*  在安裝 flac lame id3lib

yum install flac lame id3lib



- 轉換語法

	*  xxx.flac to xxx.mp3 : 

flac -d --stdout &quot;xxx.flac&quot; | lame -V0 --vbr-new - &quot;xxx.mp3&quot;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 03 Jun 2011 05:14:31 +0000</pubDate>
        </item>
        <item>
            <title>FlySpray 問題控管系統安裝程序</title>
            <link>https://www.ichiayi.com/tech/flyspray</link>
            <description>FlySpray 問題控管系統安裝程序

	*  FlySpray 官方網站 : &lt;http://flyspray.org/&gt;

安裝環境

&lt;columns&gt;
&lt;style box float-left&gt;
&lt;ditaa name=env_desc&gt;

+--------------------+           +---------------+
 192.168.11.250                 192.168.11.251</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 16 Jan 2021 06:51:36 +0000</pubDate>
        </item>
        <item>
            <title>FON 改裝 DD-WRT Firmware</title>
            <link>https://www.ichiayi.com/tech/fon_dd-wrt</link>
            <description>FON 改裝 DD-WRT Firmware

	*  尚未實際安裝, 僅提供參考

	*  下載網址
		*  fonera-firmware.bin
		*  linux.bin


參考網址

	*  &lt;http://www.dd-wrt.com/wiki/index.php/LaFonera_Software_Flashing&gt;

wirelesslan ap fon dd-wrt draft</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 22 Mar 2011 02:35:54 +0000</pubDate>
        </item>
        <item>
            <title>有關 FortiGate 防火牆相關設定</title>
            <link>https://www.ichiayi.com/tech/fortigate_tips</link>
            <description>有關 FortiGate 防火牆相關設定

	*  設備型號 : FortiGate 40C (v5.2.13,build762)
	*  WAN1 : 220.100.100.100 GW: 220.100.100.254
	*  LAN(Internal) : 192.168.0.1

基本設定

	*  設定 WAN1 (wan1)
	*  設定 LAN (intrtnal)
	*  設定 Default Route</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 17 Oct 2025 03:05:06 +0000</pubDate>
        </item>
        <item>
            <title>[draft] FreeNAS 安裝設定紀錄</title>
            <link>https://www.ichiayi.com/tech/freenas_iscsi</link>
            <description>[draft] FreeNAS 安裝設定紀錄

	*  [&lt;http://www.freenas.org/hardware-requirements/&gt;|[建置 FreeNAS 硬體需求]]
	*  實際測試環境 (PVE 底下的 VM) : 
		*  vCPU :
		*  RAM :
		*  System HD :
		*  NAS HD :


設定 FreeNAS 系統郵件通知

	*  設定 root 的 E-Mail : Account-&gt;Users</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 02 Sep 2018 04:58:25 +0000</pubDate>
        </item>
        <item>
            <title>安裝 Gallery3 電子相簿</title>
            <link>https://www.ichiayi.com/tech/gallery3</link>
            <description>安裝 Gallery3 電子相簿

	*  EPEL 已經提供 Package, 所以安裝可以變得很簡易 

yum install gallery3 php-gd



================================================================================
 Package            Arch           Version                   Repository    Size
================================================================================
Installing:
 gallery3           noarch         3.0.9-1.el6               epel         1.5 M
Installing for dependencies:
 php-Kohana         noarch         2.4-1.rc2.el6.3 …</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 02 Jul 2015 10:29:09 +0000</pubDate>
        </item>
        <item>
            <title>Gallery2 出現 TMP_SESSION_ID_DI_NOISSES_PMT 錯誤問題</title>
            <link>https://www.ichiayi.com/tech/gallery_error</link>
            <description>Gallery2 出現 TMP_SESSION_ID_DI_NOISSES_PMT 錯誤問題

最近 Gallery2 更換使用 CentOS 5.2 內的預設 MySQL 5.0.45-7.el5 , 但是已經出現兩次這樣的問題, 發現原因是 g2_CacheMap 這個 Table 出現問題, 需要修復或重新建立就可以恢復正常. 方法說明如下:</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 16 Aug 2008 14:20:36 +0000</pubDate>
        </item>
        <item>
            <title>安裝 Gemini Cli (Ubuntu 24.04)</title>
            <link>https://www.ichiayi.com/tech/gemini_cli</link>
            <description>安裝 Gemini Cli (Ubuntu 24.04)

安裝程序

	*  
	*  之後如果要更新 

使用方式

	*  進入 repo 目錄
	*  執行

	*  產生相關設定擋在 ~/.gemini 目錄內 Exp. 

安裝與選用 MCP

	*  Context7 (動態文檔) 

:
  &quot;mcpServers&quot;: {
    &quot;context7&quot;: {
      &quot;command&quot;: &quot;npx&quot;,
      &quot;args&quot;: [&quot;-y&quot;, &quot;@upstash/context7-mcp&quot;],
      &quot;env&quot;: {},
      &quot;working_directory&quot;: null,
      &quot;start_on_launch&quot;: true      
    }
  }
:</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 14 Oct 2025 08:06:55 +0000</pubDate>
        </item>
        <item>
            <title>使用 gist.github.com 管理公開型資料</title>
            <link>https://www.ichiayi.com/tech/gist</link>
            <description>使用 gist.github.com 管理公開型資料

	*  在開發或系統管理中，常需分享公開的定義檔（如 Nginx 配置或環境變數），但傳統檔案託管容易導致 URL 因版本更新而失效。這不僅影響外部主機的自動讀取，還可能造成維護麻煩。幸運的是，GitHub Gist 提供了一個簡單的解決方案：它支援版本控制，讓你輕鬆管理檔案變更，同時生成穩定的 Raw URL，適合大量外部系統存取。</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 09 Oct 2025 09:15:09 +0000</pubDate>
        </item>
        <item>
            <title>由 git repo 產生 git graph</title>
            <link>https://www.ichiayi.com/tech/git-graph</link>
            <description>由 git repo 產生 git graph

想要產生 git repo 內各分支與 commit 的圖形, 找到一個簡單的產生工具 git-big-picture

安裝程序

	*  安裝環境 : Ubuntu 20.04
		*  Python &gt;=3.7
		*  Git (1.7.1 works)
		*  Graphviz utility

	*  安裝套件</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 10 May 2022 18:17:23 +0000</pubDate>
        </item>
        <item>
            <title>在 CentOS 下建立 Git Server</title>
            <link>https://www.ichiayi.com/tech/git</link>
            <description>在 CentOS 下建立 Git Server

install git</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 20 Nov 2012 05:12:46 +0000</pubDate>
        </item>
        <item>
            <title>使用 github.io 部署靜態網頁</title>
            <link>https://www.ichiayi.com/tech/github-io</link>
            <description>使用 github.io 部署靜態網頁

	*  採用建立專案網站 (username.github.io/repository) 方式, 網址會是 
https://&lt;你的GitHub帳號&gt;.github.io/&lt;儲存庫名稱&gt;


建立方式

	*  建立新的 Repository：Exp. wbs-tool -&gt; &lt;https://github.com/tryweb/wbs-tool/&gt;
	*  將靜態網頁檔案上傳到這個儲存庫。Exp. index.html</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 15 Oct 2025 10:10:36 +0000</pubDate>
        </item>
        <item>
            <title>Github 使用 Deploy Key 存取 repo</title>
            <link>https://www.ichiayi.com/tech/github_deploy_key</link>
            <description>Github 使用 Deploy Key 存取 repo

打算將私有 repo 提供唯讀權限給特定對象, 但 Github 的 personal access token 並不提供這樣針對特定 repo 的唯讀權限設定, 後來發現似乎可以使用 repo 內的 Deploy Key 來達成.

建立 ssh key

	*  Exp. mytest@ichiayi.com / 不需要密碼</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 06 Aug 2021 13:10:50 +0000</pubDate>
        </item>
        <item>
            <title>建立 GitHub Token 方式</title>
            <link>https://www.ichiayi.com/tech/github_token</link>
            <description>建立 GitHub Token 方式

因為看到 GitHub 2021/06/28 之後就無法使用密碼進行存取, 必須改用 Token 來存取, 因此找了一下建立 Token 的方式, 以下是建立一個可以存取公開 Repo 的 Token 程序.

	*  登入 Github 網頁</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 20 Feb 2021 00:53:01 +0000</pubDate>
        </item>
        <item>
            <title>使用 API 方式將 GitHub Repo 匯入 GitLab</title>
            <link>https://www.ichiayi.com/tech/gitlab-import-from-github</link>
            <description>使用 API 方式將 GitHub Repo 匯入 GitLab

想要將 GitHub 特定的 Repo 批次匯入本地端的 GitLab, 所以了解一下 GitHub 與 GitLab 現有的 API, 應該可以達成這個需求

在 GitLab 建立 Group

	*  需要先在
		*  GitLab 申請一個有建立 Group 權限的 access token Exp. QMi2xxxxxxxxxxxx-oaQ</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 19 Feb 2021 04:46:37 +0000</pubDate>
        </item>
        <item>
            <title>Gitlab to GitHub 設定方式</title>
            <link>https://www.ichiayi.com/tech/gitlab-to-github</link>
            <description>Gitlab to GitHub 設定方式

因為需要將 GitLab 特定專案與 GitHub 特定專案進行同步, 因此將設定過程記錄在以下, 目前同步情境是 GitLab 如果有 push 就會自動 push 到 GitHub 上.

	*  預計將 GitLab 上的 php-templ-verify-prj 專案 與 GitHub 上的 php-app-pipeline-template 進行同步</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 04 Feb 2021 03:42:14 +0000</pubDate>
        </item>
        <item>
            <title>GitLab 操作整理</title>
            <link>https://www.ichiayi.com/tech/gitlab</link>
            <description>GitLab 操作整理

重設 GitLab root 密碼

	*  參考 - &lt;https://honglung.pixnet.net/blog/post/201233991-gitlab-%E9%87%8D%E8%A8%AD-root-%E5%AF%86%E7%A2%BC&gt;

	*  進入 gitlab console 
	*  找到 root 
	*  設定新密碼 
	*  確認新密碼 
	*  將設定存檔 

	*  整體過程如下:

git pull 記憶帳號密碼方式

	*  參考網址 -</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 06 Feb 2021 14:17:07 +0000</pubDate>
        </item>
        <item>
            <title>GitLab 安裝相關紀錄</title>
            <link>https://www.ichiayi.com/tech/gitlabtips</link>
            <description>GitLab 安裝相關紀錄

	*  安裝環境 : Alpine 3.20 + docker compose

docker compose (非正式 SSL 憑證)

	*  docker-compose.yml 
	*  啟動服務 
	*  查看自動產生的 root 密碼 

docker compose (含 ACME 自動更新 SSL 憑證)

	*</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 05 May 2025 03:03:22 +0000</pubDate>
        </item>
        <item>
            <title>安裝 GitLab Runner 方式</title>
            <link>https://www.ichiayi.com/tech/gitlab_runner</link>
            <description>安裝 GitLab Runner 方式

Ubuntu 24.04

	*  下載最新版本的 GitLab Runner 
	*  賦予執行權限
	*  創建 GitLab Runner 用戶
	*  安裝並啟動服務
	*  驗證安裝

將 Runner 加入 GitLab

	*  進入 GitLab Admin 介面 -&gt; CI/CD -&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 05 Nov 2025 22:49:20 +0000</pubDate>
        </item>
        <item>
            <title>GitLab 升級方式</title>
            <link>https://www.ichiayi.com/tech/gitlab_upgrade</link>
            <description>GitLab 升級方式

	*  目標 GitLab 12.10 升級至 16.x
	*  環境1: K8s 內 (Image : gitlab/gitlab-ce:12.10.6-ce.0)
	*  環境2: Debian / Ubuntu 內使用 apt 安裝的 gitlab-ce

升級程序

	*  依據 GitLab 官方資訊提供的升級規則, 12.10 升級至 16.x 必須要依照以下的版本逐步升級上去才能成功</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 03 Mar 2024 00:29:51 +0000</pubDate>
        </item>
        <item>
            <title>Git 命令列操作整理</title>
            <link>https://www.ichiayi.com/tech/git_cli</link>
            <description>Git 命令列操作整理

FAQ

0. 基本設定

	*  設定將帳號與 Token 存寫到 store 上
		*  這會把帳密（或 Token）以明文的方式儲存在 ~/.git-credentials 中。請注意：這是明文儲存，不加密，僅適用於安全的開發環境。</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 19 Aug 2025 01:05:54 +0000</pubDate>
        </item>
        <item>
            <title>Git 手動 Mirror 方式</title>
            <link>https://www.ichiayi.com/tech/git_push</link>
            <description>Git 手動 Mirror 方式

Git 和 SVN 很不同的就是 Git 只要在 server 有權限透過 push 就可將 repo 內所擁有的歷史紀錄整個 mirror 到 Server (歷史紀錄內的 commit user 不在 Server 帳號權限清單內也都 OK)

以下就以一個在 GitHUb 的專案 Mirror 到本地端的 GitLab 專案為例進行說明.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 13 May 2021 12:20:55 +0000</pubDate>
        </item>
        <item>
            <title>Windows 環境下的 git 工具(TortoiseGit)</title>
            <link>https://www.ichiayi.com/tech/git_windows</link>
            <description>Windows 環境下的 git 工具(TortoiseGit)

	*  因為之前使用 TortoiseSVN 很習慣整合 windows 檔案總管的方式, 所以改用 git 時也是用 TortoiseGit 延續原始碼或文件檔案的管理
	*  安裝也是很簡單, 只要至Download頁面下載執行安裝即可, 會一併偵測 Windows 環境有否安裝</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 29 Sep 2022 00:50:13 +0000</pubDate>
        </item>
        <item>
            <title>Glassfish AP Server 整理</title>
            <link>https://www.ichiayi.com/tech/glassfish</link>
            <description>Glassfish AP Server 整理

- CentOS 5 安裝 GlassFish v3

	*  下載 jdk6+glassfish 版本 &lt;http://www.oracle.com/technetwork/java/javaee/downloads/java-ee-sdk-6u3-web-downloads-439820.html&gt;





- Glassfish 時區

	*  發現程式寫入產生的時間有時差, 可以透過以下方式確認 Glassfish 的時間設定

localadmin@iSoft31:/opt/glassfishv3/glassfish/bin$ ./asadmin generate-jvm-report | grep time
General Java Runtime Environment Information for the VM: 10069@iSoft31
java.runtime.name = Java(TM) SE Runtime Environment
java.runtime.version = 1.7.0_01-b08
or…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 23 Aug 2012 10:12:23 +0000</pubDate>
        </item>
        <item>
            <title>安裝 GMail Filesystem</title>
            <link>https://www.ichiayi.com/tech/gmailfs</link>
            <description>安裝 GMail Filesystem

因為 Google Mail 提供 5GB 的空間, 就有人想到將這空間拿來當網路磁碟機

&lt;quote&gt;

	*  Windows : GMailDrive 很簡單安裝就可以馬上用
	*  Linux : GMail Filesystem  以下將針對 CentOS 5 64bit 實際安裝說明 FIXME 
		*</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 20 Aug 2008 23:06:02 +0000</pubDate>
        </item>
        <item>
            <title>用 goaccess 分析 Nginx Proxy Manager(NPM) 紀錄檔</title>
            <link>https://www.ichiayi.com/tech/goaccess-for-nginxproxymanager</link>
            <description>用 goaccess 分析 Nginx Proxy Manager(NPM) 紀錄檔

	*  當完成 Nginx Proxy Manager(NPM) 當 Revers Proxy Server(Docker) 後, 在相同 VM 內繼續執行

安裝程序

	*  

version: &#039;3.3&#039;
services:
    goaccess:
        image: &#039;xavierh/goaccess-for-nginxproxymanager:latest&#039;
        container_name: goaccess
        restart: always
        ports:
            - &#039;7880:7880&#039;
        environment:
            - TZ=Asia/Taipei
            - SKIP_ARCHIVED_LOGS=False #optional
            - DEBUG=False #optional
            - BASIC_AUTH=Fals…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 20 Jan 2024 14:08:29 +0000</pubDate>
        </item>
        <item>
            <title>Google 表單使用相關技巧</title>
            <link>https://www.ichiayi.com/tech/google_form_tips</link>
            <description>Google 表單使用相關技巧

設定表單有新填寫資料就通知特定人員

	*  主要是透過表單外掛軟體解決 - Email Notifications for Google Forms
	*  設定方式可以參考這外掛的 YouTube 教學影片 - &lt;https://www.youtube.com/watch?v=FvZ2tM0m7AY&gt;
	*  除 E-Mail 通知外, 也有 Webhook, Slack, Discord</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 11 Apr 2024 08:43:53 +0000</pubDate>
        </item>
        <item>
            <title>Google Latitude API</title>
            <link>https://www.ichiayi.com/tech/google_latitude_api</link>
            <description>Google Latitude API

	*  先要有個 Google Account
	*  先要玩玩 Google Latitude app
	*  到 Google APIs console 去要個 API key

參考網址

	*  &lt;http://code.google.com/intl/zh-TW/apis/latitude/&gt;
	*  &lt;https://github.com/vinzenzweber/Google-Latitude-Javascript-Example&gt;

google-api lbs</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 01 Jul 2011 03:52:05 +0000</pubDate>
        </item>
        <item>
            <title>Google Spreadsheets(試算表) 使用技巧</title>
            <link>https://www.ichiayi.com/tech/google_spreadsheets_tips</link>
            <description>Google Spreadsheets(試算表) 使用技巧

取排序後的第一筆資料

	*  參考 - &lt;https://stackoverflow.com/questions/50019391/last-row-in-google-sheets&gt;
	*  使用 Google 表單回報, 可能先前回報錯誤會在回報一次更正, 所以彙整資料時取出相同回報人的最後一筆回報資料就變得很需要</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 21 Dec 2021 00:57:45 +0000</pubDate>
        </item>
        <item>
            <title>環天 GPS 導航軟體 G-Map</title>
            <link>https://www.ichiayi.com/tech/gps_gmap</link>
            <description>環天 GPS 導航軟體 G-Map

上星期在 Yahoo! 購物中心用 $3490 買了 G-Sat GA-4640, 重點規格是:

	*  處理器: Atlas IV 500MHz 
	*  作業系統: WinCE.NET 6.0 
	*  GPS模組: SiRF Star IV 

內部搭配的是 GMAP P1.0 導航軟體, 導航功能用起來覺得和 Papago VR-1 相比, 我還是比較習慣 VR-1 在路口前一點就先預告要轉彎, GMAP 常常已經道路口才提醒要轉彎, 不熟路況真的還很危險.. 希望這樣的問題在 GMAP 導航軟體下次更新時看看能否改善..…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 19 May 2010 10:34:07 +0000</pubDate>
        </item>
        <item>
            <title>GPS 多選單製作方式(尚未完成)</title>
            <link>https://www.ichiayi.com/tech/gps_menu</link>
            <description>GPS 多選單製作方式(尚未完成)

主要是針對採用 WinCE 的 GPS 以 SystemInformation 這套免費製作多選單工具的實做紀錄.

	*  下載 &lt;http://www.ultimatelaunch.de/download/SystemInformation1.6.1_Desktop.zip&gt;

gps wince systeminformation</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 13 May 2010 02:18:59 +0000</pubDate>
        </item>
        <item>
            <title>NaviPOWM - 免費開源碼的 GPS 軌跡紀錄軟體</title>
            <link>https://www.ichiayi.com/tech/gps_navipowm</link>
            <description>NaviPOWM - 免費開源碼的 GPS 軌跡紀錄軟體

 



	*  官方網址 : &lt;http://navipowm.sourceforge.net/&gt;
	*  地圖網址 : &lt;http://dev.openstreetmap.de/navipowmmaps/&gt;
		*  台灣地圖 :
			*  &lt;http://dev.openstreetmap.de/navipowmmaps/navipowm/asia/E120N21.7z&gt;
			*  &lt;http://dev.openstreetmap.de/navipowmmaps/navipowm/asia/E120N22.7z&gt;  
			*  &lt;http://dev.openstreetmap.de/navipowmmaps/navipowm/asia/E120N23.7z&gt;
			*  &lt;http://dev.openstreetmap.de/navipowmmaps/navipowm/asia/E120N24.7z&gt;
			*  &lt;http://dev.openstreetmap.de/navipowmmaps/navipo…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 18 May 2010 10:21:19 +0000</pubDate>
        </item>
        <item>
            <title>NoniGPSPlot - 免費好用的 GPS 軌跡紀錄軟體</title>
            <link>https://www.ichiayi.com/tech/gps_nonigpsplot</link>
            <description>NoniGPSPlot - 免費好用的 GPS 軌跡紀錄軟體

	*  官方網站 : &lt;http://aeguerre.free.fr/Public/PocketPC/NoniGPSPlot/EN/index.php&gt;

下載 Google Map 等地圖整合工具

	*  點這裡看參考網址
  PC 端軟體 NoniMapView.exe (java 版本)      
	*  點下 Start 後指定下載檔名 Exp. Taipei_City 就會產生 Taipei_City.map 以及 Taipei_City.jpg</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 04 May 2010 10:38:53 +0000</pubDate>
        </item>
        <item>
            <title>PaPaGo VR-ONE 應用軟體整理</title>
            <link>https://www.ichiayi.com/tech/gps_papago_vr1</link>
            <description>PaPaGo VR-ONE 應用軟體整理

最近用 NT$3990 買了台 Altina A700 GPS，但導航軟體是改用 PaPaGo VR-ONE，因此針對 PaPaGo VR-ONE 相關軟體整理在這裡.

- 台灣地圖檔資料更新

	*  PaPaGo VR-ONE 官方網址
	*  PaPaGo! VR-ONE 台灣地圖檔 PocketPC

- 美化畫面視覺效果

	*  昭子搖搖 - PAPAGO VR-ONE 視覺系惡搞
	*  趴趴走の秘密基地 - [再度加強] PAPAGO!VR-ONE Mobile (PPC) 美化

- 自建地標維護與軌跡檔轉換</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 01 Mar 2010 19:40:33 +0000</pubDate>
        </item>
        <item>
            <title>安裝 grype 弱點掃描工具</title>
            <link>https://www.ichiayi.com/tech/grype</link>
            <description>安裝 grype 弱點掃描工具

	*  安裝環境 : Alpine 3.18

安裝方式

	*  
	*  看安裝結果++

使用方式

	*  查看使用版本 
	*  弱點資料庫管理
		*  更新弱點資料庫 
		*  查看弱點資料庫資訊  Exp.

	*  掃描 Docker Image 的弱點 Exp. anchore/grype:latest</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 12 Dec 2023 04:50:59 +0000</pubDate>
        </item>
        <item>
            <title>CentOS x86_64 安裝 GSmartControl</title>
            <link>https://www.ichiayi.com/tech/gsmartcontrol</link>
            <description>CentOS x86_64 安裝 GSmartControl

	*  GSmartControl 是一套在 XWindows 底下圖形介面管理 S.M.A.R.T 硬碟的工具程式
	*  官方網站 &lt;http://sourceforge.net/apps/trac/smartmontools/&gt;

- 安裝程序


su - root
cd /etc/yum.repos.d/
wget http://download.opensuse.org/repositories/home:/alex_sh/CentOS_5/home:alex_sh.repo
yum install gsmartcontrol.x86_64</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 21 Jun 2011 07:53:14 +0000</pubDate>
        </item>
        <item>
            <title>安裝 HeardBeat-DRDB 程序(尚未完成)</title>
            <link>https://www.ichiayi.com/tech/ha-drdb</link>
            <description>安裝 HeardBeat-DRDB 程序(尚未完成)

	*  安裝環境:
		*  CentOS 5.4 x86_64 兩台
			*  rdtest04-xen02 : 10.92.143.210 (來源磁碟 /dev/sdb 會被同步到目標磁碟)
			*  rdtest04-xen03 : 10.92.143.211 (目標磁碟 /dev/sdb)

		*  rdtest04-xen02 來源磁碟 /dev/sdb 會被同步到 rdtest04-xen03 目標磁碟 /dev/sdb</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 25 Feb 2010 02:19:41 +0000</pubDate>
        </item>
        <item>
            <title>Rancher + Harbor + private CA</title>
            <link>https://www.ichiayi.com/tech/harbor_rancher_ca</link>
            <description>Rancher + Harbor + private CA

	*  Harbor Info:
		*  URL - &lt;https://10.20.0.71:5443/&gt;
		*  User tryweb
		*  Add Public Project - tryweb 

	*  Login Harbor:

push 建立好的 image 到 Harbor

	*  參考網址 - &lt;https://ithelp.ithome.com.tw/articles/10191213&gt;
	*  Exp. 建立的 image : devops-db:v1 
	*  檢視本地 images 清單</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 20 Apr 2021 01:12:41 +0000</pubDate>
        </item>
        <item>
            <title>[draft]Harbor 升級方式</title>
            <link>https://www.ichiayi.com/tech/harbor_upgrade</link>
            <description>[draft]Harbor 升級方式

	*  環境 : K8s 使用 helm 安裝
	*  現有版本 v2.1.5 -&gt; chart v1.5.5 
	*  目標版本 v2.3.5 -&gt; chart v.1.7.5

升級處理程序

參考網址

	*  &lt;https://goharbor.io/docs/2.3.0/administration/upgrade/helm-upgrade/&gt;
	*  &lt;https://hub.docker.com/r/goharbor/harbor-core/tags?page=1&amp;name=v2.1.5&gt;
	*  &lt;https://github.com/goharbor/harbor-helm/tags&gt;

harbor devops draft</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 15 Feb 2022 11:13:01 +0000</pubDate>
        </item>
        <item>
            <title>自行建立 IMS 頻道服務</title>
            <link>https://www.ichiayi.com/tech/hdp_ims</link>
            <description>自行建立 IMS 頻道服務

參考網址

	*  &lt;https://github.com/ypchen/hdp_ims&gt;
	*  &lt;http://electronmania.blogspot.tw/2015/03/ibt-1283pvrvod-youtubeypchen-ims.html&gt;

ims</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 19 Apr 2019 03:06:33 +0000</pubDate>
        </item>
        <item>
            <title>網站取得用戶真實 IP 的方法</title>
            <link>https://www.ichiayi.com/tech/http_realip</link>
            <description>網站取得用戶真實 IP 的方法

	*  目前網站的網路架構愈來愈複雜, 要取得用戶真實的 IP 需要透過特別指定與層層的傳遞才有機會取得

通用原則：掌握 HTTP Real IP 標頭

	*  取得真實 IP 的核心在於：</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 03 Oct 2025 14:57:57 +0000</pubDate>
        </item>
        <item>
            <title>Hyper-V 內建立有固定 IP 的 VM</title>
            <link>https://www.ichiayi.com/tech/hyperv_static_ip</link>
            <description>Hyper-V 內建立有固定 IP 的 VM

主要的概念是

	*  建立一個內部的虛擬交換器 (MyNet)
	*  對這個虛擬交換器的網卡設定想要的 IP (192.168.7.1)
	*  VM 除原本連上 Default 虛擬交換器的網卡(eth0)外, 增加連上 MyNet 虛擬交換器的第二張網卡(eth1)</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 26 Jan 2021 10:45:39 +0000</pubDate>
        </item>
        <item>
            <title>安裝 Immich (取代 Google 相簿)</title>
            <link>https://www.ichiayi.com/tech/immich</link>
            <description>安裝 Immich (取代 Google 相簿)

	*  VM : 2vCore / 4GRAM / 32GSSD
	*  OS : Alpine 3 參考 - 在 Alpine Linux 3 底下安裝 docker + docker-compose

安裝程序

	*  採用 nfs 方式將 LocalPhotos  掛入  
		*  處理程序:


	*  如果可以正確掛上 /nfs-immich 看到 NAS 內的檔案, 就可以設定開機自動掛上</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 03 Sep 2025 07:15:27 +0000</pubDate>
        </item>
        <item>
            <title>安裝 InfluxDB Cluster</title>
            <link>https://www.ichiayi.com/tech/influxdb</link>
            <description>安裝 InfluxDB Cluster

	*  CentOS 6.x x86_64 環境
	*  InfluxDB 0.10.x
	*  Hybrid node : 
		*  infxnode1 : 140.92.143.36
		*  infxnode2 : 140.92.143.43
		*  infxnode3 : 140.92.143.86


安裝 InfluxDB

	*  建立 InfluxDB yum Repos

cat &lt;&lt;EOF | sudo tee /etc/yum.repos.d/influxdb.repo
[influxdb]
name = InfluxDB Repository - RHEL \$releasever
baseurl = https://repos.influxdata.com/rhel/\$releasever/\$basearch/stable
enabled = 1
gpgcheck = 1
gpgkey = https://repos.influxdata.com/influxdb.key
EOF</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 30 Oct 2016 03:38:51 +0000</pubDate>
        </item>
        <item>
            <title>[draft]Ceph 安裝在 Ubuntu 20.04</title>
            <link>https://www.ichiayi.com/tech/install_ceph</link>
            <description>[draft]Ceph 安裝在 Ubuntu 20.04

參考網址

	*  &lt;https://kifarunix.com/install-and-setup-ceph-storage-cluster-on-ubuntu/&gt;

ceph fileserver</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 18 Apr 2022 01:12:28 +0000</pubDate>
        </item>
        <item>
            <title>CentOS5 安裝 DenyHosts 阻絕 ssh 暴力破解</title>
            <link>https://www.ichiayi.com/tech/install_denyhosts</link>
            <description>CentOS5 安裝 DenyHosts 阻絕 ssh 暴力破解

DenyHosts 是透過登入失敗紀錄的來源 ip 來判別是否自動將此 ip 列入黑名單的工具.

安裝方式

	*  先安裝好 rpmforge
	*  透過 yum install 安裝 DenyHosts

yum install denyhosts</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 19 Apr 2014 01:27:41 +0000</pubDate>
        </item>
        <item>
            <title>安裝 Gallery2 電子相簿系統</title>
            <link>https://www.ichiayi.com/tech/install_gallery</link>
            <description>安裝 Gallery2 電子相簿系統

	*  Gallery2 官方網站 : &lt;http://codex.gallery2.org&gt;
	*  安裝環境 : 
		*  OS : CentOS 5.4 i386
		*  Web : httpd-2.2.3-31 + php-5.1.6-24
		*  Gallery : gallery-2.3.1-full.tar.gz


轉圖安裝模組

	*  先安裝好 rpmforge

rpm -Uvh http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.5.1-1.el5.rf.i386.rpm</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 30 Mar 2012 23:58:10 +0000</pubDate>
        </item>
        <item>
            <title>[Draft]安裝 Jitsi Docker 版本</title>
            <link>https://www.ichiayi.com/tech/install_jitsi_docker</link>
            <description>[Draft]安裝 Jitsi Docker 版本

	*  安裝環境:
		*  Ubuntu 20.04.4 + Docker Compose 1.25.0


安裝程序

	*  安裝相關套件
	*  至 docker-jitsi-meet github repo下載最新版 Jitsi 
	*  設定環境變數檔與產生密碼 
	*  啟動 docker-compose 

參考網址</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 09 Jul 2022 09:13:45 +0000</pubDate>
        </item>
        <item>
            <title>安裝 Mail Server 程序</title>
            <link>https://www.ichiayi.com/tech/install_mail</link>
            <description>安裝 Mail Server 程序

	*  目前我已經改用 iRedMail 來當郵件主機
	*  請參考 - CentOS7 安裝 iRedMail Mail Server

&lt;style box float-left&gt;
相關頁面:

----------

	*  正式 Mail Server 所需要的必備環境條件
	*  CentOS5 安裝 SPF/DKIM 郵件認證

&lt;/quote&gt;

- 先設定 hosts


vi /etc/hosts



:
127.0.0.1               e-plast-mail mail.e-plast.com.tw localhost
:</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 16 Jan 2021 06:51:36 +0000</pubDate>
        </item>
        <item>
            <title>安裝 MailWatch 方式</title>
            <link>https://www.ichiayi.com/tech/install_mailwatch</link>
            <description>安裝 MailWatch 方式

MailWatch 可以統計 MailScanner 的運作狀況, 並將之存到 MySQL 協助管理的工具

	*  下載 MailWatch 

su - root
cd /var/www/html
wget http://sourceforge.net/projects/mailwatch/files/mailwatch/1.0.5/mailwatch-1.0.5.tar.gz/download
tar -zxvf mailwatch-1.0.5.tar.gz
mv mailwatch-1.0.5 mailwatch
cd mailwatch</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 30 Jun 2011 08:55:08 +0000</pubDate>
        </item>
        <item>
            <title>安裝 OWL 檔案 web 分享管理系統(尚未完成)</title>
            <link>https://www.ichiayi.com/tech/install_owl</link>
            <description>安裝 OWL 檔案 web 分享管理系統(尚未完成)

	*  OS : CentOS release 5.4 (Final)
	*  apache : httpd-2.2.3-31.el5.centos.2
	*  mysql : mysql-5.0.77-4.el5_4.1


cd /var/www/html
wget http://downloads.sourceforge.net/project/owl/Owl/Owl%200.9x/owl-0.96.tar.gz?use_mirror=ncu
tar -zxvf owl-0.96.tar.gz
mv owl-0.96 owl

wget http://ncu.dl.sourceforge.net/project/owl/Owl%20Language%20Packs/Owl%200.9x/Owl-0.9x-locale-Chinese_b5.tar.gz
tar -zxvf Owl-0.9x-locale-Chinese_b5.tar.gz
mv Chinese_b5 owl/locale/Chinese

chown -R …</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 08 Feb 2010 10:51:38 +0000</pubDate>
        </item>
        <item>
            <title>CentOS5 安裝 SPF/DKIM 郵件認證</title>
            <link>https://www.ichiayi.com/tech/install_spf_dkim</link>
            <description>CentOS5 安裝 SPF/DKIM 郵件認證

	*  SPF (Sender Policy Framework)
	*  DKIM (DomainKeys Identified Mail)

安裝前先確認已經安裝以下套件 


yum install openssl openssl-devel sendmail sendmail-devel


- 設定 SPF 方式

設定 SPF 只是在</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 20 May 2018 07:04:58 +0000</pubDate>
        </item>
        <item>
            <title>安裝 CentOS YUM 更版主機程序</title>
            <link>https://www.ichiayi.com/tech/install_yum</link>
            <description>安裝 CentOS YUM 更版主機程序

主要目標是要提供 CentOS 4.8 / CentOS 5.4 的更版主機

同步 CentOS/RPMForge 來源 YUM Server


su - root
yum install createrepo
mkdir -p /var/www/html/CentOS

# 以下是同步 CentOS 官方網站 rsync 主機
rsync -aqzH --delay-updates --delete msync.centos.org::CentOS/4 /var/www/html/CentOS/
rsync -aqzH --delay-updates --delete msync.centos.org::CentOS/4.8 /var/www/html/CentOS/
rsync -aqzH --delay-updates --delete msync.centos.org::CentOS/5 /var/www/html/CentOS/
rsync -aqzH --delay-updates --delete msync.centos.…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 30 Mar 2010 09:54:30 +0000</pubDate>
        </item>
        <item>
            <title>IP 直接對應的 DNS 免費服務</title>
            <link>https://www.ichiayi.com/tech/ip-dns-service</link>
            <description>IP 直接對應的 DNS 免費服務

在多主機運作環境下, 有些內部服務需要定義 Domain Name 才能運作, 所以不想將這樣的 IP 設定到 DNS 內或是加到每台主機的 /etc/hosts 內, 只要主機詢問的 DNS 是可以連上 Internet 就可以透過 xip.io 這樣的 wildcard</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 16 Jan 2021 06:41:13 +0000</pubDate>
        </item>
        <item>
            <title>IPFS 在 Docker 環境運行</title>
            <link>https://www.ichiayi.com/tech/ipfs-docker</link>
            <description>IPFS 在 Docker 環境運行

	*  使用最新版的 image - ipfs/kubo:latest
	*  相關環境配置 
		*  設定檔案存放路徑
		*  啟動 ipfs , 預設開啟 ports 4001 (P2P TCP/QUIC transports), 5001 (RPC API) and 8080 (Gateway):
		*  查看 ipfs 運行紀錄</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 04 Sep 2022 15:43:27 +0000</pubDate>
        </item>
        <item>
            <title>測試將靜態 web 放上 IPFS</title>
            <link>https://www.ichiayi.com/tech/ipfs-web</link>
            <description>測試將靜態 web 放上 IPFS

上傳靜態 web 檔案上傳至 IPFS

	*  參考:IPFS 在 Docker 環境運行
		*  將網頁檔案放入 staging 目錄內 Exp. 
		*  將網頁檔案上傳至 ipfs 
		*  使用 ipfsbrowser 驗證 
		*  因為 QmXjMZ2w2dXrimcSsY6gfLmdZVTZKsF9UrZRzeijYyd2a2 是 png 圖檔, 所以會出現 Warning 的訊息</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 09 Sep 2022 09:36:11 +0000</pubDate>
        </item>
        <item>
            <title>ipfs 使用測試</title>
            <link>https://www.ichiayi.com/tech/ipfs</link>
            <description>ipfs 使用測試

Alpine 3 安裝

	*  安裝環境 Alpine Linux 3.16
	*  ipfs 0.12.2 

CentOS 6 安裝

	*  安裝環境 CentOS 6.8 x86_64
		*  ipfs v0.4.2


wget https://dist.ipfs.io/go-ipfs/v0.4.2/go-ipfs_v0.4.2_linux-amd64.tar.gz
tar xvfz go-ipfs_*.tar.gz
mv go-ipfs/ipfs /usr/local/bin/ipfs</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 06 Sep 2022 22:32:58 +0000</pubDate>
        </item>
        <item>
            <title>CentOS7 安裝 iRedMail Mail Server</title>
            <link>https://www.ichiayi.com/tech/iredmail</link>
            <description>CentOS7 安裝 iRedMail Mail Server

	*  安裝環境 : CentOS Linux release 7.5.1804 (Core)
cat /etc/redhat-release

++

	*  iRedMail 0.9.8
	*  IP : 172.21.20.253
	*  DN : iredmail.ichiayi.com
	*  hostname : iredmail

環境準備

	*  關閉 selinux</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 26 Jun 2021 16:05:56 +0000</pubDate>
        </item>
        <item>
            <title>使用 jailkit 限制使用者只能使用 scp/sftp 與特定目錄功能</title>
            <link>https://www.ichiayi.com/tech/jailkit</link>
            <description>使用 jailkit 限制使用者只能使用 scp/sftp 與特定目錄功能

	*  jailkit 官方網址 : &lt;http://olivier.sessink.nl/jailkit/&gt;

因為最近有需要提供一個 sftp 的上傳檔案服務，但是不希望使用者可以用到 ssh 登入操作的功能，在 Google 大神的指示下，先找到了</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 08 Feb 2010 09:02:10 +0000</pubDate>
        </item>
        <item>
            <title>安裝 Joplin Server(Docker)</title>
            <link>https://www.ichiayi.com/tech/joplin</link>
            <description>安裝 Joplin Server(Docker)

	*  想找一個可以多個裝置離線編輯, 同步到自己的 Server 筆記工具.. 最近剛好看到 Joplin 似乎很符合這個需求.
	*  Joplin 已經提供主流用戶端平台的程式, 可直接到 &lt;https://joplinapp.org/download/&gt; 下載安裝</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 21 Aug 2025 04:06:58 +0000</pubDate>
        </item>
        <item>
            <title>[Draft]練習 Javascript for Video</title>
            <link>https://www.ichiayi.com/tech/jsvideo</link>
            <description>[Draft]練習 Javascript for Video

	*  需要一個可以撥放影片的網頁, 按下指定的熱鍵可以切換至指定的影片功能

目前版本

	*  預設開啟頁面可撥放 default.mp4
	*  按下鍵盤 B 撥放 videoB.mp4
	*  按下鍵盤 C 撥放 videoC.mp4</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 16 Oct 2022 14:37:10 +0000</pubDate>
        </item>
        <item>
            <title>Linux 燒錄軟體 k3b 安裝</title>
            <link>https://www.ichiayi.com/tech/k3b</link>
            <description>Linux 燒錄軟體 k3b 安裝
---蔡宗融 2007/10/29 09:46

其實只須要執行 yum install k3b 就可以安裝好, 但是這樣只有預設功能, 並無法燒錄 Vedio CD/DVD. 必須額外安裝其他套件才可支援.

- 支援 Vedio CD 套件

	*  libcdio</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 20 Aug 2008 23:06:43 +0000</pubDate>
        </item>
        <item>
            <title>安裝 K3s + Rancher WebUI</title>
            <link>https://www.ichiayi.com/tech/k3s</link>
            <description>安裝 K3s + Rancher WebUI

	*  主機配置 : 
		*  VM1(Master) : Ubuntu 24.04 / 2vCore+4GRAM+60GSSD / 192.168.1.171 (rancher.ichiayi.com)
		*  VM2(Worker) : Ubuntu 24.04 / 2vCore+4GRAM+60GSSD / 192.168.1.172
		*  VM3(Worker) : Ubuntu 24.04 / 2vCore+4GRAM+60GSSD / 192.168.1.173</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 06 Mar 2026 03:22:13 +0000</pubDate>
        </item>
        <item>
            <title>檢測 K8s 內的 DNS</title>
            <link>https://www.ichiayi.com/tech/k8s-dns</link>
            <description>檢測 K8s 內的 DNS

K8s 內有自己的網路, 相同 name space 內的服務都可以透過內部網路直接溝通, 也有自己的 DNS 可以將我們建立的 service name 轉成內部的 IP, 因此內部 DNS 如果無法正常運作, 就會造成內部使用 service name 進行溝通的服務出現問題</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 10 May 2021 09:33:40 +0000</pubDate>
        </item>
        <item>
            <title>有關 K8s 的 Job 定義</title>
            <link>https://www.ichiayi.com/tech/k8s-job</link>
            <description>有關 K8s 的 Job 定義

	*  Q: 透過 rancher pipeline 執行的 job 第一次會成功, 第二次就會失敗
		*  A: 主要的原因是 metadata.name 出現相同就會失敗, 所以可使用 pipeline 的序號變數來當 name Exp.

	*  Q: 因為 name 是序號產生, 所以執行後的 Job 會愈來愈多, 如何自動刪除呢?</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 06 Sep 2021 14:28:44 +0000</pubDate>
        </item>
        <item>
            <title>K8s 內的網路檢測</title>
            <link>https://www.ichiayi.com/tech/k8s-netchk</link>
            <description>K8s 內的網路檢測

	*  在 K8s 內起一個有 curl 的 busybox POD 
	*  直接下 ping / nslookup / curl 等等命令進行網路檢測看結果++
	*  輸入 exit 離開看結果++

因為在 Hyper-V 內建立一個 Ubuntu 20.04 VM 然後起一個 K8s Cluster 卻發現在 K8s 內的服務連不上 VM 內的服務, 以下是將檢測 K8s 網路的相關語法紀錄下來.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 07 Apr 2023 04:43:36 +0000</pubDate>
        </item>
        <item>
            <title>K8s(rke) 內服務設定 SSL 憑證的方式</title>
            <link>https://www.ichiayi.com/tech/k8s_cert</link>
            <description>K8s(rke) 內服務設定 SSL 憑證的方式

在一個使用 rke 建置好的 K8s 內, 設定使用 Let&#039;s Encrypt 產生的 SSL 憑證 讓裡面的服務 https 可以正確使用

基本處理步驟

	*  DNS 的設定
	*  產生 SSL 憑證 : 參考 申請設定 Let&#039;s Encrypt 免費 SSL 憑證(CentOS + Apache/Nginx)
	*  將憑證匯入 K8s 內 (建立 secret tls) 
	*  設定 K8s 使用 secret tls</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 10 Jun 2021 07:34:30 +0000</pubDate>
        </item>
        <item>
            <title>安裝 LibreNMS (Docker)</title>
            <link>https://www.ichiayi.com/tech/k8s_librenms</link>
            <description>安裝 LibreNMS (Docker)

	*  安裝環境 Ubuntu 20.04 + docker compose
	*  預計採用 image - librenms/librenms:latest
	*  環境變數:
		*  TZ : Asia/Taipei
		*  LISTEN_IPV6 : false
		*  DB_HOST : 172.16.0.201
		*  DB_PORT : 8306
		*  DB_USER : librenms
		*  DB_PASSWORD : my_password999

	*  Port : 8000 (http)</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 27 Feb 2025 06:14:51 +0000</pubDate>
        </item>
        <item>
            <title>安裝 KeyCloak (Docker) 服務</title>
            <link>https://www.ichiayi.com/tech/keycloak</link>
            <description>安裝 KeyCloak (Docker) 服務

測試環境安裝方式

	*  docker-compose.yml 

	*  .env Exp. 


登入使用

	*  網址 - &lt;http://server-ip:8080/admin/master/console/&gt; (第一次登入 username 與 password 輸入 admin)

參考網址

	*  &lt;https://www.keycloak.org/getting-started/getting-started-docker&gt;
	*  &lt;https://stackoverflow.com/questions/78071458/keycloak-docker-compose&gt;

sso</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 05 May 2025 06:32:21 +0000</pubDate>
        </item>
        <item>
            <title>Log Server (Fluentd、Elasticsearch 和 Kibana)</title>
            <link>https://www.ichiayi.com/tech/kibana</link>
            <description>Log Server (Fluentd、Elasticsearch 和 Kibana)

設定方式

	*  目錄結構 
	*  docker-compose.yml 

services:
  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:7.12.1
    container_name: elasticsearch
    restart: unless-stopped
    environment:
      - node.name=elasticsearch
      - discovery.type=single-node
      - bootstrap.memory_lock=true
      - &quot;ES_JAVA_OPTS=-Xms512m -Xmx512m&quot;
    ulimits:
      memlock:
        soft: -1
        hard: -1
    volumes:
      - esdata:/usr/share/…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 14 Jul 2024 10:16:28 +0000</pubDate>
        </item>
        <item>
            <title>Kubectl 語法整理</title>
            <link>https://www.ichiayi.com/tech/kubectl</link>
            <description>Kubectl 語法整理

指定特別 kubeconf 檔方式

	*  Exp. kubeconf 檔案存放在 /iiidevops/kube-config/config
	*  

檢查 K8s Cluster 的健康狀態

	*  檢查 API server
		*  看實際執行結果++

	*  檢查 etcd
		*  看實際執行結果</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 06 Dec 2025 03:57:13 +0000</pubDate>
        </item>
        <item>
            <title>CentOS 啟用 KVM 程序</title>
            <link>https://www.ichiayi.com/tech/kvm</link>
            <description>CentOS 啟用 KVM 程序

CentOS 5.4 就內建 KVM(Kernel Based Virtual Machine) 虛擬化解決方案，如果有用過 Xen 的 virt-manager 管理工具，也可以直接應用到 KVM。

	*  在 CentOS 6.8 x86_64 光碟選 Basic Server 安裝後也可適用這方法安裝

安裝方式</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 30 Oct 2016 03:21:27 +0000</pubDate>
        </item>
        <item>
            <title>CentOS 6 KVM Snapshot</title>
            <link>https://www.ichiayi.com/tech/kvm_snapshot</link>
            <description>CentOS 6 KVM Snapshot

確認 VM Image 格式

	*  執行 snapshot 的語法
virsh snapshot-create vmname

 範例:


[root@asus-ts100e7 ~]# virsh snapshot-create e-plast-mail
錯誤：Requested operation is not valid: Disk &#039;/var/lib/libvirt/images/e-plast-mail.img&#039; does not support snapshotting</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 30 Oct 2016 03:21:55 +0000</pubDate>
        </item>
        <item>
            <title>CentOS7 安裝 Leantime 專案管理系統</title>
            <link>https://www.ichiayi.com/tech/leantime</link>
            <description>CentOS7 安裝 Leantime 專案管理系統

	*  安裝環境 : 
		*  PVE 6.0.12 底下的 CT
		*  CentOS Linux release 7.7.1908 (Core) 


安裝相關系統環境

	*  EPEL 與其他工具套件

yum install -y epel-release yum-utils wget unzip


	*</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 16 Jan 2021 06:40:23 +0000</pubDate>
        </item>
        <item>
            <title>Ubuntu 20.04 / CentOS7 安裝 LibreNMS 程序</title>
            <link>https://www.ichiayi.com/tech/librenms</link>
            <description>Ubuntu 20.04 / CentOS7 安裝 LibreNMS 程序
安裝 LibreNMS (Docker)

	*  Ubuntu 20.04 LTS
	*  CentOS Linux release 7.5.1804 (Core)



設定自動找尋區域網路內可納管設備

	*  假設區網為 192.168.1.0/24 (192.168.1.1 - 192.168.1.254)
	*  SNMP 都是設定為 v1 / v2c , Community 設定為 public 或 ichiayi_snmp</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 20 Feb 2024 04:13:11 +0000</pubDate>
        </item>
        <item>
            <title>[Draft] LibreNMS 相關 SNMP Agent 設定</title>
            <link>https://www.ichiayi.com/tech/librenms_agents</link>
            <description>[Draft] LibreNMS 相關 SNMP Agent 設定

	*  需要在每一台主機內安裝 Agent 程式

Apache

參考網址

	*  &lt;https://docs.librenms.org/#Extensions/Applications/&gt;
	*  &lt;https://github.com/librenms/librenms-agent/tree/master/snmp&gt;

nms</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 18 Jun 2018 14:50:47 +0000</pubDate>
        </item>
        <item>
            <title>Librenms 告警通知設定(Discord)</title>
            <link>https://www.ichiayi.com/tech/librenms_discord</link>
            <description>Librenms 告警通知設定(Discord)

	*  進入 Discord 管理介面 → 建立或選擇伺服器 Exp. ichiayi.com → 建立文字頻道 Exp. LibreNMS 看建立頻道畫面 
++
	*  進入 LibreNMS 頻道, 可以產生分享連結邀請同仁加入這頻道 
++
	*  編輯頻道 -&gt; 整合 -&gt; 建立 Webhook</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 12 Nov 2024 10:16:12 +0000</pubDate>
        </item>
        <item>
            <title>Librenms 告警通知設定(Line Notify)</title>
            <link>https://www.ichiayi.com/tech/librenms_line-notify</link>
            <description>Librenms 告警通知設定(Line Notify)

	*  &lt;https://notify-bot.line.me/closing-announce&gt;
	*  LINE Notify 將於2025年3月31日結束服務

	*  進入 LINE Notify 管理介面 → 管理登錄服務 → 登錄服務 
		*  填上服務的相關資訊 -&gt; ++

	*  進入郵件信箱收信並進行服務註冊確認</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 11 Nov 2024 07:05:38 +0000</pubDate>
        </item>
        <item>
            <title>LibreNMS 告警通知設定(MS Teams)</title>
            <link>https://www.ichiayi.com/tech/librenms_teams</link>
            <description>LibreNMS 告警通知設定(MS Teams)

	*  在 Teams 的團隊內, 增加一個頻道 Exp. LibreNMS 全會 DevOps 監控 看畫面++
	*  在這頻道新增應用 - Incoming Webhook 看畫面++
	*  啟動 Incoming Webhook 選擇頻道 看畫面++
	*</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 25 Oct 2024 03:08:15 +0000</pubDate>
        </item>
        <item>
            <title>測試建構 LINE BOT (Developer Trial 方案)</title>
            <link>https://www.ichiayi.com/tech/linebot</link>
            <description>測試建構 LINE BOT (Developer Trial 方案)

	*  環境 : CentOS Linux release 7.6.1810 (Core)
	*  語言 : PHP 7.2
	*  Web : Nginx 1.12.2
	*  DB : MariaDB 5.5.60

申請Developer Trial帳號

	*  參考 - &lt;http://at-blog.line.me/tw/create_developer_trial&gt;

	*  &lt;https://developers.line.biz/en/&gt;
	*  使用自己的 LINE 帳號登入</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 10 Apr 2019 01:23:49 +0000</pubDate>
        </item>
        <item>
            <title>Linux 內取得硬體資訊指令</title>
            <link>https://www.ichiayi.com/tech/linuxhw</link>
            <description>Linux 內取得硬體資訊指令

主要使用的指令是 dmidecode

	*  瞭解品牌型號 

dmidecode -t system


	*  瞭解安裝的 RAM 

dmidecode -t memory



參考網址

	*  &lt;http://jojochen.blog.ithome.com.tw/post/2529/63418&gt;

linux hardware</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 29 Nov 2010 01:35:47 +0000</pubDate>
        </item>
        <item>
            <title>Linux Bridge 設定與觀念</title>
            <link>https://www.ichiayi.com/tech/linux_bridge</link>
            <description>Linux Bridge 設定與觀念

這文件說明在 Linux 底下如何將兩張網卡設定 Bridge 的方式, 並解說有關 Ethernet 的 STP(Spanning Tree Protocol) 基本觀念.

	*  &lt;http://www.tldp.org/HOWTO/BRIDGE-STP-HOWTO/index.html&gt;

Example

	*  於 CentOS6 內建立一個 virbr1 然後將 eth1 加入</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 15 Jul 2016 06:08:54 +0000</pubDate>
        </item>
        <item>
            <title>Linux (Redhat / Fedora / CentOS) 設定時間的方式</title>
            <link>https://www.ichiayi.com/tech/linux_clock</link>
            <description>Linux (Redhat / Fedora / CentOS) 設定時間的方式

	*  copy /usr/share/zoneinfo/* 內的確切時區資料檔案為 /etc/localtime 
	*  執行 date -u
	*  輸入 date 看看是否已經是正確時區
	*  調整系統時間
		*  透過 ntpdate -u time.stdtime.gov.tw 來校正目前時間</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 02 Mar 2009 16:56:52 +0000</pubDate>
        </item>
        <item>
            <title>CentOS 指定開機使用 Kernel 設定</title>
            <link>https://www.ichiayi.com/tech/linux_default_kernel</link>
            <description>CentOS 指定開機使用 Kernel 設定

當 CentOS 安裝完成後, 如果有 Kernel 更新, 重新開機後會自動使用新版的 kernel. 但是如果之前安裝是標準 kernel 但為了要使用 Xen 而安裝 kernel-xen, 經過修改 /etc/grub.conf , 指定 default=x , 讓重新開機就可以使用到 kernel-xen 版本. Exp.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 08 Jun 2011 03:44:52 +0000</pubDate>
        </item>
        <item>
            <title>安裝 CentOS 5 x86_64 桌面軟體</title>
            <link>https://www.ichiayi.com/tech/linux_desktop</link>
            <description>安裝 CentOS 5 x86_64 桌面軟體

先安裝好 CentOS 官方網站外其他 rpm 來源 Exp. rpmforge / epel / pidgin


rpm -Uvh http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-3.noarch.rpm</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 24 Nov 2009 23:09:00 +0000</pubDate>
        </item>
        <item>
            <title>Linux (Redhat / Fedora / CentOS) 更改 hostname 的方式</title>
            <link>https://www.ichiayi.com/tech/linux_hostname</link>
            <description>Linux (Redhat / Fedora / CentOS) 更改 hostname 的方式

發現更改主機的 hostname 的方式都改不太完整. 以下是試出來比較完整的方式:

Step 00:

	*  假設原本 hostname 為 tryboxap2, 現在想要更改為 tryboxap03
	*  使用 root 才可以更改 hostname</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 24 Oct 2019 01:27:30 +0000</pubDate>
        </item>
        <item>
            <title>忘記 CentOS root 密碼</title>
            <link>https://www.ichiayi.com/tech/linux_rootpasswd</link>
            <description>忘記 CentOS root 密碼

使用 Single 模式啟動 CentOS

	*  啟動時的 grub 畫面按下 e 進入編輯模式
	*  選擇 kernel /vmliz ... 項目進入編輯
	*  在參數最後增加 single 然後按下 [Enter]
	*  回到 grup 啟動選單按下 b 啟動剛剛編輯的這項</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 09 May 2011 00:08:11 +0000</pubDate>
        </item>
        <item>
            <title>Linux 壓測程式 stress 安裝與使用</title>
            <link>https://www.ichiayi.com/tech/linux_stress</link>
            <description>Linux 壓測程式 stress 安裝與使用

	*  先安裝 rpmforge 就可直接透過 yum install 安裝

yum install stress


	*  使用壓測範例: 以下是對系統同時進行 一個 CPU 的負載壓測程序, 一個 I/O 的存取壓測程序 以及 一個 memory 的分配(每次分配 128MB)壓測程序. 總共進行 10 秒</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 03 Oct 2012 06:46:34 +0000</pubDate>
        </item>
        <item>
            <title>監控 Linux 主機溫度風扇 (lm-sensors)</title>
            <link>https://www.ichiayi.com/tech/lm-sensors</link>
            <description>監控 Linux 主機溫度風扇 (lm-sensors)

	*  因為透過 LibreNMS 監控 Linux 實體主機, 會發現預設的 sensors 可能無法正常提供資料或名稱無法正確解析, 可以透過修改或建立感應器設定檔來解決 Exp. /etc/sensors.d/nct6798.conf</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 15 Jan 2025 03:40:08 +0000</pubDate>
        </item>
        <item>
            <title>Centos6 上安裝 LogAnalyzer[draft]</title>
            <link>https://www.ichiayi.com/tech/loganalyzer</link>
            <description>Centos6 上安裝 LogAnalyzer[draft]

安裝環境

	*  CentOS release 6.9 x86_64
	*  rsyslog-5.8.10-10.el6_6.x86_64
	*  php70w-7.0.20-1.w6.x86_64
	*  loganalyzer-4.1.5
	*  MariaDB-5.5.51 (外部主機)

安裝程序

	*  rsyslog 為 CentOS 內建不需特別安裝, 但要安裝 rsyslog-mysql</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 24 Jul 2017 11:00:41 +0000</pubDate>
        </item>
        <item>
            <title>CentOS 啟動 Log Server 功能</title>
            <link>https://www.ichiayi.com/tech/logsrv</link>
            <description>CentOS 啟動 Log Server 功能

因為一些 Embeded System 提供送出 log 到 Log Server 的功能, 所以就上網找了一下.. 

	*  Log Server : 192.168.11.252
	*  /etc/sysconfig/rsyslog

# Options for rsyslogd
# Syslogd options are deprecated since rsyslog v3.
# If you want to use them, switch to compatibility mode 2 by &quot;-c 2&quot;
# See rsyslogd(8) for more details
SYSLOGD_OPTIONS=&quot;-c 5&quot;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 29 May 2016 15:27:35 +0000</pubDate>
        </item>
        <item>
            <title>syslog-ng 當 Log Server(docker)</title>
            <link>https://www.ichiayi.com/tech/logsrv_docker</link>
            <description>syslog-ng 當 Log Server(docker)

	*  安裝環境 alpine + docker compose
	*  預計安裝好的目錄結構 

安裝方式

	*  docker-compose.yml 

	*  設定檔 syslog-ng\configsyslog-ng.conf 

		*  目前設定檔會依據不同來源主機, 自動依照主機名稱或 IP 建立各自的 log 目錄 Exp. log/demo-v2-66 , log/demo-v2-67</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 09 May 2025 02:21:19 +0000</pubDate>
        </item>
        <item>
            <title>Linux 建立 LVM 磁碟方式</title>
            <link>https://www.ichiayi.com/tech/lvm</link>
            <description>Linux 建立 LVM 磁碟方式

	*  LVM (Logical Volume Management) 概念與基本語法
	*  Ubuntu 直接加一顆 HD 擴充 LVM 空間

目標

要將 /dev/sdb 建立成一個 LVM 磁碟

	*  可以使用 fdisk -l 列出目前主機內的所有實體硬碟資料清單

- fdisk

	*  fdisk /dev/sdb


:
Command (m for help): n
:
   p   primary partition (1-4) p
Partition number (1-4): 1
First cylinder (1-24321, default 1): 
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-24321, default 24321): 
Using default value 24321

Command (m for help): t
Selected partition 1
Hex code (type L to…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 08 Mar 2024 10:40:38 +0000</pubDate>
        </item>
        <item>
            <title>Linux 掛上 LVM 磁碟</title>
            <link>https://www.ichiayi.com/tech/lvmmount</link>
            <description>Linux 掛上 LVM 磁碟

當開機磁碟掛點後, 這台主機內的其他硬碟內的 LVM 要能夠掛上新建的開機磁碟, 不是直接 mount /dev/sdb1 就可以掛上去.. 這問題之前都沒有花時間去了解, 現在終於有機會實際處理一下..</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 31 Jul 2010 14:35:25 +0000</pubDate>
        </item>
        <item>
            <title>LVM (Logical Volume Management) 概念與基本語法</title>
            <link>https://www.ichiayi.com/tech/lvm_conecpt</link>
            <description>LVM (Logical Volume Management) 概念與基本語法



	*  Physical Volume (PV) : 就是實體區, 可以是一顆硬碟(Disk)或是一個分割區(Partition) 相關指令 :  pvcreate, pvdisplay, pvs, pvchange, pvscan
	*  Volume Group (VG) : 就是整合實體區(PV)與邏輯區(LV), 相關指令 : vgcreate, vgdisplay, vgs, vgextend, vgscan</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 14 Jan 2026 06:02:29 +0000</pubDate>
        </item>
        <item>
            <title>[draft]LVM 使用 SSD 當 Cache 的方式</title>
            <link>https://www.ichiayi.com/tech/lvm_ssd_cache</link>
            <description>[draft]LVM 使用 SSD 當 Cache 的方式

Exp.

	*  128G HDD -&gt; /dev/sdb1 -&gt; VG: vg-iiidevops-data , LV : /dev/vg-iiidevops-data/nfs
	*  16GB SSD -&gt; /dev/sdc1 
	*  lv-cache 要當 VG: vg-iiidevops-data 內的 LV:  /dev/vg-iiidevops-data/nfs 的 cache</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 22 Feb 2021 09:29:38 +0000</pubDate>
        </item>
        <item>
            <title>正式 Mail Server 所需要的必備環境條件</title>
            <link>https://www.ichiayi.com/tech/mail</link>
            <description>正式 Mail Server 所需要的必備環境條件

	*  有固定對外 IP 與 Domain Name
	*  IP 要能正反查到 Domain Name 與 IP 對應關係
	*  IP 不能出現在垃圾郵件黑名單內
	*  DNS 內的 MX 定義要正確
	*  Mail Server 的權限設定要正確</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 17 Aug 2024 08:04:16 +0000</pubDate>
        </item>
        <item>
            <title>Mailpit(開源 SMTP 模擬服務)</title>
            <link>https://www.ichiayi.com/tech/mailpit</link>
            <description>Mailpit(開源 SMTP 模擬服務)

	*  因為要驗證應用系統寄信的狀況, 透過實際 Mail Server 雖然也可以驗證, 但效率比較差也常發現收不到信是被中間的一些 SPAM 的機制攔截, 因此有不少開源 SMTP 模擬服務專案出現</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 12 Apr 2025 16:32:44 +0000</pubDate>
        </item>
        <item>
            <title>MailScanner 技巧整理</title>
            <link>https://www.ichiayi.com/tech/mailscannertips</link>
            <description>MailScanner 技巧整理

- 正常信件出現內容誤判病毒

	*  當 UTF-8 編碼的信件出現 Warning: E-mail viruses detected

Our e-mail content detector has just been triggered by a message you sent:
  To: help@ichiayi.com
  Subject: 2.UTF-8???????
  Date: Sun Oct 10 16:46:37 2010

One or more of the attachments (msg-20952-4.txt) are on
the list of unacceptable attachments for this site and will not have
been delivered.

Consider renaming the files to avoid this constraint.

The virus detector said this about the message:
Report: R…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 14 May 2012 09:23:13 +0000</pubDate>
        </item>
        <item>
            <title>MailScanner 郵件備份監控設定</title>
            <link>https://www.ichiayi.com/tech/mailscanner_archivemail</link>
            <description>MailScanner 郵件備份監控設定

如果擔心 Mail Server 過往的信件內容有問題.. Exp. 被當成垃圾信件發送站, 公司郵件的備份與監控.. 

是可以啟用 MailScanner 內的 Archive Mail 功能設定來達成這樣的目標.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 29 Jan 2011 15:25:41 +0000</pubDate>
        </item>
        <item>
            <title>整理處理 sendmail / postfix 的工具</title>
            <link>https://www.ichiayi.com/tech/mailtool</link>
            <description>整理處理 sendmail / postfix 的工具

刪除與搬移 mqueue 信件

postfix

	*  主要是使用 postsuper 這指令
		*  刪除所有在 Queue 中的郵件 

postsuper -d ALL


		*  刪除還再重試發送的郵件 

postsuper -d ALL deferred</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 20 Aug 2018 07:36:15 +0000</pubDate>
        </item>
        <item>
            <title>安裝設定 Mailu 郵件主機(Docker)</title>
            <link>https://www.ichiayi.com/tech/mailu</link>
            <description>安裝設定 Mailu 郵件主機(Docker)

	*  安裝環境 : OS:Ubuntu 22.04 +Docker vCore:1 RAM:2G HD:55G
	*  設定資訊 : Exp.
		*  DNS : 
			*  mail01.ichiayi.com.  IN  A  45.76.145.111
			*  mail01.ichiayi.com.  IN  MX  10 mail01.ichiayi.com.

		*  Reverse DNS :
			*</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 16 Jan 2025 04:49:25 +0000</pubDate>
        </item>
        <item>
            <title>CentOS7 設定 mailx 寄出 log 方式</title>
            <link>https://www.ichiayi.com/tech/mailx</link>
            <description>CentOS7 設定 mailx 寄出 log 方式

	*  安裝 mailx 

yum install mailx


	*  修改 /etc/mail.rc 參考以下設定

:
:
set from=jonathan@mail.ichiayi.com
# set smtp=smtp://smtp.server.tld:port_number
set smtp=smtp://mail.ichiayi.com:587
# tell mailx that it needs to authorise
set smtp-auth=login
# set the user for SMTP
# set smtp-auth-user=user@domain.tld
set smtp-auth-user=jonathan
# set the password for authorisation
set smtp-auth-password=**mypassword**
set ssl-verify=ignore
set nss-config-dir=/etc/pki/nssdb
set smt…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 16 Jan 2021 06:41:13 +0000</pubDate>
        </item>
        <item>
            <title>將 Mail Server - IMAP 建立的中文目錄編碼轉回作法</title>
            <link>https://www.ichiayi.com/tech/mail_imap_encode</link>
            <description>將 Mail Server - IMAP 建立的中文目錄編碼轉回作法

透過 imapsync 移轉 Mail Server 過程, 發現一些使用中文所建立的目錄無法成功移轉, 又不好比對出是那些目錄, 所以找了一下可以如何將編碼轉回的方式.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 07 Sep 2021 01:04:42 +0000</pubDate>
        </item>
        <item>
            <title>Mantis 問題控管系統安裝程序</title>
            <link>https://www.ichiayi.com/tech/mantis</link>
            <description>Mantis 問題控管系統安裝程序

本安裝程序除 Mantis 本身安裝外，還包含 Mantis 與 dokuwiki 整合的詳細說明以及升級過程與中文相關的常見問題處理方式.

	*  Mantis 官方網站 : &lt;http://www.mantisbt.org/&gt;

- 安裝環境

&lt;columns&gt;
&lt;style box float-left&gt;
&lt;ditaa name=env_desc&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 16 Jan 2021 06:51:36 +0000</pubDate>
        </item>
        <item>
            <title>Mantis 與 Dokuwiki 整合作法</title>
            <link>https://www.ichiayi.com/tech/mantisdokuwiki</link>
            <description>Mantis 與 Dokuwiki 整合作法

- dokuwiki 部份

	*  先安裝好 dokuwiki，可參考 DokuWiki安裝程序(Docker)
	*  安裝完成後的 dokuwiki 環境假設網址是 &lt;http://192.168.11.250/dokuwiki&gt; 實體路徑 /var/www/html/dokuwiki
	*  更改 dokuwiki 系統設定檔 /var/www/html/dokuwiki/conf/local.protected.php (如果改 local.php 透過網頁介面更改就會不見)</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 02 Mar 2009 17:00:48 +0000</pubDate>
        </item>
        <item>
            <title>Mantis 接受信件回報問題的設定</title>
            <link>https://www.ichiayi.com/tech/mantismailreport</link>
            <description>Mantis 接受信件回報問題的設定

主要是使用 Mantis 的 EmailReporting plugin 模組來達成.. 

	*  設定環境 : 
		*  Mantis : 1.3.4
		*  EmailReporting : 0.9.2


	*  下載 EmailReporting 0.9.2 plugin 解開到 mantis/plugins 內

wget https://github.com/mantisbt-plugins/EmailReporting/releases/download/EmailReporting_0.9.2/EmailReporting_0.9.2.zip
yum install unzip
unzip EmailReporting_0.9.2.zip
mv EmailReporting /var/www/html/mantis/plugins/
cd /var/www/html/mantis/plugins
chown -R apache:apache EmailReporting/…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 22 Dec 2016 01:12:11 +0000</pubDate>
        </item>
        <item>
            <title>Mantis 技巧整理</title>
            <link>https://www.ichiayi.com/tech/mantistips</link>
            <description>Mantis 技巧整理

出現 due_date (管制日期) 的設定

Mantis 1.2.x 其實已經有 due_date 這個欄位, 所以只要在 config_inc.php 內增加以下兩行就可以出現


:
        # --- due date --------------------
        $g_due_date_update_threshold = REPORTER;
        $g_due_date_view_threshold = VIEWER;
        $g_path = &#039;http://xxx.xxx.com/mantis/&#039;;
:</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 10 Dec 2016 00:58:28 +0000</pubDate>
        </item>
        <item>
            <title>php 程式碼撰寫標準規則</title>
            <link>https://www.ichiayi.com/tech/mantis_coding</link>
            <description>php 程式碼撰寫標準規則

	*  主要參考的 Mantis 程式碼撰寫標準網址 : &lt;http://www.mantisbt.org/guidelines.php&gt;

- 變數命名規則

	*  變數名稱完全採用小寫英文字母.
		*  字與字之間使用 _ 來連接, 例如. $green_color_value
		*  要使用描述性的命名方式 (迴圈變數可以例外).</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 08 Oct 2015 05:09:07 +0000</pubDate>
        </item>
        <item>
            <title></title>
            <link>https://www.ichiayi.com/tech/menu</link>
            <description>~~REDIRECT&gt;:tech~~</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 21 Nov 2007 01:29:40 +0000</pubDate>
        </item>
        <item>
            <title>CentOS 超過 3T 硬碟的格式化</title>
            <link>https://www.ichiayi.com/tech/mkfs3t</link>
            <description>CentOS 超過 3T 硬碟的格式化

使用 fdisk 對 3T 以上硬碟格式化後, 只能看到 2T 左右.. 必須改用 parted 來處理.

	*  安裝 gparted 

yum install gparted



	*  確認新安裝硬碟的位置 

vi /var/log/message



:
Feb  5 23:48:27 xpc-sh67-i7 kernel: sd 14:0:0:0: [sdc] Very big device. Trying to use READ CAPACITY(16).
Feb  5 23:48:27 xpc-sh67-i7 kernel: sd 14:0:0:0: [sdc] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB)
Feb  5 23:48:27 xpc-sh67-i7 kernel: sd 14:0:0:0: [sdc] Test WP failed, assume Write Enabled
:…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 24 Jun 2018 00:34:20 +0000</pubDate>
        </item>
        <item>
            <title>解決 Linux 格式化 mkfs 議題</title>
            <link>https://www.ichiayi.com/tech/mkfs_err</link>
            <description>解決 Linux 格式化 mkfs 議題

在 CentOS 6.9 底下新增一顆 SSD 進行建立簡單的 Partition, 正常只要透過 fdisk 與 mkfs 就可以輕鬆完成.. 但這次在 fdisk 之後, 執行 mkfs 卻出現 /dev/sda1 is apparently in use by the system; will not make a filesystem here!</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 08 May 2017 13:38:20 +0000</pubDate>
        </item>
        <item>
            <title>Modbus TCP 測試</title>
            <link>https://www.ichiayi.com/tech/modbus</link>
            <description>Modbus TCP 測試

Master / Slave 模擬測試

	*  Slave 模擬設備環境 Exp. 192.168.11.247 : CentOS8 (PVE6 CT template) 

yum install wget tar
wget https://www.modbusdriver.com/downloads/diagslave.tgz
tar -xvf diagslave.tgz
cd diagslave/linux_x86-64
./diagslave -m tcp</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 29 Aug 2020 00:42:04 +0000</pubDate>
        </item>
        <item>
            <title>[draft]CentOS7 安裝 Modoboa Mail Server</title>
            <link>https://www.ichiayi.com/tech/modoboa</link>
            <description>[draft]CentOS7 安裝 Modoboa Mail Server

	*  安裝環境 :
		*  CentOS Linux release 7.5.1804 (Core)
		*  2G / 2vCore / 20G HD
		*  mail.ichiayi.com


	*  安裝相關套件 

yum install git


	*  安裝 Modoboa 

su -
git clone https://github.com/modoboa/modoboa-installer
cd modoboa-installer
sudo ./run.py ichiayi.com</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 06 Jul 2018 15:47:59 +0000</pubDate>
        </item>
        <item>
            <title>Linux 環境 Mount ISO 檔</title>
            <link>https://www.ichiayi.com/tech/mountiso</link>
            <description>Linux 環境 Mount ISO 檔

	*  ISO 檔為 /wd250/ISO/STI_20070403.iso
	*  預計掛載點 /data/STI

su - root
mkdir -p /data/STI
mount -o loop /wd250/ISO/STI_20070403.iso /data/STI



參考資料

	*  &lt;http://www.cyberciti.biz/tips/how-to-mount-iso-image-under-linux.html&gt;

iso mount</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 08 Jun 2011 23:56:21 +0000</pubDate>
        </item>
        <item>
            <title>MRTG 安裝與應用</title>
            <link>https://www.ichiayi.com/tech/mrtg</link>
            <description>MRTG 安裝與應用

Alpine

	*  安裝套件 
	*  設定 snmpd.conf
	*  啟動 snmpd 服務 

CentOS

- 確認是否已經安裝 mrtg 套件



	*  如果沒有安裝, 就執行  來安裝

- 使用 snmpd 來讓 MRTG 監看網路流量

- 安裝 snmpd</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 27 Jun 2023 01:07:51 +0000</pubDate>
        </item>
        <item>
            <title>[Draft]iRedMail 郵寄主機設定支援 MTA-STS 的方式</title>
            <link>https://www.ichiayi.com/tech/mta-sts</link>
            <description>[Draft]iRedMail 郵寄主機設定支援 MTA-STS 的方式

因為 2019/4/10 Google宣布Gmail開始採用新的MTA-STS（SMTP MTA Strict Transport Security）以及SMTP TLS Reporting標準，強化電子郵件安全性.. 所以也來了解一下如何在自己的 iRedMail 郵件主機環境設定支援 MTA-STS 的方式</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 19 Apr 2019 03:04:16 +0000</pubDate>
        </item>
        <item>
            <title>CentOS 兩張網卡接兩個 ISP 的 Route 設定</title>
            <link>https://www.ichiayi.com/tech/multiisp</link>
            <description>CentOS 兩張網卡接兩個 ISP 的 Route 設定

	*  一台主機的兩張網卡各連接一個 ISP 的網路
	*  希望透過哪張網卡過來的連線, 可以直接由那張網卡回去
	*  這台主機的相關環境如下:
		*  eth0 : 192.168.11.248 / 255.255.255.0 (Gateway pdc.e2160 : 192.168.11.251)</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 26 Apr 2012 01:42:39 +0000</pubDate>
        </item>
        <item>
            <title>MySQL 自動備份方法</title>
            <link>https://www.ichiayi.com/tech/mysqlbackup</link>
            <description>MySQL 自動備份方法

	*  建議可以參考使用比較完整的 AutoMySQLBackup
	*  安裝與設定 AutoMySQLBackup

其實很簡單.. 只要一行就可以.. 


mysqldump -u root -p&#039;&lt;password&gt;&#039; --all-database | gzip &gt; /&lt;backup_path&gt;/database_`date &#039;+\%m-\%d-\%Y&#039;`.sql.gz


這樣就可以產生所有資料庫的備份壓縮 SQL</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 20 Apr 2018 01:07:45 +0000</pubDate>
        </item>
        <item>
            <title>MySQL/MariaDB 相關技巧彙整</title>
            <link>https://www.ichiayi.com/tech/mysqltips</link>
            <description>MySQL/MariaDB 相關技巧彙整

1. 資料表效能優化

	*  參考 - &lt;https://www.thegeekstuff.com/2016/04/mysql-optimize-table/&gt;

	*  找出需要優化的資料表 Exp. 資料庫 abc 

use abc;
select table_name, round(data_length/1024/1024) as data_length_mb, round(data_free/1024/1024) as data_free_mb 
 from information_schema.tables 
 where round(data_free/1024/1024) &gt; 500 
 order by data_free_mb;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 03 Aug 2022 07:24:40 +0000</pubDate>
        </item>
        <item>
            <title>安裝 n2n VPN 程序</title>
            <link>https://www.ichiayi.com/tech/n2nvpn</link>
            <description>安裝 n2n VPN 程序

	*  目標 : 使用 n2n 建立一個跨兩個 Intranet 的 VPN, 讓 Intra-02 的 R600-NB 可以直接 ssh 連上 Intra-01 的 rdtest04-xen0
		*  SuperNode : rdtest04
			*  OS:CentOS5 x86_64
			*  eth0:140.92.143.17 
			*  n2n0:10.9.9.1</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 06 Apr 2010 11:55:58 +0000</pubDate>
        </item>
        <item>
            <title>安裝 n8n (Docker-Compose)</title>
            <link>https://www.ichiayi.com/tech/n8n_docker_install</link>
            <description>安裝 n8n (Docker-Compose)

	*  安裝環境 : OS:Alpine 3+Docker vCore:2 RAM:2G HD:20G

安裝程序

	*  設定 Domain Name Server 進行服務主機對應 Exp. n8n.ichiayi.com -&gt; 192.168.11.52
	*  編輯 docker-compose.yml 

version: &quot;3&quot;

services:
  traefik:
    image: &quot;traefik&quot;
    restart: always
    command:
      - &quot;--api=true&quot;
      - &quot;--api.insecure=true&quot;
      - &quot;--providers.docker=true&quot;
      - &quot;--providers.docker.exposedbydefault=false&quot;
      - &quot;--entrypoints.web.address=:80&quot;
      - &quot;--entrypoints.web.http.redirections.entr…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 06 Jun 2023 04:47:04 +0000</pubDate>
        </item>
        <item>
            <title>Linux IP 分享(NAT)設定</title>
            <link>https://www.ichiayi.com/tech/nat</link>
            <description>Linux IP 分享(NAT)設定

必須安裝的模組

	*  iptables (iptables-1.2.11-3.1.RHEL4)

設定程序

	*  
vi /etc/sysctl.conf


:
net.ipv4.ip_forward = 1
:


	*  
sysctl -p /etc/sysctl.conf
cat /proc/sys/net/ipv4/ip_forward


	*  
lsmod | grep ip_tables</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 27 Mar 2016 09:59:41 +0000</pubDate>
        </item>
        <item>
            <title>安裝 NaviDrome 音樂串流服務</title>
            <link>https://www.ichiayi.com/tech/navidrome</link>
            <description>安裝 NaviDrome 音樂串流服務

	*  安裝環境 :
		*  VM : 2vCore / 4GRAM / 32GSSD
		*  OS : Alpine 3 參考 - 在 Alpine Linux 3 底下安裝 docker + docker-compose


安裝程序

	*  
	*  docker-compose.yml 

version: &quot;3&quot;
services:
  navidrome:
    image: deluan/navidrome:latest
    user: 1000:1000 # should be owner of volumes
    ports:
      - &quot;4533:4533&quot;
    restart: unless-stopped
    environment:
      # Optional: put your config options customization here. Examples:
      ND_SCANSCHEDULE: 1h
      ND_LOGLEVEL: info  
      …</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 26 Jan 2023 16:26:04 +0000</pubDate>
        </item>
        <item>
            <title>使用 nc 檢測網路層服務 port 是否可以連上</title>
            <link>https://www.ichiayi.com/tech/nc_network_check</link>
            <description>使用 nc 檢測網路層服務 port 是否可以連上

Case 1. 檢測網路層可否連上寄信主機

	*  Exp. 目標 smtp.gmail.com / tcp port 587 
	*  可以成功連上 
	*  無法成功連上 

Case 2. 檢測網路層可否連上主機 snmpd 服務</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 24 Mar 2023 02:58:47 +0000</pubDate>
        </item>
        <item>
            <title>Linux 網路相關整理</title>
            <link>https://www.ichiayi.com/tech/networktips</link>
            <description>Linux 網路相關整理

看到 Liston Port 要確認是哪個程式在執行?

假設看到主機有程式在 Liston 732


lsof -i :732


結果


[root@x206-web bin]# lsof -i :732
COMMAND    PID    USER   FD   TYPE DEVICE SIZE NODE NAME
rpc.statd 2246 rpcuser    7u  IPv4   7749       TCP *:732 (LISTEN)</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 01 Nov 2016 09:38:25 +0000</pubDate>
        </item>
        <item>
            <title>CentOS 網卡 Bonding / Trunking</title>
            <link>https://www.ichiayi.com/tech/network_bonding</link>
            <description>CentOS 網卡 Bonding / Trunking

參考網址

	*  &lt;http://www.howtoforge.com/network_card_bonding_centos&gt;
	*  &lt;http://www.lccnet.com.tw/commercial/e-paper/200607/content_06_linux.html&gt;

network bonding trunking draft</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 01 May 2012 03:03:26 +0000</pubDate>
        </item>
        <item>
            <title>用 iperf3 檢測兩端網路傳輸速度</title>
            <link>https://www.ichiayi.com/tech/network_speed</link>
            <description>用 iperf3 檢測兩端網路傳輸速度

	*  環境 : Ubuntu 20.04
	*  10.20.xx.xx -&gt; 1Gbps 網卡
	*  192.168.100.xx -&gt; 10Gbps 網卡

基本測試

	*  每台主機都需要安裝 iperf3 

	*  假設 10.20.2.41 與 10.20.2.252 當 ipfer3 server</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 21 Oct 2023 09:13:02 +0000</pubDate>
        </item>
        <item>
            <title>弱點掃描工具軟體</title>
            <link>https://www.ichiayi.com/tech/network_vulnerability_scanner</link>
            <description>弱點掃描工具軟體

	*   OpenFoundry 網路弱點掃瞄</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 29 May 2013 18:58:15 +0000</pubDate>
        </item>
        <item>
            <title>NextCloud 安裝設定紀錄</title>
            <link>https://www.ichiayi.com/tech/nextcloud</link>
            <description>NextCloud 安裝設定紀錄

使用 Ubuntu + Docker 安裝方式

	*  參考 - &lt;https://github.com/nextcloud/all-in-one&gt;
	*  安裝 docker 
	*  將 jonathan 加入 docker 
	*  依據 compose.yaml 檔案內容進行調整
	*  連上 &lt;https://server_ip:8080&gt;

	*  如果第一時間沒有看到 AIO password 可以透過以下方式取得</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 21 Nov 2023 08:59:46 +0000</pubDate>
        </item>
        <item>
            <title>針對 NFS Server 效能調教</title>
            <link>https://www.ichiayi.com/tech/nfs-ps-tuning</link>
            <description>針對 NFS Server 效能調教

	*  NFS Server 有 4G RAM
	*  OS : Alpine Linux 3.22

sysctl

	*  /etc/sysctl.d/nfsd.conf

# ============================================
# 網路參數優化
# ============================================
# TCP 緩衝區 (128MB max)
net.core.rmem_max=134217728
net.core.wmem_max=134217728
net.ipv4.tcp_rmem=4096 87380 67108864
net.ipv4.tcp_wmem=4096 65536 67108864

# 網路佇列
net.core.netdev_max_backlog=5000
net.ipv4.tcp_max_syn_backlog=8192

# TCP 效能優化
net.ipv4.tcp_window_scaling=1
net.ipv4.tcp_time…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 29 Oct 2025 04:14:54 +0000</pubDate>
        </item>
        <item>
            <title>在 PBS(Debian 12) 主機內安裝 NFS 服務</title>
            <link>https://www.ichiayi.com/tech/nfs-pve-debian</link>
            <description>在 PBS(Debian 12) 主機內安裝 NFS 服務

	*  安裝環境 PBS 3.0-3 (Debian 12.2)
	*  預計 NFS 分享的路徑 : /mnt/datastore/zfs-backup/nfsshare
	*  預計 NFS Client IP 範圍 : 10.20.0.0 - 10.20.2.254 -&gt; 10.20.0.0/22

安裝與設定程序</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 27 Mar 2025 10:20:27 +0000</pubDate>
        </item>
        <item>
            <title>Linux NFS 設定</title>
            <link>https://www.ichiayi.com/tech/nfs</link>
            <description>Linux NFS 設定

	*  NFS Server : 192.168.11.250 共用目錄為 /data
	*  NFS Clien : 192.168.11.232(vm-web)

安裝語法

	*  CentOS
	*  Ubuntu
	*  Alpine

NFS Server 端




:
192.168.11.232          vm-web.ichiayi.com      vm-web





/data/ vm-web(rw,no_root_squash,no_all_squash,sync)</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 28 Sep 2025 08:22:51 +0000</pubDate>
        </item>
        <item>
            <title>安裝設定 NFS 的 CacheFS(cachefilesd)</title>
            <link>https://www.ichiayi.com/tech/nfs_cachefs</link>
            <description>安裝設定 NFS 的 CacheFS(cachefilesd)

	*  NFS Client : kvm-mail (CentOS 6.4 x86_64) 
	*  NFS Server : xpc-sh67-i7 (CentOS 6.4 x86_64)
	*  CacheFS 要安裝在 kvm-mail 內, 加快 kvm-mail 對 xpc-sh67-i7 的 NFS 存取速度

安裝 cachefilesd</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 13 Oct 2013 04:27:06 +0000</pubDate>
        </item>
        <item>
            <title>在 Ubuntu/Debian 安裝 NFS Ganesha 取代 NFS-kernel service</title>
            <link>https://www.ichiayi.com/tech/nfs_ganesha</link>
            <description>在 Ubuntu/Debian 安裝 NFS Ganesha 取代 NFS-kernel service

	*  因為詢問 ChatGPT 是否有提升 NFS 服務效能的輔助軟體, 結果給了這答案: 
使用 NFS 緩存 : 某些軟體和硬體方案提供 NFS 緩存，可減少對伺服器的存取，提升效能。這些緩存可以是軟體層面的，例如 nfs-ganesha 或硬體層面的存儲緩存</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 27 Mar 2025 10:22:52 +0000</pubDate>
        </item>
        <item>
            <title>CentOS 安裝 Nginx 擔任網站分派器</title>
            <link>https://www.ichiayi.com/tech/nginx</link>
            <description>CentOS 安裝 Nginx 擔任網站分派器

安裝 nginx yum repo

CentOS 6


rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm


CentOS 7


rpm -ivh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 17 Mar 2021 06:14:22 +0000</pubDate>
        </item>
        <item>
            <title>Nginx Proxy Manager(NPM) 當 Revers Proxy Server(Docker)</title>
            <link>https://www.ichiayi.com/tech/nginx_proxy_manager</link>
            <description>Nginx Proxy Manager(NPM) 當 Revers Proxy Server(Docker)

	*  環境 : 在 Alpine Linux 3 底下安裝 docker + docker-compose
	*  安裝的主機 IP : 192.168.11.231

編輯與啟動

	*  編輯 yml 檔案 

services:
  nginx-proxy-manager:
    image: jc21/nginx-proxy-manager:latest
    container_name: nginx-proxy-manager
    restart: always
    ports:
      - &#039;80:80&#039;
      - &#039;81:81&#039;
      - &#039;443:443&#039;
    volumes:
      - ./data:/data
      - ./letsencrypt:/etc/letsencrypt

  goaccess:
    image: xavierh/goaccess-for-nginxproxymanager:la…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 05 May 2026 08:30:39 +0000</pubDate>
        </item>
        <item>
            <title>Nginx 擔任 Web Proxy 傳遞真實 IP 的設定方式</title>
            <link>https://www.ichiayi.com/tech/nginx_proxy_real_ip</link>
            <description>Nginx 擔任 Web Proxy 傳遞真實 IP 的設定方式

困擾很久經過 Nginx 擔任的 Proxy 無法傳遞 Real IP 到 Web Server 的問題終於找到解法.

	*  首先要確認 Nginx 編譯時是否有 --with-http_realip_module 確認方式如下</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 09 Apr 2021 02:29:21 +0000</pubDate>
        </item>
        <item>
            <title>nginx 的 rewrite 設定</title>
            <link>https://www.ichiayi.com/tech/nginx_rewrite</link>
            <description>nginx 的 rewrite 設定

	*  主要是因為 dokuwiki 原本使用的 apache 改成 nginx 之後遇到 rewrite 無法如預期的運作所進行的設定紀錄.

啟動 nginx 的 rewrite 運作紀錄

	*  

server {
  listen 80;
  server_name wiki.ichiayi.com www.ichiayi.com;
:
  index index.html index.htm index.php doku.php;
  access_log  /var/log/nginx/wiki.ichiayi.com/access.log;
  error_log  /var/log/nginx/wiki.ichiayi.com/error.log notice;
  #error_log  /var/log/nginx/wiki.ichiayi.com/error.log;
  rewrite_log on;
  root /var/www/html;
:…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 24 Jul 2018 12:38:34 +0000</pubDate>
        </item>
        <item>
            <title>安裝 ogg 轉 mp3 工具程式</title>
            <link>https://www.ichiayi.com/tech/ogg2mp3</link>
            <description>安裝 ogg 轉 mp3 工具程式

因為在 CentOS 5.0 內已經安裝有  Sound Juicer 可以將音樂 CD 抓成 WAV 或 ogg 格式, 但是沒有預設可以轉成 mp3 或將 ogg 轉成 mp3 的工具, 經過 Google 的找尋知道有個 ogg2mp3.pl 的工具 Script 可以達成這樣的工作, 但是需要一些相配合的工具程式協同作業, 所以整理一下安裝的過程..</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 20 Aug 2008 23:32:59 +0000</pubDate>
        </item>
        <item>
            <title>Ollama + Open-WebUI</title>
            <link>https://www.ichiayi.com/tech/ollama</link>
            <description>Ollama + Open-WebUI

	*  安裝環境 VM 規格 : 
		*  vCPU : 8 ([host] i7-11700 支援 avx2)
		*  RAM : 8G
		*  SSD : 64G

	*  OS : Alpine 3.19 + docker compose

使用 docker compose 快速安裝測試

	*  編輯 docker-compose.yml 

services:
  ollama:
    image: ollama/ollama:latest
    ports:
      - 11434:11434
    volumes:
      - .:/code
      - ./ollama/ollama:/root/.ollama
    container_name: ollama
    environment:
      - OLLAMA_NUM_PARALLEL=4
      - OLLAMA_MAX_LOADED_MODELS=4
    pull_policy: always
    tty: true
 …</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 18 Dec 2024 10:34:49 +0000</pubDate>
        </item>
        <item>
            <title>OMV(OpenMediaVault) 相關紀錄</title>
            <link>https://www.ichiayi.com/tech/omv_tips</link>
            <description>OMV(OpenMediaVault) 相關紀錄

	*  OMV(OpenMediaVault) 是一套簡易的開源 NAS 系統, 提供 SMB / NFS ... 等等常用的檔案服務

升級 OMV5 至 OMV6 至 OMV7 至 OMV8 的做法

	*  參考 - &lt;https://www.openmediavault.org/?p=3010&gt;
	*  參考 - &lt;https://forum.openmediavault.org/index.php?thread/51651-upgrading-to-omv6-from-omv5-5-6-26-1/&amp;postID=383620#post383620&gt;

	*  進行更新
	*  更新成功, 重新開機</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 31 Dec 2025 09:04:16 +0000</pubDate>
        </item>
        <item>
            <title>網頁上顯示自己的 MSN/ICQ/AIM.. 狀態</title>
            <link>https://www.ichiayi.com/tech/onlinestatus</link>
            <description>網頁上顯示自己的 MSN/ICQ/AIM.. 狀態

&lt;style box background&gt;
這主要是看到 Dokuwiki Pluging - imstatus 所開始瞭解的設定與原理，

不過實際安裝後發現很多的 User 狀態無法正確顯示，可能和 IM Server 的通訊協定有關。
&lt;/quote&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 16 Jan 2021 06:51:36 +0000</pubDate>
        </item>
        <item>
            <title>OpenCC 將簡體中文轉成正體中文方案</title>
            <link>https://www.ichiayi.com/tech/opencc</link>
            <description>OpenCC 將簡體中文轉成正體中文方案

Alpine Linux

	*  

Debian/Ubuntu

	*  

實際使用方式

	*  echo “&lt;簡體內文&gt;” | opencc -c s2twp.json 

# echo &quot;软件是一系列按照特定顺序组织的计算机数据和指令的集合。一般来讲软件被划分为系统软件、应用软件和介于这两者之间的中间件。软件并不只是包括可以在计算机（这里的计算机是指广义的计算机）上运行的电脑程序，与这些电脑程序相关的文档一般也被认为是软件的一部分。简单的说软件就是程序加文档的集合体。另也泛指社会结构中的管理系统、思想意识形态、思想政治觉悟、法律法规等等。&quot; | opencc -c s2twp.json

軟體是一系列按照特定順序組織的計算機資料和指令的集合。一般來講軟體被劃分為系統軟體、應用軟體和介於這兩者之間的中介軟體。軟體並不只是包括可以在計算機（這裡的計算機是指廣義的計算機）上執行的電腦程式，與這些電腦程式相關的文件一般也被認為是軟體的一部分。簡單的說軟體就是程式加文件的集合體。另也泛指社會結構中的管理系統、思想意識形態、思想政治覺悟、法律…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 04 Oct 2025 14:17:13 +0000</pubDate>
        </item>
        <item>
            <title>設定 openchamber 可以在 Ubuntu 開機自動啟動</title>
            <link>https://www.ichiayi.com/tech/openchamber</link>
            <description>設定 openchamber 可以在 Ubuntu 開機自動啟動

	*  openchamber 是一套可以讓 opencode 在 Web 上操作的好用工具
	*  基本安裝的方式可以參考 - &lt;https://www.ichiayi.com/tech/opencode#%E4%BD%BF%E7%94%A8_openchamber_web_%E6%93%8D%E4%BD%9C%E4%BB%8B%E9%9D%A2&gt; 

設定 Ubuntu 24.04 主機重新開啟可以 jonathan 身分自動啟動</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 24 Mar 2026 14:40:35 +0000</pubDate>
        </item>
        <item>
            <title>安裝 OpenCode (Ubuntu 24.04)</title>
            <link>https://www.ichiayi.com/tech/opencode</link>
            <description>安裝 OpenCode (Ubuntu 24.04)

	*  也可以參考我整合好的專案 
 &lt;https://github.com/tryweb/Codeforge&gt; 
	*  用 docker compose 就可啟動使用

安裝程序

	*  
	*  之後如果要更新也是執行 
		*  看畫面++


	*  預設啟動 opencode 就會自動檢查與更新至最新版本, 如果想固定在特定版本 Exp. 1.3.2</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 11 May 2026 08:55:25 +0000</pubDate>
        </item>
        <item>
            <title>CentOS 5 安裝 OpenLdap 管理通訊錄</title>
            <link>https://www.ichiayi.com/tech/openldap</link>
            <description>CentOS 5 安裝 OpenLdap 管理通訊錄

- 安裝套件

	*  compat-openldap-2.3.27_2.2.29-5
	*  openldap-2.3.27-5
	*  openldap-devel-2.3.27-5
	*  openldap-clients-2.3.27-5
	*  openldap-servers-2.3.27-5
	*  openldap-servers-sql-2.3.27-5

- 設定 LDAP Server</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 04 Jun 2009 23:18:57 +0000</pubDate>
        </item>
        <item>
            <title>OpenSSL 廢止憑證方式</title>
            <link>https://www.ichiayi.com/tech/openssl_cacrl</link>
            <description>OpenSSL 廢止憑證方式

- 修改 openssl.cnf 參數檔

	*  openssl.cnf 參數檔 : /etc/pki/tls/openssl.cnf
	*  建立自己的憑證參數 Exp.  CA_trysoft 

看修改 openssl.cnf 內容


:
[ca]
default_ca      = CA_default            # The default ca section
trysoft_ca      = CA_trysoft            # Trysoft Corp. ca section
:
[ CA_trysoft ]

dir             = /home/jonathan/ca/trysoft
certs           = $dir/certs            # Where the issued certs are kept
crl_dir         = $dir/crl              # Where the issued crl are kept
database      …</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 22 Aug 2008 06:37:28 +0000</pubDate>
        </item>
        <item>
            <title>OpenSSL 簽發憑證方式</title>
            <link>https://www.ichiayi.com/tech/openssl_caserver</link>
            <description>OpenSSL 簽發憑證方式

	*  OpenSSL 版本 : openssl-0.9.8b-10.el5

- 根憑證 (Root CA) 作法：

- 建立根憑證 Private Key 檔 RootCA.key


openssl genrsa -out RootCA.key 2048
chmod og-rwx RootCA.key


- 產生根憑證的申請檔 RootCA.req</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 12 Apr 2025 16:50:37 +0000</pubDate>
        </item>
        <item>
            <title>OpenSSL 對電子檔簽章與驗簽方式</title>
            <link>https://www.ichiayi.com/tech/openssl_signverify</link>
            <description>OpenSSL 對電子檔簽章與驗簽方式

	*  OpenSSL 版本 : openssl-0.9.8b-10.el5_2.1
	*  假設簽章者憑證為 jonathan.crt 密鑰檔為 jonathan.key
	*  jonathan.crt 的發行者憑證為 RootCA.crt

- 對電子檔簽章作法：

	*  被簽章的電子檔為 test.txt</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 16 Jan 2021 06:38:43 +0000</pubDate>
        </item>
        <item>
            <title>OpenSSL 常用語法整理</title>
            <link>https://www.ichiayi.com/tech/openssl_tips</link>
            <description>OpenSSL 常用語法整理

- 直接看憑證檔內容


openssl x509 -in cert.pem -text -noout


看結果訊息


[root@pve-ms ichiayi.com]# openssl x509 -in cert.pem -text -noout | more
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number:
            03:9f:af:ef:f3:22:59:75:7a:fd:a3:78:76:2c:b6:bb:f9:f5
    Signature Algorithm: sha256WithRSAEncryption
        Issuer: C=US, O=Let&#039;s Encrypt, CN=Let&#039;s Encrypt Authority X3
        Validity
            Not Before: Dec 31 14:20:07 2018 GMT
            Not After : Mar …</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 31 Dec 2018 15:56:15 +0000</pubDate>
        </item>
        <item>
            <title>安裝 OpenVAS 主機弱掃方案</title>
            <link>https://www.ichiayi.com/tech/openvas</link>
            <description>安裝 OpenVAS 主機弱掃方案

	*  Alpine 3.23 + Docker Compose
		*  vCPU : 8
		*  RAM : 16GB
		*  SSD : 120GB


	*  設定 /etc/sysctl.conf

:
vm.overcommit_memory = 1


重新啟動主機或先執行以下命令立即生效


安裝程序

	*</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 10 Jan 2026 00:49:48 +0000</pubDate>
        </item>
        <item>
            <title>CentOS 6.5 設定 OpenVPN Client 自動連上方式</title>
            <link>https://www.ichiayi.com/tech/openvpn-client</link>
            <description>CentOS 6.5 設定 OpenVPN Client 自動連上方式

因為 Server 與 Server 的聯繫要透過 OpenVPN 所以有這個需求, 本來以為可能要花一些時間寫 script , 測試結果發現非常簡單就可以搞定.

安裝 OpenVPN 套件

	*</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 20 May 2014 07:26:45 +0000</pubDate>
        </item>
        <item>
            <title>Ubuntu 20.04 設定 OpenVPN Client 自動連上方式</title>
            <link>https://www.ichiayi.com/tech/openvpn-client_ubuntu</link>
            <description>Ubuntu 20.04 設定 OpenVPN Client 自動連上方式

因為 Server 與 Server 的聯繫要透過 OpenVPN 所以有這個需求, 本來以為可能要花一些時間寫 script , 測試結果發現非常簡單就可以搞定.

安裝 OpenVPN 套件</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 19 Apr 2023 04:40:29 +0000</pubDate>
        </item>
        <item>
            <title>[Draft] CentOS GNOME OpenVPN Client 圖形介面設定</title>
            <link>https://www.ichiayi.com/tech/openvpn-gnome</link>
            <description>[Draft] CentOS GNOME OpenVPN Client 圖形介面設定

	*  CentOS 6.4 x86_64
	*  EPEL repos

安裝相關套件


yum install NetworkManager-vpnc NetworkManager-pptp NetworkManager-openvpn



Installing:
 NetworkManager-openvpn   x86_64   1:0.8.1-0.1.git20100609.el6     epel   133 k
 NetworkManager-pptp      x86_64   1:0.8.0-1.git20100411.el6       epel   106 k
 NetworkManager-vpnc      x86_64   1:0.8.0-1.git20100411.el6       epel   108 k
Installing for dependencies:
 pptp                     x86_64   1.7.2-8.1.el6  …</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 17 Apr 2013 02:00:03 +0000</pubDate>
        </item>
        <item>
            <title>安裝 openvpn-monitor 監控線上使用者(Docker)</title>
            <link>https://www.ichiayi.com/tech/openvpn-monitor</link>
            <description>安裝 openvpn-monitor 監控線上使用者(Docker)

	*  透過 OpenVPN Server 設定的 management Port 來監控線上使用者
	*  安裝環境 : 
		*  VM : 1vCore, 1G RAM, 16G SSD
		*  OS : Alpine 3.18 + Docker Compose

	*  參考 在 Alpine Linux 3 底下安裝 docker + docker-compose

安裝設定</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 29 Oct 2023 01:28:26 +0000</pubDate>
        </item>
        <item>
            <title>安裝 openvpn-ui (OpenVPN + 簡易 WebUI) 方案</title>
            <link>https://www.ichiayi.com/tech/openvpn-ui</link>
            <description>安裝 openvpn-ui (OpenVPN + 簡易 WebUI) 方案

	*  為解決
		*  DockOVPN (OpenVPN Docker方案) 無 WebUI 可管理 VPN 帳號
		*  OVPN-Admin (OpenVPN + 簡易 WebUI) 在 Alpine 升級到 3.23 後無法使用的議題

		*  因此找到這 openvpn-ui 方案

	*  安裝環境
		*  VM : 1 vCore, 1G RAM, 16G SSD
		*  OS : Alpine 3.23 + Docker Compose</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 13 Jan 2026 06:11:25 +0000</pubDate>
        </item>
        <item>
            <title>CentOS 6 安裝與設定 OpenVPN</title>
            <link>https://www.ichiayi.com/tech/openvpn</link>
            <description>CentOS 6 安裝與設定 OpenVPN

	*  OpenVPN 官方網站 : &lt;http://openvpn.net/&gt;

Server 端

	*  CentOS 6.6 x86_64

下載安裝最新版 OpenVPN 與相關 Lib


su - root
rpm -ivh http://mirror01.idc.hinet.net/EPEL/6/x86_64/epel-release-6-8.noarch.rpm
yum install kernel-devel openssl-devel gcc rpm-build
yum install lzo-devel pam-devel pkcs11-helper-devel openvpn easy-rsa</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 16 Apr 2019 05:30:53 +0000</pubDate>
        </item>
        <item>
            <title>[Draft]設定 OpenVPN Site-to-Site</title>
            <link>https://www.ichiayi.com/tech/openvpn_site_to_site</link>
            <description>[Draft]設定 OpenVPN Site-to-Site

參考網址

	*  &lt;https://medium.com/@bjammal/site-to-site-vpn-on-a-single-host-using-openvpn-e9c5cdb22f92&gt;

openvpn</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 11 Dec 2022 15:11:47 +0000</pubDate>
        </item>
        <item>
            <title>安裝 OpenVPN Web GUI 工具網頁</title>
            <link>https://www.ichiayi.com/tech/openvpn_webgui</link>
            <description>安裝 OpenVPN Web GUI 工具網頁

可參考 安裝 ovpn-admin (OpenVPN + 簡易 WebUI) 方案

	*  OpenVPN Web GUI 官方網站 - &lt;http://openvpn-web-gui.sourceforge.net/&gt;
	*  先參考 CentOS 6 安裝與設定 OpenVPN
	*  安裝環境 - CentOS 6.3 x86_64 + EPEL

安裝與設定系統相關套件

	*  安裝系統套件 

yum install -y iptraf sysstat net-snmp mrtg ntp httpd mod_ssl php php-mbstring</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 25 Jun 2024 05:49:32 +0000</pubDate>
        </item>
        <item>
            <title>OpenStreetMap(OSM) API 使用整理</title>
            <link>https://www.ichiayi.com/tech/osmapi</link>
            <description>OpenStreetMap(OSM) API 使用整理

使用情境

	*  取得特定 mapper 資料(Details of a user) Exp. 

curl https://www.openstreetmap.org/api/0.6/user/1903826



&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;osm version=&quot;0.6&quot; generator=&quot;OpenStreetMap server&quot;&gt;
  &lt;user id=&quot;1903826&quot; display_name=&quot;Jonathan Tsai&quot; account_created=&quot;2014-01-26T14:32:26Z&quot;&gt;
    &lt;description&gt;&lt;/description&gt;
    &lt;contributor-terms agreed=&quot;true&quot;/&gt;
    &lt;img href=&quot;https://www.gravatar.com/avatar/58295402de78b371f3f4075902416fd5.jpg?s=256&amp;amp;d=https%3A%2F%…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 27 May 2014 14:49:11 +0000</pubDate>
        </item>
        <item>
            <title>OpenStreet 離線地圖下載</title>
            <link>https://www.ichiayi.com/tech/osmmap</link>
            <description>OpenStreet 離線地圖下載

	*  台灣地圖 - 魯地圖
	*  世界各地地圖 - &lt;https://www.openandromaps.org/en/downloads/countrys-and-regions&gt;

OruxMaps

	*  針對 OruxMaps 直接下載更新離線地圖網址
		*  魯地圖 - &lt;https://rudymap.tw/app/oruxmaps/standard&gt;
		*  OpenAndroMaps - &lt;http://www.openandromaps.org/en/downloads/asia-middle-east&gt;

	*  備份軌跡到 Google Drive FIXME

osm map 離線地圖</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 28 Mar 2024 02:32:18 +0000</pubDate>
        </item>
        <item>
            <title>安裝 oVirt on CentOS 6.4</title>
            <link>https://www.ichiayi.com/tech/ovirt</link>
            <description>安裝 oVirt on CentOS 6.4

	*  預計安裝 3 台組成的 oVirt
  Hostname      DB    Virt    Gluster    kvm-oVirt0    V      V         V       kvm-oVirt1          kvm-oVirt2        
所有 oVirt 主機

	*  先安裝好 CentOS 6.4 x86_64 minimal
	*</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 06 Nov 2013 17:27:15 +0000</pubDate>
        </item>
        <item>
            <title>安裝 ovpn-admin (OpenVPN + 簡易 WebUI) 方案</title>
            <link>https://www.ichiayi.com/tech/ovpn-admin</link>
            <description>安裝 ovpn-admin (OpenVPN + 簡易 WebUI) 方案

可參考 安裝 openvpn-ui (OpenVPN + 簡易 WebUI) 方案

	*  為解決 DockOVPN (OpenVPN Docker方案) 無 WebUI 可管理 VPN 帳號, 因此找到這 ovpn-admin 方案
	*  安裝環境
		*  VM : 2 vCore, 2G RAM, 32G SSD
		*  OS : Alpine 3.21 + Docker Compose

	*  規劃環境
		*  OpenVPN 內部網路 : 10.16.0.0/24</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 13 Jan 2026 04:23:51 +0000</pubDate>
        </item>
        <item>
            <title>自建 OwnTrack 追蹤個人 GPS 軌跡服務</title>
            <link>https://www.ichiayi.com/tech/owntrack</link>
            <description>自建 OwnTrack 追蹤個人 GPS 軌跡服務

	*  雖然 Google Map 有提供這功能, 不過很多人想記錄自己軌跡, 但又不想讓 Google 掌握自己的隱私, 就會有這個需求
	*  官網 - &lt;https://owntracks.org/&gt;
		*  手機 APP iOS Android

	*  GitHub - &lt;https://github.com/owntracks&gt;

架構圖</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 03 Mar 2026 06:26:33 +0000</pubDate>
        </item>
        <item>
            <title>Asus P5GC-MX/1333 安裝 CentOS Linux 網卡 Driver</title>
            <link>https://www.ichiayi.com/tech/p5gc_mx_linuxdrv</link>
            <description>Asus P5GC-MX/1333 安裝 CentOS Linux 網卡 Driver

	*  Attansic L2 並不是 Giga 網卡, 只是 10/100 網卡
	*  說真的如果這片主機板是要安裝 CentOS, 而且還會常常更新 Linux Kernel, 建議還是另外找一片預設有支援的網卡比較方便, 否則每次更新 kernel 之後就要重新 compile atl2 driver..</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 20 May 2018 07:04:58 +0000</pubDate>
        </item>
        <item>
            <title>Asus P5LD2-VM 安裝 CentOS 5 Linux 網卡 Driver 問題</title>
            <link>https://www.ichiayi.com/tech/p5ld2_vm_linuxdrv</link>
            <description>Asus P5LD2-VM 安裝 CentOS 5 Linux 網卡 Driver 問題
:-/


su - root
rmmod e1000e
modprobe e1000
lsmod | grep e1000 &lt;-- 確認是否有安裝完成
service network restart




p5ld2-vm 安裝</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 16 Jan 2021 06:38:43 +0000</pubDate>
        </item>
        <item>
            <title>Paperless-ngx 文件管理系統(Docker)</title>
            <link>https://www.ichiayi.com/tech/paperless</link>
            <description>Paperless-ngx 文件管理系統(Docker)

	*  之前就一直找尋可以快速搜尋 File Server 內檔案內文關鍵字的系統, 最近看到這套 Paperless-ngx 還具有OCR的功能, 連掃描產生的 PDF 內文都可以解析出內文, 真的就很符合我希望使用的情境.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 29 Jul 2024 09:53:48 +0000</pubDate>
        </item>
        <item>
            <title>[draft]PBS 1 升級到 2 紀錄</title>
            <link>https://www.ichiayi.com/tech/pbs1to2</link>
            <description>[draft]PBS 1 升級到 2 紀錄

事前準備

	*  先將 PBS(Proxnox Backup Server) 升級到最新版本 Exp. 1.1-12
	*  將 /etc/proxmox-backup 先備份起來
	*  確認跟目錄 / 至少有 4GB 以上的空間 
	*  如果 PBS 和 PVE 同時安裝的主機, 可以在升級 PVE 同時透過修改 /etc/apt/sources.list 內容</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 31 Jul 2021 11:57:41 +0000</pubDate>
        </item>
        <item>
            <title>Proxmox Backup Server (PBS) 安裝測試紀錄</title>
            <link>https://www.ichiayi.com/tech/pbs2</link>
            <description>Proxmox Backup Server (PBS) 安裝測試紀錄

安裝環境

	*  在一台已安裝 PVE 的節點內直接裝
	*  將之前 PBS 所備份的單獨一顆外接 4TB Toshiba 外接 USB 碟匯入繼續當備份碟

安裝 PBS 的程序

	*  設定 PBS 3 儲存庫</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 26 Feb 2024 14:34:20 +0000</pubDate>
        </item>
        <item>
            <title>PBS 常見問題與解決方式</title>
            <link>https://www.ichiayi.com/tech/pbsfaq</link>
            <description>PBS 常見問題與解決方式

無法移除 zpool 問題

	*  參考 - &lt;https://forum.proxmox.com/threads/unable-to-remove-datastore-in-pbs.123061/&gt;
	*  Exp 無法移除 zfs-backup 
	*  可重開主機或是重啟 PBS 服務
	*  再次執行就可移除 Exp.

ZPool 突然消失問題

	*  進行 remote 同步過程, 不知名原因造成原本建立的 pbs-zpool 消失, 因為測試備份資料, 所以沒有特別找 zfs 資料救回處理程序</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 13 Nov 2024 23:16:51 +0000</pubDate>
        </item>
        <item>
            <title>Proxmox Backup Server(PBS) 安裝測試紀錄</title>
            <link>https://www.ichiayi.com/tech/pbstips</link>
            <description>Proxmox Backup Server(PBS) 安裝測試紀錄

安裝環境

	*  PVE 6.2 底下的一個 VM (4Core / 4GB RAM / 8GB+4TB Disk)
	*  安裝 PBS 版本 - proxmox-backup-server_BETA-1.iso

安裝程序

	*  透過虛擬光碟掛上 ISO 開機進行 PBS 安裝程序, 將 PBS 安裝到 8GB Disk 內, 完成後移除 ISO 檔案重新開機</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 18 Dec 2023 03:53:09 +0000</pubDate>
        </item>
        <item>
            <title>CentOS 7 安裝 Percona XtraDB Cluster</title>
            <link>https://www.ichiayi.com/tech/perconaxc</link>
            <description>CentOS 7 安裝 Percona XtraDB Cluster

	*  預計安裝在 CentOS Linux release 7.7.1908 (Core) (PVE6 Template upgrade) 環境下
	*  配置 node 如下:
		*  ct-percona1 192.168.11.252 (Master)
		*  ct-percona2 192.168.11.202


安裝程序


yum install epel-release
yum install http://www.percona.com/downloads/percona-release/redhat/0.1-6/percona-release-0.1-6.noarch.rpm
yum install percona-xtrabackup Percona-XtraDB-Cluster-server-56</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 13 Mar 2021 03:37:35 +0000</pubDate>
        </item>
        <item>
            <title>Perl + Linux 檢測檔案是否為 UTF-8 與去除 BOM 方式</title>
            <link>https://www.ichiayi.com/tech/perl_check_utf8</link>
            <description>Perl + Linux 檢測檔案是否為 UTF-8 與去除 BOM 方式

因為 UTF-8 有含 BOM 與不含 BOM 的格式，所以如果要處理一個 UTF-8 檔案需要先處理成一致格式再交給程式，以下是最近寫處理申請資料檔案時的相關程式碼.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 02 Mar 2009 17:07:43 +0000</pubDate>
        </item>
        <item>
            <title>Perl 的 hash 變數相關實務驗證</title>
            <link>https://www.ichiayi.com/tech/perl_clear_hash</link>
            <description>Perl 的 hash 變數相關實務驗證

這個問題所造成的 Bug 真的會很難抓.. 所以仔細了解一下 hash 的變數與實際驗證的結果整理如下:

	*  清除 hash 變數的方式


#!/usr/bin/perl

for ($i=0; $i&lt;10; $i++) {
        #undef(%hash_test);
        #%hash_test={};
        #%hash_test=();
        $hash_test={};
        print $i.&#039;a:[&#039;.$hash_test-&gt;{&#039;test&#039;}.&quot;]\n&quot;;
        $hash_test-&gt;{&#039;test&#039;}=time;
        sleep(1);
        print $i.&#039;b:[&#039;.$hash_test-&gt;{&#039;test&#039;}.&quot;]\n&quot;;
}</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 25 Dec 2008 02:21:23 +0000</pubDate>
        </item>
        <item>
            <title>Perl deprecated or obsolete functions or modules</title>
            <link>https://www.ichiayi.com/tech/perl_deprecated_obsolete_functions_modules</link>
            <description>Perl deprecated or obsolete functions or modules

最近透過 checkmarx 掃描 perl 的原始碼, 只要出現 


open(FH, &#039;&lt;&#039;, $file) or die $!;


就會有以下這個風險項目 


	*  由 SEI CERT Perl Coding Standard 所建議的解決方式如下:
		*  原本 

:
open(FH, &#039;&lt;&#039;, $branch_env_file) or die $!;
:</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 24 Oct 2021 01:36:24 +0000</pubDate>
        </item>
        <item>
            <title>Perl 呼叫外部程式命令差異</title>
            <link>https://www.ichiayi.com/tech/perl_exec</link>
            <description>Perl 呼叫外部程式命令差異

system() : 呼叫後會回來繼續往下執行

	*  Exp1. 
		*  Exp2. 
		*  Exp3. 

exec() : 呼叫後就不會回來

	*  Exp1.  

backticks(` `) 或是 qx/ / : 呼叫後會回來, 可將執行的結果傳入變數</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 03 Jan 2021 15:16:58 +0000</pubDate>
        </item>
        <item>
            <title>Perl 呼叫回傳碼</title>
            <link>https://www.ichiayi.com/tech/perl_exit_code</link>
            <description>Perl 呼叫回傳碼

因為大量使用 perl(主程式) 呼叫 perl(子程式) 或其他外部程式, 所以需要判別所呼叫的 perl(子程式) 或其他外部程式執行正確或異常來讓 perl(主程式) 進行後續的處理邏輯

找了一下, perl(子程式) 可以使用 exit($ret_code); 方式讓 perl(主程式) 知道是否處理正確或異常</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 31 Mar 2022 07:46:01 +0000</pubDate>
        </item>
        <item>
            <title>perl 副程式傳遞多個 hash 實作</title>
            <link>https://www.ichiayi.com/tech/perl_sub_hash</link>
            <description>perl 副程式傳遞多個 hash 實作

Perl 傳遞參數給副程式是採用 array 的方式將各個參數傳遞過去, 所以當要傳的參數有多個 array 或 hash 時, 就會出現問題, 在 perlsub 參考解決方案中, 是提出 array 的方法如下:</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 12 Dec 2008 13:43:24 +0000</pubDate>
        </item>
        <item>
            <title>Perl UTF-8</title>
            <link>https://www.ichiayi.com/tech/perl_utf8</link>
            <description>Perl UTF-8

最近使用 XML::Simple 剖析 UTF-8 編碼的 XML 檔, 結果讀出來的中文碼與 DB 取出來的無法對應, 才發現是 utf8 的問題.

以下是試出來的方法.. 至於為何會用 decode 而不是 encode 我也沒有仔細去探究原因..</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 19 Dec 2008 04:04:56 +0000</pubDate>
        </item>
        <item>
            <title>在 Alpine 上安裝 PhotoPrism</title>
            <link>https://www.ichiayi.com/tech/photoprism</link>
            <description>在 Alpine 上安裝 PhotoPrism

	*  VM : 2vCore / 4GRAM / 32GSSD
	*  OS : Alpine 3 參考 - 在 Alpine Linux 3 底下安裝 docker + docker-compose

安裝程序

	*  採用 cifs 方式將 NAS 內的 LocalPhotos  掛入  
		*  處理程序:


	*  如果可以正確掛上 /root/Pictures 看到 NAS 內的檔案, 就可以設定開機自動掛上</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 09 Feb 2023 14:15:21 +0000</pubDate>
        </item>
        <item>
            <title>使用 SVN 整合 PHP iCanlendar 與 Rainlendar 方法</title>
            <link>https://www.ichiayi.com/tech/phpical_rainlendar</link>
            <description>使用 SVN 整合 PHP iCanlendar 與 Rainlendar 方法

- 相關軟體網站

&lt;quote&gt;

	*  PHP iCalendar
	*  Rainlendar
	*  TortoiseSVN
	*  SubVersion

&lt;/quote&gt;

- 整合概念

&lt;style box float-left&gt;
&lt;ditaa name=concept&gt;

/------------\                        /---------------\
 Rainlendar</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 16 Jan 2021 06:51:36 +0000</pubDate>
        </item>
        <item>
            <title>Centos7 安裝 phplist</title>
            <link>https://www.ichiayi.com/tech/phplist</link>
            <description>Centos7 安裝 phplist

	*  安裝環境 : CentOS 7 
	*  phplist : 3.4.0

安裝程序

	*  安裝主要套件 

yum install epel-release
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum install php72w php72w-cli php72w-common php72w-imap php72w-mbstring php72w-xml php72w-mysqli php72w-gd mariadb mariadb-server httpd wget</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 26 Mar 2019 16:42:57 +0000</pubDate>
        </item>
        <item>
            <title>製作 Alpine php 支援 mysql 的 Docker Image</title>
            <link>https://www.ichiayi.com/tech/php_alpine_docker_images</link>
            <description>製作 Alpine php 支援 mysql 的 Docker Image

	*  Dockerfile 

FROM php:7.4.33-cli-alpine3.16

RUN apk update &amp;&amp; apk upgrade
RUN docker-php-ext-install mysqli pdo pdo_mysql &amp;&amp; docker-php-ext-enable pdo_mysql
COPY app /var/www/html
WORKDIR /var/www/html
EXPOSE 80
CMD [&quot;php&quot;, &quot;-S&quot;, &quot;0.0.0.0:80&quot;]</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 20 Nov 2023 09:16:25 +0000</pubDate>
        </item>
        <item>
            <title>PHP Compiler</title>
            <link>https://www.ichiayi.com/tech/php_compiler</link>
            <description>PHP Compiler

	*  Free PHP Compiler
		*  Roadsend PHP Compiler
		*  phc - open source php compiler

	*  商用軟體
		*   phpSHIELD - The PHP Encoder
		*   SourceGuardian - The PHP Encoder


參考資料網頁

	*  &lt;http://plog.longwin.com.tw/news-technology/2007/03/03/free_php_compile_2007&gt;

php</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 21 Sep 2009 00:52:55 +0000</pubDate>
        </item>
        <item>
            <title>製作 php Docker Image 紀錄</title>
            <link>https://www.ichiayi.com/tech/php_docker_images</link>
            <description>製作 php Docker Image 紀錄

因為想將之前一個 php 專案改用 Docker 方式處理, 進行修改的紀錄

原本系統安裝方式

	*  OS : CentOS Linux release 7.5.1804 (Core) (PVE VM)
	*  安裝可支援套件 
	*  安裝 Composer 
	*</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 20 Nov 2023 09:17:41 +0000</pubDate>
        </item>
        <item>
            <title>Pidgin</title>
            <link>https://www.ichiayi.com/tech/pidgin</link>
            <description>Pidgin

增加 Twitter 支援功能

主要是安裝 [&lt;http://code.google.com/p/microblog-purple/[&gt;|microblog-purple]] 這個 plugin, 在 Windows 環境應該很簡單直接下載安裝, 但我現在家裏電腦主要是用 CentOS 5 x86_64 環境，所以就需要自己對 Source Code Compiler，也很簡單，程序如下:</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 01 Dec 2009 14:39:55 +0000</pubDate>
        </item>
        <item>
            <title>安裝 Pi-hole+Unbound 的 DNS (Docker)</title>
            <link>https://www.ichiayi.com/tech/pihole_unbound</link>
            <description>安裝 Pi-hole+Unbound 的 DNS (Docker)

	*  因為之前安裝 Bind 的 DNS 管理成本很高, 最近上網廣告很多, 想直接透過 DNS 來阻絕廣告, 剛好看到這個 Pi-hole + Unbound 的方案
	*  安裝環境 : 
		*  VM : 1vCore, 1G RAM, 16G SSD
		*</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 21 Feb 2025 23:34:24 +0000</pubDate>
        </item>
        <item>
            <title>憑證相關資訊</title>
            <link>https://www.ichiayi.com/tech/pki</link>
            <description>憑證相關資訊</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 20 Aug 2008 23:27:23 +0000</pubDate>
        </item>
        <item>
            <title>Poppassd 安裝程序</title>
            <link>https://www.ichiayi.com/tech/poppassd</link>
            <description>Poppassd 安裝程序

之前安裝 SquirrelMail 有看到 change password 的功能, 但是最近需要讓使用者自己來更改密碼時才發現不見了, 看了 SquirrelMail 相關說明後才瞭解需要安裝 change_pass Plugin 才會有這功能. 本來以為這樣就完成, 實際使用時又發現無法開啟連線的 111 異常訊息. 再去看</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 16 Jan 2021 06:38:43 +0000</pubDate>
        </item>
        <item>
            <title>在 Alpine 內安裝 Portainer 管理 Container</title>
            <link>https://www.ichiayi.com/tech/portainer</link>
            <description>在 Alpine 內安裝 Portainer 管理 Container

	*  先參考 在 Alpine Linux 3 底下安裝 docker + docker-compose 
	*  執行以下語法 
	*  接下來直接連上  就可以設定 admin 密碼開始使用

統一使用 Portainer 管理所有 VM 內的 Container

	*  確認安裝好 Portainer IP Exp. 192.168.1.186</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 18 Sep 2025 11:23:59 +0000</pubDate>
        </item>
        <item>
            <title>CentOS7 安裝 postfix 透過 gmail 寄信</title>
            <link>https://www.ichiayi.com/tech/postfix</link>
            <description>CentOS7 安裝 postfix 透過 gmail 寄信

因為很多系統訊息需要透過 Mail 寄出, 目前透過 GMail 寄出信件是最容易不被當成垃圾信件

	*  安裝環境: CentOS Linux release 7.7.1908 (Core)

安裝相關套件

	*  

yum install postfix cyrus-sasl{,-plain}</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 16 Jan 2021 06:40:23 +0000</pubDate>
        </item>
        <item>
            <title>PostgreSQL Cluster 方案整理</title>
            <link>https://www.ichiayi.com/tech/psql_cluster</link>
            <description>PostgreSQL Cluster 方案整理

	*  &lt;http://wiki.postgresql.org/wiki/Replication,_Clustering,_and_Connection_Pooling&gt;
	*  &lt;http://pgpool.projects.postgresql.org/&gt;

postgresql cluster</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 03 Mar 2010 12:56:14 +0000</pubDate>
        </item>
        <item>
            <title>PostgreSQL 異常修復紀錄</title>
            <link>https://www.ichiayi.com/tech/psql_fix_tips</link>
            <description>PostgreSQL 異常修復紀錄

出現 ERROR:  missing chunk number 0 for toast value 74185 in pg_toast_2619

	*  主要的原因是 ANALYZE 產生的 pg_statistic 有問題, 所以將 pg_statistic 砍掉重建就可以解決 Exp. 異常 table 是 user_tokens</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 26 Apr 2022 04:53:07 +0000</pubDate>
        </item>
        <item>
            <title>PostgreSQL 效能調校技巧</title>
            <link>https://www.ichiayi.com/tech/psql_tips</link>
            <description>PostgreSQL 效能調校技巧

使用任何 DB , 如果發現 AP 的效能變差, 能夠立即有成效的效能調校就是檢視 index 的建立與使用狀況..

- Index 要考慮加上 xxx_pattern_ops

	*  針對非英文語系的資料內容, 要建立的 index 應該要加上 xxx_pattern_ops</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 04 Jan 2010 23:42:02 +0000</pubDate>
        </item>
        <item>
            <title>PVE 內的 CT Centos7/Centos8 調整設定成標準樣板(Template)</title>
            <link>https://www.ichiayi.com/tech/pve-ct-centos7</link>
            <description>PVE 內的 CT Centos7/Centos8 調整設定成標準樣板(Template)

	*  因為內建的 lxc centos7 / centos8 的樣板和自己常用的環境不太相同, 因此安裝與調整一下設定

	*  安裝常用的 rpm 與更新到 centos 最新版

yum install epel-release openssh-server 

yum update</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 11 Sep 2020 00:57:04 +0000</pubDate>
        </item>
        <item>
            <title>建立 PVE CT-CentOS8 + php7.3 + nginx + MariaDB 樣板</title>
            <link>https://www.ichiayi.com/tech/pve-ct-centos8-php-nginx-mariadb</link>
            <description>建立 PVE CT-CentOS8 + php7.3 + nginx + MariaDB 樣板

	*  建立環境 : 
		*  PVE 6.3-2
		*  Cores 1 / Memory 512MB / Swap 512MB / Root Disk 8G
		*  CentOS 8 Template - centos-8-default_20191016_amd64.tar.xz

	*  建立 CT 之後, 先進行 PVE 內的 CT Centos7/Centos8 調整設定成標準樣板(Template)
	*  重新開機後登入進行安裝 php7.3 + nginx + MariaDB</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 06 Dec 2020 04:01:22 +0000</pubDate>
        </item>
        <item>
            <title>PVE 內 CT 無法啟動查問題與處理紀錄</title>
            <link>https://www.ichiayi.com/tech/pve-ct-err</link>
            <description>PVE 內 CT 無法啟動查問題與處理紀錄

有一台 PVE Node 因為無法直接安裝 PVE 6 所以先安裝 PVE 5 在透過PVE 5 升級到 6 紀錄進行升級程序完成升級, 但這台一切都正常, 但就是無法啟動裡面的 CT , 不過由 Cluster 內其他節點正在運行中的 CT 採用 Restart Mode 遷移過來卻是可以正常啟動運作, 以下就是找尋在這樣很特別的狀況下 CT 無法啟動的原因</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 16 Jan 2021 06:41:13 +0000</pubDate>
        </item>
        <item>
            <title>PVE 5 升級到 6 紀錄</title>
            <link>https://www.ichiayi.com/tech/pve5to6</link>
            <description>PVE 5 升級到 6 紀錄

因為 5/16 開始看到 PVE 5 即將停止支援的訊息, 另外 PVE 6.2 已經能夠讓使用本機硬碟的 VM 進行線上遷移(Live Migration)

	*  本機硬碟是 zfs storage
	*  VM 有設定定時複寫到另一台主機, 遷移的資料只有上次複寫之後的差異</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 20 May 2020 15:21:13 +0000</pubDate>
        </item>
        <item>
            <title>PVE 6 升級到 7 紀錄</title>
            <link>https://www.ichiayi.com/tech/pve6to7</link>
            <description>PVE 6 升級到 7 紀錄
實際採用 PEV 6 與 PVE 7 兩組 Cluster 並存的模式移轉運行, 處理紀錄請參考 安裝 PVE 7 與移轉 PVE 6 VM/CT 執行紀錄

	*  參考 - &lt;https://pve.proxmox.com/wiki/Upgrade_from_6.x_to_7.0#Old_Container_and_CGroupv2&gt;
	*  升級 cgroup-v2 需要讓 CT 內的 OS 升級至版本 Exp. CentOS 7 -&gt; CentOS 8
	*  強制設定使用舊版 cgroup 似乎不是那容易搞定</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 22 Jun 2022 00:54:54 +0000</pubDate>
        </item>
        <item>
            <title>安裝 PVE 7 與移轉 PVE 6 VM/CT 執行紀錄</title>
            <link>https://www.ichiayi.com/tech/pve6_and_pve7</link>
            <description>安裝 PVE 7 與移轉 PVE 6 VM/CT 執行紀錄

因為 PVE 7 已經採用 cgroup-v2 , 原本 PVE6 內 CT 的 OS 也必須配合升級至支援 cgroup-v2 的版本 Exp. CentOS 7 → CentOS 8 , 但 CentOS 之後已不再是企業使用的穩定版本, 所以應該是要花時間將原本的 CentOS 7 服務移轉至其他穩定版的 Linux 才合理, 也因此採用 PVE 7 與 PVE 6 兩個 Cluster 並存的方式進行處理, 可以有較充裕的時間, 讓服務一一由原本的 PVE 6 移轉至 PVE 7 內…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 03 Jun 2022 10:50:52 +0000</pubDate>
        </item>
        <item>
            <title>PVE 7 升級到 8 紀錄</title>
            <link>https://www.ichiayi.com/tech/pve7to8</link>
            <description>PVE 7 升級到 8 紀錄

	*  PVE 9 將只提供 cgroup-v2 不再提供相容舊版 cgroup , 如有 CT 如 CentOS 7 使用舊版 cgroup 要把握時間升級或移轉.. 我都移轉到 Ubuntu 20.04

依照官方的 wiki 說明升級程序, 似乎不太困難, 因此將實際的升級程序操作紀錄在底下</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 26 Aug 2023 14:34:57 +0000</pubDate>
        </item>
        <item>
            <title>PVE7 主機安裝 MegaRaid 卡命令工具(megacli, megaclisas-status)</title>
            <link>https://www.ichiayi.com/tech/pve7_megaraid</link>
            <description>PVE7 主機安裝 MegaRaid 卡命令工具(megacli, megaclisas-status)

有幾台主機有安裝 LSI MegaRAID 卡 , 最近因為壞了 RAID 內其中一顆硬碟才來找如何看 RAID 內硬碟與整體 RAID 的狀態工具.

安裝 megacli

	*  加入 megaraid tools 的 apt repo</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 08 Jul 2022 08:36:54 +0000</pubDate>
        </item>
        <item>
            <title>PVE 8 升級到 9 紀錄</title>
            <link>https://www.ichiayi.com/tech/pve8to9</link>
            <description>PVE 8 升級到 9 紀錄

	*  PVE 9 將只提供 cgroup-v2 不再提供相容舊版 cgroup , 如有 CT 如 CentOS 7 使用舊版 cgroup 可參考 安裝 Ubuntu + LXD 移轉 PVE 內的舊 CT

依照官方的 wiki 說明升級程序, 似乎不太困難, 因此將實際的升級程序操作紀錄在底下</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 17 Nov 2025 10:03:59 +0000</pubDate>
        </item>
        <item>
            <title>Proxmox VE(PVE) 安裝相關紀錄</title>
            <link>https://www.ichiayi.com/tech/pvetips</link>
            <description>Proxmox VE(PVE) 安裝相關紀錄

	*  版本資訊(Roadmap) - &lt;https://pve.proxmox.com/wiki/Roadmap&gt;

更改 Package Repositories

	*  &lt;https://pve.proxmox.com/wiki/Package_Repositories&gt; 
	*  參考網址 - &lt;https://nevertired.nctu.me/2019/11/09/proxmox-ve-%E6%9B%B4%E6%96%B0/&gt;



執行命令列更新

	*  

PVE 主機安裝 snmpd

	*  安裝與設定程序
	*  參考網址 : &lt;https://www.svennd.be/how-to-install-snmp-service-on-proxmox/&gt;

如有使用 ZFS 可限制使用記憶體大小</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 11 Apr 2025 07:28:53 +0000</pubDate>
        </item>
        <item>
            <title>[draft]PVE 上建立 bcache 方式</title>
            <link>https://www.ichiayi.com/tech/pve_bcache</link>
            <description>[draft]PVE 上建立 bcache 方式

	*  PVE 版本 : 6.3-3
	*  使用 /dev/mmcblk1 當 cache 碟來加速 /dev/sdc

安裝 bcache tools 與清除 /dev/mmcblk1 與 /dev/sdc

	*  

建立 bcache 與確認建立完成

	*  
	*  應該要出現類似以下訊息:</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 16 Jan 2021 16:05:39 +0000</pubDate>
        </item>
        <item>
            <title>PVE Firewall 設定記錄</title>
            <link>https://www.ichiayi.com/tech/pve_firewall</link>
            <description>PVE Firewall 設定記錄

	*  如果要啟用 PVE Firewall 需要 Data Center / PVE Node / VM or CT 都啟用才能生效
		*  Data Center 

		*  PVE Node 

		*  VM or CT 
 


PVE Node 基本規則

	*  因為需要進行 網頁管理(tcp 8006), PBS 備份(tcp 8007), SNMP 監控(udp 161), ping (icmp), SSH 連入管理(tcp 22) 所以直接在 Data Center 內建立 Security Group -</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 30 Jul 2022 12:51:38 +0000</pubDate>
        </item>
        <item>
            <title>設定 PVE system log 到 Log Server</title>
            <link>https://www.ichiayi.com/tech/pve_log</link>
            <description>設定 PVE system log 到 Log Server

	*  集中 log 在主機管理上是比較方便, 因此也需要將 PVE 的 system log 轉發到 log server 內
	*  因為現在 PVE 預設改用 systemd-journald (不安裝 rsyslog)因此需要進行以下的設定</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 09 May 2025 02:40:40 +0000</pubDate>
        </item>
        <item>
            <title>PVE Host 兩張網卡設定 NAT 作法</title>
            <link>https://www.ichiayi.com/tech/pve_network</link>
            <description>PVE Host 兩張網卡設定 NAT 作法

	*  環境 : PVE Host 有兩張網卡 
		*  vmbr0(可與 Internt 連接)
		*  vmbr1(不直接暴露到 Internet) IP: 10.90.90.0/24

	*  目標 : 不對外提供服務的 VM (使用 vmbr1) 要能夠連出去 Internet</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 09 Jun 2025 11:20:14 +0000</pubDate>
        </item>
        <item>
            <title>設定 Proxmox 系統通知至 Discord webhook</title>
            <link>https://www.ichiayi.com/tech/pve_notify_discord</link>
            <description>設定 Proxmox 系統通知至 Discord webhook

	*  在 Discord 建立一個文字頻道 Exp. ichiayi-proxmox -&gt; 整合 -&gt; Webhook [複製 Webhook 網址] 

	*  將複製的 Webhook 網址進行拆解 Exp. &lt;https://discord.com/api/webhooks/1387212345678901200/Ram12345vmkOpxxxxxxxxxxxxxxxxxxxxXT-Vxxxxxxxxxx_GDxxxxxxxxxxxxxxxx6D&gt;
		*  URL - &lt;https://discord.com/api/webhooks/&gt;
		*  token - 1387212345678901200/Ram12345vmkOpxxxxxxxxxxxxxxxxxxxxXT-Vxxxxxxxxxx_GDxxxxxxxxxxxxxxxx6D</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 25 Jun 2025 10:48:54 +0000</pubDate>
        </item>
        <item>
            <title>安裝 OpenVPN Server(使用 PVE 內 CT Template)</title>
            <link>https://www.ichiayi.com/tech/pve_openvpn</link>
            <description>安裝 OpenVPN Server(使用 PVE 內 CT Template)

	*  採用 PVE 可下載的 CT Template - debian-10-turnkey-openvpn_16.1-1_amd64.tar.gz 來建立

安裝程序

	*  建立 CT 時, 將 Unprivileged container 打勾取消 

	*  建立完成後, 查看 /var/log/syslog 會出現以下錯誤訊息</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 28 Oct 2023 16:44:40 +0000</pubDate>
        </item>
        <item>
            <title>PVE 內安裝 phplist</title>
            <link>https://www.ichiayi.com/tech/pve_phplist</link>
            <description>PVE 內安裝 phplist

	*  直接選用 CT Templates - turnkey-phplist (16.0-1)
	*  啟動後就安裝好 phpList - v3.5.3
	*  使用 &lt;https://ipv4/admin/&gt; 進行設定

相關設定

將資料庫開放外部主機存取

	*  因為預設資料庫並不對外  
	*  必須調整 MariaDB 的設定 bind-address 可以外部主機存取</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 09 Mar 2021 14:32:11 +0000</pubDate>
        </item>
        <item>
            <title>在 PVE 環境下使用 SPICE Client 連接 VM 桌面</title>
            <link>https://www.ichiayi.com/tech/pve_spice</link>
            <description>在 PVE 環境下使用 SPICE Client 連接 VM 桌面

	*  環境說明 : 
		*  PVE 6.2-10
		*  VM1 : Ubuntu 18.04-desktop
		*  VM2 : Windows 10
		*  Client : Windows 10

	*  在 Client 上安裝 SPICE Client(virt-viewer-x64-2.0) 操作遠端 VM 桌面</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 07 Aug 2020 05:41:47 +0000</pubDate>
        </item>
        <item>
            <title>測試 Quilt 包版本工具紀錄(尚未完成)</title>
            <link>https://www.ichiayi.com/tech/quilt</link>
            <description>測試 Quilt 包版本工具紀錄(尚未完成)

安裝 quilt

當有訂閱 epel 就可直接透過 yum install quilt 來安裝.

參考網址

	*  &lt;http://blog.linux.org.tw/~jserv/archives/001838.html&gt;
	*  &lt;http://gquilt.sourceforge.net/&gt;
	*  &lt;http://savannah.nongnu.org/projects/quilt/&gt;

quilt 版本控管 draft</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 08 Mar 2010 10:13:57 +0000</pubDate>
        </item>
        <item>
            <title>測試 Rancher 佈署 K8S</title>
            <link>https://www.ichiayi.com/tech/rancher</link>
            <description>測試 Rancher 佈署 K8S

	*  主機共四台 : Ubuntu 18.04.5 
	*  統一使用者為 localadmin , 並更到最新版

sudo useradd -s /bin/bash -d /home/localadmin/ -m -G sudo localadmin
sudo passwd localadmin 
sudo -i
apt-get update
apt upgrade
reboot</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 23 Jan 2021 01:32:59 +0000</pubDate>
        </item>
        <item>
            <title>重設 Rancher admin 的密碼</title>
            <link>https://www.ichiayi.com/tech/rancher_admin</link>
            <description>重設 Rancher admin 的密碼

因為第一次安裝設定 admin 密碼錯誤, 導致無法登入. 所以找了一下如何重設 admin 密碼.

	*  環境是透過 rke 先安裝好 K8s 然後再透過 helm 安裝 rancher 起來
	*  重設密碼的語法 
		*  執行之後就會產生新的 admin 密碼 Exp.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 25 Aug 2021 07:28:06 +0000</pubDate>
        </item>
        <item>
            <title>針對 K8s 環境內定義類似 /etc/hosts 方式</title>
            <link>https://www.ichiayi.com/tech/rancher_coredns_hosts</link>
            <description>針對 K8s 環境內定義類似 /etc/hosts 方式

	*  以下是在 rancher 下的設定方式
	*  Clusters(已經建立的 Cluster) -&gt; System
		*  Resources -&gt; Config -&gt; Namespace: kube-system -&gt; 	coredns -&gt; Edit
		*  Corefile 的內容改成類似以下:</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 27 Jan 2021 07:48:51 +0000</pubDate>
        </item>
        <item>
            <title>使用 Rancher Fleet - CD(Continuous Delivery)</title>
            <link>https://www.ichiayi.com/tech/rancher_gitops</link>
            <description>使用 Rancher Fleet - CD(Continuous Delivery)

	*  依照 在 K3s 環境透過 Rancher 建立 LibreNMS 的方式, 需要有個地方進行 value.yaml 的管理, 如果可以透過 git 的方式進行所有設定的控管, 然後可以自動進行更動後的自動部署, 這就是 GitOps
	*  Rancher Fleet 就可以達成以上的需要, 在 Rancher Web 選單就是 Continuous Delivery</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 05 Dec 2025 07:46:39 +0000</pubDate>
        </item>
        <item>
            <title>Rancher Pipeline yaml 整理</title>
            <link>https://www.ichiayi.com/tech/rancher_pipeline</link>
            <description>Rancher Pipeline yaml 整理

參考網址

	*  &lt;https://rancher.com/docs/rancher/v2.0-v2.4/en/pipelines/&gt;
	*  &lt;https://rancher.com/docs/rancher/v2.0-v2.4/en/pipelines/config/&gt;
	*  &lt;https://rancher.com/docs/rancher/v2.0-v2.4/en/pipelines/example/&gt;

rancher pipeline</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 07 Aug 2021 00:13:00 +0000</pubDate>
        </item>
        <item>
            <title>Rancher 的異常排解紀錄</title>
            <link>https://www.ichiayi.com/tech/rancher_tips</link>
            <description>Rancher 的異常排解紀錄

無法正確啟動的判別方式

	*  

	*  找出哪個 rancher pod 是 leader 
	*  可以看到目前的 leader : rancher-98d8d5cf5-hbjjv , 所以可以看一下這 pod 的紀錄 

不小心砍了 pipeline 的 jenlins POD</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 12 Dec 2022 05:02:20 +0000</pubDate>
        </item>
        <item>
            <title>Raip(SideeX) Runner Web Test Tools</title>
            <link>https://www.ichiayi.com/tech/rapi_webtest</link>
            <description>Raip(SideeX) Runner Web Test Tools

	*  Rapi 前身是 SideeX , 但改成 Chrome 的 Extension 方式進行安裝使用, 若要整合 Selenium 則需要自行額外安裝

在 Windows 環境安裝 Selenium

	*  先安裝 Java SE Exp. JDK Development Kit 21.0.1
	*  下載 Selenium Server(Grid) Exp. selenium-server-4.15.0.jar</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 21 Nov 2023 04:24:59 +0000</pubDate>
        </item>
        <item>
            <title>測試 Raspberry Pi 紀錄</title>
            <link>https://www.ichiayi.com/tech/raspberry</link>
            <description>測試 Raspberry Pi 紀錄

	*  安裝的作業系統 : Raspbian GNU/Linux 8

安裝套件方式

	*  與 ubuntu 相同, 使用 apt-get 語法, Exp. 

設定 openvpn client 自動啟動

	*  原則上設定程序與 CentOS 相同, 只有設定自動啟動需要用以下語法</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 24 Oct 2016 10:59:09 +0000</pubDate>
        </item>
        <item>
            <title>使用 rclone 同步 Google Drive 檔案</title>
            <link>https://www.ichiayi.com/tech/rclone</link>
            <description>使用 rclone 同步 Google Drive 檔案

因為愈來愈多檔案存放在 Google Drive, 所以要考慮一個自動的機制將檔案同步回自己的電腦主機內.
如果需要 Docker Compose 版本可以參考使用 RClone(Docker) 設定同步 Google Photo/Drive 回本地

安裝方式

Alpine 3

	*  安裝環境 : Alpine Linux 3.18</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 21 Apr 2025 11:38:02 +0000</pubDate>
        </item>
        <item>
            <title>使用 RClone(Docker) 設定同步 Google Photo/Drive 回本地</title>
            <link>https://www.ichiayi.com/tech/rclone_docker</link>
            <description>使用 RClone(Docker) 設定同步 Google Photo/Drive 回本地

安裝程序

	*  下載 docker-compose.yml 相關檔案
		*  請在 volumes 加上要備份到本地端的目錄 Exp. /nas_Photos:/nas_Photos
		*  在 rclone-webui 與 rclone-cron 兩個服務容器都要加</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 21 Apr 2025 11:42:54 +0000</pubDate>
        </item>
        <item>
            <title>Redmine API 呼叫整理</title>
            <link>https://www.ichiayi.com/tech/redmine_api</link>
            <description>Redmine API 呼叫整理

	*  Example: 新增 user 

DB 資料表資訊

	*  user 密碼編碼參考 - &lt;https://www.redmine.org/boards/2/topics/31915&gt; 
	*  tokens 內 api 的 created_on 時間必須在 settings 內 rest_api_enabled = 1 的 updated_on 時間之後, 才不會造成呼叫 API 出現 token 有安全問題無法使用</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 03 Jan 2021 15:26:29 +0000</pubDate>
        </item>
        <item>
            <title>移除 GitLab Runner 的方式</title>
            <link>https://www.ichiayi.com/tech/remove_gitlab_runner</link>
            <description>移除 GitLab Runner 的方式



參考網址

	*  &lt;https://stackoverflow.com/questions/61983155/how-to-remove-uninstall-gitlab-runner-completely-from-centos&gt;

gitlab</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 29 Sep 2021 06:57:02 +0000</pubDate>
        </item>
        <item>
            <title>rke(K8s) + Rancher 安裝紀錄</title>
            <link>https://www.ichiayi.com/tech/rke-k8s-rancher</link>
            <description>rke(K8s) + Rancher 安裝紀錄

Rancher 2.4.x

依照 Rancher 2.4.17 的 Release Note 內容來進行安裝

	*  安裝環境 : Ubuntu 20.04 LTS
	*  需要配置的相關工具版本 :
		*  rke - v1.1.19 
		*  cli - v2.4.11
		*  Kubernetes - 1.18.20
			*  etcd: v3.4.3
			*  flannel: v0.12.0</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 08 Sep 2021 14:39:29 +0000</pubDate>
        </item>
        <item>
            <title>使用 rke 安裝 K8s 的程序</title>
            <link>https://www.ichiayi.com/tech/rke-k8s</link>
            <description>使用 rke 安裝 K8s 的程序

	*  安裝環境 Ubuntu 20.04.2 LTS x86_64
	*  兩個節點 IP : 10.20.0.35 / 10.20.0.37

前置作業

	*   apt 更新與安裝套件 
	*  安裝 Docker 19.03.14 
	*  安裝 kubectl 
	*  關閉 swap 

各主機節點建立與設定 rkeuser 用戶</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 19 Jul 2022 08:55:49 +0000</pubDate>
        </item>
        <item>
            <title>RPM 相關整理</title>
            <link>https://www.ichiayi.com/tech/rpm</link>
            <description>RPM 相關整理

產生 RPM 的方法

請直接參考 鳥哥 網站說明

	*  &lt;http://linux.vbird.org/linux_basic/0520rpm_and_srpm.php&gt;

使用 rpm 命令

	*  當出現同時安裝 i386 與 x86_64 的套件時, 要移除會出現 specifies multiple package, 解決方法只要加上 --allmatches 即可</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 16 Jun 2009 21:20:06 +0000</pubDate>
        </item>
        <item>
            <title>rsnapshot 安裝與使用方式</title>
            <link>https://www.ichiayi.com/tech/rsnapshot</link>
            <description>rsnapshot 安裝與使用方式

	*  官方網址 - &lt;http://www.rsnapshot.org/&gt;
	*  使用 perl 撰寫呼叫 rsync, ssh, diff, du.. 的一個同步備份檔案工具程式
	*  目前版本 1.3.1

安裝方式

	*  如果已經有安裝 rpmforge 可以直接下 

yum install rsnapshot</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 11 Apr 2014 07:56:03 +0000</pubDate>
        </item>
        <item>
            <title>使用 rssh 來解決只能使用 scp/sftp 與限制權限功能</title>
            <link>https://www.ichiayi.com/tech/rssh</link>
            <description>使用 rssh 來解決只能使用 scp/sftp 與限制權限功能

	*  rssh 官方網址 : &lt;http://www.pizzashack.org/rssh/&gt;

	*  本頁內容目前測試還是無法正常運作
	*  僅留下提供未來有機會需要時的參考資訊
	*  實際完成此功能請參考 使用 jailkit 限制使用者只能使用 scp/sftp 與特定目錄功能

- 下載與安裝</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 02 Mar 2009 17:03:32 +0000</pubDate>
        </item>
        <item>
            <title>rsync 使用技巧</title>
            <link>https://www.ichiayi.com/tech/rsync</link>
            <description>rsync 使用技巧

這裡整理有關使用 rsync 的一些技巧

	*  rsync 版本 : 3.0.7

本地端目錄複製

	*  將 /usb3TB 內的所有檔案目錄複製到 /usb8TB 內 

同步後刪除檔案

	*  相關參數 

            --del                   an alias for --delete-during
            --delete                delete extraneous files from dest dirs
            --delete-before         receiver deletes before transfer (default)
            --delete-during         receiver deletes during xfer, not before
            --delete-delay          find deletions during, delete after
         …</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 27 Feb 2024 07:03:47 +0000</pubDate>
        </item>
        <item>
            <title>ASUS RT-N10+ 改裝 DD-WRT Firmware</title>
            <link>https://www.ichiayi.com/tech/rt-n10plus_dd-wrt</link>
            <description>ASUS RT-N10+ 改裝 DD-WRT Firmware

	*  至 這裡下載
		*  factory-to-ddwrt.trx
		*  asus-rt-n10plus-ddwrt-webflash.bin

	*  透過 ASUS 原本 firmware 2.0.1.6 的更新 Firmware 將 factory-to-ddwrt.trx 上傳上去.. 就可以更新成功..
	*  之後的 DD-WRT 版本就必須下載 asus-rt-n10plus-ddwrt-webflash.bin 上傳上去更新..</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 13 Jan 2013 01:50:52 +0000</pubDate>
        </item>
        <item>
            <title>CentOS 5 安裝 rTorrent+wTorrent</title>
            <link>https://www.ichiayi.com/tech/rtorrent</link>
            <description>CentOS 5 安裝 rTorrent+wTorrent

	*  安裝需要的工具套件


yum install gcc gcc-c++ m4 make automake libtool pkgconfig perl openssl-devel ncurses-devel curl-devel cppunit cppunit-devel screen


- 安裝與設定 mod_scgi

	*  下載網址 :</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 09 Mar 2011 12:21:30 +0000</pubDate>
        </item>
        <item>
            <title>安裝 RustDesk 遠端桌面操作主機(Docker)</title>
            <link>https://www.ichiayi.com/tech/rustdesk</link>
            <description>安裝 RustDesk 遠端桌面操作主機(Docker)

	*  這方案可以取代 TeamViewer / AnyDesk 這類工具
	*  安裝環境 :
		*  VM 規格 : 2vCore / 2G RAM / 32G SSD
		*  Ubuntu 20.04 LTS + Docker Compose 安裝參考:Docker 語法與操作整理
		*  IP : 172.16.1.95


安裝程序</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 21 Oct 2023 16:56:49 +0000</pubDate>
        </item>
        <item>
            <title>Samba Linux 網路磁碟設定</title>
            <link>https://www.ichiayi.com/tech/samba</link>
            <description>Samba Linux 網路磁碟設定

CentOS 4.x 內附 Samba 版本 : samba-3.0.10-1.4E.9

- 設定 samba server

- 設定參數檔



	*  需要在參數檔內 socket options 後面增加 cp950 的設定..

cd /etc/samba/
vi smb.conf



:
dos charset = cp950 
unix charset = cp950 
:</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 02 Mar 2009 17:11:51 +0000</pubDate>
        </item>
        <item>
            <title>Samba Client 讓 Linux 使用 Windows 網芳磁碟設定</title>
            <link>https://www.ichiayi.com/tech/samba_client</link>
            <description>Samba Client 讓 Linux 使用 Windows 網芳磁碟設定

除了使用 samba 提供 Linux(CentOS / Ubuntu)  的網路磁碟給 WinClient 使用外, 還有另外反向的作法, 就是將原本的 Windows 網路磁碟提供給 Linux 使用.. 

Windows 端</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 24 May 2021 06:41:00 +0000</pubDate>
        </item>
        <item>
            <title>Samba 擔任 PDC（主域控制器）設定</title>
            <link>https://www.ichiayi.com/tech/samba_pdc</link>
            <description>Samba 擔任 PDC（主域控制器）設定

	*  Samba 版本 : 3.0.28

- 修改 Samba 參數檔 /etc/samba/smb.conf


:
[global]
:
        workgroup = trysoft
        server string = PD920 Samba Server Version %v

       netbios name = PD920
:
:
        local master = yes
        os level = 64
        preferred master = yes
:</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 21 Aug 2008 22:51:59 +0000</pubDate>
        </item>
        <item>
            <title>Samba 設定技巧</title>
            <link>https://www.ichiayi.com/tech/samba_tips</link>
            <description>Samba 設定技巧

- 在 CentOS 執行 passwd 同步 Samba 密碼

這個需求很單純, 只是要在 Linux 底下執行 passwd更改密碼後, 可以同時改 Samba 的密碼檔  , 而不需要執行 smbpasswd 再來改一次

	*  主要是透過設定 /etc/pam.d/passwd 的方式來處理, 將內容改成以下</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 25 Aug 2008 09:01:30 +0000</pubDate>
        </item>
        <item>
            <title>針對 shell script 測試工具(shellcheck)</title>
            <link>https://www.ichiayi.com/tech/shellcheck</link>
            <description>針對 shell script 測試工具(shellcheck)

	*  因為最近用 AI 協助撰寫不少 shell script , 愈寫愈複雜, 想想應該要找個測試工具來幫忙
	*  以下是使用 shellcheck 的方式

安裝方式

	*  Ubuntu / Debian 

建議測試原則</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 07 Oct 2025 03:59:11 +0000</pubDate>
        </item>
        <item>
            <title>Ubuntu 20.04 shell Pipe 執行進度顯示</title>
            <link>https://www.ichiayi.com/tech/sh_pipe_viewer</link>
            <description>Ubuntu 20.04 shell Pipe 執行進度顯示

在 Linux shell 時常會使用 |(pipe) 將命列指令串聯起來一起執行, 但遇到其中一個指令可能需要花很多時間, 就可能會感覺命令列卡住不動的狀況, 所以可以透過 pv (pipeline viewer) 來了解執行的進度.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 19 May 2021 07:26:30 +0000</pubDate>
        </item>
        <item>
            <title>Linux 軟體磁碟陣列</title>
            <link>https://www.ichiayi.com/tech/softraid</link>
            <description>Linux 軟體磁碟陣列

基本查詢命令語法


Personalities : [raid1]
read_ahead 1024 sectors
md3 : active raid1 hdc5[0] hdd5[1]
      115113600 blocks [2/2] [UU]

md2 : active raid1 hdc3[0] hdd3[1]
      20482752 blocks [2/2] [UU]

md1 : active raid1 hdc2[0] hdd2[1]
      20482752 blocks [2/2] [UU]

md0 : active raid1 hdc1[0] hdd1[1]
      208704 blocks [2/2] [UU]

unused devices: &lt;none&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 02 Mar 2009 17:13:22 +0000</pubDate>
        </item>
        <item>
            <title>SonarQube 升級方式</title>
            <link>https://www.ichiayi.com/tech/sonarqube_upgrade</link>
            <description>SonarQube 升級方式

	*  安裝環境 : K8s 內 SonarQube 7.9 (Image : sonarqube-7.9-community)

升級步驟

	*  將 Image 改用 sonarqube-8.9-community 重新啟動
	*  等 SonarQube 服務正確啟動 (過程的 log 會出現 the database must be manually upgraded</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 15 Feb 2022 08:29:11 +0000</pubDate>
        </item>
        <item>
            <title>檢測 SQL Injection 的工具 - SQLMap</title>
            <link>https://www.ichiayi.com/tech/sqlmap</link>
            <description>檢測 SQL Injection 的工具 - SQLMap

	*  最近剛好有網站被 HITCON 通報, 發現提報的使用工具就是 SQLMap, 因此修改後也去了解與使用 SQLMap  自行檢測一下

	*  SQLMap 檢測運行環境 :
		*  CentOS 6.9 x86_64 / CentOS Linux release 7.6.1810 (Core)</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 12 Jul 2019 08:21:41 +0000</pubDate>
        </item>
        <item>
            <title>將 SQL Server 內的資料庫資料匯出成 SQL 語法</title>
            <link>https://www.ichiayi.com/tech/sqlsrv</link>
            <description>將 SQL Server 內的資料庫資料匯出成 SQL 語法

	*  透過 MS SQL Server Management Studio 
	*  選到指定資料庫 Exp. DB_TES2 按滑鼠右鍵出現選單
	*  選擇 [工作] -&gt; [產生指令碼]
	*  [選擇特定的資料庫物件] -&gt; 勾選 [資料表]</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 06 Dec 2016 06:38:36 +0000</pubDate>
        </item>
        <item>
            <title>Squid Proxy Server 安裝設定</title>
            <link>https://www.ichiayi.com/tech/squid</link>
            <description>Squid Proxy Server 安裝設定

	*  因為在 OpenVAS 主機弱掃會出現 Squid Multiple 0-Day Vulnerabilities (Oct 2023)
	*  目前改用 TinyProxy Server 安裝設定 來替代 Squid

使用 docker compose 方式

	*  採用 ubuntu/squid 版本 

services:
  squid:
    image: ubuntu/squid:latest
    hostname: squid
    container_name: squid
    environment: 
      - TZ=Asia/Taipei
    ports:
      - 3128:3128
    # volumes:
    #   - &#039;./conf/squid.conf:/etc/squid/squid.conf:ro&#039;
    #   - &#039;./conf/passwords:/etc/squid/passwords:ro&#039;
    restart: always…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 26 Sep 2024 09:57:32 +0000</pubDate>
        </item>
        <item>
            <title>SSH 不需要密碼登入方式</title>
            <link>https://www.ichiayi.com/tech/sshlogin</link>
            <description>SSH 不需要密碼登入方式

SSH 可以透過憑證信任的方式來直接登入, 適合用於 rsync 備份資料等背景程式自動執行處理作業

Alpine

	*  產生 ssh key (id_rsa / id_rsa.pub) 
	*  將 ssh 公鑰(id_rsa.pub) 複製到遠端要登入的主機內 Exp. root@192.168.11.185</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 06 May 2025 08:23:41 +0000</pubDate>
        </item>
        <item>
            <title>建立 SSH Tunnel 語法</title>
            <link>https://www.ichiayi.com/tech/ssh_tunnel</link>
            <description>建立 SSH Tunnel 語法

這是兩年前寫在舊 blog 上面的紀錄, 剛好今天要用到, 所以就拉出來整理在這邊..  --- 蔡宗融 2008/10/08 09:42

- 透過遠端 InterServer-B 的主機連進來 IntraServer-A 的主機



	*  先登入 IntraServer-A</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 16 Jan 2021 06:40:23 +0000</pubDate>
        </item>
        <item>
            <title>設定 SSL 通過 ProxyPass 的方式</title>
            <link>https://www.ichiayi.com/tech/sslproxypass</link>
            <description>設定 SSL 通過 ProxyPass 的方式

因為限制 svn 必須使用 SSL (https), 但當 SVN Server 安裝在內部主機, 透過外部的 ProxyPass 方式轉入存取, 就會出現 ProxyPass 無法透過標準方式設定的問題。

環境與目標說明</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 09 Apr 2012 09:26:37 +0000</pubDate>
        </item>
        <item>
            <title>申請設定 Let&#039;s Encrypt 免費 SSL 憑證(CentOS + Apache/Nginx)</title>
            <link>https://www.ichiayi.com/tech/ssl_letsencrypt</link>
            <description>申請設定 Let&#039;s Encrypt 免費 SSL 憑證(CentOS + Apache/Nginx)

因為 Google Chrome 自 2018/05/01 對於沒有合法的 SSL 網站憑證, 就會出現警告, 所以就出現要買 SSL 網站憑證的議題, 針對個人網站或是非正式的公司網站, 採用 Let&#039;s Encrypt 免費網站 SSL 憑證似乎是個不錯的選擇.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 20 Jul 2022 06:40:29 +0000</pubDate>
        </item>
        <item>
            <title>申請 Let&#039;s Encrypt 免費 SSL 憑證(Ubuntu + Cloudflare)</title>
            <link>https://www.ichiayi.com/tech/ssl_letsencrypt_ubuntu</link>
            <description>申請 Let&#039;s Encrypt 免費 SSL 憑證(Ubuntu + Cloudflare)

	*  Ubuntu 18.04.5 LTS

申請程序

	*  下載 Let&#039;s Encrypt certbot 工具 

sudo apt install certbot python3-certbot-dns-cloudflare


	*  建立 /root/lets-encrypt/cloudflare.ini 

sudo mkdir -p /root/lets-encrypt/
sudo vi /root/lets-encrypt/cloudflare.ini</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 16 Jan 2021 06:41:13 +0000</pubDate>
        </item>
        <item>
            <title>Stirling PDF 文件管理工具(Docker)</title>
            <link>https://www.ichiayi.com/tech/stirling-pdf</link>
            <description>Stirling PDF 文件管理工具(Docker)

	*  依據 Stirling PDF 的 GitHub 說明, 這專案是 100% 由 ChatCPT 製作完成
	*  安裝環境 :
		*  VM : 4 vCores / 8G RAM / 16G(SSD)
		*  OS : Alpine3 + Docker Compose


安裝方式

	*  預計將檔案放在 /data/pdf 
	*  編輯 docker-compose.yml 

services:
  stirling-pdf:
    container_name: stirling-pdf
    image: frooodle/s-pdf:latest
    restart: unless-stopped
    ports:
      - &#039;8080:8080&#039;
    volumes:
      - /data/stirling-pdf/trainingData:/usr/share/tesseract-ocr/5/tessdata #Required for extra OCR langu…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 29 Jul 2024 09:45:38 +0000</pubDate>
        </item>
        <item>
            <title>SVN 備分與匯入</title>
            <link>https://www.ichiayi.com/tech/subversion</link>
            <description>SVN 備分與匯入

- 完整備分語法

	*  /usr/bin/svnadmin dump SVN專案目錄 &gt; 匯出檔案
	*  以下是自動備份的 perl script : 
		*  &lt;https://svn.ichiayi.com/opensvn/opentrysoft/trysrvtool/exp_svn.pl&gt;


- 差異備分語法

	*  主要參考 Rex’s blah blah blah 的 Little script for backup svn repository &lt;- 強力推薦這個方案 LOL

	*  /usr/bin/svnlook youngest SVN專案目錄</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 21 Jul 2018 14:59:57 +0000</pubDate>
        </item>
        <item>
            <title>Subversion Edge(Docker)</title>
            <link>https://www.ichiayi.com/tech/subversion_edge</link>
            <description>Subversion Edge(Docker)
這 Subversion Edge 軟體似乎已不再維護, 請謹慎使用
	*  其實我只是想將原本安裝在 CentOS 7 內的 subversion + submin + viewvc 移轉到 Docker 環境, 後來找到 mamohr/subversion-edge 這 Docker Image 方案

安裝方式

	*  安裝環境 : Alpine 3 + Docker compose
	*</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 03 Mar 2024 00:21:12 +0000</pubDate>
        </item>
        <item>
            <title>Subversion 備份匯入後與實際工作版本整合作法</title>
            <link>https://www.ichiayi.com/tech/subversion_fix</link>
            <description>Subversion 備份匯入後與實際工作版本整合作法

&lt;style box background&gt;
當 Subversion 的主機掛了之後，在找出之前定期匯出的備份檔案匯入重建的 Subversion Server 後，發現在工作版本執行更新時出現 No such revision xxxx</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 16 Jan 2021 06:51:36 +0000</pubDate>
        </item>
        <item>
            <title>SVN commit 後 e-Mail 通知設定</title>
            <link>https://www.ichiayi.com/tech/svnhookscript</link>
            <description>SVN commit 後 e-Mail 通知設定

&lt;quote&gt;
因為一直被 Firebox 的 ReminderFox Plugin 在 webdav 內的 ics 檔部份資料無故消失的問題困擾, 所以就將 webdav 內的 ics 檔納入 svn 控管, 每五分鐘自動 commit. 透過這樣的方式雖然可以在事後找到消失掉的資料, 但是必須在還有印象時才好找到..</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 02 Jul 2008 20:24:51 +0000</pubDate>
        </item>
        <item>
            <title>Subversion 與 Mantis 整合作法</title>
            <link>https://www.ichiayi.com/tech/svnmantis</link>
            <description>Subversion 與 Mantis 整合作法

目標

當 Mantis 有張貼一個新的 Issue 時, 與這個 Issue 相關的 Subversion 更動紀錄可以自動回寫至 Mantis 這個 Issue 內的 Bug 筆記內.

相關環境

	*  Mantis 與 Subversion 都安裝在相同的主機上</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 16 Apr 2018 05:40:43 +0000</pubDate>
        </item>
        <item>
            <title>Subversion 與 Mantis 1.x 整合作法</title>
            <link>https://www.ichiayi.com/tech/svnmantis1x</link>
            <description>Subversion 與 Mantis 1.x 整合作法

	*  使用 Mantis 2.x 就無法在 core 目錄底下找到 checkin.php
	*  需要改用 plugin - &lt;https://github.com/mantisbt-plugins/source-integration&gt; 來整合
	*  可以參考 Subversion 與 Mantis 整合作法

目標

當 Mantis 有張貼一個新的 Issue 時, 與這個 Issue 相關的 Subversion 更動紀錄可以自動回寫至 Mantis 這個 Issue 內的 Bug 筆記內.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 10 Dec 2021 07:33:52 +0000</pubDate>
        </item>
        <item>
            <title>SVN 管理主機設定檔異動狀態</title>
            <link>https://www.ichiayi.com/tech/svnmngconfig</link>
            <description>SVN 管理主機設定檔異動狀態

- 環境確認

	*  管理主機的 SubVersion 主機確認
	*  每台主機的 SubVersion Tool 確認


rpm -q subversion
subversion-1.6.11-10.el5_8

如果不存在就用 yum install subversion 安裝


- 管理主機建立各台 Server 的相對應目錄</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 13 Sep 2012 00:55:55 +0000</pubDate>
        </item>
        <item>
            <title>解決 SVN 經過 Apache ProxyPass 執行 commit 失敗的方法</title>
            <link>https://www.ichiayi.com/tech/svnproxypass</link>
            <description>解決 SVN 經過 Apache ProxyPass 執行 commit 失敗的方法

錯誤訊息

主要是在 Subversion(SVN) commit 時出現類似以下的錯誤訊息


Commit failed (details follow):
Server sent unexpected return value (502 Bad Gateway) in response to COPY
 request for
 &#039;/repos/clouddb/!svn/bc/2067/xxx.ppt&#039;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 20 Mar 2012 06:27:22 +0000</pubDate>
        </item>
        <item>
            <title>解決 SVN 經過 Squid 執行 commit 失敗的方法</title>
            <link>https://www.ichiayi.com/tech/svnsquid</link>
            <description>解決 SVN 經過 Squid 執行 commit 失敗的方法

錯誤訊息

主要是在 Subversion(SVN) commit 時出現類似以下的錯誤訊息


Error: Commit failed (details follow):  
Error: MKACTIVITY of &#039;/repos/xxprj/!svn/act/52-e3b8f0&#039;: 
Could not parse response status line. (http://mail.ichiayi.com)</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 02 Mar 2009 17:01:21 +0000</pubDate>
        </item>
        <item>
            <title>SVN 主機搬移後 Client 端的處理方式 (relocate)</title>
            <link>https://www.ichiayi.com/tech/svnswitch</link>
            <description>SVN 主機搬移後 Client 端的處理方式 (relocate)

當 svn 主機 IP 更動，或者更換網址，底下 Client 端的工作版本就無法依據之前的 Check out 網址更新，以下針對在 Windows 的 TortoisesSVN 以及 Linux 底下的 svn 分別說明實際處理方式.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 02 Mar 2009 16:58:07 +0000</pubDate>
        </item>
        <item>
            <title>SVN 目錄移除方式</title>
            <link>https://www.ichiayi.com/tech/svntips</link>
            <description>SVN 目錄移除方式

如果希望將原本 svn 的目錄內所有 .svn 的管理資訊目錄移除，在 Windows 底下可以直接用以下語法在 DOS 視窗執行移除


cd &lt;預計移除目錄&gt;
for /f &quot;usebackq&quot; %d in (`&quot;dir *.svn /ad/b/s&quot;`) do rd /s/q &quot;%d&quot;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 03 Oct 2009 08:14:23 +0000</pubDate>
        </item>
        <item>
            <title>SVN 比對與產生 Patch 工具(尚未完成)</title>
            <link>https://www.ichiayi.com/tech/svn_patch</link>
            <description>SVN 比對與產生 Patch 工具(尚未完成)

因為有多個 SVN repos 給不同階段使用, 所以就會出現比對差異的需求以及產生 Patch 的標準程序, 也因此在這裡整理測試實驗的紀錄資訊。

環境說明

	*  svn 1 : 開發版本 /tmp/develop/</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 25 Mar 2010 02:12:54 +0000</pubDate>
        </item>
        <item>
            <title>使用 TortoiseSVN 自動加入 SVN 版號</title>
            <link>https://www.ichiayi.com/tech/svn_props</link>
            <description>使用 TortoiseSVN 自動加入 SVN 版號

	*  其實早在 cvs 就有這功能, 就是在 commit 後, source code 檔案內能自動出現這次 commit 的 svn 版號、日期時間..

在 TortoiseSVN 的設定

	*  在要提供的 SVN 目錄按下滑鼠右鍵出現選單去選 TortoiseSVN</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 06 Nov 2016 05:31:38 +0000</pubDate>
        </item>
        <item>
            <title>Synology(群輝) NAS 設定紀錄</title>
            <link>https://www.ichiayi.com/tech/synology_tips</link>
            <description>Synology(群輝) NAS 設定紀錄

1. 登入 ssh 切換為 root 方式

	*  
sudo -i

	*  參考畫面++

2. 修改 crontab 後的生效方式

	*  

systemctl restart crond
systemctl restart synoscheduled


	*  參考畫面++
	*  如果執行出現異常, 可以看一下 /var/log/bash_err.log 這紀錄檔內容</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 28 Apr 2024 15:43:31 +0000</pubDate>
        </item>
        <item>
            <title>安裝與測試 TagUI</title>
            <link>https://www.ichiayi.com/tech/tagui</link>
            <description>安裝與測試 TagUI

在 Win10 上安裝

	*  下載網址 - &lt;https://tagui.readthedocs.io/en/latest/setup.html&gt;
		*  下載 TagUI_Windows.zip
		*  將壓縮檔解開放入 c:\ (所以解壓縮後會看到 c:\tagui)
		*  下載與安裝 OpenJDK for Windows - amazon-corretto-8.265.01.1-windows-x64.msi
		*  確認有安裝 Chrome 瀏覽器 &lt;https://www.google.com/chrome/&gt;
		*  開啟命令視窗 [Win]-R</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 19 Feb 2021 12:05:41 +0000</pubDate>
        </item>
        <item>
            <title>Thunderbird 備份</title>
            <link>https://www.ichiayi.com/tech/thunderbird_backup</link>
            <description>Thunderbird 備份

這次是 Win7 移轉到 Win7 紀錄一下

備份程序

	*  參考 crazyx 網友於 2012-08-21 13:43 @mobile01 留言  
其實，要轉移或完整備份的方式，可以直接到C:\USER\AppData\Roaming 
下Thunderbird或Firefox目錄中，把兩個目錄下的全部目錄檔COPY到新安裝的主機同位置，
啟動後FF和TB後，就可以還原到備份來源的狀態繼續使用。</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 16 Sep 2013 10:08:44 +0000</pubDate>
        </item>
        <item>
            <title>Thunderbird Plugin 精選</title>
            <link>https://www.ichiayi.com/tech/thunderbird_plugin</link>
            <description>Thunderbird Plugin 精選

&lt;quote&gt;

	*  找尋 FireFox Plugin 網址 : &lt;https://addons.mozilla.org/en-US/firefox/search&gt;
	*  台灣社群(mozilla Taiwan)推薦 : http://forum.moztw.org/..
	*  通常 Firefox 的 plugin Thunderbird 都可以用, 不過必須下載 *.xpi 檔到 PC 端安裝.

&lt;/quote&gt;


  名稱    下載安裝網址</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 17 Jan 2021 08:43:57 +0000</pubDate>
        </item>
        <item>
            <title>TinyProxy Server 安裝設定</title>
            <link>https://www.ichiayi.com/tech/tinyproxy</link>
            <description>TinyProxy Server 安裝設定

	*  安裝環境 : Alpine 3 + Docker compose

使用 docker compose 方式

	*  建立 Tinyproxy 設定檔 tinyproxy.conf 

User nobody
Group nogroup
Port 3128
Listen 0.0.0.0
Timeout 600
LogFile &quot;/var/log/tinyproxy/tinyproxy.log&quot;
LogLevel Info
PidFile &quot;/var/run/tinyproxy.pid&quot;
MaxClients 100
Allow 127.0.0.1
Allow 192.168.0.0/16
Allow 10.0.0.0/8
ViaProxyName &quot;tinyproxy&quot;
ConnectPort 443
ConnectPort 563</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 26 Sep 2024 09:53:08 +0000</pubDate>
        </item>
        <item>
            <title>tmux 離線背景執行工具</title>
            <link>https://www.ichiayi.com/tech/tmux</link>
            <description>tmux 離線背景執行工具

	*  在使用 SSH 遠端連線至 Opencode 進行開發時，網路不穩定的斷線問題往往導致工作階段（Session）中斷，若是正在執行如 Ralph Wiggum 這類耗時任務，進度遺失的代價更是巨大。</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 21 Jan 2026 12:33:26 +0000</pubDate>
        </item>
        <item>
            <title>ToDo Buying List</title>
            <link>https://www.ichiayi.com/tech/todo</link>
            <description>ToDo Buying List

	*  購買母親所需電腦
	*  購買母親所需數位相機</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 05 May 2007 04:11:51 +0000</pubDate>
        </item>
        <item>
            <title></title>
            <link>https://www.ichiayi.com/tech/topbar</link>
            <description>*  技術分享
	*  自由軟體
	*  開源碼專案
	*  工具區
	*  即時新聞
	*  找我點這裡
	*  熱門商店
	*  陪兒子玩數學</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 04 May 2018 01:07:55 +0000</pubDate>
        </item>
        <item>
            <title>TortoiseSVN 在 Windows 的 ICON 消失解決方式</title>
            <link>https://www.ichiayi.com/tech/tortoisesvn_icon</link>
            <description>TortoiseSVN 在 Windows 的 ICON 消失解決方式

主要是因為 Windows 對 Overlay Icons 有限制 15 個的問題(其中 Windows 會使用 4 個), 因此當安裝 Dropbox , GoogleDrive, TortoiseCVS.... 只要會有 Overlay Icons 的軟體當出現在第 15 個以後就會出現這問題.

解決方式

	*  透過 regedit 編輯 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\ShellIconOverlayIdentifiers</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 31 Aug 2015 08:46:27 +0000</pubDate>
        </item>
        <item>
            <title>設定 SpamAssassin 學習垃圾信特徵</title>
            <link>https://www.ichiayi.com/tech/train_spamassassin</link>
            <description>設定 SpamAssassin 學習垃圾信特徵

	*  Mail Server 內建立一個 spam 的信箱 以及 nospam 的信箱 
	*  發現為被過濾的垃圾信件就轉寄給 spam 信箱 (/var/spool/mail/spam)
	*  發現正常信件被誤判為垃圾信就轉寄給 nospam 信箱 (/var/spool/mail/nospam)</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 08 Nov 2016 07:04:36 +0000</pubDate>
        </item>
        <item>
            <title>安裝 trysrvtool 程序</title>
            <link>https://www.ichiayi.com/tech/trysrvtool</link>
            <description>安裝 trysrvtool 程序

所謂 trysrvtool 就是我自己寫的 server script tools, 可以在 &lt;https://svn.ichiayi.com/opensvn/opentrysoft/trysrvtool/&gt; 下載，如果有 svn Client, 可以直接 checkout 出最新版本

以下就是在 CentOS 底下安裝 subversion 之後就可以執行 checkout 的語法</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 30 May 2013 05:51:36 +0000</pubDate>
        </item>
        <item>
            <title>[Draft]在已存在的 Ubuntu lvm 開機碟建立 RAID1</title>
            <link>https://www.ichiayi.com/tech/ubuntu-boot-lvm-raid1</link>
            <description>[Draft]在已存在的 Ubuntu lvm 開機碟建立 RAID1

	*  環境 : Ubuntu 20.04 採用 iso 開機預設 lvm 建立開機碟 sda(32G)
	*  目標 : 加入 sdb(32G) 設定 sda+sdb 成為 RAID1, 當 sda 損毀還能透過 sdb 開機使用, 並能加回更換後的 sda</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 18 Dec 2023 23:09:50 +0000</pubDate>
        </item>
        <item>
            <title>Ubuntu 操作整理</title>
            <link>https://www.ichiayi.com/tech/ubuntu</link>
            <description>Ubuntu 操作整理

	*  改至 - Ubuntu 18/20/22/24 相關設定整理

ubuntu</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 05 Jul 2023 03:02:15 +0000</pubDate>
        </item>
        <item>
            <title>Ubuntu 18/20/22/24 相關設定整理</title>
            <link>https://www.ichiayi.com/tech/ubuntu18</link>
            <description>Ubuntu 18/20/22/24 相關設定整理

了解主機現況配置

	*  CPU核心數 / 記憶體大小 / 硬碟空間 / 作業系統版本  替代方案 
	*  網路相關 

網路 IP 設定

	*  參考 
		*  &lt;https://www.opencli.com/linux/ubuntu-18-04-netplan-setup-static-ip&gt;
		*  &lt;https://blog.toright.com/posts/6293/ubuntu-18-04-%E9%80%8F%E9%81%8E-netplan-%E8%A8%AD%E5%AE%9A%E7%B6%B2%E8%B7%AF%E5%8D%A1-ip.html&gt;
		*  &lt;https://askubuntu.com/questions/1042582/how-to-set-default-route-with-netplan-ubuntu-18-04-server-2-nic&gt;

	*  Exp. 更改 IP 設定為 192.168.11.204…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 21 Aug 2025 02:46:41 +0000</pubDate>
        </item>
        <item>
            <title>Ubuntu 改語系方式</title>
            <link>https://www.ichiayi.com/tech/ubuntulocale</link>
            <description>Ubuntu 改語系方式

	*  LXC 內作法 Exp. 改成中文 zh_TW.UTF-8 
vi /etc/defaulat/locale


#  File generated by update-locale
LANG=&quot;zh_TW.UTF-8&quot;
LC_NUMERIC=&quot;zh_TW.UTF-8&quot;
LC_TIME=&quot;zh_TW.UTF-8&quot;
LC_MONETARY=&quot;zh_TW.UTF-8&quot;
LC_PAPER=&quot;zh_TW.UTF-8&quot;
LC_NAME=&quot;zh_TW.UTF-8&quot;
LC_ADDRESS=&quot;zh_TW.UTF-8&quot;
LC_TELEPHONE=&quot;zh_TW.UTF-8&quot;
LC_MEASUREMENT=&quot;zh_TW.UTF-8&quot;
LC_IDENTIFICATION=&quot;zh_TW.UTF-8&quot;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 22 Oct 2020 07:20:41 +0000</pubDate>
        </item>
        <item>
            <title>更改 Ubuntu 的套件安裝來源</title>
            <link>https://www.ichiayi.com/tech/ubuntu_apt_source</link>
            <description>更改 Ubuntu 的套件安裝來源

因為 2021/02/22 開始發現 apt update 會出現以下無法連上 apt 主機的錯誤訊息 
很明顯 tw.archive.ubuntu.com 應該有問題了, 找了一下替代的 apt 主機才發現 tw.archive.ubuntu.com 這主機似乎時常出問題</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 23 Feb 2021 06:50:58 +0000</pubDate>
        </item>
        <item>
            <title>Ubuntu 設定日誌至遠端 Log Server</title>
            <link>https://www.ichiayi.com/tech/ubuntu_log</link>
            <description>Ubuntu 設定日誌至遠端 Log Server

本篇說明如何在 Ubuntu 系統上配置日誌轉發至遠端 Log Server，範例中使用的 Log Server 為 10.20.2.30。

環境需求

	*  Ubuntu 系統（本文以 Ubuntu 20.04 為例）
	*  Log Server IP：10.20.2.30（需確保已啟用 Syslog 服務並開放 UDP 514 端口）</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 09 May 2025 02:57:00 +0000</pubDate>
        </item>
        <item>
            <title>安裝 Ubuntu + LXD 移轉 PVE 內的舊 CT</title>
            <link>https://www.ichiayi.com/tech/ubuntu_lxd</link>
            <description>安裝 Ubuntu + LXD 移轉 PVE 內的舊 CT

	*  主要是因為在 Proxmox 內有一些 CentOS 7 的 CT 導致無法升級 PVE 到 9.x (參考 讓_pve_6_內的_centos7_的_ct_移轉至_pve_7_的妥協做法
	*  因為這些 CentOS 7 的 CT 內服務不易移轉到其他新版的 OS, 所以嘗試將這些 CT 由 Proxmox 移轉到 Ubuntu 24.04 (VM) 內使用 LXD 來管理</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 14 Nov 2025 03:56:13 +0000</pubDate>
        </item>
        <item>
            <title>Ubuntu/Devian SNMPD 安裝設定</title>
            <link>https://www.ichiayi.com/tech/ubuntu_snmpd</link>
            <description>Ubuntu/Devian SNMPD 安裝設定

	*  安裝環境 : Ubuntu 20.04 / Debian 10

安裝套件



設定 snmpd 的定義

	*  設定 192.168.1. 的網段可以透過 community nms01 讀取
	*  設定 192.168.0. 的網段可以透過 community nms02 讀取</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 10 Jul 2023 10:08:37 +0000</pubDate>
        </item>
        <item>
            <title>[draft]在 Ubuntu 20.04 安裝 Subversion(SVN) Server + submin</title>
            <link>https://www.ichiayi.com/tech/ubuntu_subversion</link>
            <description>[draft]在 Ubuntu 20.04 安裝 Subversion(SVN) Server + submin

	*  採用 PVE 內提供的 Ubuntu 20.04 建立 CT
	*  預計安裝與配置:
		*  CPU:1vcore / RAM:512MB / Root Disk:28GB
		*  啟動主機的 IP 網段 192.168.11.0/24
		*  預計將 SVN repo 檔案放置在 /var/www/svn 內</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 10 Jan 2022 11:37:54 +0000</pubDate>
        </item>
        <item>
            <title>Ubuntu 安裝遠端桌面（XRDP + XFCE）</title>
            <link>https://www.ichiayi.com/tech/ubuntu_xrdp</link>
            <description>Ubuntu 安裝遠端桌面（XRDP + XFCE）

	*  因為建立一個 VM 來測試 Ubuntu Server 的遠端桌面(XWindow)功能, 想看看有沒有比 VNC 效能好一點的服務, 後來找到 xrdp 可以測試看看
	*  安裝環境 : Ubuntu-24.04 Server 版</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 23 Mar 2026 04:29:17 +0000</pubDate>
        </item>
        <item>
            <title>CentOS6 udev 更改 nic 名稱的狀況</title>
            <link>https://www.ichiayi.com/tech/udev</link>
            <description>CentOS6 udev 更改 nic 名稱的狀況

	*  因為透過 virt-clone 複製 vm 後, 新啟動 vm 內的 nic 就會變成 eth1 而不是原本的 eth0

ifconfig -a



eth1      Link encap:Ethernet  HWaddr 00:16:36:63:D3:2A
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mas…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 09 May 2013 06:28:05 +0000</pubDate>
        </item>
        <item>
            <title>安裝 Unifi Controller 方式</title>
            <link>https://www.ichiayi.com/tech/unifi-controller</link>
            <description>安裝 Unifi Controller 方式

	*  在 PVE6 內已內建 debian-9.0-standard 建立一個 Debian CT

安裝下載程序

	*  安裝相關套件 

apt-get update
apt-get install ca-certificates apt-transport-https gnupg sudo


	*  設定 unifi 套件儲存庫</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 09 Jul 2020 07:25:13 +0000</pubDate>
        </item>
        <item>
            <title>升級 Gallery2 至 Gallery3 電子相簿系統</title>
            <link>https://www.ichiayi.com/tech/upgrade_gallery</link>
            <description>升級 Gallery2 至 Gallery3 電子相簿系統

	*  Gallery3 官方網站 : &lt;http://gallery.menalto.com/&gt;
	*  安裝環境 : 
		*  OS : CentOS 5.8 i386
		*  Web : httpd-2.2.3-63 + php-5.2.10-1

	*  原有系統版本 :
		*  DB : postgresql-8.1.23-1
		*  Gallery : 2.3.1

	*  升級系統版本 :</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 30 Mar 2012 23:56:50 +0000</pubDate>
        </item>
        <item>
            <title>Linux 固定掛載 USB Disk 方式</title>
            <link>https://www.ichiayi.com/tech/usbmount</link>
            <description>Linux 固定掛載 USB Disk 方式

因為外接式 USB 硬碟很適合拿來當備份碟, 但是每次可能會造成 /dev/sdx 不同, 掛載都需要手動幾個程序才可以判斷, 因此想找出每次掛載上去, 可以確認是哪個 USB Disk 掛上相對應的目錄上.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 02 May 2016 14:56:00 +0000</pubDate>
        </item>
        <item>
            <title>Linux 內檢查 USB 外接硬碟速度</title>
            <link>https://www.ichiayi.com/tech/usbspeed</link>
            <description>Linux 內檢查 USB 外接硬碟速度

	*  因為需要確定目前 LINUX 主機連接的外接硬碟所使用的介面速度(USB3 / USB2), 所以想找一個方式可以快速確認.

使用 lsusb 命令

	*  只要使用 lsusb -t 即可看到連接的 USB 介面速度, Exp.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 07 Jan 2023 21:16:44 +0000</pubDate>
        </item>
        <item>
            <title>建立 USB 碟可開機作業系統方式</title>
            <link>https://www.ichiayi.com/tech/usb_boot</link>
            <description>建立 USB 碟可開機作業系統方式

CentOS / Fedora

	*  &lt;https://fedorahosted.org/liveusb-creator/&gt;

Windows

	*  &lt;https://www.balena.io/etcher/&gt;
	*  &lt;http://wintoflash.com/home/en/&gt;

參考網頁

	*  &lt;https://pve.proxmox.com/wiki/Prepare_Installation_Media#installation_prepare_media&gt;
	*  &lt;http://www.pendrivelinux.com/usb-centos-5-live-install-via-windows/&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 03 Jul 2020 13:14:57 +0000</pubDate>
        </item>
        <item>
            <title>安裝 VaultWarden(Docker) 密碼管理服務</title>
            <link>https://www.ichiayi.com/tech/vaultwarden</link>
            <description>安裝 VaultWarden(Docker) 密碼管理服務

	*  想想還是要有個自己的服務來管理自己的密碼, 這樣應該會比較安心吧!

	*  安裝環境 : 在 Alpine Linux 3 底下安裝 docker + docker-compose

	*  編輯 docker-compose.yml 

version: &#039;3&#039;
services:
  vaultwarden:
    image: vaultwarden/server:latest
    container_name: vaultwarden
    restart: always
    ports:
      - 80:80 #map any custom port to use (replace 8445 not 80)
    environment:
      - ADMIN_TOKEN=${ADMIN_TOKEN}
      - WEBSOCKET_ENABLED=true
      - SIGNUPS_ALLOWED=false
      - DOMAIN=${DOMAIN}
    …</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 04 Mar 2024 14:52:14 +0000</pubDate>
        </item>
        <item>
            <title>ViewVC(SVN Web 介面) 安裝程序</title>
            <link>https://www.ichiayi.com/tech/viewvc</link>
            <description>ViewVC(SVN Web 介面) 安裝程序

	*  ViewVC 官方網站 &lt;http://www.viewvc.org/&gt;
	*  ViewVC 可同時支援 CVS 與 SVN, 因為我並不使用 CVS, 所以以下安裝設定均以 SVN(Subversion) 為主.
	*  假設安裝 ViewVC 前, SubVersion 版本控管相關設定均已完成</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 20 May 2018 07:04:58 +0000</pubDate>
        </item>
        <item>
            <title>解決 vi 編輯使用 UTF-8 的編碼方式儲存的檔案亂碼狀況</title>
            <link>https://www.ichiayi.com/tech/vi_utf8</link>
            <description>解決 vi 編輯使用 UTF-8 的編碼方式儲存的檔案亂碼狀況

使用 UTF-8 的編碼方式儲存檔案, 在 vi 編輯時會出現亂碼情形..
 若採用 putty 當 ssh client, 這樣的設定會出現異常狀況, 應該直接更改 Translation 的設定</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 02 Mar 2009 17:02:32 +0000</pubDate>
        </item>
        <item>
            <title>CentOS + KVM 建立 VLAN 的方式</title>
            <link>https://www.ichiayi.com/tech/vlan</link>
            <description>CentOS + KVM 建立 VLAN 的方式

	*  假設有三台實體主機 A, B, C 
	*  每台主機的實體網卡 eth1 共同接在相同的 Switch/Hub 上
	*  A 主機內有 VMA1, VMA2, VMA3
	*  B 主機內有 VMB1, VMB2
	*  C 主機內有 VMC1, VMC2, VMC3, VMC4</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 30 Oct 2016 03:22:52 +0000</pubDate>
        </item>
        <item>
            <title>VMWare Server 使用技巧</title>
            <link>https://www.ichiayi.com/tech/vmware_tips</link>
            <description>VMWare Server 使用技巧

- 無 X-Win 的 linux 安裝 vmware-tools 後, 使用命令列設定方式

	*  使用命令 : /usr/sbin/vmware-guestd
	*  參數語法 : &lt;daemon&gt; --cmd “vmx.set_option synctime &lt;old_val&gt; &lt;new_val&gt;”
	*  Exp : 設定 vm 的時間與 host 同步</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 12 May 2010 02:12:47 +0000</pubDate>
        </item>
        <item>
            <title>VMware 移轉到 Xen 相關紀錄</title>
            <link>https://www.ichiayi.com/tech/vmware_xen</link>
            <description>VMware 移轉到 Xen 相關紀錄

- 將 VMware vmdk 轉成 Xen img


vmware-vdiskmanager -r maildata.vmdk -t 0 maildata-flattened.vmdk





qemu-img convert maildata-flattened.vmdk maildata.img




	*  參考資料 : &lt;http://ian.blenke.com/vmware/vmdk/xen/hvm/qemu&gt;

vmware xen</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 16 Jan 2021 06:40:23 +0000</pubDate>
        </item>
        <item>
            <title>在 Alpine/Ubuntu 的 VM 加大硬碟空間(LVM)</title>
            <link>https://www.ichiayi.com/tech/vm_diskresize</link>
            <description>在 Alpine/Ubuntu 的 VM 加大硬碟空間(LVM)

Ubuntu

	*  環境 : Ubuntu 24.04.3 LTS + lvm
	*  情境 : 將原本 60G 虛擬硬碟擴大為 120G

	*  先在 VM 管理介面將虛擬硬碟加大  看虛擬硬碟加大後相關資訊++
	*  使用 growpart 工具擴展分區</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 14 Jan 2026 06:00:41 +0000</pubDate>
        </item>
        <item>
            <title>Virtual Box 背景啟動內部 Virtual Machine 的方式</title>
            <link>https://www.ichiayi.com/tech/vm_handless</link>
            <description>Virtual Box 背景啟動內部 Virtual Machine 的方式

在之前使用 VMWare Server 時對這樣的問題可以很簡單的用 vmware-cmd 來搞定, 但因效能的需求, 我把家裏主要的 WinXP 環境改用 VirtualBox, 前一陣子因為有個資料在這 WinXP 內, 必須回家啟動 VirtualBox 才讀到這個資料, 所以我就花了一點時間讀了一下</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 02 Mar 2009 16:58:53 +0000</pubDate>
        </item>
        <item>
            <title>更新 linux Kernel 後 VMWare 與 VirtualBox 重新編譯程序</title>
            <link>https://www.ichiayi.com/tech/vm_upgradekernel</link>
            <description>更新 linux Kernel 後 VMWare 與 VirtualBox 重新編譯程序

&lt;style background&gt;
當  Linux Kernel 更版後,  vmware 與 vboxdrv 就無法自動起來, 因為在新版的 kernel module 內已經找不到相關的檔案, 所以必須執行以下的程序重新 Complier 新版的 Module
&lt;/quote&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 16 Jan 2021 06:51:36 +0000</pubDate>
        </item>
        <item>
            <title>CentOS 內設定 VNCServer 方式</title>
            <link>https://www.ichiayi.com/tech/vncserver</link>
            <description>CentOS 內設定 VNCServer 方式

之前的困擾是

	*  vncserver 無法開機自動啟動
	*  登進去所看到的畫面只有標準 X Window , 並沒有 Window Manager(GNOME)

- 安裝相關 RPM

CentOS 5

	*  VNC Viewer &amp; Server 

yum install vnc vnc-server</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 29 Oct 2016 14:04:34 +0000</pubDate>
        </item>
        <item>
            <title>Centos 5 啟動 ftpd 方式</title>
            <link>https://www.ichiayi.com/tech/vsftpd</link>
            <description>Centos 5 啟動 ftpd 方式

之前使用 unix 啟用 ftpd 都是直接更改 inetd / xinetd , 所以就直接到 /etc/xinetd.d 內看到有個 gssftp 的檔案, 直接將 disable 改成 yes , 重新啟動 xinetd 就可以有 ftpd 可以使用.. 但是登入使用者時卻出現這樣的訊息..</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 10 Sep 2020 05:37:01 +0000</pubDate>
        </item>
        <item>
            <title>Vitrual Tunnel(vtun) 在 CentOS 5 安裝與設定(尚未完成)</title>
            <link>https://www.ichiayi.com/tech/vtun</link>
            <description>Vitrual Tunnel(vtun) 在 CentOS 5 安裝與設定(尚未完成)

- 安裝程序

有安裝 rpmforge 就可直接透過 yum install 安裝


yum install vtun


- 設定程序

假設有三個不同網路要透過 vtun 連結起來

	*  ichiayi - 有對外 ip</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 11 Feb 2010 04:32:47 +0000</pubDate>
        </item>
        <item>
            <title>[Draft] 評估與測試開源 WAF</title>
            <link>https://www.ichiayi.com/tech/waf</link>
            <description>[Draft] 評估與測試開源 WAF

參考網址

	*  &lt;https://geekflare.com/open-source-web-application-firewall/&gt;

類型:資安 狀態:待研究 waf draft</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 16 Apr 2018 04:02:15 +0000</pubDate>
        </item>
        <item>
            <title>Linux 底下 wav 轉 mp3 的方式</title>
            <link>https://www.ichiayi.com/tech/wav2mp3</link>
            <description>Linux 底下 wav 轉 mp3 的方式

主要是透過 lame 來轉. 

	*  語法 : 

lame -b 32 --resample 8 -a &lt;wavefilename&gt; &lt;mp3filename&gt;


		*  -b : bit rate(位元率) -&gt; 32kbps
		*   --resample : (音訊取樣速率) -&gt; 8kHz


	*  Sample: 

lame -b 32 --resample 8 -a 2012-01-01.wav  2012-01-01.mp3</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 12 Jan 2012 08:19:45 +0000</pubDate>
        </item>
        <item>
            <title>安裝 Wazuh 資安管理平台(Docker)</title>
            <link>https://www.ichiayi.com/tech/wazuh</link>
            <description>安裝 Wazuh 資安管理平台(Docker)

	*  安裝環境
		*  VM : 2vCore / 4G RAM / 60G SSD
		*  OS : Ubuntu 22.04LTS


安裝方式

	*  安裝 Docker : Docker 語法與操作整理
	*  設定相關系統參數
	*  安裝 Wazuh v4.7.0 
	*  可以開啟 &lt;https://server-ip&gt; (admin / SecretPassword) 登入</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 19 Jan 2025 00:47:07 +0000</pubDate>
        </item>
        <item>
            <title>Webalizer</title>
            <link>https://www.ichiayi.com/tech/webalizer</link>
            <description>Webalizer

當執行出現類似以下的錯誤訊息.. 


Error: Unable to restore run data (14)


只要將 webalizer.current 砍掉就可以恢復正常

	*  參考 /etc/webalizer.conf 內的 webalizer.current 路徑 Exp. 

:
IncrementalName /var/lib/webalizer/webalizer.current
:</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 23 Apr 2014 04:09:47 +0000</pubDate>
        </item>
        <item>
            <title>Webmin 安裝與設定</title>
            <link>https://www.ichiayi.com/tech/webmin</link>
            <description>Webmin 安裝與設定

	*  Webmin 網址 : &lt;http://www.webmin.com/&gt;

- 下載最新版 RPM 與安裝

	*  下載網址 : &lt;http://sourceforge.net/project/downloading.php?groupname=webadmin&amp;filename=webmin-1.430-1.noarch.rpm&amp;use_mirror=osdn&gt;


su - root
wget http://internode.dl.sourceforge.net/sourceforge/webadmin/webmin-1.430-1.noarch.rpm
rpm -ivh webmin-1.430-1.noarch.rpm


	*  預設安裝完成就會 Listen 在主機的 Port 10000 上面，可以透過</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 05 Sep 2008 07:17:35 +0000</pubDate>
        </item>
        <item>
            <title>安裝 Webssh 的方式</title>
            <link>https://www.ichiayi.com/tech/webssh</link>
            <description>安裝 Webssh 的方式

Webssh Open source 方案

	*  &lt;http://www.modernmethod.com/sajax&gt; 
	*  &lt;http://code.google.com/p/web-shell/&gt;
	*  &lt;http://anyterm.org/index.html&gt;
	*  &lt;http://antony.lesuisse.org/software/ajaxterm/&gt;

web-shell


su - root
cd /opt/webssh
wget http://web-shell.googlecode.com/files/WebShell-0.9.6.zip
unzip WebShell-0.9.6.zip
mv WebShell-0.9.6 WebShell
cd WebShell
./make_certificate.sh
./webshell.py --ssl-disable &amp;

cd /etc/httpd/conf.d/
vi webssh.conf</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 10 Feb 2010 06:55:00 +0000</pubDate>
        </item>
        <item>
            <title>在 Win10 啟動 Linux(WSL)</title>
            <link>https://www.ichiayi.com/tech/win10linux</link>
            <description>在 Win10 啟動 Linux(WSL)

	*  安裝環境 


安裝程序

	*  使用系統管理者權限啟動 PowerShell , 執行 
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

 

	*  重新開機以完成 WSL 安裝</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 02 Nov 2024 02:55:15 +0000</pubDate>
        </item>
        <item>
            <title>Windows 10 啟動 SNMPD 的方式</title>
            <link>https://www.ichiayi.com/tech/win10snmpd</link>
            <description>Windows 10 啟動 SNMPD 的方式

	*  設置-&gt;更新與安全-&gt;開發者選項-&gt;選擇 開發人員模式
	*  設置-&gt;應用-&gt;管理可選功能-&gt;添加功能-&gt;簡單網路通訊協定（SNMP）
	*  設定那些來源(Exp. LibreSNMP) 可以存取
		*</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 19 Apr 2022 02:30:47 +0000</pubDate>
        </item>
        <item>
            <title>Windows 10 讀取 Linux EXT4 檔案系統</title>
            <link>https://www.ichiayi.com/tech/win10_ext4</link>
            <description>Windows 10 讀取 Linux EXT4 檔案系統

參考網址

	*  &lt;https://blog.keniver.com/2016/11/read-write-ext2-ext3-ext4-volum-on-windows/&gt;

win10 ext4</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 19 Apr 2020 01:14:47 +0000</pubDate>
        </item>
        <item>
            <title>Windows 10 內建 md5 / sha256 工具</title>
            <link>https://www.ichiayi.com/tech/win10_hash</link>
            <description>Windows 10 內建 md5 / sha256 工具

下載檔案後會透過計算檔案 hash 值來判別檔案的完整性, 在 linux 幾乎都有內建 md5sum sha256sum 這些 hash 計算的命令, 但在 Windows 7 之前都需要額外下載安裝 WinMD5 才能計算檔案的 md5 hash 值, 現在 Windows 10 已經有內建計算檔案 hash 值工具</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 07 Aug 2025 04:38:05 +0000</pubDate>
        </item>
        <item>
            <title>在 Windows 10 Pro 啟動 Hyper-v 虛擬服務</title>
            <link>https://www.ichiayi.com/tech/win10_hyper-v</link>
            <description>在 Windows 10 Pro 啟動 Hyper-v 虛擬服務

Windows Home 沒有提供此功能, Hyper-v 只提供 Windows 10 企業版、專業版或教育版

使用 PowerShell 啟用 Hyper-V

	*  以系統管理員身分啟動 PowerShell 
	*  輸入以下的命令</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 22 Jan 2021 08:02:33 +0000</pubDate>
        </item>
        <item>
            <title>Windows 10 更改預設輸入法</title>
            <link>https://www.ichiayi.com/tech/win10_input</link>
            <description>Windows 10 更改預設輸入法

	*  因為安裝後預設的輸入法是中文, 我的使用情境常常是要要切換成英文, 因此想改成預設就是英文輸入法.

	*  Windows 設定 -&gt; 時間與語言 -&gt; 地區與語言 如果沒有 English(United)</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 23 Oct 2018 01:27:27 +0000</pubDate>
        </item>
        <item>
            <title>Windows 10 啟動 OpenSSH Server(sshd) 的方式</title>
            <link>https://www.ichiayi.com/tech/win10_sshd</link>
            <description>Windows 10 啟動 OpenSSH Server(sshd) 的方式

	*  這方式應該可以適用 Windows Server 2019、2022

啟用內建的 OpenSSH Server

	*  使用系統管理員權限開啟 PowerShell 
		*  確認目前的 Windows 版本是否可以使用 OpenSSH</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 14 Sep 2022 11:48:24 +0000</pubDate>
        </item>
        <item>
            <title>在 Windows 11 查看筆電電池使用狀況</title>
            <link>https://www.ichiayi.com/tech/win11_battery</link>
            <description>在 Windows 11 查看筆電電池使用狀況

	*  因為最近發現有幾次新筆電常常開機時電池電力剩下不到 5% 想了解到底發生怎樣的事.. 結果就查到可以直接在命令提示字元下輸入以下命令產生詳細的電池使用歷史紀錄報告</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 21 Mar 2024 03:36:25 +0000</pubDate>
        </item>
        <item>
            <title>在 Windows 11 底下重新切割 Linux 的 USB 碟</title>
            <link>https://www.ichiayi.com/tech/win11_diskpart</link>
            <description>在 Windows 11 底下重新切割 Linux 的 USB 碟

因為透過 磁碟管理員 無法識別或刪除 Linux 分區，改用命令提示字元的 diskpart 工具處理：

	*  以管理員身份運行命令提示字元
	*  輸入 diskpart 並按 Enter</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 24 Mar 2025 06:46:34 +0000</pubDate>
        </item>
        <item>
            <title>WinSCP 強制以 UTF-8 編碼顯示主機檔案</title>
            <link>https://www.ichiayi.com/tech/winscp_uff8</link>
            <description>WinSCP 強制以 UTF-8 編碼顯示主機檔案


-&gt;-&gt;autoOff

winscp utf-8</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 07 Aug 2008 10:02:08 +0000</pubDate>
        </item>
        <item>
            <title>WinXP 底下 MediaPlayer 9 抓 CD 轉 MP3</title>
            <link>https://www.ichiayi.com/tech/winxpcd2mp3</link>
            <description>WinXP 底下 MediaPlayer 9 抓 CD 轉 MP3

新版 MediaPlayer 應該都已支援這功能, 但在舊版 MediaPlayer 必須安裝 MP3 Creation Pack for XP.msi 才可出現轉 MP3 的格式, 否則只能支援轉 WMA. 依據 Google 大神找到以下的相關資訊.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 03 Mar 2009 23:10:44 +0000</pubDate>
        </item>
        <item>
            <title>啟動 WinXP NTP Server 方式</title>
            <link>https://www.ichiayi.com/tech/winxp_ntpd</link>
            <description>啟動 WinXP NTP Server 方式

因為在 WinXP 上面安裝 VirtualBox，裡面跑 CentOS5 但是發現系統時間跑得特別快，找了一堆文章結論都是使用 ntp 方式來解決，那 針對 WinXP 上面安裝 ntpd 的想法就出現，其實 WinXP 上面的 Windows Time 服務本身就有 ntp server 的能力，只需要透過 regedit 修改機碼就可啟動服務。</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 14 Nov 2009 07:59:51 +0000</pubDate>
        </item>
        <item>
            <title>WinXP/Win7/Win8 網路芳鄰分享更換帳號登入作法</title>
            <link>https://www.ichiayi.com/tech/winxp_samba</link>
            <description>WinXP/Win7/Win8 網路芳鄰分享更換帳號登入作法

這問題困擾我一段時間，只是都沒時間好好去瞭解.. 剛剛問了一下 Google 大神，終於找到正解.

使用命令列方式

只要在命令提示字元( DOS 視窗)下以下的指令:</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 09 Feb 2017 06:48:57 +0000</pubDate>
        </item>
        <item>
            <title>Windows 11 下指定特定網域詢問特定 DNS 議題</title>
            <link>https://www.ichiayi.com/tech/win_dns_issue</link>
            <description>Windows 11 下指定特定網域詢問特定 DNS 議題

	*  因為時常需要切換不同 VPN , 可能造成 windows 系統錯亂無法詢問到正確的 DNS 如下:

設定 NRPT 的解決方案

	*  原理： 直接告訴 Windows，「只要網址結尾是 .iii.org.tw，就強制去問 140.92.66.74 這個 DNS」，其他的網址（如 Google、Facebook）則維持原樣走原本的 Wi-Fi。</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 28 Jan 2026 05:46:26 +0000</pubDate>
        </item>
        <item>
            <title>在 Alpine 內安裝 WireGuard VPN (Docker)</title>
            <link>https://www.ichiayi.com/tech/wireguard</link>
            <description>在 Alpine 內安裝 WireGuard VPN (Docker)

	*  安裝環境
		*  VM : 1vCore / 1G RAM / 16G SSD
		*  OS : Alpine 3.18 - alpine-standard-3.18.4-x86_64.iso

	*  先參考 在 Alpine Linux 3 底下安裝 docker + docker-compose

採用 weejewel/wg-easy 版本(包含 WebUI)

	*  採用 weejewel/wg-easy 的 docker image 
	*</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 12 Apr 2024 12:53:35 +0000</pubDate>
        </item>
        <item>
            <title>CentOS7 安裝 WordPress 5 程序</title>
            <link>https://www.ichiayi.com/tech/wordpress</link>
            <description>CentOS7 安裝 WordPress 5 程序

	*  CentOS 7.6.1810 (Core)
	*  Nginx 1.12.2
	*  MariaDB 10.3.12
	*  PHP 7.3.1

安裝 Nginx / MariaDB / PHP 7

	*  EPEL 

yum install -y epel-release yum-utils


	*  Remi 關閉 5.4 啟用 7.3

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
yum-config-manager --disable remi-php54
yum-config-manager --enable remi-php73</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 22 Jul 2019 09:41:14 +0000</pubDate>
        </item>
        <item>
            <title>安裝 Wordpress (Docker)</title>
            <link>https://www.ichiayi.com/tech/wordpress_docker</link>
            <description>安裝 Wordpress (Docker)

採用 bitnami 版本

安裝與設定

	*  下載 docker-compose.yml  

	*  建立 .env 

	*  依照實際狀態編輯 .env 設定 DB 密碼, Wordpress 預設密碼
	*  第一次啟動 wordpress 
	*  可以透過 &lt;http://server-ip/wp-admin&gt; (預設帳號密碼: user/bitnami 登入開始進行設定)</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 05 May 2025 06:38:50 +0000</pubDate>
        </item>
        <item>
            <title>WordPress 搬家修改網址處理方式</title>
            <link>https://www.ichiayi.com/tech/wordpress_move</link>
            <description>WordPress 搬家修改網址處理方式

本來認為應該很簡單可以解決, 但是發現還是有很多奇怪的地方, 記錄一下目前測試修改後正常運作的處理方式

	*  原本網址為 www.abc.com 要更改成 www.xyz.com 
	*  將 /var/www/html 內的 wordpress 檔案全部複製到新網站內</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 10 Apr 2019 05:35:38 +0000</pubDate>
        </item>
        <item>
            <title>Wordpress 相關問題與技巧彙整</title>
            <link>https://www.ichiayi.com/tech/wordpress_tips</link>
            <description>Wordpress 相關問題與技巧彙整

問題整理

1. 瀏覽器 Console 出現 GET https://freegeoip.net/shutdown net::ERR_ABORTED 403 錯誤訊息

	*  參考網址 
		*  &lt;https://wordpress.org/support/topic/freegeoip-com-change/&gt;
		*  &lt;https://wordpress.org/support/topic/hello-i-need-help-please-2/&gt;

	*  找到哪個 plugin 使用到 intl_tel_default_setting 

cd /var/www/html//wordpress/wp-content/plugins
grep -r intl_tel_default_setting *</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 09 Mar 2021 09:00:03 +0000</pubDate>
        </item>
        <item>
            <title>(Windows Subsystem for Linux)WSL 相關議題整理</title>
            <link>https://www.ichiayi.com/tech/wsl_network</link>
            <description>(Windows Subsystem for Linux)WSL 相關議題整理

Q1. 在 wsl 內啟動的容器無法連上 Internet

	*  確保 WSL 網絡設置正確： 在 Windows PowerShell 中運行以下命令來檢查和重置 WSL 網絡：
	*  確認 docker-compose.yml 內網路的設置是否正確, 也可試試加上 network_mode:</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 10 Jul 2025 05:40:19 +0000</pubDate>
        </item>
        <item>
            <title>設定讓外部主機可連上 WSL 內的服務(Port Forwarding)</title>
            <link>https://www.ichiayi.com/tech/wsl_portforwarding</link>
            <description>設定讓外部主機可連上 WSL 內的服務(Port Forwarding)

	*  雖然 wsl 內所啟動的服務 Exp. web 可以在本機使用 localhost 連上, 但無法讓其他區網的電腦聯上使用, 但可在本機上設定 Port Forwarding 來解決這問題</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 12 Jan 2024 05:07:19 +0000</pubDate>
        </item>
        <item>
            <title>Xen 啟動 vm 記憶體不足之異常處理</title>
            <link>https://www.ichiayi.com/tech/xen_mem</link>
            <description>Xen 啟動 vm 記憶體不足之異常處理

在實體主機記憶體還足夠的狀況下, 卻出現無法配置給 vm 記憶體的問題 


Error: (12, ‘Cannot allocate memory’)

主要的原因是和配置給 Domain-0(Host) 的記憶體有關..</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 26 Apr 2012 02:08:43 +0000</pubDate>
        </item>
        <item>
            <title>XEN 新增 xenbr1 的方式</title>
            <link>https://www.ichiayi.com/tech/xen_xenbr1</link>
            <description>XEN 新增 xenbr1 的方式

主機上面有兩片網卡 eth0 / eth1, 安裝 xen 後自動產生 xenbr0 會使用 eth0 當 bridge 的共用介面, 如果想要增加 xenbr1 來使用 eth1 當 bridge 的共用介面, 可參考以下處理方式..

編輯 xen 的 script</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 11 Aug 2012 10:31:21 +0000</pubDate>
        </item>
        <item>
            <title>XSL 介紹</title>
            <link>https://www.ichiayi.com/tech/xsl</link>
            <description>XSL 介紹

	*  &lt;http://www.w3schools.com/xsl/xsl_languages.asp&gt;
	*  XSL = EXtensible Stylesheet Language.
		*  CSS = Style Sheets for HTML
		*  XSL = Style Sheets for XML

	*  XSLT = XSL Transformations
	*  XSLT Browsers :
		*  Firefox supports XML, XSLT, and XPath from version 3.
		*  Internet Explorer supports XML, XSLT, and XPath from version 6.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 23 Mar 2010 07:57:27 +0000</pubDate>
        </item>
        <item>
            <title>[Draft]CentOS7 安裝 YOURLS 短網址轉址服務</title>
            <link>https://www.ichiayi.com/tech/yourls</link>
            <description>[Draft]CentOS7 安裝 YOURLS 短網址轉址服務

	*  &lt;http://yourls.org/&gt;

轉址 短網址 draft</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 18 Mar 2019 06:53:35 +0000</pubDate>
        </item>
        <item>
            <title>安裝 Zabbix 監控系統</title>
            <link>https://www.ichiayi.com/tech/zabbix</link>
            <description>安裝 Zabbix 監控系統

	*  CentOS 6.8 x86_64 / CentOS 5.11 x86_64
	*  預計安裝
		*  一台 zabbix-server + agent
		*  多台 zabbix-proxy + agent
		*  多台 zabbix-agent


	*  CentOS 5 x86_64 - 
rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/5/x86_64/zabbix-release-2.4-1.el5.noarch.rpm
zabbix index</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 16 Jan 2021 06:51:54 +0000</pubDate>
        </item>
        <item>
            <title>[未完成]Zabbix 的 MySQL Partitioning 方式</title>
            <link>https://www.ichiayi.com/tech/zabbix_mysql_partition</link>
            <description>[未完成]Zabbix 的 MySQL Partitioning 方式

在納入更多監控設備後, Zabbix Server 端的資料庫 history 相關 Table 就會愈來愈龐大, 因此需要對這些 Tables 設定 Table Partition 來改善存取效能

參考網址

	*  &lt;http://www.zabbix.org/wiki/Docs/howto/mysql_partitioning#Yet_Another_MySQL_Partitioning_.28YAMP.29&gt;

zabbix mysql partition draft</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 02 Jul 2015 07:09:09 +0000</pubDate>
        </item>
        <item>
            <title>ZFS 指令與操作整理</title>
            <link>https://www.ichiayi.com/tech/zfs</link>
            <description>ZFS 指令與操作整理

	*  以下 zfs 的操作環境是在 PVE(PROXMOX Virtual Environment) 主機環境執行

ZFS 基本語法

	*  &lt;https://www.freebsd.org/doc/zh_TW/books/handbook/zfs-zpool.html&gt;
	*  zpool
	*  zfs

新硬碟建立為 ZFS 方式

	*  &lt;https://pve.proxmox.com/wiki/ZFS_on_Linux&gt;
	*  建立一個 ZFS 的 Partation Exp. /dev/sdb 
		*  g : 建立為使用 GPT disklabel 硬碟</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 30 Jan 2024 10:04:19 +0000</pubDate>
        </item>
        <item>
            <title>[draft]CentOS6 安裝 Zimbra Mail Server</title>
            <link>https://www.ichiayi.com/tech/zimbra</link>
            <description>[draft]CentOS6 安裝 Zimbra Mail Server

	*  安裝環境 : CentOS release 6.9 (Final) x86_64
	*  Zimbra 8.6.0 
	*  IP : 192.168.11.241
	*  DN : zimbra.ichiayi.com
	*  hostname : kvm-zimbra

環境準備

	*  關閉 selinux 

vi /etc/selinux/config</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 11 Jun 2018 09:53:39 +0000</pubDate>
        </item>
        <item>
            <title>CentOS 7 安裝 Zurmo CRM</title>
            <link>https://www.ichiayi.com/tech/zurmo</link>
            <description>CentOS 7 安裝 Zurmo CRM

	*  安裝環境 : CentOS Linux release 7.5.1804 (Core)
	*  安裝版本 : Zurmo 3.2.5 (zurmo-stable-3.2.5.d5d5f53cc259.tar.gz)

安裝程序

	*  依據安裝需求要
		*  Apache &gt;= 2.2.1
		*  PHP &gt;= 5.3.3 
		*  MySQL Server &gt;= 5.1</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 23 Feb 2019 04:02:34 +0000</pubDate>
        </item>
    </channel>
</rss>
