[Share Experiences] Deepin V23 去玲珑计划
Tofloor
poster avatar
deepin-superuser
deepin
2023-12-29 20:15
Author

Deepin V23 去玲珑计划

使用了一段时间 V23 版本,饱受玲珑应用的毒害,很多原来功能正常的应用上了玲珑就各种小问题,但是仓库里不提供 deb 版,所以打算在玲珑应用彻底稳定之前,先去除玲珑这个毒瘤。

目前本人使用的软件有音乐、影院、归档管理器、看图、邮箱、截图录屏、文本编辑器、文档查看器,本计划只针对这几个软件。

音乐

# 下载源码
git clone https://github.com/linuxdeepin/deepin-music.git --depth=1
cd deepin-music
# 安装依赖
sudo apt build-dep .
# 编译
dpkg-buildpackage -b -us -uc
# 卸载玲珑版
ll-cli uninstall org.deepin.music
# 安装 deb 版
sudo apt install ../deepin-music_7.0.3_amd64.deb

文本编辑器

# 下载源码
git clone https://github.com/linuxdeepin/deepin-editor.git --depth=1
cd deepin-editor
# 安装依赖
sudo apt build-dep .
# 编译
dpkg-buildpackage -b -us -uc
# 卸载玲珑版
ll-cli uninstall org.deepin.editor
# 安装 deb 版
sudo apt install ../deepin-editor_6.0.15_amd64.deb

影院

影院需要修改 control 文件中依赖版本

# 下载源码
git clone https://github.com/linuxdeepin/deepin-movie-reborn.git --depth=1
cd deepin-movie-reborn
# 修改依赖版本
# 修改 deepin-movie-reborn/debian/control 中 libavcodec60、libavformat60、libavutil58 为 libavcodec58、libavformat58、libavutil56
# 安装依赖
sudo apt build-dep .
# 编译
dpkg-buildpackage -b -us -uc
# 卸载玲珑版
ll-cli uninstall org.deepin.movie
# 安装 deb 版(xxx为版本号)
sudo apt install ../deepin-movie_xxx.deb ../libdmr_xxx.deb

看图

看图需要额外编译一下依赖包

# 下载源码
git clone https://github.com/linuxdeepin/deepin-ocr-plugin-manager.git --depth=1
cd deepin-ocr-plugin-manager
# 安装依赖
sudo apt build-dep .
# 编译
dpkg-buildpackage -b -us -uc
# 安装
sudo apt install ../libdeepin-ocr-plugin-manager-dev_1.0.0_amd64.deb ../libdeepin-ocr-plugin-manager_1.0.0_amd64.deb


# 下载源码
git clone https://github.com/linuxdeepin/deepin-image-viewer.git --depth=1
cd deepin-image-viewer
# 安装依赖
sudo apt build-dep .
# 编译
dpkg-buildpackage -b -us -uc
# 卸载玲珑版
ll-cli uninstall org.deepin.image.viewer
# 安装 deb 版
sudo apt install ../deepin-image-viewer_6.0.3_amd64.deb
# 删除玲珑中目目录
sudo rm -rf /persistent/linglong/entries/share/deepin-ocr-plugin-manager

文档查看器

文档查看器编译时测试可能报错,这里先去掉测试

# 下载源码
git clone https://github.com/linuxdeepin/deepin-reader.git --depth=1
cd deepin-reader
# 安装依赖
sudo apt build-dep .

# 移除测试代码
# 打开 deepin-reader/tests/tests.pro 文件,找到以下代码,删除 main.cpp \ 后边的内容
# SOURCES += \
#     main.cpp \
# ============下边开始删除===========
#     ut_mainwindow.cpp \
#     ut_common.cpp \
#     ut_application.cpp \
#     ............
#     uiframe/ut_centraldocpage.cpp \
#     uiframe/ut_docsheet.cpp \
#     uiframe/ut_doctabbar.cpp
# ============删除到这里===========


# 编译
dpkg-buildpackage -b -us -uc
# 卸载玲珑版
ll-cli uninstall org.deepin.reader
# 安装 deb 版
sudo apt install ../deepin-reader_6.0.7_amd64.deb

归档管理器

归档管理器需要修改部分代码

# 下载源码
git clone https://github.com/linuxdeepin/deepin-compressor.git --depth=1
cd deepin-compressor
# 安装依赖
sudo apt build-dep .

# 修改代码,参考下边链接
# https://github.com/linuxdeepin/deepin-compressor/pull/156/files

# 编译
dpkg-buildpackage -b -us -uc
# 卸载玲珑版
ll-cli uninstall org.deepin.compressor
# 安装 deb 版
sudo apt install ../deepin-compressor_6.0.0_amd64.deb

截图录屏

这个比较特殊,opencv 安装时有依赖问题,需要重新编译

# 下载源码
apt source libopencv-dev
cd opencv_4.5.4+dfsg.1-1+dde
# 安装依赖
sudo apt build-dep .
# 编译
dpkg-buildpackage -b -us -uc
# 安装
sudo apt install ../libopencv-imgcodecs4.5_4.5.4+dfsg.1-1+dde_amd64.deb


# 下载源码
git clone https://github.com/linuxdeepin/deepin-screen-recorder.git --depth=1
cd deepin-screen-recorder
# 安装依赖
sudo apt build-dep .
# 编译
dpkg-buildpackage -b -us -uc

# 有可能需要将 deepin-screen-recorder/src/Makefile 中 std=gnu-11 替换为 std=gnu-14

dpkg-buildpackage -b -us -uc -nc
# 卸载玲珑版
ll-cli uninstall org.deepin.screen-recorder
# 安装 deb 版
sudo apt install ../deepin-screen-recorder_6.0.1_amd64.deb

