我使用带有 KDE Plasma 6(Wayland)的 Arch Linux,但我不太确定如何以及是否可以更改标准颜色选择器?
如果我进入 Firefox 或 Pinta 等程序的颜色选择对话框,我总是会看到这个。谷歌搜索并没有真正找到结果,我也尝试在 KDE 系统设置中的颜色和设计下查找,但我找不到更改此选项的选项。
我宁愿使用 KColorChooser 而不是这个,我希望能够立即设置自定义颜色。
我使用 arch 并希望将我的整个系统的语言环境设置为C
(且仅C
)。C
未在里面列出/etc/locale.gen
(且仅en_US.UTF-8 UTF-8
被取消注释)但C
在 里面可以找到/usr/share/i18n/locales/
。
我运行命令localectl set-locale C
并注销/登录,命令locale
显示C
一切——很好。
我的问题是:
我是否需要注释掉en_US.UTF-8 UTF-8
文件内的行locale.gen
并运行命令locale-gen
来从我的系统中删除其他不需要的区域设置残余?
在运行命令之前locale-gen
我是否应该附加C
到文件locale.gen
,如果是,<charmap>
它的标准是什么?
我查看了目录内部,/usr/share/i18n/charmaps/
但没有看到类似C.gz
内部的任何内容。是UTF-8.gz
正确的还是ANSI_X3.110-1983.gz
或一个ISO-*
/ISO_*
一?
我运行命令localectl list-locales
并看到:
C.UTF-8
en_US.UTF-8
这是否意味着我的语言环境并不完整且唯一,C
并且我还保留着其他不想要的残留?
我希望有人能帮助我解决以下问题。我一直在尝试为 UEFI shell 编译 fdisk,文件位于
https://sourceforge.net/projects/uefi-fdisk/
按照自述文件中的说明,我正在运行“make”命令
但我收到以下错误
./configure:未找到
我不是 Linux 专业人士,如果能得到任何帮助我都很感激。
如果你们有人能编译它,请链接进来,这样我就可以下载。谢谢
我在笔记本电脑上运行 Arch Linux,并通过 HDMI 连接外接显示器。
我想在使用外接显示器时关闭笔记本电脑盖,但我希望笔记本电脑的内置扬声器继续工作,因为显示器上没有外接扬声器。
我已经配置了电源管理设置,以防止系统在盖子关闭时挂起。
具体来说,我/etc/systemd/logind.conf
使用以下设置编辑了该文件:
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
但是,即使这样,当我合上盖子时,笔记本电脑的内部屏幕仍然会关闭,这不是我想要的。我想只关闭内部屏幕,同时保持扬声器处于活动状态并且系统正常运行。
我还检查了 KDE Plasma 中的电源设置,并将其设置为在盖子关闭时“不执行任何操作”,但问题仍然存在。
我遗漏了什么或者做错了什么?
使用外接显示器时,如何关闭盖子并关闭屏幕,同时保持内置扬声器正常工作?
当我在家工作时,我通过以下命令从我的 Linux 机器连接到 VPN:
$ sudo openconnect --protocol=anyconnect -u usernameatwork --authgroup=MFA foo.bar.baz.work
这将要求我
sudo
,我刚刚注意到
who
我的本地机器告诉我我是唯一一个登录到我的计算机的人:
myself tty1 2025-01-14 17:47
who
我的本地机器告诉我刚刚再次登录:
myself tty1 2025-01-14 17:47
myself pts/2 2025-02-03 07:17
输出的第二行是什么意思?
我的意思是,我已经连接到 VPN。为什么这意味着我重新登录了自己的系统?
当我尝试使用系统更新我的宝石时,gem update
出现此错误:
/usr/lib/ruby/3.3.0/rdoc/version.rb:8: warning: already initialized constant RDoc::VERSION
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/version.rb:8: warning: previous definition of VERSION was here
/usr/lib/ruby/3.3.0/rdoc.rb:70: warning: already initialized constant RDoc::VISIBILITIES
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc.rb:68: warning: previous definition of VISIBILITIES was here
/usr/lib/ruby/3.3.0/rdoc.rb:76: warning: already initialized constant RDoc::DOT_DOC_FILENAME
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc.rb:74: warning: previous definition of DOT_DOC_FILENAME was here
/usr/lib/ruby/3.3.0/rdoc.rb:81: warning: already initialized constant RDoc::GENERAL_MODIFIERS
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc.rb:79: warning: previous definition of GENERAL_MODIFIERS was here
/usr/lib/ruby/3.3.0/rdoc.rb:86: warning: already initialized constant RDoc::CLASS_MODIFIERS
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc.rb:84: warning: previous definition of CLASS_MODIFIERS was here
/usr/lib/ruby/3.3.0/rdoc.rb:91: warning: already initialized constant RDoc::ATTR_MODIFIERS
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc.rb:89: warning: previous definition of ATTR_MODIFIERS was here
/usr/lib/ruby/3.3.0/rdoc.rb:96: warning: already initialized constant RDoc::CONSTANT_MODIFIERS
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc.rb:94: warning: previous definition of CONSTANT_MODIFIERS was here
/usr/lib/ruby/3.3.0/rdoc.rb:101: warning: already initialized constant RDoc::METHOD_MODIFIERS
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc.rb:99: warning: previous definition of METHOD_MODIFIERS was here
Updating installed gems
Updating bundler
Fetching bundler-2.6.3.gem
Successfully installed bundler-2.6.3
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/rdoc.rb:36: warning: already initialized constant RDoc::RDoc::GENERATORS
/usr/lib/ruby/3.3.0/rdoc/rdoc.rb:36: warning: previous definition of GENERATORS was here
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/rdoc.rb:41: warning: already initialized constant RDoc::RDoc::UNCONDITIONALLY_SKIPPED_DIRECTORIES
/usr/lib/ruby/3.3.0/rdoc/rdoc.rb:41: warning: previous definition of UNCONDITIONALLY_SKIPPED_DIRECTORIES was here
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/rdoc.rb:46: warning: already initialized constant RDoc::RDoc::TEST_SUITE_DIRECTORY_NAMES
/usr/lib/ruby/3.3.0/rdoc/rdoc.rb:46: warning: previous definition of TEST_SUITE_DIRECTORY_NAMES was here
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/generator/darkfish.rb:64: warning: already initialized constant RDoc::Generator::Darkfish::BUILTIN_STYLE_ITEMS
/usr/lib/ruby/3.3.0/rdoc/generator/darkfish.rb:64: warning: previous definition of BUILTIN_STYLE_ITEMS was here
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/generator/darkfish.rb:80: warning: already initialized constant RDoc::Generator::Darkfish::GENERATOR_DIR
/usr/lib/ruby/3.3.0/rdoc/generator/darkfish.rb:80: warning: previous definition of GENERATOR_DIR was here
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/generator/darkfish.rb:85: warning: already initialized constant RDoc::Generator::Darkfish::VERSION
/usr/lib/ruby/3.3.0/rdoc/generator/darkfish.rb:85: warning: previous definition of VERSION was here
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/generator/darkfish.rb:90: warning: already initialized constant RDoc::Generator::Darkfish::DESCRIPTION
/usr/lib/ruby/3.3.0/rdoc/generator/darkfish.rb:90: warning: previous definition of DESCRIPTION was here
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/generator/darkfish.rb:637: warning: already initialized constant RDoc::Generator::Darkfish::SVNID_PATTERN
/usr/lib/ruby/3.3.0/rdoc/generator/darkfish.rb:637: warning: previous definition of SVNID_PATTERN was here
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/generator/ri.rb:12: warning: already initialized constant RDoc::Generator::RI::DESCRIPTION
/usr/lib/ruby/3.3.0/rdoc/generator/ri.rb:12: warning: previous definition of DESCRIPTION was here
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/generator/pot.rb:63: warning: already initialized constant RDoc::Generator::POT::DESCRIPTION
/usr/lib/ruby/3.3.0/rdoc/generator/pot.rb:63: warning: previous definition of DESCRIPTION was here
Parsing documentation for bundler-2.6.3
Before reporting this, could you check that the file you're documenting
has proper syntax:
/usr/bin/ruby -c lib/bundler.rb
RDoc is not a full Ruby parser and will fail when fed invalid ruby programs.
The internal error was:
(ArgumentError) wrong number of arguments (given 4, expected 5)
ERROR: While executing gem ... (ArgumentError)
wrong number of arguments (ArgumentError)
/usr/lib/ruby/3.3.0/rdoc/parser.rb:167:in `for'
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/rdoc.rb:359:in `parse_file'
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/rdoc.rb:415:in `block in parse_files'
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/rdoc.rb:413:in `map'
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/rdoc.rb:413:in `parse_files'
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/rubygems_hook.rb:202:in `block in generate'
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/rubygems_hook.rb:201:in `chdir'
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/rubygems_hook.rb:201:in `generate'
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/rubygems_hook.rb:62:in `block in generate'
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/rubygems_hook.rb:61:in `each'
/home/john/.local/share/gem/ruby/3.3.0/gems/rdoc-6.9.0/lib/rdoc/rubygems_hook.rb:61:in `generate'
/usr/lib/ruby/site_ruby/3.3.0/rubygems/request_set.rb:313:in `block in install_hooks'
/usr/lib/ruby/site_ruby/3.3.0/rubygems/request_set.rb:312:in `each'
/usr/lib/ruby/site_ruby/3.3.0/rubygems/request_set.rb:312:in `install_hooks'
/usr/lib/ruby/site_ruby/3.3.0/rubygems/request_set.rb:210:in `install'
/usr/lib/ruby/site_ruby/3.3.0/rubygems/dependency_installer.rb:250:in `install'
/usr/lib/ruby/site_ruby/3.3.0/rubygems/commands/update_command.rb:248:in `update_gem'
/usr/lib/ruby/site_ruby/3.3.0/rubygems/commands/update_command.rb:260:in `block in update_gems'
/usr/lib/ruby/site_ruby/3.3.0/rubygems/commands/update_command.rb:259:in `each'
/usr/lib/ruby/site_ruby/3.3.0/rubygems/commands/update_command.rb:259:in `update_gems'
/usr/lib/ruby/site_ruby/3.3.0/rubygems/commands/update_command.rb:120:in `execute'
/usr/lib/ruby/site_ruby/3.3.0/rubygems/command.rb:326:in `invoke_with_build_args'
/usr/lib/ruby/site_ruby/3.3.0/rubygems/command_manager.rb:253:in `invoke_command'
/usr/lib/ruby/site_ruby/3.3.0/rubygems/command_manager.rb:194:in `process_args'
/usr/lib/ruby/site_ruby/3.3.0/rubygems/command_manager.rb:152:in `run'
/usr/lib/ruby/site_ruby/3.3.0/rubygems/gem_runner.rb:57:in `run'
/sbin/gem:12:in `<main>'
我正在使用gem 3.5.23
和ruby 3.3.5 (2024-09-03 revision ef084cc8f4) [x86_64-linux]
谢谢你的帮助
在经过一段时间不活动(几个小时?)后解锁电脑后,我经常会看到黑屏,上面只有一个鼠标光标(我可以移动)。
我发现的唯一修复方法是使用 关闭 X 服务器CtrlAltBackspace,但这也会关闭我的所有 GUI 应用程序。理想情况下,我正在寻找一个完整的修复方法,或者至少寻找一种更优雅的方式来从此问题中恢复,而无需关闭我的应用程序。
更多细节:
我在换了一台装有 Nvidia 显卡的新笔记本电脑后开始遇到这个问题(之前的笔记本电脑装有集成的 AMD 显卡,没有出现过这样的问题)。这是相同的 Arch 安装(除了我添加了 NVidia 驱动程序),所以我确信这与 Nvidia 有关。
这台笔记本电脑有集成的 AMD 显卡和专用的 Nvidia 显卡,但我在 BIOS 中禁用了前者,因为它导致了其他问题,现在 PC 感觉响应更快了。我不记得在同时使用两张显卡时是否也遇到了这个问题,我想没有。
我仍然可以切换到另一个 TTY 并返回,并在其中输入命令,但我没有找到任何有帮助的命令。
有一次按下随机热键使其脱离,但我无法复制这一点。
在此状态下我仍然可以移动鼠标,光标会根据我应该打开的应用程序而变化。但如果我点击,光标形状就会卡在现在的状态。
拔下并插入第二台显示器没有帮助。
我使用 Xfce,搭配 light-locker 和 lightdm-gtk-greeter。我没有尝试用 xfce4-screensaver 代替 light-locker,因为它有其他问题(在锁定状态下不会禁用背光)。
我在 Arch Linux 上使用最新的内核6.12.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 10 Jan 2025 00:39:41 +0000 x86_64 GNU/Linux
。
我正在使用软件包中的开源 Nvidia 驱动程序nvidia-open
。我也尝试nvidia-open-dkms
过 LTS 内核,但没有成功,而且 LTS 内核还给我带来了其他问题。
这是我安装的与 nvidia 相关的软件包的完整列表,来自pacman -Qs nvidia
:
local/egl-gbm 1.1.2-1
local/egl-wayland 4:1.1.17-1
local/egl-x11 1.0.0-1
local/lib32-libvdpau 1.5-3
local/lib32-nvidia-utils 565.77-1
local/libvdpau 1.5-3
local/libxnvctrl 565.57.01-1
local/nvidia-open 565.77-11
local/nvidia-prime 1.0-5
local/nvidia-settings 565.57.01-1
local/nvidia-utils 565.77-3
local/xf86-video-nouveau 1.0.18-1 (xorg-drivers)
这是联想 LOQ 2024 笔记本电脑(15AHP9、83DX0070RK)。Neofetch 识别以下硬件:
CPU: AMD Ryzen 7 8845HS w/ Radeon 780M Graphics (16) @
GPU: AMD ATI 05:00.0 Phoenix3
GPU: NVIDIA GeForce RTX 4050 Max-Q / Mobile
当我运行yay
升级系统时,我遇到了以下问题:
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
:: Searching AUR for updates...
-> No AUR package found for gegl>=0.4.52
...
:: 1 packages to upgrade/install.
1 aur/gimp-devel 3.0.0rc1-1 -> 3.0.0rc2-1
==> Packages to exclude: (eg: "1 2 3", "1-3", "^4" or repo name)
-> Excluding packages may cause partial upgrades and break systems
==>
-> could not find all required packages: gegl >=0.4.52
我使用的是完全更新的 Arch Linux。我该如何解决这个问题?
我正在尝试为已安装的 Arch Linux 映像创建 Dockerfile iptables-nft
。如果我以交互方式运行Docker 映像,archlinux
然后pacman -Syu iptables-nft
,系统会询问我iptables-nft-1:1.8.10-2 and iptables-1:1.8.10-2 are in conflict. Remove iptables? [y/N]
。Proceed with installation? [Y/n]
对这两个问题都回答是,就可以满足我的要求。
当我尝试在 Dockerfile 中编写脚本时,问题就出现了,我无法以交互方式回答这些问题。我的第一次尝试是RUN pacman --noconfirm -Syu iptables-nft
,但这行不通,因为这--noconfirm
意味着要使用默认答案,而第一个问题的默认答案是否定的。然后我尝试iptables
在安装之前先删除iptables-nft
,但iproute2
依赖于iptables
或iptables-nft
,并且base
依赖于iproute2
。
这让我想到了一些在技术上可行的方法,但所有这些方法都让我感到担忧:
RUN yes | pacman -Syu iptables-nft
可以,但是y
如果 pacman 问的是非是非否的问题,则盲目地回答它会破坏它所问的任何问题,并且如果它问除了“删除 iptables?”之外的任何默认否的问题,那么盲目地回答它们是也可能是不好的。RUN pacman --noconfirm -Rdd iptables && pacman --noconfirm -Syu iptables-nft
可以工作,但如果iptables
得到任何iptables-nft
不满足的依赖关系,我的系统就会崩溃,而且如果安装任何软件包只是因为旧软件包iptables
需要它们,它们就会被无限期地遗留。RUN pacman --noconfirm -Rsdd iptables && pacman --noconfirm -Syu iptables-nft
可以工作,但是它具有与#2相同的系统损坏风险,并且它还会卸载一堆其他软件包然后立即重新安装它们。有没有比上述任何一种更好的解决方案?理想情况下,我只想要一个 pacman 等价物dnf swap
,但我找不到任何这样的东西。
我按下了Ctrl+Alt+F3该键,这是我正在使用的程序之一的快捷键,当我按下该键时,我的所有四个屏幕都变黑了。
我不知道如何恢复正常桌面。按下 Steam Deck 上的电源按钮似乎没有任何作用。它保持黑色和空白。
再次按下Ctrl+Alt+F3并不能返回到正常桌面。
我还通过 Type C 插入了外接显示器、键盘、鼠标和所有东西,但问题仍然存在。屏幕一片漆黑,空白一片。屏幕上什么都没有。
我发现网上其他人也在抱怨这个问题,他们说要向新闻界反映,Ctrl+Alt+F7我已经这样做了,但什么也没发生。
如何退出 SteamOS 上的这个黑色空白屏幕(Ctrl+Alt+F3)并返回到正常的 KDE 桌面环境?