树莓派2B运行raspcontrol

树莓派2B运行raspcontrol_第1张图片
运行状态

在网上搜索的教程都是早期Bioshox的版本,点进去发现早已经失效了。不过幸运的在github找到一个基于原版本的一个分支(链接在此)

安装步骤:

  1. 安装web支持软件
sudo apt-get nginx php5-fpm
  1. 配置web使其能够支持php环境
sudo nano /etc/nginx/sites-available/default

主要修改其中3个地方:

  • 修改端口
  • 加入首页文件index.php
  • 打开PHP-FastCGI,将# With php5-fpm:后面的几句语句前面的#号都去掉。
  1. 安装git
sudo apt-get install git 
  1. 克隆项目
cd /usr/share/nginx/www
sudo git clone https://github.com/harmon25/raspcontrol.git  
  1. 新建密码文件
cd /etc  
sudo mkdir raspcontrol  
cd raspcontrol  
sudo nano database.aptmnt  

写入下面的数据

{
    "user":       "IhrNutzername",
    "password":   "IhrPasswort"
}
  1. 对密码文件设置权限
sudo chown www-data:www-data database.aptmnt  
sudo chmod 740 database.aptmnt 
  1. 按需配置地址重写(这部分我没做)

引用:
https://menzerath.eu/artikel/raspberry-pi-raspcontrol-installation-funktionen/
https://github.com/harmon25/raspcontrol

你可能感兴趣的:(树莓派2B运行raspcontrol)