当我的 Android 设备通知我新消息、电话、WhatsApp 等所有内容而我又没有看移动设备屏幕时,我需要知道。我一天中会去手动检查很多次这种情况。当我看着我的电脑屏幕时,我可能会错过很多通知。办公室的政策是将移动设备静音。我可能在开会等等。任何原因都可能导致我忙于其他事情而忘记查看通知。然而,如果我在电脑屏幕上有东西可以与手机通信并显示我有新通知,这可能是非常好的解决方案,例如,通知区域中的图标可能会变成红色/绿色或其他颜色。我的移动设备使用数据与互联网通信,而我们办公室没有 wifi。LAN 完全在另一个网络中。有没有可能这样?我正在使用 Ubuntu mate 24.04。
之前我曾使用过双启动(Windows 10 + Ubuntu 24.04),启动速度很快。最近,我清除了 Windows 分区并安装了 Ubuntu,但发现现在启动时间太长了。该怎么办?如何排除故障?
使用systemd-analyze
得到以下结果:
> systemd-analyze
Startup finished in 10.413s (firmware) + 12.542s (loader) + 7.531s (kernel) + 26.536s (userspace) = 57.024s
graphical.target reached after 26.511s in userspace.
更新
> systemd-analyze blame
51.204s apt-daily.service
20.255s plymouth-quit-wait.service
5.033s NetworkManager-wait-online.service
2.783s fwupd.service
1.695s plymouth-read-write.service
1.166s logrotate.service
1.008s NetworkManager.service
843ms snapd.seeded.service
742ms systemd-suspend.service
626ms boot-efi.mount
553ms snapd.service
489ms systemd-journal-flush.service
459ms apport.service
389ms man-db.service
333ms udisks2.service
333ms dev-nvme0n1p6.device
274ms gnome-remote-desktop.service
在 Kubuntu 24.04 上,快捷键Ctrl+Space与更改键盘布局有关,但我需要在我使用的所有 IDE(Intellij、Visual Studio)中使用该快捷键。
我怎样才能让系统不再使用Ctrl+ Space?
我有一台装有 Windows 11 和 Ubuntu 22.04 双启动的 PC。我最近更新了 BIOS。之后 Ubuntu 上的 WiFi 无法使用。它找不到任何可以连接的网络。它在 Windows 上正常工作,以太网连接也正常。
以下是一些检查:
lshw -c network
*-network DISABLED
description: Wireless interface
product: Alder Lake-P PCH CNVi WiFi
vendor: Intel Corporation
physical id: 14.3
bus info: pci@0000:00:14.3
logical name: wlo1
version: 01
serial: 04:ec:d8:61:bc:32
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=iwlwifi driverversion=6.8.0-48-generic firmware=86.fb5c9aeb.0 so-a0-hr-b0-86.uc latency=0 link=no multicast=yes wireless=IEEE 802.11
resources: iomemory:620-61f irq:16 memory:6205234000-6205237fff
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:03:00.0
logical name: enp3s0
version: 15
serial: d8:43:ae:06:bd:ba
size: 1Gbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=6.8.0-48-generic duplex=full firmware=rtl8168h-2_0.0.2 02/26/15 latency=0 dkms statuslink=yes multicast=yes port=twisted pair speed=1Gbit/s
resources: irq:17 ioport:3000(size=256) memory:79204000-79204fff memory:79200000-79203fff
nmcli d
DEVICE TYPE STATE CONNECTION
docker0 bridge connected (externally) docker0
enp3s0 ethernet unavailable --
wlo1 wifi unavailable --
lo loopback unmanaged --
连接后以太网显示可用。我不确定docker是干什么的。我之前用过它。
rfkill list
:
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
lspci -knn | grep Net -A3
:
0000:00:14.3 Network controller [0280]: Intel Corporation Alder Lake-P PCH CNVi WiFi [8086:51f0] (rev 01)
DeviceName: Onboard - Ethernet
Subsystem: Intel Corporation Wi-Fi 6 AX201 160MHz [8086:0074]
Kernel driver in use: iwlwifi
cat /etc/modprobe.d/iwlwifi.conf
# /etc/modprobe.d/iwlwifi.conf
# iwlwifi will dyamically load either iwldvm or iwlmvm depending on the
# microcode file installed on the system. When removing iwlwifi, first
# remove the iwl?vm module and then iwlwifi.
remove iwlwifi \
(/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) \
&& /sbin/modprobe -r mac80211
dkms status
:
backport-iwlwifi/11510, 6.8.0-48-generic, x86_64: installed (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!)
我最近将我的桌面升级到了 Ubuntu 24.04.1 LTS。我的打印机无法工作,必须从数据库“HPEnvy 4520”安装驱动程序。打印机正常
但是文档扫描仪不工作:可以看到扫描仪 HP ENVY4524,但无法扫描进纸器为空。
此打印机上没有进纸器
在一个 snap 中发布多个应用程序时,snapcraft 会在应用程序名称前加上“snapname”作为前缀。因此最终用户看到的可执行文件名称是“snapname.appname”
我的 snap 是 7 个 cli 实用程序的集合。所有实用程序都有一个通用的前缀,比如说“snapname”。
但他们的名字是:
snapname-应用程序名称
使用减号/破折号而不是句点分隔符,这在 Linux 命令行实用程序中更为常见。
我的实用程序也将通过 .deb 和 .rpm 等发布,所以我希望命名一致,否则文档会令人困惑。
有没有什么办法可以绕过这个明显固定的带句点的前缀方案?
我从https://vivaldi.com下载了 vivaldi-stable_7.0.3495.14-1_amd64.deb ,然后从我的 whisker 菜单启动 FileManager 并指向下载的文件。它最终出现错误,提示无法满足依赖项“错误:依赖项无法满足:libglib2.0-0 (>=2.39.4)”
当我使用 synaptic 查看 libglib 时,我看到三个已安装的软件包,其版本列为“2.80.0-6ubuntu3.1”;这些软件包分别是 libglib2.0-0t64、libglib2.0-bin 和 libglib2.0-data
显而易见的问题是:如何在这台机器上获得 Vivaldi?
我正在使用 .net 和 sdk 创建一个简单的 hello world GUI 应用程序,当我将它转换为 snap 并运行它时,我首先收到此错误,我确实添加了 x11 包,但我希望我的应用程序仅使用 wayland 服务器进行显示,因为我正在为 ubuntu 核心构建此应用程序。
GDK Backend: wayland (HelloWorldGuiApp:91366):Gtk-WARNING **: 22:44:58.503: cannot open display: :0
这是我的 .net apk 的 snapcraft.yaml。
{
name: helloworldguiapp
base: core22
version: ‘1.0’
summary: A simple Hello World GUI app
description: | This is a simple .NET Gtk# Hello World GUI application designed to run in kiosk mode using ubuntu-frame.
grade: stable
confinement: strict
architectures:
build-on: amd64
build-on: arm64
apps:
helloworldguiapp:
command: HelloWorldGuiApp
daemon: simple
restart-condition: always
plugs:
- wayland
- opengl
- network
- content[graphics-core22] # Added the missing graphics-core22 plug
environment:
WAYLAND_DISPLAY: wayland-0
parts:
helloworldguiapp:
plugin: dotnet
dotnet-build-configuration: Release
dotnet-self-contained-runtime-identifier: linux-x64
source: .
build-packages:
- dotnet-sdk-8.0
stage-packages:
- libgtk-3-0
- libglib2.0-0
- libwayland-client
}
我应该对我的 yaml 文件做哪些更改?
我尝试在 ubuntu core 上运行 .net snap,并期望它在 ubuntu core 上打开 hello world gui,但却出现了这个警告=>
GDK Backend: wayland (HelloWorldGuiApp:91366):Gtk-WARNING **: 22:44:58.503: cannot open display: :0
有问题的系统是自动登录的,因此为了防止 Google Chrome 弹出 Seahorse 对话框,我更改了快捷方式以提供--password-store=basic
此精细问答中的选项:Chrome 在启动时要求输入密码来解锁密钥环
这个方法已经使用了很多年,但从 Chrome 版本 131.0.6778.69 开始不再有效
有新的解决方法吗?