AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题

全部问题(ubuntu)

Martin Hope
Julie
Asked: 2024-12-20 21:09:59 +0800 CST

ubuntu 24.04.1 相机-镜像模式

  • 6

上次 Ubuntu 更新后,相机应用也发生了变化,现在使用自拍相机时我找不到翻转效果(即镜像效果)的选项。任何建议都值得赞赏。

camera
  • 1 个回答
  • 18 Views
Martin Hope
glades
Asked: 2024-12-20 00:57:30 +0800 CST

如何让 i3 知道 .bashrc 中设置的 PATH 配置已更改

  • 8

我使用 在我的 ubuntu 上安装了 pgadmin4 sudo apt-get pgadmin4。显然,这会导致 pgadmin 二进制文件最终出现在由于某种原因不在 PATH 中的目录中,即/usr/pgadmin4/bin。因此,我将其添加到我的 PATH 中.bashrc:

export PATH="$PATH:/usr/pgadmin4/bin"

现在,当我重新启动终端时,我可以使用 just从 clipgadmin4调用 pgadmin4 ,它就会找到二进制文件。

但是当我尝试从 i3 的执行器 dmenu(默认情况下为 mod+d)运行应用程序时,pgadmin4 不会显示在建议中。我猜这是因为 i3 不知道我在 中所做的更改的 PATH 配置.bashrc。我怎样才能让 i3 知道这一点?

window-manager
  • 1 个回答
  • 271 Views
Martin Hope
davidgo
Asked: 2024-12-19 11:49:33 +0800 CST

从基本(DNS)服务器中删除所有快照

  • 5

我在空间受限的 LVM 上运行基本 DNS 服务器。我注意到有大约 250 MB 的快照 - 我可以从我的 VM 中删除它们吗?

快照是“core20,lxd 和 snapd”。

我知道我的 DNS 服务器没有使用快照 - 而且我不知道它们有什么作用或者为什么它们在那里。

snap
  • 1 个回答
  • 27 Views
Martin Hope
Frantumn
Asked: 2024-12-19 02:37:06 +0800 CST

如何列出具有特定采样率或位深度的文件?

  • 6

我正在寻找某人来帮助我创建一个 bash 脚本,使用该mediainfo工具循环遍历我的整个音频库并输出没有Sampling rate“44.1 kHz”或Bit depth“16 位”的 .flac 文件列表。

我试了一下,但它没有运行。这就是我当时的想法。

#!/usr/bin/env sh
mediainfo /media/Media/Music/ 
if grep ["Bit depth" != "16"] || ["Sampling rate" != "44.1 kHz"]
then
    echo "$flacfile"
    echo mediainfo /media/Media/Music/ | grep 'Bit depth'
    echo mediainfo /media/Media/Music/ | grep 'Sampling rate'
else
    # do nothing...
fi
bash
  • 1 个回答
  • 35 Views
Martin Hope
Z0q
Asked: 2024-12-19 01:11:10 +0800 CST

如何从入口点 shell 脚本启动屏幕会话并使其持续存在?

  • 5

我在docker中的入口点 shell 脚本中启动一个屏幕会话,然后将输出记录到文件中。screen -list

/bin/bash #!/bin/bash

screen -S my_screen -dm bash -c 'cd project && npm run start'

screen -list > scr_list.log

然后我连接到docker容器并查看输出的日志。

here is a screen on: 
        14.my_screen      (12/18/24 17:55:29)     (Detached) 
1 Socket in /run/screen/S-root.

但是当我screen -list连接后手动运行时,它会输出:

No Sockets found in /run/screen/S-root.

使用同一个用户(whoami):root

我目前在容器内运行多个屏幕服务,每当我在容器中进行一些更改时,我都会不时手动重启单个服务

有什么想法吗?请问可能是什么问题?

boot
  • 1 个回答
  • 30 Views
Martin Hope
Hristo
Asked: 2024-12-18 05:04:33 +0800 CST

“cron” 的替代品是什么?

  • 5

我读到使用 cron 执行计划和重复任务可能存在安全风险。此外,其他一些系统正在弃用它...

现在,在 UBUNTU 24.04.1 LTS 的最小化服务器版本中,它默认不包含在内。也许我可以忽略安全警告来安装它,但想知道有什么替代方案吗?比如说,我如何让 bash 脚本每天在特定的时间运行?

cron
  • 2 个回答
  • 35 Views
Martin Hope
cagdasalagoz
Asked: 2024-12-17 17:15:23 +0800 CST

24.04.1 LTS - 一些键盘快捷键停止工作

  • 5

我不知道是什么引发了这种情况,但重启几次后,一些键盘快捷键不起作用。

例如,我通常使用 guake 打开它F12,但现在它不起作用了。但是,Ctrl+Alt+T它工作正常。我可以使用键盘快捷键复制和粘贴文本,没有任何问题。另一个不起作用的是我Ctrl+Shift+V分配给打开 CopyQ 剪贴板菜单的快捷键。

我可以从设置中定义自定义键盘快捷键来打开和关闭 guake,但它的操作与以前不同。通常它会在我的鼠标处于活动状态时打开终端,但如果我使用命令将其定义为自定义快捷方式,它将始终在主显示屏上打开。

所以我认为,以某种方式固定在 gnome 上运行的应用程序无法将它们自己的键盘快捷键注册到 gnome。

