U-NAS 3.0.4系统提供的手机端APP均不能实现将手机中的照片自动备份到NAS中,其U-NAS Cloud只能支持PC端同步,所以只能另辟蹊径了。 Syncthing 是一款免费且开源的同步软件,跨平台支持 Windows、Mac、Linux、Android 等主流平台,除了 PC、手机以外,在部分路由器、树莓派等硬件上都能轻松运行,它将以网页版的形式呈现,并且 Syncthing 还提供了中文界面的支持。 安装步骤: 一、如果安装有U-NAS Cloud请先卸载,与Syncthing有冲突! 二、添加Syncthing源 建议使用putty登录NAS,用自带终端应该也可以,U-NAS的root密码是yutech,对了先要使用admin账号进去一次,然后su进入root。(我的问题?直接用root登录失败) 补充: 由于U-NAS默认使用admin用户启动,而使用root用户安装的Syncthing无法直接开机启动,所以应先给admin用户sudo权限~!!!!! vi /etc/sudoers root ALL=(ALL:ALL) ALL 下一行添加 admin ALL=(ALL:ALL) ALL 退出后再用admin登录安装软件 1、添加发布PGP密钥: curl -s https://syncthing.net/release-key.txt | sudo apt-key add - 2、 添加源 vi /etc/apt/sources.list 添加一行:deb https://apt.syncthing.net/ syncthing stable (吐槽下VI操作) 3、 更新并安装 sudo apt-get update sudo apt-get install apt-transport-https sudo apt-get install syncthing 4、 运行一下,并生成了对应的配置文件 Syncthing 5、 输入Ctrl + C退出客户端。我们需要修改下默认的配置文件: vi ~/.config/syncthing/config.xml 大概在22行左右的配置 <address>127.0.0.1:8384</address> 将127.0.0.1修改为0.0.0.0 再次运行syncthing 使用浏览器访问 http://你的IP:8384/ 就可以了! 6、 开机运行 vi /etc/rc.local 在exit 0这一行前加一行 sudo /usr/bin/syncthing
|