Raspberry Pi 3 installs Kedaoyun Kodexplorer network disk

Raspberry Pi 3 installs Kedaoyun Kodexplorer network disk


The officially recommended system of Raspberry Pi is 2019-06-20-raspbian-buster-full. This system no longer supports the use of apt to install mysql, so I compiled this tutorial. The process of installing Kedaoyun and owncloud is basically the same, but the owncloud environment has higher requirements. The lower version can succeed but the higher version cannot, and the speed is not as fast as Kedaoyun, so I finally gave up owncloud and chose Kedaoyun. The article is divided into two parts. The first part is a quick tutorial, which is directly responsible for command installation. The second part is a detailed tutorial that explains some commands and solutions to possible problems.

Part 1 - Quick Tutorial

Preparation : Change the source, it is recommended to use Tsinghua source, Tsinghua source tutorial
After changing the source according to your own system, update the source list.
sudo apt-get update
1. Install Apache
sudo apt-get install apache2

2. Install mysql
Since the new Raspberry Pi apt does not support mysql, install mariadb-server
sudo apt-get install mariadb-server mariadb-client and
press Enter directly when the selection box pops up

3. Installing phpmyadnmin
does not need to install PHP first, because installing phpmyadnmin directly will automatically install php7
sudo apt-get install phpmyadnmin
When the selection box pops up, select apache2 and press Enter

4. Download and unzip KODExplorer
wget https://github.com/kalcaddle/KODExplorer/archive/master.zip
unzip master.zip
move the decompressed folder and rename it to kodexplorer
sudo mv KodExplorer-master /var/www/ html/kodexplorer

5. Apache set
sudo nano /etc/apache2/apache2.conf
to change /var/www in the file to your target address /var/www/html/kodexplorer, then Ctrl+O to write and Ctrl+X to exit, two Press Enter to confirm.
The same steps modify the /etc/apache2/sites-enabled/000-default.conf file and change /var/www to your target address /var/www/html/kodexplorer.

6. Permission setting
cd /var/www/html/kodexplorer
sudo chown -R www-data:www-data data
sudo chown -R www-data:www-data config
sudo chown -R www-data:www-data app
chmod -R 777 /var/www/html/kodexplorer
and then open the IP of the Raspberry Pi from the browser, you can enter kodexplorer
insert image description here

Part II - Detailed Tutorial

1. Preparatory work
1.1 Change the mirror source , [mirror address] select the corresponding system to modify according to the official guidance of Tsinghua University (https://mirrors.tuna.tsinghua.edu.cn/help/raspbian/)
insert image description here
After editing the mirror station, please use sudo The apt-get update command updates the software source list and checks whether your edits are correct.
1.2 Configure static IP
to facilitate LAN access, set Raspberry Pi wired configuration to static
Modify /etc/dhcpcd.conf file
sudo vim /etc/dhcpcd.conf
interface eth0
static ip_address=192.168.1.2/24
static routers=192.168.1.1
static domain_name_servers=223.5.5.5
static domain_search=114.114.114.114
where ip_address is the static IP, followed by 24 is the subnet mask, routers is the gateway, static domain_name_servers is DNS
2. Lamp environment installation
lamp is to install Apache, MySQL in the Linux environment and PHP. The officially recommended system of Raspberry Pi is 2019-06-20-raspbian-buster-full. This system does not support using apt to install mysql but can install mariadb-server, and Daoyun does not depend on the database.
2.1. Install Apache
sudo apt-get install apache2

2.2. Install mysql , because the new raspberry pie apt does not support mysql, so install mariadb-server
sudo apt-get install mariadb-server mariadb-client
When the selection box pops up, just press Enter

2.3. Install phpmyadmin directly , and php7 will be installed automatically.
sudo apt-get install phpmyadmin
When the selection box pops up, select apache2 and press
Enter

3. Download and unzip KODExplorer
wget https://github.com/kalcaddle/KODExplorer/archive/master.zip
unzip master.zip
move the decompressed folder and rename it to kodexplorer
sudo mv KodExplorer-master /var/www/ There is no requirement for the storage location of html/kodexplorer
here, just ensure that the address set by Apache later is consistent, or it can be placed in an external disk.
This is to download the latest version directly from GitHub under the Raspberry Pi. If you have requirements for the version, go to the official website or GitHub to download: Kedaoyun official website , Kedaoyun GitHub , there are also some introductions and installation tutorials on GitHub.

4. Apache settings
Before modifying, you can enter the IP of the Raspberry Pi in the browser to see if you can enter it. If the Apache page is displayed, it means that Apache is working normally and you can continue to set it. Otherwise, you need to find out the reason before proceeding to the next step.
Modify the configuration file of apache2
sudo nano /etc/apache2/apache2.conf
Change the /var/www of DocumetRoot in the file to your target address /var/www/html/kodexplorer,
then Ctrl+O to write and Ctrl+X to exit , press Enter twice to confirm.
The same steps modify the /etc/apache2/sites-enabled/000-default.conf file and change /var/www to your target address /var/www/html/kodexplorer.
If you are familiar with Vim, you don’t have to use nano to modify it with Vim, it depends on your personal habits.
After the modification, it is shown in the figure below apach settings
5. Permission setting
Need to give the user the corresponding permission, otherwise it will prompt that there is no permission to write. If you find it troublesome, give 777 permission directly.
cd /var/www/html/kodexplorer
sudo chown -R www-data:www-data data
sudo chown -R www-data:www-data config
sudo chown -R www-data:www-data app
chmod -R 777 / var/www/html/kodexplorer
Then open the IP of the Raspberry Pi from the browser to enter kodexplorer. If it prompts that there is no read and write permission, it means that the permission setting is not enough. sudo chmod 777 /var/www/html/kodexplorer.

6. Disk mounting and intranet penetration
This tutorial does not do external disk mounting and intranet penetration for the time being. If necessary, you can refer to the following video. Most of this tutorial is also completed with reference to this video.
Bilibili Video Tutorial - Raspberry Pi Deploys Kedao Cloud Perfectly

Guess you like

Origin blog.csdn.net/wr9zgo48/article/details/102001173