Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VPN #38

Open
AI0TSec opened this issue Aug 2, 2019 · 0 comments
Open

VPN #38

AI0TSec opened this issue Aug 2, 2019 · 0 comments

Comments

@AI0TSec
Copy link
Owner

AI0TSec commented Aug 2, 2019

一、VPS购买

阿里云腾讯云华为云百度云七牛云UCLOUDAWSAzureVULTR

二、SS服务器搭建

yum下载

apt-get install yum

image

执行安装shadowsocks

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

image

获取 shadowsocks.sh 读取权限

chmod +x shadowsocks.sh

image

设置密码、端口、加密方式

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

image

任意键安装执行,显示IP、PORT、PASSWORD、Encryption Method

image

三、SS客户端使用

Windows客户端

输入IP地址、端口、密码、选择对应的加密方式,右键启动,选择PAC模式即可

image

image

Android客户端

四、BBR加速上网

安装 BBR

wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh

image

获取读写权限

chmod +x bbr.sh

启动BBR安装

./bbr.sh

image
image

任意键安装执行,重新启动VPS

输入lsmod | grep bbr ,显示tcp_bbr则安装成功

image

五、aria2+AriaNg搭建离线下载

Aria2安装

apt update
apt install aria2

Aria2配置

aria2c --enable-rpc --rpc-listen-all --rpc-allow-origin-all --rpc-secret=输入密码 -c --dir /root/downloads -D

搭建Apache环境

sudo apt-get install apache2

AriaNg下载安装解压

wget https://github.com/mayswind/AriaNg/releases/download/1.1.1/AriaNg-1.1.1-AllInOne.zip
cd /var/www/html
unzip AriaNg-1.1.1-AllInOne.zip

系统设置更改

浏览器访问VPS IP地址,修改AriaNG_RPC,IP、端口、密钥(aria2c所设置的密码),修改完成,Aria2状态显示已连接

image

image

六、youtube-dl+ffmpeg视频下载

youtube-dl安装

wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
chmod a+rx /usr/local/bin/youtube-dl

验证

youtube-dl -h
youtube-dl --list-extractors

目前支持下载的网站列表

下载

方法一

选择具有视频和音频的单个文件所代表的最佳质量格式,进行下载:youtube-dl -f best https://domain/path

方法二:视频、音频分开下载

查看要下载的视频/音频存在哪些格式:youtube-dl -F https://domain/path

image

选择某一视频/音频格式,确认编号后进行下载:youtube-dl -f 编号 https://domain/path

image

结合ffmpeg可将两种格式的视频和音频合并为一个文件:

youtube-dl -f bestvideo+bestaudio https://domain/path
youtube-dl -f 136+140 https://domain/path

字幕下载

youtube-dl --write-sub https://domain/path

ffmpeg安装

方法一

apt install ffmpeg

方法二

wget http://www.ffmpeg.org/releases/ffmpeg-4.1.tar.gz
tar -zxvf ffmpeg-4.1.tar.gz
cd ffmpeg-4.1
./configure
make
make install

七、h5ai在线播放

Apache+php环境搭建

apt install apache2
apt install php
apt install libapache2-mod-php
apt install php-curl

安装 h5ai

wget https://release.larsjung.de/h5ai/h5ai-0.29.2.zip
unzip -zxvf h5ai-0.29.2.zip
cp -r _h5ai/ /var/www/html

验证

浏览器访问:http://IP_Address/_h5ai/public/index.php

初始密码为空
修改密码:_h5ai/private/conf/options.json

image

image

image

NO:表示需安装此部分环境

所需环境安装

Shell zip
Command line program zip available
apt install zip
PDF thumbsyes
Command line program convert available
apt install imagemagick
Image thumbsyes
PHP GD extension with JPEG support available

apt install php-gd
service apache2 restart

Private Cache directory
Web server has write access
Public Cache directory
Web server has write access

chmod 777 /var/www/html/_h5ai/private/cache
chmod 777 /var/www/html/_h5ai/public/cache

image

h5ai配置

默认主页:http://IP_Address/_h5ai/public/index.php

image

修改配置文件:/etc/apache2/mods-available/dir.conf,添加路径/_h5ai/public/index.php,重启Apache服务器sudo service apache2 restart

image

@AI0TSec AI0TSec changed the title VPN VPN+VPS+Shadowsocks+BBR+Aria2+AriaNg+youtube-dl+ffmpeg+h5ai Aug 5, 2019
@AI0TSec AI0TSec changed the title VPN+VPS+Shadowsocks+BBR+Aria2+AriaNg+youtube-dl+ffmpeg+h5ai VPN Aug 5, 2019
@AI0TSec AI0TSec closed this as completed Dec 2, 2019
@AI0TSec AI0TSec reopened this Dec 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant