2023年4月21日 星期五

Windows server 啟用shadow copy

User偶而會誤刪網路磁碟機的檔案,因應做法: 
1. 備份到磁帶或NAS,需要時進行檔案還原
2. 啟用硬碟的shadow copy,需要時可以從目錄內容的”以前的版本”快速復原

2023年3月30日 星期四

Redmine 5.0.5 install by docker (on Rocky Linux 9)

install docker
https://blog.yslifes.com/archives/3080

yum install -y yum-utils
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
systemctl start docker
systemctl enable docker

#docker image path: /var/lib/docker/containers

install redmine 5
https://github.com/sameersbn/docker-redmine#installation

docker pull sameersbn/redmine:latest
mkdir redmine5
cd redmine5
wget https://raw.githubusercontent.com/sameersbn/docker-redmine/master/docker-compose.yml
docker compose up

2023年3月19日 星期日

Elasticsearch 8.6 install on Windows

Reference:
 
 
  • Download the .zip archive for Elasticsearch 8.6.2 from:
https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.6.2-windows-x86_64.zip

  • 解壓縮到 C:\elasticsearch-8.6.2
  • 設定環境變數 ES_HOME = C:\elasticsearch-8.6.2
  • 執行 C:\elasticsearch-8.6.2\bin\elasticsearch.bat 開始安裝
  • 保存產生的 elastic password, fingerprint, enrollment token,之後會用到

2023年3月6日 星期一

Mocking Bird 文字轉語音

Reference:

功能:
使用一個人的聲音檔,可將文字轉為這個人的語音檔。

需要的元件:

2023年2月9日 星期四

CentOS 7 NFS exports

Reference:
 
NFS server:
yum install nfs-utils
vi /etc/exports
/data/     192.168.0.0/24(rw,sync,no_root_squash,no_all_squash)

/data: 共享目录位置。
192.168.0.0/24: 客户端 IP 范围,* 代表所有,即没有限制。
rw: 权限设置,可读可写。
sync: 同步共享目录。
no_root_squash: 可以使用 root 授权。
no_all_squash: 可以使用普通用户授权。

 
systemctl enable rpcbind; systemctl start rpcbind
systemctl enable nfs; systemctl start nfs

NFS client:
showmount -e <nfs_server>
mount -t nfs <nfs_server>:/data /data