当前位置:网站首页>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
边栏推荐
- 仿牛客论坛项目梳理
- 多线程间的通信方式你知道几种?
- 编写 BOLL 心得体会
- Utilities of Ruineng Micrometer Chip RN2026
- docker+bridge+redis master-slave+sentry mode
- 4路双向HDMI综合业务高清视频光端机8路HDMI高清视频光端机
- Gigabit 2 X light 8 electricity management industrial Ethernet switches WEB management - a key Ring Ring net switch
- FPGA parsing B code----serial 3
- 基本表单验证流程
- 2 Gigabit Optical + 6 Gigabit Electric Rail Type Managed Industrial Ethernet Switch Supports X-Ring Redundant Ring One-key Ring Switch
猜你喜欢
随机推荐
[Original] Start the XPS/OXPS reader that comes with Windows 10
docker+bridge+redis master-slave+sentry mode
【医保科普】维护医保基金安全,我们可以这样做
yum 仅下载包
What is the source of flinkcdc consuming mysql binlog data without sqltype=delete
C语言--环形缓存区
大佬们,读取mysql300万单表要很长时间,有什么参数可以优惠,或者有什么办法可以快点
View mysql deadlock syntax
STM8S105k4t6c---------------Light up LED
Good bosses, please ask the flink CDC oracle to Doris, found that the CPU is unusual, a run down
DIY电工维修如何拆卸和安装开关面板插座
系统太多,多账号互通如何实现?
【学习笔记之菜Dog学C】动态内存管理
《nlp入门+实战:第八章:使用Pytorch实现手写数字识别》
Asynchronous programming solution Generator generator function, iterator iterator, async/await, Promise
typescript type 和 interface 的区别
共n级台阶,每次可以上1级或2级台阶,有多少种上法?
Simple record of Flink principle flow chart
STM8S105K4T6------串口发送和接收
小程序+新零售,玩转行业新玩法!







