https://www.ecoo.top

https://bbs.histb.com/
海纳思系统

第一部分代码整理

passwd root
passwd ubuntu

apt update
apt install nano


nano /etc/network/interfaces.d/eth0

pre-up ifconfig eth0 hw ether XX:22:6D:56:0A:XX  #改成自己的mac地址 改后可以方便的用路由器绑定IP

mkdir -p /mnt/sda1/share 
chmod -R 777 /mnt/sda1/share 



nano /etc/samba/smb.conf

[shares]
path = /mnt/sda1/share
read only = no
guest ok = yes
create mask = 0777
directory mask = 0777
browseable = yes

VI或VIM编辑
ESC 回车 
：wq  #保存

systemctl restart smbd      修改完成后需要重启 Samba 服务
smbpasswd -a ubuntu         修改内建 ubuntu 用户的密码（自定）



nano /usr/local/aria2/aria2.conf
/mnt/sda1/aria2

改 web界面广告
apt update
apt install nano



nano /var/www/html/index.html

去掉四行代码

安装 Docker 程序
apt update && apt install docker.io

1. 内置青龙面板的安装脚本
install-qinglong.sh
2. 内置了容器管理面板的安装脚本
install-portainer.sh
3. 内置了特斯拉监控程序的安装脚本
install-teslamate1.sh
4. 安装电影播放削刮器 (测试中)
Docker 很好用, 但并不是全部装上榨干就好, 而是适合自己用就好





内网穿透

docker run -d --device=/dev/net/tun --name zerotier-one --net=host --restart=always --cap-add=NET_ADMIN --cap-add=SYS_ADMIN -v /var/lib/zerotier-one:/var/lib/zerotier-one bltavares/zerotier:latest

 docker exec zerotier-one zerotier-cli join XXXXXXXXXXXXXXXXXXXXX


Aria2 直链下载
* 访问地址 http://IP/ariang
* 默认下载位置 /home/ubuntu/downloads
* 修改配置文件位置 /usr/local/aria2/aria2.conf
* 例如先在U盘建立一个文件夹 aria2
* 更新 Tracker 列表(提速): 终端执行 update-tracker.sh


小雅安装命令

bash -c "$(curl -sLk https://ddsrem.com/xiaoya_install.sh)" 



第一，32位token获取地址：
https://aliyuntoken.vercel.app/
https://alist.nn.ci/zh/guide/drivers/aliyundrive.html

第二 280位token（open token）获取地址：

https://alist.nn.ci/zh/guide/drivers/aliyundrive_open.html

第三 小雅缓存目录
https://www.alipan.com

单独安装阿里云盘清理守护：bash -c "$(curl -s https://xiaoyahelper.zngle.cf/aliyun_clear.sh | tail -n +2)" -s 3 -tg

清理工具运行时，占用过大导致系统崩了是不是考虑用Portainer调低它的运行内存或cpu使用率

小雅官方安装命令
bash -c "$(curl http://docker.xiaoya.pro/update_new.sh)" -s host

xiao挂alist配置
xiaoya 挂 alist V3

网址：
http://192.168.*.*:5678
例：http://192.168.5.5:5678

令牌一键获取
docker exec -i xiaoya sqlite3 data/data.db <<EOF
select value from x_setting_items where key = "token";
EOF


手机端 
nplayer 

webdav设置一下

电脑端
potplayer

webdav设置一下

电视端TVbox配置
http://192.168.5.5:5678/tvbox/my.json




