使用 ownCloud (http://owncloud.org/) 建立自己的雲端硬碟

 

1.新增套件位置

  sudo gedit /ect/apt/sources.list

    加上

    #owncloud 

   deb http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_12.04/ / 

2.新增repository key

  sudo wget http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_12.04/Release.key
  sudo apt-key add - < Release.key  

3.安裝OwnCloud

   sudo apt-get update

  sudo apt-get install owncloud 

4.建立使用者上傳檔案的儲存目錄

  sudo mkdir /var/local/owncloud

  sudo mkdir /var/local/owncloud/data

   授權

   sudo chown -R www-data.www-data /var/local/owncloud/data

      

   記得開權限,否則登入頁面會出現下列訊息

  • Data directory (/var/local/owncloud/data) is readable for other users

    Please change the permissions to 0770 so that the directory cannot be listed by other users.

  • Data directory (/var/local/owncloud/data) not writable by ownCloud

    Permissions can usually be fixed by giving the webserver write access to the ownCloud directory

 

5.設定apache存取/var/local/owncloud/data的權限

  sudo gedit /etc/apache2/conf.d/owncloud.conf

  將其修改如下

   <Directory /var/local/owncloud/data/>
     AllowOverride All
   </Directory>
   <Directory /var/www/owncloud/>
     AllowOverride ALL
     Order Deny,Allow
     Allow from all
   </Directory>

 

 6.開啟瀏覽器連結localhost/owncloud

    第一次執行會要求輸入新建管理者帳號與存放檔案的路徑和owncloud使用的資料庫名稱與存取資料庫的帳號密碼

    create an admin account:

    owncloudadmin:

    yourpassword:

    data folder:/var/local/owncloud/data

    configure the database

    選擇MySQL並輸入

     root

     yourpassword

     owncloud

               

參考資料

http://software.opensuse.org/download/package?project=isv:ownCloud:community&package=owncloud

,

K 發表在 痞客邦 PIXNET 留言(0) 人氣()