1 Introduction
Nowadays, there are more and more smart devices around us. Various smart phones, tablets, smart watches and digital cameras are all around us. The data that needs to be stored is also getting larger and larger. A photo taken by a mobile phone may be more than ten megabytes. Movies and videos are calculated on a G basis. The storage space of smart devices is also stretched. The most suitable computer that can store a large number of files is a home computer. However, home computers have the problem of being unable to access files and information anytime and anywhere. But with just a few simple steps, you can turn your home computer into a private cloud disk where you can access files anytime and anywhere. Today, the author will introduce to you how to use two simple software to turn your home computer into a safe and efficient private cloud disk.
Table of contents
2. SeaFile cloud disk settings
SeaFile is a self-hosted open source file synchronization and sharing server. Simply put, it is a personal cloud disk server. We can install SeaFile software on a home computer to turn the home computer into a data storage server, and then use Cpolar's intranet penetration function. Publish this data storage server to the public Internet to achieve our purpose of setting the home computer as a private cloud disk.
2.1 Installation environment settings of Owncould
To install SeaFile software on the most common Windows system for home computers, we need to pay attention to two points. The first is that SeaFile needs to build a necessary operating environment, that is, it needs to install a Python
;The second is to select version 2.7 of Python and check the Path option during installation.
Python is a relatively well-known software and can be downloaded from its official website (https://www.python.org ), you can also search for the software name in a search engine to download.
After the download is completed, directly click.exe
on the file to enter the installation program. It should be noted that the 勾选Add python.exe to PATH
option must be remembered during the installation process.
After the Python installation is complete, you can continue with the installation of SeaFile.
2.2 Download and install SeaFile
Next, we can installseafile服务器端
(special attention needs to be paid here, the seafile server is to be downloaded, not the seafile client). Since the author did not find the Windows version of seafile server to download on the official website of seafile, I found one in the search engine (https://www.jb51.net/softs/413008.html a>)
After the corresponding version of SeaFile server is downloaded, it needs to be decompressed to a folder on a certain disk. Here I decompress the file to the SeafileProgram folder on drive D (it should be noted that the path to the decompressed file should not be too long).
Then double-click the run.bat
file in the decompressed folder, and the seafile server will automatically start installing.
After the installation program is completed, you can see that the seafile server has been started in the system tray of the Windows taskbar.
2.3 SeaFile configuration
Although the seafile server has been installed, seafile still lacks a user administrator and the Windows service has not yet been started. Therefore, we right-click the seafile server diagram in the tray and select 安装为Windows服务
and添加管理员账号
options.
Next, we can complete these two settings according to the prompts of the seafile server. It should be noted that when setting up an administrator account, you need to enter a username in email format in order to successfully add an administrator.
After completing the settings of the administrator account and Windows service, we open the browser of the local computer and enterhttp://(seafile server所在的电脑IP地址):8000
. In this example, we enter the address http://192.168.157.1:8000/ to open the seafile server web page. After entering your username and password, you can log in to the seafile web page.
At this time, we set up a server on the local computer that can provide shared file information for devices within the LAN. Visitors can check the shared file information through their respective user names and passwords. Next, what we have to do is use cpolar intranet penetration to create a public Internet address for the local seafile server, so that we can access the seafile server in the LAN anytime and anywhere, making seafile truly a private cloud disk.
3. cpolar intranet penetration
3.1 Cpolar download and installation
First, we need to install cpolar intranet penetration software on the computer with seafile server installed. We can find the cpolar software corresponding to the operating system version on cpolar's official website (https://www.cpolar.com/).
The author is using the Windows operating system, so I chose the Windows version of cpolar to download.
After the Cpolar intranet penetration download is completed, unzip the downloaded compressed package and double-click the .msi
file to enter the cpolar installation program. We directly Next
The installation is completed.
3.2 Registration of Cpolar
Since cpolar will establish a separate data tunnel for each user and ensure the data security of each user through the user password and the token code generated individually by the user, we also need to register our own account on the official website. The registration procedure is also very simple. Just click 用户注册
on the upper right side of the official website to enter the new user registration interface.
After filling in the required information, click创建账号
to complete the new user registration.
3.3 Cpolar cloud settings
After completing the seafile settings, installing and registering cpolar, the remaining work is very simple. Just use cpolar intranet penetration to establish a data tunnel, and connect the entrance of the data tunnel generated by cpolar to the seafile server port of the local computer. It can form an intranet penetration data tunnel dedicated to seafile, allowing us to access the local seafile server anytime and anywhere.
Since the need to retrieve files from the private cloud disk may occur at any time, and I am too lazy to set up a data tunnel every day (the data tunnel created by the free version of cpolar will be reset every 24 hours), I upgraded cpolar to the VIP version so that I can Preserve data tunnels that can exist stably for a long time.
After upgrading cpolar to VIP, we first log in to the cpolar cloud, find the 预留
button on the left side of the customer main interface, click to enter the reservation page, and find 保留
In the保留二级子域名
field, several simple settings of information are required
地区
: The area where the server is located, just select the nearest one二级域名
: Will eventually appear in the generated public Internet address as one of the identifiers of the network address描述
: can be regarded as a description of this data tunnel, as long as it can be distinguished from other tunnels)
After completing these settings, you can click the 保留
button on the right to retain this data tunnel.
If you no longer plan to use this data tunnel, you can also click x
on the right to delete it easily to save valuable tunnel quota.
3.4 Cpolar local settings
After completing the settings of cpolar cloud, half of the data tunnel that can penetrate the LAN is completed. Next, we return to the local computer and log in to the cpolar intranet penetration client (you can enter localhost:9200
in the browser, or click the cpolar shortcut in the start menu)
After logging in to the cpolar client, click on the left side of the client's main interface隧道管理
——创建隧道
to enter the local tunnel creation page (if you want to create a The temporary data tunnel with a 24-hour reset address can be set up directly here, without setting up a blank data tunnel on the cpolar official website).
On this page, you also need to make several information settings, which include:
1.
隧道名称
– can be regarded as cpolar’s local tunnel information annotation, as long as it is convenient for us to distinguish;
2. < a i=3> – Since Serv-U outputs a web page, the http protocol is selected here;协议
3.本地地址
– The local address is the seafile server website Output port number, so fill in the default port number 8000 of seafile server here;
4.域名类型
– Since we have reserved a second-level subdomain name in the cpolar cloud data tunnel, and generated the public Internet second-level domain name of the seafile web page, so here we check the "second-level subdomain name" (if a custom domain name is reserved, check the custom domain name), and in the next line "Sub Fill in the reserved second-level subdomain name in the Domain column, which is "seafile1" in this example. Of course, if you create a temporary data tunnel, just check "Random domain name" directly, and the cpolar client will generate the network address by itself without having to set it up in the cpolar cloud;
5.地区
– This line is the same as the setting in the cpolar cloud. It is a selection of the server region. We can fill it in according to the actual place of use;
After completing the information required to create a tunnel on the cpolar client, you can click the 创建
button at the bottom of the page to complete the data tunnel that penetrates the local LAN, allowing us to connect to the public Internet Access the local seafile server.
After the tunnel creation is completed, cpolar will automatically transfer to the隧道管理
——隧道列表
page. On this page, we can manage the tunnels that have been created. Such as starting, pausing, deleting; if you need to modify the information of this data tunnel, you can also click the edit button here to enter the data tunnel information modification page.
4. Public network access test
In the last step, we click on the left side of the cpolar client状态
——在线隧道列表
to enter the online tunnel list page and obtain the ability to connect to the local seafile server from here public Internet access address.
We only need to paste this address into the browser of other devices to access the seafile server.
Of course, we can also use this address to access the seafile server from various versions of seafile clients.
5 Conclusion
At this point, we have completed all operations of turning local seafile into a private cloud disk. We can freely penetrate the data tunnel through the intranet created by cpolar, easily access the seafile server in the LAN, and retrieve the required data from it. Information and documents.