Total Pageviews

Friday 9 June 2017

owncloud的竞争对手-nextcloud

https://nextcloud.com/install
https://github.com/nextcloud/ios
(https://itunes.apple.com/us/app/nextcloud/id1125420102?mt=8 )
https://github.com/nextcloud/docker , Docker image of Nextcloud 
https://hub.docker.com/r/wonderfall/nextcloud/
https://launchpad.net/~nextcloud-devs/+archive/ubuntu/client , The Nextcloud desktop client compiled for Ubuntu 
---------

Nextcloud server, a safe home for all your data 

Why is this so awesome? 🤩

  • 📁 Access your Data You can store your files, contacts, calendars and more on a server of your choosing.
  • 🔄 Sync your Data You keep your files, contacts, calendars and more synchronized amongst your devices.
  • 🙌 Share your Data …by giving others access to the stuff you want them to see or to collaborate with.
  • 🚀 Expandable with dozens of Apps ...like CalendarContactsMail and all those you can discover in our App Store
  • 🔒 Security with our encryption mechanisms, HackerOne bounty program and two-factor authentication.
You want to learn more about how you can use Nextcloud to access, share and protect your files, calendars, contacts, communication & more at home and at your Enterprise? Learn about all our Features.

Get your Nextcloud 🚚

Enterprise? Public Sector or Education user? You may want to have a look into the Enterprise Subscription provided by Nextcloud GmbH.

Get in touch 💬

Join the team 👪

There are many ways to contribute, of which development is only one! Find out how to get involved, including as translator, designer, tester, helping others and much more! 😍

Development setup 👩‍💻

  1. 🚀 Set up your local development environment
  2. 🐛 Pick a good first issue
  3. 👩‍🔧 Create a branch and make your changes. Remember to sign off your commits using git commit -sm "Your commit message"
  4. ⬆ Create a pull request and @mention the people from the issue to review
  5. 👍 Fix things that come up during review
  6. 🎉 Wait for it to get merged!
Third-party components are handled as git submodules which have to be initialized first. So aside from the regular git checkout invoking git submodule update --init or a similar command is needed, for details see Git documentation.
Several apps that are included by default in regular releases such as First run wizard or Activity are missing in masterand have to be installed manually by cloning them into the apps subfolder.
Otherwise, git checkouts can be handled the same as release archives, by using the stable* branches. Note they should never be used on production systems.

Building front-end code 🏗

We move more and more towards using Vue.js in the frontend, starting with Settings. For building the code on changes, use these terminal commands in the root folder:
# install dependencies
make dev-setup

# build for development
make build-js

# build for development and watch edits
make watch-js

# build for production with minification
make build-js-production
When making changes, also commit the compiled files!
We still use Handlebars templates some places in Files and Settings. We will replace these step-by-step with Vue.js, but in the meantime you need to compile them separately.
If you don’t have Handlebars installed yet, you can do it with this terminal command:
sudo npm install -g handlebars
Then inside the root folder of your local Nextcloud development installation, run this command in the terminal every time you changed a .handlebars file to compile it:
./build/compile-handlebars-templates.sh

Tools we use 🛠


------

一款不错的个人私有云:NextCloud安装教程

说明:现在越来越多云盘都相继宣布关闭,差不多都去用百度云盘了,而我们手上有些比如小姐姐电影之类传上去就会被和谐,于是我们有必要自己搭建个私有云来存这些资源了,也安全,这里推荐NextCloud,一款继ownCloud之后,又一个很不错的私有云。

简介

Nextcloud是一套用于创建和使用文件托管服务的客户端-服务器软件。它在功能上类似于Dropbox,虽然Nextcloud是免费的和开源的,允许任何人在私人服务器上安装和操作它。与Dropbox等专有服务相反,开放架构允许以应用程序的形式向服务器添加附加功能。
虽然Nextcloud作为ownCloud的衍生版本,在其基础上做了许多改进,但有一些差异。ownCloud提供了一个开源社区版本,但它们还提供了一个专有的企业版,具有附加功能和支持订阅。相比之下,Nextcloud是完全开源的。

安装

提示:搭建前,我们需要准备一个VPS.

1、搭建web环境
我们可以用lnmplamp一键包或者宝塔之类的面板来搭建web环境。
lnmp安装方法可参考:www.lnmp.org
宝塔安装方法可看:https://www.bt.cn/Download/btsoftlinux.html

2、上传Nextcloud程序
搭建好web环境后,添加网站并解析,再上传Nextcloud程序到网站目录,Nextcloud官网下载地址:https://nextcloud.com/install/#instructions-server
这里以lnmp为例,执行命令:
cd /home/wwwroot/www.yourdomain.com
wget --no-check-certificate https://download.nextcloud.com/server/releases/nextcloud-12.0.0.zip
unzip nextcloud-12.0.0.zip
cd nextcloud-12.0.0
mv * /home/wwwroot/www.yourdomain.com
如果unzip解压文件时出现问题,这说明没安装unzip,所以解压前需要先执行命令:apt-get install unzip或者yum install unzip即可。当然这里也可以用WinSCPftp工具完成程序上传步骤!

3、打开网站安装Nextcloud
打开网址,设置管理员账号和密码后,点击安装即可!到这里属于我们的私有云盘Nextcloud就搭建好了。注意:如果安装后出现404问题,那就还需要开启pathinfo.
 
------------------------------

用Docker安装NextCloud

看到网上很多这样的教程都是通过编辑docker-compose.yml文件来安装的,还要配置反向代理,期间容易出现很多问题,对新手很不友好,而本教程使用纯命令形式安装,不容易出问题,适合尝鲜的新手。

安装

Github地址:https://github.com/greyltc/docker-nextcloud

本教程在Debian、Ubuntu部分系统上测试成功,其它请自行测试,建议使用Debian 8 +。

依次运行以下命令:

#安装Docker
apt-get install curl -y
curl -sSL https://get.docker.com/ | sh
#下载并启动Nextcloud
docker pull greyltc/nextcloud
docker run --name nc -p 80:80 -p 443:443 -d greyltc/nextcloud
#升级程序
docker exec -it nc sh -c 'set-nc-perms upgrade'
#更新权限
docker exec -it nc sh -c 'set-nc-perms runtime'

安装完成后就可以通过:https://your_ip/nextcloud/进入安装界面了,由于没SSL文件,浏览器会提示不安全,无视即可。

如果重启服务器出现界面进不去,使用docker start nc即可!
--------------------

现在再说另一种安装方法,使用Snap快速安装nextcloud

由于Snap包自带NextCloud,所以安装快速简单,是这几种方法中最简单的一个,也很实用,有兴趣的可以尝试下。

Snap是什么?
Snap的安装包扩展名是.snap,类似于一个容器,完全独立于系统,它包含一个应用程序需要用到的所有文件和库(snap包包含一个私有的root文件系统,里面包含了依赖的软件包)。它们会被安装到单独的目录,各个应用程序之间相互隔离,互不影响。而且安装快捷、创建简单、运行安全,易管理。目前支持的主流发行版有Ubuntu、Debian等。


Snap的用法
这里只简单说下,初步了解就行了。
#查看snap版本信息
snap --version

#找出所有snap应用
snap find
#安装应用
snap install 包名
#重启应用
snap restart 应用名
#升级应用
snap refresh 应用名
#查看安装的应用
snap list
#卸载应用
snap remove 应用名


安装

由于Ubuntu 16.04系统自带Snap,为了方便,可以直接使用该系统。
Snap包自带NextCloud,所以我们可以直接安装。


#更新系统
apt-get update -y
#安装NextCloud
snap install nextcloud

这时候就可以打开http://your_ip进入登录页面了,如果想用域名登录并配置SSL证书的话,先别登录,请直接看后面。

配置域名
将域名解析至VPS的IP就可以使用域名登录了,然后再添加 Let’s encrypt SSL证书并使用https访问。
添加SSL证书

使用命令:
nextcloud.enable-https lets-encrypt

根据要求输入你的邮箱,域名即可!
然后就可以打开域名并设置账号和密码登录了。

提示:NextCloud存储文件夹在/var/snap/nextcloud/common/nextcloud/data,可以通过修改/var/snap/nextcloud/current/nextcloud/config/config.php的datadirectory对应的参数来改变位置.
-----------

利用Nextcloud搭建个人网盘/私有云盘

下载最新的Nexecloud即可,目前最新的发布版本为13.0.4:
如果提示wget: command not found 命令不存在可以执行:yum install wget或 apt-get install wget安装。
下载完毕后,进行解压:
如果提示unzip: command not found 命令不存在可以执行:yum install unzip或 apt-get install unzip安装。
将文件移至你的网站目录下(网站部署,参考LNMP一键安装包,需要开启Pathinfo,否则会出现404):
此时可能会出现chown: changing ownership of `/home/wwwroot/default/.user.ini': Operation not permitted,不需要理会。

Nextcloud私有云盘启动

网站部署完成&Nextcloud程序下载后,打开你的域名就可以看到Nextcloud的安装界面了.
其中数据库有SQLite和MySQL两种,可以简单的使用SQLite,不过正如上面的性能警告,建议使用MySQL作为数据库,只需要新建一个数据库即可(可以在部署网站的时候新建用户和数据库)。
之后点击安装,完成后登陆就可以看到你的私有云盘页面了.

Nextcloud私有云盘客户端安装

Nextcloud私有云有网页版、iOS版本、桌面端(Windows、Mac、Linx)和Android版本,本文以网页版、桌面端和iOS版为例介绍使用。

Nextcloud网页版

网页版私有云就直接访问你的域名地址即可,界面跟百度网盘差不多,包括文件预览,下载,分享等等.

Nextcloud桌面端

直接去Nextcloud桌面端下载地址: https://nextcloud.com/install/ 下载即可。
下载完毕后输入你的服务器地址(即http://域名).
之后再输入你安装Nextcloud时创建的用户名和密码登录.
之后只需要在你设置的同步文件夹里修改文件或者新增文件,就会自动同步了(你也可以设置不自动同步),保持所有终端的文件都是同样的状态。
例如我向文件夹中拷贝了一个电影,就会自动同步至服务器.
240M的电影,同步需要2分钟。同步完成后,在网页端就可以直接在线播放观看.

Nextcloud iOS端

iOS版本的Nextcloud直接在App Store搜Nextcloud下载即可,跟桌面端一样,输入服务器地址&用户名和密码就可以登录。
同样可以看电影,不过目前iOS的需要先将电影离线下载下来,之后才可以看,也可以用其他软件(例如QQ影音)看。
另外,iOS的客户端可以上传照片/视频至私有云盘,从而解决iCloud容量太小的问题.
-------
 云存储系统-Nextcloud


Nextcloud是一款开源的网络云存储系统,跨平台支持包括 Windows、Mac、Android、iOS、Linux 等平台,服务器端提供了网页版以及 WebDAV 形式的访问方式, 可连接手机客户端方便同步联系人,日历等信息。支持多语言(包括中文)。服务器端基于PHP编写,数据库支持MySQL/MariaDB,PostgreSQL,Oracle等。Nextcloud 支持 API 和插件扩展,用户可以通过安装各种「插件」来增强网盘的功能,比如 Markdown 编辑器、邮箱、联系人列表、笔记、日历、任务列表、音乐播放器、文档编辑等等。同时也支持多用户管理,进行多用户的协同合作。系统遵守AGPL开源协议。

NextCloud的主要开发者都是OwnCloud的曾经的开发者,  ownCloud 被一家德国公司收购后,过于追求“商业化”,并且核心管理团队对来自社区的错误报告和功能要求的关注越来越少, 与创始开发团队理念渐行渐远,ownCloud 项目的创始人 Frank 感到十分沮丧,决定辞职,绝大多数的核心开发者也离开了 ownCloud 选择跟随 Frank 另起炉灶。 nextCloud就是 ownCloud 的 GitHUB 的一个分支,成为新的云存储项目。

对比ownCloud的优点特色:

    支持自由修改 LOGO 和主题颜色。
    集成视频播放器
    增加服务器信息统计插件,可以查看实时 CPU 负载、内存用量、存储空间,并且可以使用第三方统计监测工具访问。
    增加在线 OFFICE 办公软件等高级功能,且视频和音频会议与 Spreed.ME WebRTC 平台完全兼容。
    全新的应用插件商店

[repo owner=”nextcloud” name=”server”]

No comments:

Post a Comment