当我查看 gnome 日志并过滤 copyq 时,显示以下日志:

09:17:06 copyq: Warning: Failed to set global shortcut "Ins" for command "Show the tray menu".
09:17:06 copyq: Warning: Failed to set global shortcut "Ins" for command "Show the tray menu".
09:17:06 copyq: Warning: Failed to set global shortcut "Ctrl+Shift+V" for command "Show the tray menu".
09:17:06 copyq: ERROR: [default] QtCritical: Failed to activate Wayland clipboard
09:17:06 copyq: Warning: [default] QtWarning: Activating Wayland clipboard took 5000 ms
09:16:59 copyq: Warning: [default] QtWarning: QSocketNotifier: Can only be used with threads started with QThread
09:16:59 systemd: Started app-gnome-copyq-5810.scope - Application launched by gnome-session-binary.

以下是 guake 的结果:

09:17:14 kernel: audit: type=1400 audit(1734416234.042:258): apparmor="DENIED" operation="open" class="file" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/guake/autostart-guake.desktop" pid=5919 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
09:17:14 kernel: audit: type=1400 audit(1734416234.042:258): apparmor="DENIED" operation="open" class="file" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/guake/autostart-guake.desktop" pid=5919 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
09:17:14 kernel: audit: type=1400 audit(1734416234.013:257): apparmor="DENIED" operation="open" class="file" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/guake/autostart-guake.desktop" pid=5919 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
09:17:02 guake: Guake initialized
09:17:02 guake: Guake initialized
09:17:02 guake: Guake tabs restored from /home/cagdasalagoz/.config/guake/session.json
09:17:02 systemd: Started vte-spawn-8e979882-df3f-47c8-8bb5-546675ba7e3f.scope - VTE child process 6622 launched by guake process 5749.
09:17:02 guake: Spawning new terminal at /home/cagdasalagoz
09:17:02 guake: Spawning new terminal at /home/cagdasalagoz
09:17:02 guake: can't bind show-focus key
09:17:02 guake: current workspace is 0
09:17:02 systemd: Started vte-spawn-696ec79c-f7ce-4c5d-aa7f-efabf91d8099.scope - VTE child process 6594 launched by guake process 5749.
09:17:02 guake: Spawning new terminal at /home/cagdasalagoz
09:17:02 guake: Spawning new terminal at /home/cagdasalagoz
09:17:02 guake: created fresh notebook for workspace 0
09:17:02 guake: Gtk 3.24.41
09:17:02 guake: VTE 0.76.0
09:17:02 guake: Guake Terminal 3.10
09:17:01 guake: Language previously loaded from: /usr/share/locale
09:17:01 guake: Loading Gnome schema from: /usr/share/glib-2.0/schemas
09:17:01 guake: Guake not running, starting it
09:16:59 systemd: Started app-gnome-guake-5749.scope - Application launched by gnome-session-binary.

gnome
  • 2 个回答
  • 127 Views
Martin Hope
Buddha
Asked: 2024-12-17 05:18:21 +0800 CST

ubuntu 24.04 中的节格式不正确 [重复]

  • 6
此问题这里已有答案:
如何从我的 ubuntu.sources 中删除格式错误的行? (1 个回答)
默认 sources.list 或 ubuntu.sources (24.04 及更高版本)文件的内容 (2 个答案)
昨天休息。

我准备更新我的 ubuntu 24.04,在我尝试添加 pgp 密钥之前,一切都正常,经过大量更改后,我尝试将所有设置重置为默认设置,但现在我遇到了 apt 更新问题,我将错误和我的配置粘贴在下面!帮帮我 :|

➜  sources.list.d pwd
/etc/apt/sources.list.d
➜  sources.list.d ll
total 4.0K
-rw-r--r-- 1 root root 343 Dec 17 00:38 ubuntu.sources
➜  sources.list.d cat ubuntu.sources
deb http://archive.ubuntu.com/ubuntu noble main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu noble-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu noble-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu noble-backports main universe restricted multiverse
➜  sources.list.d sudo apt update
E: Malformed stanza 1 in source list /etc/apt/sources.list.d/ubuntu.sources (type)
E: The list of sources could not be read.
➜  sources.list.d 
apt
  • 2 个回答
  • 35 Views
Martin Hope
Ali
Asked: 2024-12-17 04:08:01 +0800 CST

GSConnect 找不到任何设备

  • 6

我想将我的笔记本电脑(我使用的是 Ubuntu 24.10)和我的 Android 手机连接在一起。问题是 GSConnect 没有显示任何设备。我尝试使用 Windows 11 上的 KDE Con​​nect 连接它们,并且成功了,但我无法使用 Ubuntu 上的 GSConnect 或 KDE Con​​nect 连接。我还尝试使用 IP 地址手动连接,猜猜怎么着!?它也没有用。GSConnect 窗口

networking
  • 1 个回答
  • 115 Views
Martin Hope
Alex
Asked: 2024-12-15 19:24:05 +0800 CST

通知部分显示天气信息

  • 6

我安装了 Ubuntu 24.04。默认系统不包含天气应用程序,因此我安装了 GNOME Weather。这对我来说很好用,只是它在通知中显示不完整,就像我在这里分享的那样。

在此处输入图片描述

有什么方法可以显示完整的信息吗?或者是否有其他天气应用程序?

software-recommendation
  • 1 个回答
  • 70 Views
上一页
下一页

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve