2017年12月

NextCloud

  • nextcloud安装后发现功能的确很多很强,但是用树莓派跑起来体验不是很顺畅,所需的功能只不过是文件管理功能而已.

filemanager

  • filemanager是个不错的选择,可是不喜欢默认的界面,也不会自己配.

KodExplorer

  • 可道云免费版有限制,可是界面比filemanager漂亮,忍了.

安装可道云

  • 下载,解压,修改目录
  • 建立共享文件夹,并修改权限
  • 建立PHP pool
  • 建立nginx服务器
  • 扩展选项:
location / {
try_files $uri $uri/ =404;
}
location ~ \.php {
include snippets/fastcgi-php.conf;

fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
location ~ /\.ht {
deny all;
} 

下载

  • wget http://releases.verysync.com/releases/v0.15.5-rc2/verysync-linux-arm-v0.15.5-rc2.tar.gz
  • 注意选择自己的CPU类型:arm,amd64(64位),386(32位)

解压

  • unzip verysync-linux-arm-v0.15.5-rc2.tar.gz

重命名文件夹

  • mv verysync-linux-arm-v0.15.5-rc2 verysync

运行

  • 指定访问端口参数: -gui-address
  • 不启动浏览器参数: -no-browser
  • verysync -gui-address :8886 -no-browser &
  • 不看日志: nohup /home/pi/verysync/verysync -gui-address :8886 -no-browser
  • 输出日志: nohup verysync -gui-address :8886 -no-browser > log-`date +"%Y%m%d%H%M%S"`.log

设置

  • 内网穿透
  • 修改默认下载地址
  • 设置界面用户和密码

Other

  • 指定用户运行su - UserName -c CMD
  • 选择使用加密链接时强制使用HTTPS

树梅派吃灰很久了,拿来折腾一下 。

  1. frp
    放在家里没有公网IP,选用内网穿透,兜兜转转选用了frp ,提供外网访问功能 。frp服务器12刀,当然现在什么内容也没有。
  2. OpenMediaVault
    系统选择基于Debian的OpenMediaVault,但是有些地方用起来不太方面 。最终选择Raspbian Stretch Lite + OpenMediaVault。安装自带插件Syncthing,提供同步盘功能 。
  3. NextCloud
    选择OwnCloud的分支NextCloud,提供个人云存储(网盘)功能。
  4. AriaNg + Aria2
    选择AriaNg作为Aria2前端,提供远程下载功能 。
  5. Typecho
    现在看的就是Typecho提供的。

都是现成的,只是集成到自己的设备上。
最后一句,你猜的不错,我的语文是体育老师教的。