当前位置:网站首页>Based on the statistical QDirStat Qt directory
Based on the statistical QDirStat Qt directory
2022-08-04 03:06:00 【Yangpu Lao Su】

Whatever it says is free,It is estimated that this month will be indispensable

looks cheap,But waste your voice

什么是 QDirStat ?
QDirStat是一个图形应用程序,Used to show where your disk space is going and help you clean it up.
说实话,Lao Su doesn't like this kind of belt very much vnc、rdp 的应用,比较耗资源,It feels like running a virtual machine,The key is that the function is still single.
安装
在群晖上以 Docker 方式安装.
在注册表中搜索 qdirstat ,选择第二个 linuxserver/qdirstat,版本选择 latest.
Note the next version:1.8.20220430

卷
在 docker 文件夹中,创建一个新文件夹,将其命名为 qdirstat,并在其中建两个子文件夹,分别是 config 和 data
| 文件夹 | 装载路径 | 说明 |
|---|---|---|
docker/qdirstat/config | /config | 存放设置 |
docker/qdirstat/data | /data | The data whose disk usage information is to be analyzed |
/dataLimited by the graphical interface,The system directory cannot be selected,If you need to map the system's directory,Can be run in command line mode

端口
本地端口不冲突就行,不确定的话可以用命令查一下
# 查看端口占用
netstat -tunlp | grep 端口号
| 本地端口 | 容器端口 |
|---|---|
5030 | 3000 |
3389 | 3389 |

如果只是在 Web 上使用,也可以删掉 3389 端口
3389是RDPThe default port for the client;

环境
| 可变 | 值 |
|---|---|
TZ | 设为 Asia/Shanghai |
PUID | 设为 1000 |
PGID | 设为 1000 |

命令行安装
如果你熟悉命令行,可能用 docker cli 更快捷
/dataIt can also point to Synology's system directory,To prevent accidental deletion of files,It is recommended to add read-only after it,变为/path/to/data:/data:ro
# 新建文件夹 qdirstat 和 子目录
mkdir -p /volume2/docker/qdirstat/{
config,data}
# 进入 qdirstat 目录
cd /volume2/docker/qdirstat
# 运行容器
docker run -d \
--restart unless-stopped \
--name qdirstat \
-p 5030:3000 \
-v $(pwd)/config:/config \
-v $(pwd)/data:/data \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Asia/Shanghai \
linuxserver/qdirstat:latest
也可以用 docker-compose 安装,将下面的内容保存为 docker-compose 文件
version: "2.1"
services:
qdirstat:
image: linuxserver/qdirstat:latest
container_name: qdirstat
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Shanghai
volumes:
- /volume2/docker/qdirstat/config:/config
- /volume2/docker/qdirstat/data:/data
ports:
- 5030:3000
restart: unless-stopped
然后执行下面的命令,在 portainer 中执行也是可以的
# 进入目录
cd /volume2/docker/qdirstat
# 将 docker-compose.yml 放入当前目录
# 一键启动
docker-compose up -d
运行
在浏览器中输入 http://群晖IP:5030 就能看到主界面,But dark,There is only a dot in the middle on the left

鼠标右键的菜单,xtem 和 XFCE Terminal Both open the terminal

Choose rationally QdirStat 会出现界面,But actually nothing,Lao Su once suspected that there was not enough memory,但实际上不是.
Executing it in the terminal will prompt an error
qdirstat : error while loading shared libraries : libQt5Core.so.5 : cannot open shared object file : No such file or directory

问题处理
通过查阅资料,Lao Su found a solution,But the reason for the emergence of Synology is not clear,But Lao Su doubted it would still be DSM 6.1.7-15284 The kernel version is too low
# 升级源
sudo apt update -y
# 安装 strip
sudo apt install -y binutils
# 修改 ELF section
sudo strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
Copy and paste the above content to the location in the following image,Then paste into the terminal again

After the execution is completed in sequence,再执行 qdirstat 就能看到界面了

目录的使用情况

参考文档
shundhammer/qdirstat: QDirStat - Qt-based directory statistics (KDirStat without any KDE - from the original KDirStat author)
地址:https://github.com/shundhammer/qdirstat
Docker Hub
地址:https://hub.docker.com/r/linuxserver/qdirstat
边栏推荐
猜你喜欢

瑞能微计量芯片RN2026的实用程序

如何在MySQL中的数据库下删除所有的表

Detailed analysis of scaffolding content

Mini program + new retail, play the new way of playing in the industry!

2022年最新海南建筑八大员(材料员)模拟考试试题及答案

数据安全峰会2022 | 美创DSM获颁“数据安全产品能力验证计划”评测证书

In a more general sense, calculating the displacement distance and assumptions

从图文展示到以云为核,第五代验证码独有的策略情报能力

案例 | 重庆银行流动数据安全挑战及应对实践

ant-design的Select组件采用自定义后缀图标(suffixIcon属性)时,点击该自定义图标没有反应,不会展示下拉菜单的问题
随机推荐
TOML配置文件格式,YAML最有力的竞争者
[QNX Hypervisor 2.2 User Manual] 10.3 vdev gic
2022年最新海南建筑八大员(材料员)模拟考试试题及答案
Returns the maximum number of palindromes in a string
函数,递归以及dom简单操作
QNX Hypervisor 2.2用户手册]10.2 vdev 8259
Pine脚本 | 如何显示和排版绘图开关?
new Date将字符串转化成日期格式 兼容IE,ie8如何通过new Date将字符串转化成日期格式,js中如何进行字符串替换, replace() 方法详解
y86.第四章 Prometheus大厂监控体系及实战 -- prometheus存储(十七)
脚手架内容详解分析
STM32-遥感数据处理
【指针内功修炼】深度剖析指针笔试题(三)
LeetCode每日一题(2285. Maximum Total Importance of Roads)
【原创】启动Win10自带的XPS/OXPS阅读器
MySQL查询优化与调优
Basic form validation process
0.1 前言
【项目实现】Boost搜索引擎
如何读取 resources 目录下的文件路径?
[QNX Hypervisor 2.2用户手册]10.3 vdev gic