惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Microsoft Azure Blog
Microsoft Azure Blog
Google Online Security Blog
Google Online Security Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Simon Willison's Weblog
Simon Willison's Weblog
T
Threat Research - Cisco Blogs
C
CXSECURITY Database RSS Feed - CXSecurity.com
L
Lohrmann on Cybersecurity
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Forbes - Security
Forbes - Security
P
Palo Alto Networks Blog
Schneier on Security
Schneier on Security
S
Schneier on Security
T
Tor Project blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
WordPress大学
WordPress大学
The Hacker News
The Hacker News
Hacker News - Newest:
Hacker News - Newest: "LLM"
罗磊的独立博客
Application and Cybersecurity Blog
Application and Cybersecurity Blog
F
Fortinet All Blogs
博客园 - 三生石上(FineUI控件)
小众软件
小众软件
C
Check Point Blog
Stack Overflow Blog
Stack Overflow Blog
Blog — PlanetScale
Blog — PlanetScale
雷峰网
雷峰网
S
Security @ Cisco Blogs
PCI Perspectives
PCI Perspectives
Spread Privacy
Spread Privacy
W
WeLiveSecurity
SecWiki News
SecWiki News
A
About on SuperTechFans
H
Help Net Security
博客园 - 司徒正美
Recent Commits to openclaw:main
Recent Commits to openclaw:main
爱范儿
爱范儿
S
Securelist
M
MIT News - Artificial intelligence
云风的 BLOG
云风的 BLOG
月光博客
月光博客
Jina AI
Jina AI
博客园 - 叶小钗
Vercel News
Vercel News
阮一峰的网络日志
阮一峰的网络日志
Recent Announcements
Recent Announcements
S
Secure Thoughts
The Cloudflare Blog
美团技术团队
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

mephisto.cc

修复rime-ice无法弹出候选框的问题 开机滚动字体显示优化 个人网站安全防护 树莓派上部署Vaultwarden 使用goaccess实时分析Caddy日志 个人网站监控 Hugo全站AVIF记 Linux下尝试使用Godot开发小游戏 Arch linux dae 透明代理 Airflow接管galler-dl下载任务 如何使用gallery-dl批量下载图像 Arch核显下如何愉快玩Dota2和CS2 Arch/labwc 环境网络相关设置 Rime添加dota2词库 Arch 重装记录 Supertuxkart iOS版终于发布了 打造自己的流媒体音乐服务 剪切板管理工具clipcat推荐 MangoHud性能监控 微信小程序开发记 Rofi试用 解决Arch下VSCode无法输入中文的问题 独立窗口管理器下无法录屏问题处理 上海市二手房成交数据监控 OpenLDAP监控 Arch linux如何顺畅连接蓝牙设备 使用Git和Ansible管理配置文件 Arch Linux SSL VPN 客户端配置 简单获取celery任务实时结果 Arch linux下iNode客户端的安装和使用方法 券商费率调整记 迷你主机组装记 Labwc更换定制皮肤 树莓派跑分流代理 实用自动代理配置示例 九年老鼠标复活记 Openvpn示例 Mac下如何旋转webp图片 如何隐藏Vscode中Markdown PDF插件的头部内容 解决Linux下网络配置无法变更保存的问题 labwc环境启用wlogout Ubuntu下新官方微信尝鲜 简单检测用户是否开启广告屏蔽 Atuin ZFS下卡顿问题解决 Wine安装64位微信 Fish 和 Atuin使用记 Fastapi简单实现临时下载链接 Fastapi微信公众号开发简要 Hugo根据语种展示不同内容 如何修复Waybar微信图标错误 信封加密简要 Linux环境下维护公众号记录 快速隐藏和呼出终端 Wayland环境自动切换壁纸 SuperTuxKart 试玩 简单抓取雪球股票快讯 为什么你的kill命令不能列出信号表 Wine安装微信保姆教程 Hysteria科学上网简要 Ubuntu 23.10 钉钉无法启动解决方法 网站导航栏防止插入Adsense自动广告 Linux环境按键检测 Hugo文末添加最后修改时间 Wayland环境ksnip无法复制问题解决 我眼中的股票市场 Caddy简单图片防盗链 greetd和regreet使用教程 Wayland环境下截图加后期修改 Wayland 环境下gif录屏 Firefox的一些有趣功能 Ubuntu 切换系统语言 Firefox 标题栏高度调整 网站添加回到顶部功能 Hugo自定义字体 Labwc 便捷配置 Wofi使用教程 窗口管理器labwc使用记 文件共享软件Dufs推荐 Hugo静态站点接入Adsense广告 Fcitx5配置详解 Ubuntu安装chrome的方法总结 一种Xterm.js的全屏方案 Google网址收录api Python示例 手机听离线音乐 Snipe it资产导入 应用启动器yofi使用配置 Snipe it资产管理系统安装使用 Ubuntu开机启动加速 Vue3 vite TypeScript跨域等相关设置 Ubuntu手动升级Libreoffice Ubuntu设置alacritty为默认终端 简体文章批量转换为繁体 使用Inkscape调整svg图片大小 实用命令 使用mitmproxy给手机app抓包 Python中rstrip方法细解 Github同主机多仓库部署deploy key问题处理 Linux安装最新版本Python KeePassXC使用教程 Ubuntu 22.10连接蓝牙耳机报错br-connection-profile-unavailable解决方法
Ubuntu更改登录壁纸
2022-07-06 · via mephisto.cc

