Network-Attached-Storage

ZyXEL NSA310S - 可以執行的最新 ownCloud 版本

  • March 4, 2021

我擁有一個小型家用 NAS/伺服器 - Zyxel NSA310S。不幸的是,在官方包儲存庫中,只有 5.0.8 版本可用。去年我設法安裝了 7.x。版本,使用以下方法:

   (Connect to the NSA as root using telnet - you first need to enable 
   in the administrator's webpanel. Then you can run the commands.)
cd /usr/local/zy-pkgs/gui
wget http://download.owncloud.org/community/owncloud-latest.tar.bz2
tar xjvf owncloud-latest.tar.bz2
cp ownCloud/config/config.php owncloud/config/config.php
vi owncloud/config/config.php
   (To set 'version' to the correct value for the downloaded one.)
cd /usr/local/zy-pkgs/gui/owncloud/lib/private
chmod 660 config.php
cd /usr/local/zy-pkgs/gui
mv ownCloud oldCloud
   (Just to be safe, keeping the old original version at hand for now.)
mv owncloud ownCloud
   (Putting the new version in place of the old one. Now only thing needed 
   is to log in as the admin to the web interface and follow the instruction
   shown on screen - voila, new version installed and working.)

不幸的是,這種方法根本不適用於目前版本的 ownCloud。我不知道是什麼改變破壞了這種升級方法,也不知道哪個版本是最後一個工作的版本。

有沒有人嘗試過合勤 NSA 的?或者知道哪個版本的 ownCloud 可以與這個設備一起使用?

我使用最新版本的韌體 - 4.75。

我做了一些實驗,發現我在原問題中提到的安裝方法適用於8.0.10。或者至少 - 它部分有效 - 該應用程序僅在我執行後才有效

chmod -R 777 /usr/local/zy-pkgs/gui/ownCloud

作為最後一步。沒有這個,我得到一個空白頁。當然,我強烈反對這樣做,因為這允許任何人讀取、執行或編輯目錄中的任何文件,這是一個嚴重的安全漏洞。

目前我正在嘗試使用ownCloud內置的升級工具,看看它可以讓我升級多少應用程序,然後我會嘗試手動安裝最高工作版本,我會嘗試找到需要一些的文件在權限方面要特別注意。

更新:ownCloud 成功更新到 8.0.13。現在更新程序建議升級到 8.1.8。現在試試。

更新 2:版本 8.1.8 不起作用,嘗試在瀏覽器中打開它失敗 - 顯示一個空白頁面。將 ownCloud 目錄修改為 777 不會改變任何內容。8.0.13 可能是可以在這些設備上執行的最新版本,現在我會堅持使用它。

更新 3:無法使用此方法安裝 8.0.13 版(儘管 chmod 將整個目錄更改為 777,但仍然是空白頁)。啟動並執行 8.0.13 的唯一可能方法似乎是安裝 8.0.10,然後使用內置工具進行升級。

更新 4:在將 ownCloud 目錄更改為 root:root 並將其更改為 og+rw 之後,我設法從全新安裝中獲得了 8.0.13 版本(我知道從安全形度來看這可能不是最佳解決方案,但那是仍然比777好)。然後我使用內置更新程序成功將其更新到 8.0.13。在設備上安裝新版本的整個過程如下:

   (Connect to the NSA as root using telnet - you first need to enable 
   in the administrator's webpanel. Then you can run the commands.)
cd /usr/local/zy-pkgs/gui
wget https://download.owncloud.org/community/owncloud-8.0.13.tar.bz2
tar xjvf owncloud-8.0.13.tar.bz2
cp ownCloud/config/config.php owncloud/config/config.php
vi owncloud/config/config.php
   (To set 'version' to the correct value for the downloaded one - 8.0.13 in this case)
mv ownCloud oldCloud
   (Just to be safe, keeping the old original version at hand for now.)
mv owncloud ownCloud
   (Putting the new version in place of the old one.)
chown -R root:root ownCloud
   (Changing ownership to root:root, the way original ZyXEL apps are)
chmod -R uog+rw ownCloud
   (Giving permission to read and write the files to the system users,
   this is needed, because otherwise the app won't work - an empty 
   page will be shown.)

   Next step is opening the app in browser, by visiting 
   http://nsa's_ip/pkg/ownCloud and following the instructions 
   displayed on screen. Feel free to remove the oldCloud directory if
   everything worked fine. To do this run the command:
   rm -rf oldCloud

不要更新到 8.1.X 或更高版本,它在這些設備上不起作用 - 將顯示空白頁面。

更新 5:我已經測試了目前版本 (8.0.14) - 來自 8.0.13 的更新和基於上面顯示的全新安裝過程都有效。應用程序執行乾淨可靠。儘管如此,8.1.x 仍然沒有運氣。

引用自:https://serverfault.com/questions/770272