找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 24573|回复: 33

玩客云armbian5.67手动安装qb,tr,samba,FTP实现文件下载与共享

  [复制链接]
发表于 2021-4-16 14:48 | 显示全部楼层 |阅读模式
本帖最后由 lanlandezei 于 2021-4-16 16:57 编辑

1.环境

刷了amrbian5.67的玩客云


之前也刷过高内核的版本,不过很不稳定,不定时死机。

5.67刷起来最简单,千兆口,跑起来最稳定不用担心死机问题。通过QB下载PT资源也能跑到25mb/s 200M宽带 不过CPU负载接近满了。
通过Zerotier内网穿透,在外也能随便访问家里的玩客云资源,当个小NAS也够用了。Zerotier教程网上挺多的可以去搜下

最终在这台盒子上装了Zerotier实现内网穿透Xray实现XX上网
File Browser文件管理器:文件下载
samba PURE-FTP文件共享与下载
qbittorrent与transmission BT PT下载


只要是个LINUX系统的都可以用此方法安装这些软件

贴个清华软件源 vim /etc/apt/sources.list
  1. deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main contrib non-free
  2. deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main contrib non-free
  3. deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main contrib non-free
  4. deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main contrib non-free
  5. deb https://mirrors.tuna.tsinghua.edu.cn/debian-security/ stretch/updates main contrib non-free
  6. deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security/ stretch/updates main contrib non-free
复制代码



改个时区
  1. timedatectl set-timezone Asia/Shanghai
复制代码


qbittorrent安装
1.添加软件源5.67是基于 debian9的
因为denbian9软件源自带的qbittorrent市3.几的很老的版本,我们要装的是4.25版本。
进入debian官方packages:https://packages.debian.org/
划到最下面 搜索软件包的内容 搜索 qbittorrent-nox
发行版选择testing

硬件架构选择:根据自己设备CPU选择: 玩客云选armhf


搜索完点击软件包

划到最下面选择对应的CPU架构

进入如下页面根据提示

我们选择一个亚洲的站点

最终打开 vi/etc/apt/sources.list 文件
添加以下软件源,保存退出
上面那些图片流程其实都可以略过 直接添加以下软件源就可以了
  1. deb http://ftp.cn.debian.org/debian bullseye main
复制代码

2.安装执行命令更新软件源
  1. apt update
复制代码


执行apt show qbittorrent-nox确定出现的为4.2.5版本就可以安装了
  1. root@debian:~# apt show qbittorrent-nox
  2. Package: qbittorrent-nox
  3. Version: 4.2.5-0.1
复制代码
安装

  1. apt install qbittorrent-nox
复制代码
启动命令
  1. qbittorrent-nox
复制代码

******** 信息 ********
欲通过 Web UI 控制 qBittorrent,请访问http://localhost:8080
Web UI 管理员的用户名是:admin
Web UI 管理员的密码仍为默认密码:adminadmin
存在安全风险,请考虑在程序设置中更改密码。


3.配置开机自启动服务
使用命令启动,终端一关服务就停止了,很不方便。所以要配置一个开机自启动服务


新建一个文件
  1. vim /etc/systemd/system/qbittorrent.service
复制代码

写入以下内容

  1. [Unit]
  2. Description=qbittorrent torrent server

  3. [Service]
  4. User=root
  5. ExecStart=/usr/bin/qbittorrent-nox
  6. Restart=on-abort

  7. [Install]
  8. WantedBy=multi-user.target
复制代码
重新加载单元

  1. systemctl daemon-reload
复制代码
设置成开机自启动

  1. systemctl enable qbittorrent     #开启自启
  2. systemctl start qbittorrent #开启qb
  3. systemctl stop qbittorrent #关闭qb
  4. systemctl restart qbittorrent #重启qb
复制代码


transmission安装
1.安装
  1. apt install transmission-daemon
复制代码
访问地址:IP:9091
打开浏览器访问错误的话****修改以下选项
打开配置文件


  1. vim /etc/transmission-daemon/settings.json
复制代码
找到以下两项其中一项进行修改
  1. "rpc-whitelist": "*", #输入* 所有IP都可以访问,或者自定义。
  2. 或者
  3. "rpc-whitelist-enabled": false, #关闭白名单功能
复制代码
2.中文面板
项目地址[color=var(--link-color)]https://github.com/ronggang/transmission-web-control

下载安装脚本
  1. wget https://github.com/ronggang/transmission-web-control/raw/master/release/install-tr-control-cn.sh
复制代码
执行安装 输入 1 安装

  1. bash install-tr-control-cn.sh
复制代码
完成后重启
  1. systemctl restart transmission-daemon
复制代码



4.Samba安装
  1. apt install samba
复制代码


创建测试用户
  1. useradd test
复制代码
设置用户密码
  1. passwd test