邮箱

邮箱没有源码,需要复制文件到指定目录

sudo cp -r /persistent/linglong/layers/org.deepin.mail/5.4.28/x86_64/files/bin/deepin-mail /usr/bin/deepin-mail
sudo cp -r /persistent/linglong/layers/org.deepin.mail/5.4.28/x86_64/files/share/applications/* /usr/share/applications/
sudo cp -r /persistent/linglong/layers/org.deepin.mail/5.4.28/x86_64/files/share/deepin-mail/* /usr/share/deepin-mail/
sudo cp -r /persistent/linglong/layers/org.deepin.mail/5.4.28/x86_64/entries/deepin-manual/* /usr/share/deepin-manual/ 
sudo cp -r /persistent/linglong/layers/org.deepin.mail/5.4.28/x86_64/entries/icons/* /usr/share/icons/

cp -r /home/cloud/.linglong/org.deepin.mail/share/deepin/deepin-mail/* ~/.local/share/deepin/deepin-mail/

最后卸载玲珑

sudo apt purge linglong*
sudo rm -rf /persistent
sudo rm -rf ~/.linglong
Reply Favorite View the author
All Replies
1 / 2
To page
兆兆嘟嘟嘟
deepin
2023-12-29 20:41
#1

V23仓库里其实有这些软件的deb包,只是系统没预装而已。

Reply View the author
fslong
deepin beta test group
2023-12-29 21:00
#2
兆兆嘟嘟嘟

V23仓库里其实有这些软件的deb包,只是系统没预装而已。

这些包是老版的,玲珑是新版的软件。

Reply View the author
deepin-superuser
deepin
2023-12-29 21:02
#3
fslong

这些包是老版的,玲珑是新版的软件。

没有啊 github上代码都是最新的

Reply View the author
deepin-superuser
deepin
2023-12-29 21:02
#4
兆兆嘟嘟嘟

V23仓库里其实有这些软件的deb包,只是系统没预装而已。

仓库里的都是老版的 还不一定能安装成功

Reply View the author
阿尼樱奈奈
Moderator
2023-12-29 21:06
#5
It has been deleted!
兆兆嘟嘟嘟
deepin
2023-12-29 21:21
#6
deepin-superuser

仓库里的都是老版的 还不一定能安装成功

意思是V23仓库更新得比玲珑慢?

Reply View the author
deepin-superuser
deepin
2023-12-29 21:32
#7
兆兆嘟嘟嘟

意思是V23仓库更新得比玲珑慢?

不是更新慢 是直接停更了

Reply View the author
神末shenmo
Moderator
Spark-App
2023-12-29 21:35
#8
deepin-superuser

不是更新慢 是直接停更了

Reply View the author
deepin-superuser
deepin
2023-12-30 01:19
#9
神末shenmo

是放好文件后执行 update.sh 吗?

Reply View the author
晚秋(lateautumn)
Moderator
2023-12-30 01:46
#10

这可不是好经验,因为玲珑才是未来joy

Reply View the author
buyike
Moderator
2023-12-30 01:56
#11
晚秋(lateautumn)

这可不是好经验,因为玲珑才是未来joy

但现在玲珑不稳定了呀,虽然我在用,也会一直用,但修补速度过慢了。

Reply View the author
青稚°
Moderator
2023-12-30 01:59
#12

编译好后的deb可以发布到论坛的,方便不想整教程的坛友直接安装哦。

yeah

Reply View the author
神末shenmo
Moderator
Spark-App
2023-12-30 02:39
#13
deepin-superuser

是放好文件后执行 update.sh 吗?

是的

Reply View the author
兆兆嘟嘟嘟
deepin
2023-12-30 03:52
#14
deepin-superuser

不是更新慢 是直接停更了

不太对劲,一些deb发行版的社区DDE版本(如DebianDDEUbuntuDDE)安装的你帖子里说的那几个软件都是deb包,难道那些直接停更?

Reply View the author
deepin-superuser
deepin
2023-12-30 08:49
#15
兆兆嘟嘟嘟

不太对劲,一些deb发行版的社区DDE版本(如DebianDDEUbuntuDDE)安装的你帖子里说的那几个软件都是deb包,难道那些直接停更?

代码又没停更 自己编译的呗

我说的停更是仓库里不更新 deb 包了

Reply View the author
方老四
deepin
2023-12-31 00:34
#16

玲珑是统信的战略路线,deb已经不是重点了,有用的deb包都会被转成玲珑,因为玲珑可以解决deb包的所有缺陷,还可以对应用的行为权限进行控制。

Reply View the author
liwl
deepin
2024-01-03 13:11
#17

好像把玲珑环境卸载,然后重新安装就可以了,安装以后就是老版本

Reply View the author
liwl
deepin
2024-01-03 13:11
#18
兆兆嘟嘟嘟

V23仓库里其实有这些软件的deb包,只是系统没预装而已。

好像是这样,我今天卸载来玲珑环境,然后发现原创应用没有了,重新安装,就是老版本的

Reply View the author
deepin-superuser
deepin
2024-01-03 13:49
#19
liwl

好像是这样,我今天卸载来玲珑环境,然后发现原创应用没有了,重新安装,就是老版本的

目前遇到的问题就是截图录屏要编译 opencv 邮箱没有源码 其他的自己编译都能解决

Reply View the author
deepin-superuser
deepin
2024-01-03 13:51
#20
liwl

好像把玲珑环境卸载,然后重新安装就可以了,安装以后就是老版本

我喜欢追新joy

Reply View the author
1 / 2
To page