个人觉得Ubuntu22.04的登录界面太单调了,锁屏界面也不太喜欢。现在Gnome Settings里面只能改桌面壁纸,记得之前的版本锁屏界面也是可以改壁纸的。于是一顿搜索,发现登录界面还是可以改的,锁屏界面还没有方便的更改方式,有人知道的话可以邮箱联系我,邮箱地址在github的个人信息里面。

下面是更改登录界面的过程,所谓登录界面在Linux里是Display Manager,Gnome的叫GNOME Display Manager (GDM) ,还有其它dm,比如LightDM,当你的系统安装多个dm的时候,你只能选其中的一个,而且这东西会影响其它的软件功能,以前我就遇到切换到LightDM,锁屏快捷键失效,无奈得切换回GDM3。

题外话不多说,开始操作

1. 下载工具脚本

wget -qO - https://github.com/PRATAP-KUMAR/ubuntu-gdm-set-background/archive/main.tar.gz | tar zx --strip-components=1 ubuntu-gdm-set-background-main/ubuntu-gdm-set-background

2. 查看文件类型,帮助信息

看得懂脚本的可以用编辑器打开看看,脚本依赖libglib2.0-dev-bin这个包,该包提供一个叫gresource的工具能操作.gresource结尾的文件,而.gresource文件就是GTK-3的主题CSS文件预编译后的二进制格式数据文件,该脚本就是通过这样的方式更改相关样式的。

  • image参数:更改登录界面壁纸
  • color参数:更改登录界面颜色(一个纯色,没有图片)
  • gradient horizontal参数:更改登录界面为水平渐变颜色(从左到右,逐渐从一个颜色过渡到另外一个颜色)
  • gradient vertical参数:更改登录界面为垂直渐变颜色(不解释)

测试了下,我还是喜欢图片,内容丰富些。

➜  ~ ls -al ubuntu-gdm-set-background
-rwxrwxr-x 1 mephisto mephisto 10752 Feb  3 12:41 ubuntu-gdm-set-background
➜  ~ file ubuntu-gdm-set-background
ubuntu-gdm-set-background: Bourne-Again shell script, Unicode text, UTF-8 text executable
➜  ~ ./ubuntu-gdm-set-background --help

ubuntu-gdm-set-background script (for changing Ubuntu 20.04, 21.04, 21.10 & 22.04 GDM Background) HELP

there are four options
1. background with image
2. background with color
3. background with gradient horizontal ( requires two valid hex color inputs)
4. background with gradient vertical ( requires two valid hex color inputs)

Tip: be ready with valid hex color code in place of below example like #aAbBcC or #dDeEfF. Change them to your preffered hex color codes.
you may choose colors from https://www.color-hex.com/

Example Commands:

1. sudo ./ubuntu-gdm-set-background --image /home/user/backgrounds/image.jpg
2. sudo ./ubuntu-gdm-set-background --color \#aAbBcC
3. sudo ./ubuntu-gdm-set-background --gradient horizontal \#aAbBcC \#dDeEfF
4. sudo ./ubuntu-gdm-set-background --gradient vertical \#aAbBcC \#dDeEfF
5. sudo ./ubuntu-gdm-set-background --reset
6. ./ubuntu-gdm-set-background --help

RESCUE_MODE, Example Commands:

1. $ sudo ./ubuntu-gdm-set-background --image /home/user/backgrounds/image.jpg rescue
2. $ sudo ./ubuntu-gdm-set-background --color \#aAbBcC rescue
3. $ sudo ./ubuntu-gdm-set-background --gradient horizontal \#aAbBcC \#dDeEfF rescue
4. $ sudo ./ubuntu-gdm-set-background --gradient vertical \#aAbBcC \#dDeEfF rescue

Why RESCUE_MODE?
It is when you try to change the background with some other scripts and then interacted with this script,
there will be some conflicts. In case you ran other scripts to change the background and then tried this script,
found conflicts? then add 'rescue' to the end of the command as mentiond above.

Please note that for 'RESCUE_MODE' active internet connection is necessary

3. 更改登录界面背景图,俗称壁纸

后面图片路径,输入要使用的图片的全路径,别偷懒,重新登录即可生效

➜  ~ sudo ./ubuntu-gdm-set-background --image ~/Pictures/th.jpeg

😕 Seems 'background change is successful'
Changes will be effective after a Reboot (CTRL+ALT+F1 may show the changes immediately)
If something went wrong, log on to tty and run the below command
$ sudo update-alternatives --quiet --set gdm-theme.gresource /usr/share/gnome-shell/theme/Yaru/gnome-shell-theme.gresource

4. 想复原

sudo ./ubuntu-gdm-set-background --reset

这样登录界面是改好了,操作不当还是有登录界面被改挂的风险,万一出现这种状况,只能远程连接找到对应的文件复原了。这么看来,还是希望官方在Gnome settings里面提供相关配置选项。

另外,bing搜索的主页每天都有一个图片,可以用来当壁纸,还可以。