当前位置:网站首页>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
边栏推荐
- 基地址:环境变量
- 倒计时2天,“文化数字化战略新型基础设施暨文化艺术链生态建设发布会”启幕在即
- flinkcdc 消费 mysql binlog 没有 sqltype=delete 的数据是什么原
- keytool命令
- pytorch applied to MNIST handwritten font recognition
- 出现504怎么办?由于服务器更新导致的博客报504错误[详细记录]
- docker+网桥+redis主从+哨兵模式
- Development of Taurus. MVC WebAPI introductory tutorial 1: download environment configuration and operation framework (including series directory).
- [Playwright Test Tutorial] 5 minutes to get started
- 融云「音视频架构实践」技术专场【内含完整PPT】
猜你喜欢

tkmapper的crud示例:

pytorch应用于MNIST手写字体识别

There are too many systems, how to realize multi-account interworking?

In the season of going overseas, the localization of Internet tips for going overseas

Y86. Chapter iv Prometheus giant monitoring system and the actual combat, Prometheus storage (17)

系统太多,多账号互通如何实现?

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

4路双向HDMI综合业务高清视频光端机8路HDMI高清视频光端机

MySQL高级-读写分离-分库分表

逻辑漏洞----其他类型
随机推荐
C# 构造函数业务场景测试项目
【翻译】Terraform和Kubernetes的交集
【原创】启动Win10自带的XPS/OXPS阅读器
Rongyun "Audio and Video Architecture Practice" technical session [complete PPT included]
大佬们,读取mysql300万单表要很长时间,有什么参数可以优惠,或者有什么办法可以快点
STM8S project creation (STVD creation) --- use COSMIC to create a C language project
esp8266-01s刷固件步骤
SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropri
View mysql deadlock syntax
[Study Notes Dish Dog Learning C] Dynamic Memory Management
In the season of going overseas, the localization of Internet tips for going overseas
docker+bridge+redis master-slave+sentry mode
Why use Selenium for automated testing
Basic form validation process
Polygon zkEVM network node
FPGA parsing B code----serial 3
如何读取 resources 目录下的文件路径?
董明珠直播时冷脸离场,员工频犯低级错误,自家产品没人能弄明白
QNX Hypervisor 2.2用户手册]10.2 vdev 8259
数据湖(二十):Flink兼容Iceberg目前不足和Iceberg与Hudi对比