树莓派2B运行raspcontrol

运行状态

在网上搜索的教程都是早期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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容