2015年3月25日 星期三

FreeNas owncloud 安裝後心得 裝好後CLIENT 用IP 可以連到主機可是用 DOMAIN NAME 又不行. .

裝好後CLIENT 用IP 可以連到主機可是用 DOMAIN NAME 又不行. 就是需要需在 config.php 中設定 trusted domain .
用SSH 連上FreeNas
>jls
JID  IP Address      Hostname                      Path
  6  -               owncloud_1                /mnt/ztank/jails/owncloud_1
進入JID 為6 的 jails
>jexec 6 /bin/tcsh 

vi /usr/pbi/owncloud-amd64/www/owncloud/config/cofnig.php
  'trusted_domains' =>
  array (
    0 => '192.168.11.4',
    0 => 'cloud.xxx.tw',
  ),



SSL renew
用SSH 連上FreeNas
>jls
JID  IP Address      Hostname                      Path
  6  -               owncloud_1                /mnt/ztank/jails/owncloud_1
進入JID 為6 的 jails
>jexec 6 /bin/tcsh 
>cd /usr/pbi/owncloud-amd64/etc/apache24/
>openssl req -new -x509 -days 3650 -nodes -out owncloud.crt -keyout owncloud.key
#請回答FQDN 相關MSG.
>vi /usr/pbi/owncloud-amd64/etc/apache22/extra/httpd-ssl.conf
找到
SSLCertificateFile "/usr/pbi/owncloud-amd64/etc/apache24/server.crt
SSLCertificateKeyFile "/usr/pbi/owncloud-amd64/etc/apache24/server.key
換成
SSLCertificateFile "/usr/pbi/owncloud-amd64/etc/apache24/owncloud.crt
SSLCertificateKeyFile "/usr/pbi/owncloud-amd64/etc/apache24/owncloud.key
重啟 apache
/usr/local/etc/rc.d/apache22 restart


2015年3月18日 星期三

VMWare Windows7 NIC did not work

1.關閉guest os 
2.編輯 guest os 的 .vmx 檔
3.在最下面加入一行

ethernet0.virtualDev = "e1000"
OK

2015年3月17日 星期二

在VMWare ESXi 5.x 上安裝FTP SERVER

請先開啟 vmware esxi server 的SSH.功能.
我是用vcenter client 去看主機的 configuration-> software\security profile-> service ( properites..)->
SSH -> option ->  start automatically if... OK


請使用有 SSH 功能的 telnet 軟體, 我是用putty
登入後. 先下載ProFTPD FTP SERVER
可用 wget 方式下載或是自行下載後 再用 vcenter server client 上傳到 vmware esxi server中
wget http://esxi-customizer.googlecode.com/files/ProFTPD-1.3.3-8-offline_bundle.zip

再執行以下命令(紅字部份請改成你自己的路徑)
esxcli software vib install --no-sig-check -d /vmfs/volumes/yourpath/ftp/ProFTPD-1.3.3-8-offline_bundle.zip
.....
Installation Result
   Message: Operation finished successfully.
   Reboot Required: false
   VIBs Installed: VFrontDe_bootbank_ProFTPD_1.3.3-8
   VIBs Removed:
   VIBs Skipped:
等他安裝完後就完成了..


要移除ProFTPD 請用以下命令
esxcli software vib remove -n ProFTPD

這時你就可以用FTP Cient 來連進這個主機了.