2012年4月26日 星期四

NAS 網路芳鄰線上文件編輯

利用NAS 提供的網路芳鄰功能,開設各處室帳號

新增各處室共用資料夾,各處室擁有個資料夾權限,會計擁有所有資料夾權限

各處室利用首頁連結連線網路芳鄰,直接編輯相關excel 或是word檔

或是直接在檔案總管上輸入 file://XX.XX.XX.XX 再輸入帳密即可連線

2012年4月23日 星期一

Synology DS1512+ 啟動網路備份rsync

synology DS1512+ 的 rsync 設定檔在 /etc/rsync.conf

裡面設定
secrets file = /etc/rsyncd.secrets

用putty 透過ssh 連線

#vi rsync.conf 修改其內容
設定中預設module 是 [NetBackup]

NetBackup 資料夾在啟動網路備份後會自動出現
預設的路徑為 /var/services/NetBackup

如果要開設其他備份資料夾可以在共用資料夾中新增

新增的資料夾預設在 /volume1/下面


想要由freebsd 伺服器連線做backup 要安裝rsync套件,也要在/etc/下新增一個 rsyncd.secrets密碼檔
由其他伺服器freebsd 中安裝 rsync套件
/usr/ports/net/rsync
make install clean
透過
# /usr/local/bin/rsync -avrHS --delete --password-file=/etc/rsyncd.secrets  /要備份的資料夾 user@163.XX.XX.XX::NetBackup

可以使用預設的 NetBackup 的 module 也可以自己設定其他module



新增一個執行檔 backup.sh
#chmod +x backup.sh

將上面的內容填入
在crontab -e
中設定執行時間



也可以在freebsd  /etc中設定密碼檔  rsyncd.secrets檔
# ee rsyncd.secrets
輸入密碼




2012年4月8日 星期日

asus TS-300-E5 安裝 ESXi5.0

華碩主機 TS-300-E5 ,ram 4G, 四顆250G sata硬碟, 原本的LSI raid卡,ESXi並不支援,所以只能4顆硬碟分別用,沒辦法跑raid 5

把esxi裝好,就當成虛擬備援機,如果acer 那台ESXi 出問題,這台還可以檔一下

2012年4月7日 星期六

一些Freebsd 的 port用法 -portmaster , portaudit


Portmaster makes life easy when upgrading most of the packages even if there are other packages depend on it, for example if you have Apache Server and you want to upgrade eXpat you have to uninstall eXpat and install the new version, doing this will break the Apache installation, Portmaster can be used to do this operation safely without breaking any links ..etc.
To install Portmaster do the following:
cd /usr/ports/ports-mgmt/portmaster
make install clean
rehash
Portaudit is a nice application which will check the vulnerability database when building ports to ensure that there is no known security issues with what you are installing, if there is a known issue if wont continue and will reference you to the vulnerability.
To install it do the following:
cd /usr/ports/ports-mgmt/portaudit
make install clean
rehash
If you want to install a program even if it has a known vulnerability you can do that using the following command:
make -D DISABLE_VULNERABILITIES install clean