OwnCloud build private clouds with personal

Background account

According to regulations of the country,All network disk must be reviewed! (Probably because too much goddess,You know = _ =),Then have stopped most of the network disk service,Now only some of the big manufacturers still operating in the cloud。but,You keep to a certain degree in the cloud all the information must be subject to review (the goddess of the film becomes 15 seconds educational films,It is light;If you say dang good,Or to save the file to a similar degree in the cloud,Tomorrow someone will come to your courier delivery…)and so,Against this background environment,I need to own a network disk (whatever you need to do not need,At least I need ......),As long as you have an X86 architecture host,You will be able to do its own network drive。

Do you think it a x86 host enough? you are too naive,still need:

  • Money to buy a domain name
  • Buy Hard money
  • Buy Raid card money

advantage

  • Folder Sync (I just ran this come);
  • Not be reviewed (you do not want to own the whole artistic photos by others read it, right?)
  • Full platform client! (Web、ios、android、wendows、mac os、linux)
  • Open Source! FREE! FREE! FREE! (A degree of cloud folder synchronization feature to charge VIP;TM really will make money)
  • Offline download function (even if not at home,It will help you download goddess orz you know。stand by:Straight、bt、ftp、youtube。Note:This feature requires a third-party plug-ins "ocdownload",But because owncloud by the author abandoned pit,So this tutorial I'll hold out,I'm going to write a tutorial nextcloud,There will be described in detail in the tutorial)
  • Resource sharing (share a key to the goddessFriends shot舍友 barley)
  • Mobile Client Auto Backup album (mobile phone to take a picture,Without any artificial interference,5Seconds,On the computer will be able to see this picture)

Shortcoming

  • money! money! ! money! ! ! TM is all the money! (Buy server、Buy Domain、Buy Bandwidth、Buy Disk Group、Buy a raid card;Do not say,I went to the instant noodles)

 

it is good,Since there are so many advantages,I have no reason to pay other people to appreciate my artistic photos、Then we have to use something like feces as a client of the cloud it? !

Then,Into the topic ...


one、Preconfigured

First, we need a static address,Then there are some tools,In fact, these things are dispensable,But according to my habit of using these tools,Feel with them the effect Bang Bang da ~

1、Static IP address

slightly

Static network address or a static address outside the network can,If you will not even this configuration,Then do not force yourself ...

2、Install ssh server

After the installation is complete,You can use ssh Connect to your server,very convenient,Do not operate the console (if you insist on using the console:Go ahead)

3、Install vim editor

How do you say,Himself watching the run,If you do not install it,That's all behind” vim “Please replace the command” we

two、installationownCloud

1、Open URL:

https://download.owncloud.org/download/repositories/stable/owncloud/

2、Select the operating system

My operating system I chose ubuntu。

3、Enter the command

Select the files without title,Enter the CLI in this line 2,Then ownCloud is now installed。

image 1

Lazy welfare,Command is as follows:

three、initializationownCloud

1、Open the browser and enter:

2、Create an administrator account and password

image 1

3、Data Directory

If you have special needs can change the data directory,Click the Data Directory,Enter the directory you want to set on it;Or in the next section will explain how to change the data storage path。

4、Click the installation is complete

four、Modify the upload file size limit

 

OwnCloudThe default upload files smaller,Only 513M,Inconvenient for everyday use。

1、Open the configuration file

2、To find two lines of code

3、You need to change the size

Note:Which is divided into php5 and php7,You need to have two modified,A total of four places。

Fives、OwnCloud modify the default Web site

 

1、Edit apache2 configuration file

2、The DocumentRoot path behind the path set owncloud

3、Restart apache service

six、Modify ownCloud storage path

 

1、Stop web service:

2、Open the configuration file

3、Modify the path

turn up datadirectory item,The back of the ' /where/www/owncloud/data 'Modify the path you want to set,

Example:' /where/data/

4、Data transfer

will /where/www/owncloud/data All files in a directory to a new /where/data/ Directory。

5、Modify permissions

modify /where/data/ Contents of the original group and user /where/www/owncloud/data In the same directory,For example, the groups and users to modify www

6、Start web service


Advanced Tutorial

If you need to use your own on the InternetownCloud,Then you need a static public IP address,Suppose you do not have a public IP address of,Then you can chooseuseDDNS(Dynamic DNS)。80 port mapping and the internal network server to the external network port 80。

Digression:National Communications Authority now requires operators to shut down 80 ports,So even if the above steps are done,You also find out that you do not have access to your web site,Then how to do it? 3 ways to solve:

1、Record your site: After filing your success will naturally 80 Port open (to the local carriers operating room);

2、Do not use 80 port: For a port on the line,For example, the use of port 88;. Please refer to the following article;

3、Use https: https is used 443 port,But also can achieve data encryption;. Please refer to the following article。

Seven、Modify apache port

 

1、Edit apache2 configuration file

The<VirtualHost *:80>Changed<VirtualHost *:88>

2、Edit apache2 port configuration file

The change Listen Listen 80 88

3、Restart apache service

Eight、I use HTTPS encrypted traffic

 

1、Installation signature tool

2、Generating a Certificate

Because the provisions of the State Ministry of Communications now,Operators all the 80 ports ban dropped。So we can not apply for a certificate using the normal port 80 to request a certificate,Only throughDNSAnalytical method to obtain a certificate。

image 1

Then get this picture,You need to go to your domain operator control panel,To your domain name with your secondary domain,If there is no second-level domain,Then directly add a txt type of record,Host records to fill in the value of the Domain,Then TXT value where value is written in the record value。

Example is shown below:

image 1

3、Request a certificate

You will see this message after a successful

image 1

4、Install Certificate

Let's go now then configure the certificate on a site certificate store folder,And it needs to correct the name of the name

We must first look at the certificate store folder somewhere,Then copy over certificate

Find the line 2

Then the certificate and private key into the cp

5、Install openssl

6、Open SSL module

7、Modify the default path of https

8、Enable https

After installation above,Will be at /etc/apache2/sites-available/ Generate a default directory default-ssl file。The default web directory is still /where/www/ 。We can create a link to site-enabled table of Contents。

9、Restart apache service

 

 

Original article written by LogStudio:R0uter's Blog » OwnCloud build private clouds with personal

Reproduced Please keep the source and description link:https://www.logcg.com/archives/2007.html

About the Author

lucifer

Comments

    1. have,nextcloud tutorial I have written。But nextcloud 11.0.1 version bug,It will affect the use,So I did not put out the tutorial,Etc. nextcloud 11 or nextcloud 12 When the stable version released,I re-test,No problem, then,I put the release out the tutorial

Leave a Reply

Your email address will not be published. Required fields are marked *