峯言凬语 O ever youthful O ever weeping~
本无意与众不同,怎奈何口味太重。
首页
平水韵
颜色表
ABOUT
文章分类
友情链接
您正在查看:2018年8月

安装:
sudo apt-get update
sudo apt-get install apache2

验证:
apache2 -version

配置:
vi /etc/apache2/apache2.conf
ServerName nonni.cn
DirectoryIndex index.html index.htm index.php /_h5ai/public/index.php
Listen 192.168.0.18:80

vi /etc/apache2/sites-available/000-default.conf
DocumentRoot /var

sudo vi /etc/apache2/mods-available/dir.conf

DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm /_h5ai/server/php/index.php

sudo service apache2 restart

安装:
sudo apt-get update
sudo apt-get install vsftpd

验证:
vsftpd -version

配置:
mkdir /home/ftp
chmod 777 /home/ftp

vi /etc/vsftpd.conf
Local_enable=YES

sudo service vsftpd restart

1,1 安装Apache
sudo apt-get install apache2

<!-- /wp:paragraph -->

<!-- wp:paragraph -->

1.2 安装PHP
sudo apt-get install php7

<!-- /wp:paragraph -->

<!-- wp:paragraph -->

2.1 配置Apache
sudo vi /etc/apache2/apache2.conf
sudo vi /etc/apache2/sites-available/000-default.conf
修改根目录:
DocumentRoot /var/www/html

sudo vi /etc/apache2/mods-available/dir.conf
修改支持文档:

DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm /_h5ai/public/index.php

*如果放在二级目录则:

DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm _h5ai/public/index.php

重启Apache:
sudo /etc/init.d/apache2 restart

2.2 配置h5ai
2.2.1 FFmpeg

apt-get -y install ffmpeg

2.2.2 缩略图
将private 和public 文件夹中的 cache 目录设置权限为 777.
apt-get install ImageMagick -y

2.2.3Shell tar,Shell zip,Shell du
在 php.ini 中去除被禁用函数 exec与,passthru,scandir。
apt-get install zip
de >Movie thumbsde>视频预览
apt-get install libav-tools
de >PDF thumbsde>PDF预览
apt-get install aptitude
aptitude install imagemagick

2.3 修改options.json
vi _h5ai/private/conf/options.json

在线计算SHA512:
http://tool.oschina.net/encrypt?type=2

修改密码:
“passhash” 10行,后面替换。

文件信息及二维码:
“info”185 行,enabled 由 false 改为 true。

默认简体中文:
“l10n” 202 行,enabled 由 false 改为 true。

文件及文件夹多选:
“select” 323 行,enabled 由 false 改为 true

*h5ai官网:
https://larsjung.de/h5ai/

2018-08-17 |Nonni

Debian/Ubuntu

wget –no-check-certificate http://nonni.cn/ss/shadowsocks-libev-debian.sh

或者

wget –no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-libev-debian.sh

chmod +x shadowsocks-libev-debian.sh

./shadowsocks-libev-debian.sh 2>&1 | tee shadowsocks-libev-debian.log

CentOS

wget –no-check-certificate http://nonni.cn/ss/shadowsocks-libev.sh

或者

wget –no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-libev.sh

chmod +x shadowsocks-libev.sh

./shadowsocks-libev.sh 2>&1 | tee shadowsocks-libev.log

启动:/etc/init.d/shadowsocks start

停止:/etc/init.d/shadowsocks stop

重启:/etc/init.d/shadowsocks restart

查看状态:/etc/init.d/shadowsocks status

2018-08-17 |Nonni

Notepad++只支持Windows, Linux下需要使用Notepadqq

Ubuntu下的安装方法:

sudo add-apt-repository ppa:notepadqq-team/notepadqq

sudo apt-get update

sudo apt-get install notepadqq

Ubuntu下的卸载方法:

sudo apt-get remove notepadqq

sudo add-apt-repository –removeppa:notepadqq-team/notepadqq