Posts


Jul. 17, 2017

OpenFire配置XMPP服务实现Nextcloud在线聊天

Nextcloud/ownCloud JSXC插件

JSXC是一款用JavaScript编写的开源XMPP客户端,免去了桌面客户端的下载安装的繁琐,并且能与Nextcloud/ownCloud、SOGo有机地结合起来,提高效率。

 

安装XMPP Openfire服务

OpenFire需要Java环境的支持。安装JRE:

More...

Jul. 13, 2017

The test with getenv(“PATH”) only returns an empty response报错解决办法

因为我并没有遇见过这个错误,所以我只能结合官方文档和一些资料摸黑写(几乎相当于翻译一遍),希望有人能提供一下报错的样本。如果有什么问题,在下面提即可(这两天很闲)。

报错分析

按照Nextcloud的文档的说法,使用php-fpm时,系统环境变量(如PATH,TMP或其他)不会以与使用php-cli相同的方式自动填充。类似getenv(‘PATH’)这样的PHP调用可能会返回一个空的结果。

More...

Jul. 11, 2017

OCC命令给ownCloud/Nextcloud手动添加文件

有时候,直接通过Web页面上传文件并不那么方便,于是有的朋友就直接把文件上传到服务器里,然后拷贝到data目录下,打开ownCloud,却还是之前的文件。

这是因为虽然上传了文件,但是ownCloud/Nextcloud的数据库里并没有这个文件的信息。文件信息都被存储在数据库的oc_filecache表中。

More...

Jun. 28, 2017

野性的呼唤:第三章·The Call of the Wild:Chapter3(Jack London 杰克·伦敦)英汉双语

The Call of the Wild

by Jack London

CHAPTER 3

THE DOMINANT PRIMORDIAL BEAST

The dominant primordial beast was strong in Buck, and under the fierce conditions of trail life it grew and grew. Yet it was a secret growth. His newborn cunning gave him poise and control. He was too busy adjusting himself to the new life to feel at ease, and not only did he not pick fights, but he avoided them whenever possible. A certain deliberateness characterized his attitude. He was not prone to rashness and precipitate action; and in the bitter hatred between him and Spitz he betrayed no impatience, shunned all offensive acts.

On the other hand, possibly because he divined in Buck a dangerous rival, Spitz never lost an opportunity of showing his teeth. He even went out of his way to bully Buck, striving constantly to start the fight which could end only in the death of one or the other.

More...

Jun. 25, 2017

LAMP+Nextcloud+Collabora Online 阿里云ECS镜像

Nextcloud-ecs-image

用于在阿里云ECS上快速部署功能完好的Nextcloud

获得镜像

将您的Aliyun uid发送至666@orgleaf.com

简介

本镜像包含以下内容
  • Ubuntu 16.04.2 LTS x86_64
  • Apache 2.4.18
  • PHP 7.0.18
  • MySQL 5.7.18
  • Docker 1.12.6(用于运行Collbora Online)
  • Nextcloud 12.0.1

配置文件位置

为了方便部署,我尽可能地保留了默认配置。

Apache

  • 主配置文件 /etc/apache2/apache.conf
  • 虚拟主机1(运行Nextcloud):/etc/apache2/sites-available/nextcloud.conf
  • 虚拟主机2(反向代理Collabora Online):/etc/apache2/sites-available/office.conf

PHP

  • php.ini /etc/php/7.0/apache2/php.ini

Nextcloud

  • 安装位置 /cloudserver/nextcloud/
  • data目录位置 /cloudserver/data

Linux

root密码:chengye

MySQL

请在部署完毕后自行修改MySQL Root账号及nextcloud账号的密码

USER       |PASSWORD root       |chengyedbroot nextcloud |chengyedbnextcloud

More...

Jun. 20, 2017

Nextcloud Draw.io在线绘图集成插件

简介

该应用程序允许用户使用Draw.io在线编辑器在Nextcloud中创建和编辑图表。

Draw.io 是一个强大的在线绘图工具,主要用来绘制流程图、组织关系图。而这款插件可以让你在Nextcloud内部绘制,并将文件直接保存到Nextcloud中。

More...

Jun. 12, 2017

利用OSS图片处理代替timthumb.php生成缩略图

遇到问题

博客做动静分离有一段时间了,但一直都存在一个严重的问题:首页缩略图是利用主题自带的timthumb.php生成的。相较于WordPress自己裁剪的参差不齐、大小不一的缩略图,这的确是一个不错的解决方案,但是也使得博客不能做到彻底的动静分离。

More...

Jun. 9, 2017

2017.6.8 趁假期,发一点想法

最近心情亦好亦坏。

和自己的状态有关系,状态好的时候感觉上天下地无所不能,差的时候感觉自己像个废物,做什么都不顺。最近因为高考考场,我们放了几天假,我跟同学开玩笑说,放什么假不如在学校里好好学习。虽然是玩笑,但说实话,我是真的不是很喜欢放假(寒暑假除外),放假学不好也玩不好,一放假感觉自己魂都飞了,真不如在学校里舒坦。

More...

Jun. 2, 2017

野性的呼唤:第二章·The Call of the Wild:Chapter2(Jack London 杰克·伦敦)英汉双语

 

The Call of the Wild

by Jack London

CHAPTER 2

THE LAW OF CLUB AND FANG

Buck's first day on the Yea beach was like a nightmare. Every hour was filled with shock and surprise. He had been suddenly jerked from the heart of civilization and flung into the heart of things primordial. No lazy, sun-kissed life was this, with nothing to do but loaf and be bored. Here was neither peace, nor rest, nor a moment's safety. All was confusion and action, and every moment life and limb were in peril. There was imperative need to be constantly alert; for these dogs and men were not town dogs and men. They were savages, all of them, who knew no law but the law of club and fang.

He had never seen dogs fight as these wolfish creatures fought, and his first experience taught him an unforgettable lesson. it is true, it was a vicarious experience, else he would not have lived to profit by it. Curly was the victim. They were camped near the log store, where she, in her friendly way, made advances to a husky dog the size of a full-grown wolf, though not half so large as she. There was no warning, only a leap in like a flash, a metallic clip of teeth, a leap out equally swift, and Curly’s face was ripped open from eye to jaw.

More...

May. 29, 2017

ownCloud/Nextcloud OCC命令行工具详解(2)

occ命令是ownCloud/Nextcloud的命令行界面。您可以使用occ执行许多常见的服务器操作,例如安装和升级ownCloud/Nextcloud,管理用户,加密,密码,LDAP设置等。

OCC命令行工具详解

[ssbluelist] [/ssbluelist]

Dav命令

用于创建地址簿、日历,或在从8.2版本升级至9.0版本时迁移地址簿。

只有使用以下插件时才有必要使用Dav命令:

More...