紫鼠小窝 - alist
type: channel
link: https://puguying.cn/tag/alist/
items: 安卓旧手机利用，linuxdeploy使用教程
items: 搭建alist配合aria2实现离线下载

安卓旧手机利用，linuxdeploy使用教程
type: item
date: 2023-03-07T00:59:00+08:00
description: 安装linuxdeploy下载地址作者镜像官方github配置linuxdeploy我选择的是debian，安装源使用的华为云https://mirrors.huaweicloud.com/debian/配置linux修改ssh秘钥和端口bash <(curl -fsSL wj.puguying.cn/key.sh) -p 22 -g xiayikechun -d注:-p为修改端口 -g为github用户秘钥 -d为关闭密码登录安装ddns动态域名解析mkdir /home/ddns wget https://jb.puguying.cn/ddns/ddns && chmod +x ddns && ./ddns -s install安装alist网盘目录使用官网脚本一键安装mkdir /home/alist # 安装 curl -fsSL "https://alist.nn.ci/v3.sh" | bash -s install /home/alist # 升级 curl -fsSL "https://alist.nn.ci/v3.sh" | bash -s update /home/alist # 卸载 curl -fsSL "https://alist.nn.ci/v3.sh" | bash -s uninstall /home/alist安装message-pusher消息推送mkdir /home/message wget wj.puguying.cn/message-pusher && chmod u+x message-pusher安装frpmkdir /home/frp wget https://wj.puguying.cn/frpc && chmod +x frpc配置frpc.ini[common] server_addr = frps ip server_port = frps 端口 log_file = /home/frp/frpc.log log_level = info log_max_days = 3 token = 密码 login_fail_exit = false [jg-http-al] privilege_mode = true type = http local_ip = 127.0.0.1 local_port = 5242 custom_domains = al.puguying.ml use_encryption = false use_compression = true [jg-hrrps-al] privilege_mode = true type = https local_ip = 127.0.0.1 local_port = 5243 custom_domains = al.puguying.ml use_encryption = false use_compression = true [jg-http-ddns] privilege_mode = true type = http local_ip = 127.0.0.1 local_port = 9874 custom_domains = ddns.puguying.ml use_encryption = false use_compression = true [jg-hrrps-ddns] privilege_mode = true type = https local_ip = 127.0.0.1 local_port = 9875 custom_domains = ddns.puguying.ml use_encryption = false use_compression = true [jg-http-ql] privilege_mode = true type = http local_ip = 127.0.0.1 local_port = 5701 custom_domains = ql.puguying.ml use_encryption = false use_compression = true [jg-hrrps-ql] privilege_mode = true type = https local_ip = 127.0.0.1 local_port = 5702 custom_domains = ql.puguying.ml use_encryption = false use_compression = true [jg-http-sp] privilege_mode = true type = http local_ip = 127.0.0.1 local_port = 4002 c…

搭建alist配合aria2实现离线下载
type: item
date: 2022-12-16T21:01:00+08:00
description: 1.aria2搭建apt install wget curl ca-certificates wget -N git.io/aria2.sh && chmod +x aria2.sh ./aria2.sh按照提示选择就可以了2.安装alist一键安装参考官网我目前使用的是手机搭建的不能使用systemd只能使用init.d代替了下载程序下载地址wget 文件链接 tar -zxvf 文件名 chmod +x alist ./alist server #记录用户密码后，按ctrl➕c退出在etc/init.d目录创建文件alist，填入下边的代码#!/bin/sh # For RedHat and cousins: # chkconfig: - 99 01 # alist # processname: /root/alist ### BEGIN INIT INFO # Provides: /root/alist # Required-Start: # Required-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: alist # Description: alist ### END INIT INFO cmd="/root/alist "server"" name=$(basename $(readlink -f $0)) pid_file="/var/run/$name.pid" stdout_log="/var/log/$name.log" stderr_log="/var/log/$name.err" [ -e /etc/sysconfig/$name ] && . /etc/sysconfig/$name get_pid() { cat "$pid_file" } is_running() { [ -f "$pid_file" ] && ps $(get_pid) > /dev/null 2>&1 } case "$1" in start) if is_running; then echo "Already started" else echo "Starting $name" $cmd >> "$stdout_log" 2>> "$stderr_log" & echo $! > "$pid_file" if ! is_running; then echo "Unable to start, see $stdout_log and $stderr_log" exit 1 fi fi ;; stop) if is_running; then echo -n "Stopping $name.." kill $(get_pid) for i in $(seq 1 10) do if ! is_running; then break fi echo -n "." sleep 1 done echo if is_running; then echo "Not stopped; may still be shutting down or shutdown may have failed" exit 1 else echo "Stopped" if [ -f "$pid_file" ]; then rm "$pid_file" fi fi else echo "Not running" fi ;; restart) $0 stop if is_running; then echo "Unable to stop, will not attempt to start" exit 1 fi $0 start ;; status) if is_running; then echo "Running" else echo "Stopped" exit 1 fi ;; *) echo "Usage: $0 {start|stop|restart|status}" exit 1 ;; esac exit 0如果文件不在root目录，记得修改里边的路径然后执行cd /etc/init.d sudo update-rc.d alist defaults可以参考这个文章 CSDN