复制代码
将test用户加入Samba用户数据库
  1. smbpasswd -a test
复制代码
打开配置文件
  1. vim /etc/samba/smb.conf
复制代码
在下面添加需要账号密码登陆的配置
  1. [test]
  2.    comment = test share dir
  3.    browsable = yes
  4.    path = /dir    #共享目录
  5.    public = yes  #公开
  6.    valid users = test #用户名
  7.    read only =yes  #只读---只读和可写二选一
  8.    writable = yes  #可写---只读和可写二选一      
  9.    create mask = 0700
  10.    directory mask = 0700
复制代码
匿名访问
  1. [anonymous]
  2.    path = /dir
  3.    force group = test
  4.    create mask = 0700
  5.    directory mask = 0700
  6.    browsable =yes  
  7.    read only =yes  #只读
  8.    guest ok = yes  #来宾访问
复制代码
保存重启
  1. systemctl restart smbd
复制代码


5.Pure-ftp 安装安装
  1. apt install pure-ftpd
复制代码
配置文件路径
  1. vim /etc/pure-ftpd/pure-ftpd.conf
复制代码
创建测试用户
  1. useradd test
复制代码
设置用户密码
  1. passwd test
复制代码
创建FPT用户
  1. pure-pw useradd test2 -u test -d /xxx
复制代码
-u:选项将虚拟用户test2与系统用户test关联在一起,即使用test2账号登录FTP后,会以test的身份来读取和下载文件。
-d:选项后面的目录为test2账户的家目录,这样可以使test2只能访问其家目录/xxx
test
创建用户信息数据库文件
  1. pure-pw mkdb
复制代码
查看用户列表
  1. pure-pw list
  2. test2                /xxx/./
复制代码
查看用户信息
  1. pure-pw show test2
复制代码
重启服务

  1. systemctl restart pure-ftpd
复制代码

都装好好需要测试调试,还有接硬盘需要挂载,百度一下挂载教程



本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

评分

参与人数 1恩山币 +1 收起 理由
loi2404 + 1 vim 改nano

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
发表于 2021-4-16 15:06 | 显示全部楼层
方法共享一下

点评

重新发布了  详情 回复 发表于 2021-4-16 16:12
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2021-4-16 16:12 | 显示全部楼层

重新发布了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-4-17 10:12 | 显示全部楼层
肯定还跑了其它啥。玩客云不止25mb速度。。。

点评

usb2.0 200m的宽带差不多也就这样了。主要事情cpu负载接近满了,毕竟性能摆在那。  详情 回复 发表于 2021-4-17 11:55
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2021-4-17 11:55 | 显示全部楼层
尉迟申棠 发表于 2021-4-17 10:12
肯定还跑了其它啥。玩客云不止25mb速度。。。

usb2.0 200m的宽带差不多也就这样了。主要事情cpu负载接近满了,毕竟性能摆在那。

点评

玩客云不止这点性能。我的玩客云,局域网samba能跑 40 ~ 50mb。aria2也不止跑25mb。内网跑 iperf3测试。4线程测速,都能达到满速 1gb 。  详情 回复 发表于 2021-4-17 23:35
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-4-17 23:35 | 显示全部楼层
lanlandezei 发表于 2021-4-17 11:55
usb2.0 200m的宽带差不多也就这样了。主要事情cpu负载接近满了,毕竟性能摆在那。

玩客云不止这点性能。我的玩客云,局域网samba能跑 40 ~ 50mb。aria2也不止跑25mb。内网跑 iperf3测试。4线程测速,都能达到满速 1gb 。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2021-4-18 10:41 来自手机 | 显示全部楼层
就200m宽带,跑下载不是局域网。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-6-23 15:54 来自手机 | 显示全部楼层
Zerotier 安装 5.67 直刷版 提示报错 应该是啥依赖包 说不是2.28版.
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-6-23 15:54 来自手机 | 显示全部楼层
5.90版本正常安装……怎么解  有么有遇到的……
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-6-24 06:20 | 显示全部楼层
确实很稳定,大佬能不能想办法装个docker啊,我试了下没成功
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-8-3 19:34 | 显示全部楼层
ftp装了 无法访问
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-8-24 13:46 | 显示全部楼层
慢慢的干货
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-8-24 22:55 | 显示全部楼层
牛逼啊,大佬
是否可以提供下你刷的amrbian5.67呢
我没找到比较干净的amrbian5.67,能有简单教程更好,感谢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-8-25 08:58 | 显示全部楼层
谢谢大佬,空的时候折腾看看
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-10-9 10:47 来自手机 | 显示全部楼层
Samba速率能到多少,为什么我刷了5.9部署的samba只有350kbps?

点评

我也遇到这个问题了,请问你搞定了吗?  详情 回复 发表于 2023-4-7 11:50
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-20 12:29

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表