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
    • 最新
    • 标签
主页 / user-227120

Adrian's questions

Martin Hope
Adrian
Asked: 2024-03-11 00:48:03 +0800 CST

音频接收器和声卡、设备有什么区别和关系?

  • 6

音频接收器和音频卡/设备之间有什么区别和关系?

一个接收器可以接收到同一声卡的多个设备吗?又名,接收器设备可以是一对多关系?

PS:我不是一个十足的菜鸟,但我对 Linux 音频也不是很了解

aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC1220 Analog [ALC1220 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC1220 Digital [ALC1220 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [LG TV SSCR2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

gst-inspect-1.0 | grep -iP "audio sink|pipewire" | more
alsa:  alsasink: Audio sink (ALSA)
autodetect:  autoaudiosink: Auto audio sink
jack:  jackaudiosink: Audio Sink (Jack)
oss4:  oss4sink: OSS v4 Audio Sink
ossaudio:  osssink: Audio Sink (OSS)
pipewire:  pipewiredeviceprovider (GstDeviceProviderFactory)
pipewire:  pipewiresink: PipeWire sink
pipewire:  pipewiresrc: PipeWire source
pulseaudio:  pulsesink: PulseAudio Audio Sink

通过计算机收听连接到 KEF LSX 扬声器的电视时的 Pipewire 处理(我也使用EasyEffects): 在此输入图像描述

linux
  • 2 个回答
  • 62 Views
Martin Hope
Adrian
Asked: 2021-12-12 13:27:21 +0800 CST

为什么用`pwd`找到现有文件但用find dot找到?

  • 0

这很奇怪:

$ ls -l 'Lana Del Rey - Blue Jeans (Remastered 2011).mp3'
-rw-rw-r-- 1 gigi gigi 4.0M Dec 11 23:06 'Lana Del Rey - Blue Jeans (Remastered 2011).mp3'

$ find . -name 'Lana Del Rey - Blue Jeans (Remastered 2011).mp3'
./Lana Del Rey - Blue Jeans (Remastered 2011).mp3

# but still in the same directory:
$ find `pwd` -name 'Lana Del Rey - Blue Jeans (Remastered 2011).mp3'
# nothing found!
# directly using the path pointed by pwd will produce the same nothing-found situation
# with pwd followed by / it works
$ find `pwd`/ -name 'Lana Del Rey - Blue Jeans (Remastered 2011).mp3'
/home/gigi/Music/Youtube_mp3/Lana Del Rey - Blue Jeans (Remastered 2011).mp3
$ pwd
/home/gigi/Music/Youtube_mp3

这发生在 Ubuntu 21.10(实际上是 XUbuntu)上。
我不使用与find.

find file-management
  • 1 个回答
  • 68 Views
Martin Hope
Adrian
Asked: 2019-06-10 02:07:04 +0800 CST

找不到模块 nf_nat_proto_gre

  • 2

在启动 Xubuntu 19.04 时,在 boot.log 中获取:

[[0;1;31mFAILED[0m] Failed to start [0;1;39mLoad Kernel Modules[0m.
See 'systemctl status systemd-modules-load.service' for details.

我运行 systemctl status systemd-modules-load.service 产生:

Failed to find module 'nf_nat_proto_gre'

我得到sudo modprobe nf_nat_proto_gre:

modprobe: FATAL: Module nf_nat_proto_gre not found in directory /lib/modules/5.0.0-16-generic

有什么问题,我应该如何解决?

kernel-modules
  • 1 个回答
  • 1139 Views
Martin Hope
Adrian
Asked: 2019-03-02 10:50:09 +0800 CST

如何生成与 ssh 配置一起使用的证书文件?

  • 5

我的 ~/.ssh/config 文件中有如下配置:

Host xxx
    HostName 127.0.0.1
    Port 2222
    User gigi
    ServerAliveInterval 30
    IdentityFile ~/blablabla
    # CertificateFile ~/blablabla-cert.pub

效果很好,但我很好奇如何生成CertificateFile如果真的想使用它?考虑一个已经拥有使用例如生成的私有和公共 RSA 密钥openssl req -newkey rsa:2048 -x509 [...]。

ssh-config
  • 2 个回答
  • 10794 Views
Martin Hope
Adrian
Asked: 2019-03-02 09:26:33 +0800 CST

ssh认证输出含义:类型1

  • 1

我尝试使用私钥通过 ssh 连接到远程服务器,我看到作为输出的一部分:

debug1: identity file /home/gigi/.ssh/id_rsa type 1

是什么type 1意思?

ssh
  • 1 个回答
  • 168 Views
Martin Hope
Adrian
Asked: 2019-01-10 09:40:29 +0800 CST

列出 systemd RuntimeDirectory 挂载

  • 3

我有一个带有此声明的 systemd 服务:

RuntimeDirectory=plex
RuntimeDirectoryMode=750

它创建了内存目录/run/plex。

我将如何列出这个挂载点的功能mount -l?

systemd systemd-mount
  • 1 个回答
  • 1195 Views
Martin Hope
Adrian
Asked: 2019-01-10 09:15:48 +0800 CST

ShmemHugePages 是什么意思?

  • 0

我正在使用grep Huge /proc/meminfo并获得:

AnonHugePages:     16384 kB
ShmemHugePages:        0 kB
HugePages_Total:      33
HugePages_Free:       18
HugePages_Rsvd:       18
HugePages_Surp:        1
Hugepagesize:       2048 kB

是什么ShmemHugePages意思/指的是什么?

meminfo
  • 1 个回答
  • 778 Views
Martin Hope
Adrian
Asked: 2019-01-09 09:39:02 +0800 CST

hping3 报告的延迟高于 ping

  • 2

我只是用不同的工具检查网络延迟,例如hping3:

sudo hping3 -A -n -p 80 www.google.ro
HPING www.google.ro (ppp0 172.217.20.3): A set, 40 headers + 0 data bytes
len=40 ip=172.217.20.3 ttl=59 id=14578 sport=80 flags=R seq=0 win=0 rtt=23.7 ms
len=40 ip=172.217.20.3 ttl=59 id=60364 sport=80 flags=R seq=1 win=0 rtt=23.2 ms
len=40 ip=172.217.20.3 ttl=59 id=28510 sport=80 flags=R seq=2 win=0 rtt=22.8 ms
len=40 ip=172.217.20.3 ttl=59 id=38493 sport=80 flags=R seq=3 win=0 rtt=22.4 ms
len=40 ip=172.217.20.3 ttl=122 id=35817 sport=80 flags=R seq=4 win=0 rtt=25.7 ms
len=40 ip=172.217.20.3 ttl=122 id=8842 sport=80 flags=R seq=5 win=0 rtt=20.5 ms
^C
--- www.google.ro hping statistic ---
6 packets transmitted, 6 packets received, 0% packet loss
round-trip min/avg/max = 20.5/23.1/25.7 ms

并与ping:

ping www.google.ro
PING www.google.ro (172.217.20.3) 56(84) bytes of data.
64 bytes from bud02s28-in-f3.1e100.net (172.217.20.3): icmp_seq=1 ttl=56 time=16.3 ms
64 bytes from bud02s28-in-f3.1e100.net (172.217.20.3): icmp_seq=2 ttl=56 time=17.1 ms
64 bytes from bud02s28-in-f3.1e100.net (172.217.20.3): icmp_seq=3 ttl=56 time=16.9 ms
64 bytes from bud02s28-in-f3.1e100.net (172.217.20.3): icmp_seq=4 ttl=56 time=16.5 ms
64 bytes from bud02s28-in-f3.1e100.net (172.217.20.3): icmp_seq=5 ttl=56 time=16.3 ms
64 bytes from bud02s28-in-f3.1e100.net (172.217.20.3): icmp_seq=6 ttl=56 time=16.3 ms
^C
--- www.google.ro ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5007ms
rtt min/avg/max/mdev = 16.365/16.613/17.105/0.341 ms

在使用这 2 个命令的几个系列之后,我注意到它hping3总是报告比ping. 为什么会发生这种情况,如何解决?

PS:使用Ubuntu 16.04.5 LTS(直连互联网)和UFW(0.35版)

ping
  • 1 个回答
  • 1608 Views
Martin Hope
Adrian
Asked: 2018-12-17 23:52:22 +0800 CST

du 错误报告空目录

  • 13

我正在使用这些命令:

du -sh --apparent-size ./*
du -sh ./*

两个报告:

4.0K    ./Lightroom_catalog_from_win_backup
432M    ./Lightroom catalog - wine_backup

而这些目录包含:

$ll ./"Lightroom catalog - wine_backup"
total 432M
-rwxrwx--- 1 gigi gigi 432M Mar 18  2018 Lightroom 5 Catalog Linux.lrcat
-rwxrwx--- 1 gigi gigi  227 Nov 21  2015 zbackup.bat
$ll ./Lightroom_catalog_from_win_backup
total 396M
-rwxrwx--- 3 gigi gigi 396M Dec 17 09:35 Lightroom 5 Catalog Linux.lrcat
-rwxrwx--- 3 gigi gigi  227 Dec 17 09:35 zbackup.bat

为什么du要报告4.0K./Lightroom_catalog_from_win_backup 以及如何使其正确报告?

PS:其他系统信息:

$stat --file-system $HOME
  File: "/home/gigi"
    ID: 5b052c62a5a527bb Namelen: 255     Type: ext2/ext3
Block size: 4096       Fundamental block size: 4096
Blocks: Total: 720651086  Free: 155672577  Available: 119098665
Inodes: Total: 183050240  Free: 178896289

$lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.5 LTS
Release:        16.04
Codename:       xenial
disk-usage
  • 3 个回答
  • 1829 Views
Martin Hope
Adrian
Asked: 2018-04-06 09:27:18 +0800 CST

snort 中缺少 SID 消息映射文件的谷仓

  • 1

我安装了 snort(当前版本 2.9.7.0-5)然后编译 Barnyard2 版本 2.1.14(构建 337)。首先尝试:

sudo ./barnyard2 -c ../etc/barnyard2.conf -o /var/log/snort/snort.alert

我明白了Unable to open SID file '/etc/snort/sid-msg.map' (No such file or directory)。这是真的, /etc/snort/sid-msg.map 确实丢失了。我尝试使用现有的 /etc/snort/community-sid-msg.map 但后来我得到:

ERROR: [ParseSidMapLine()]: Unknown sidmap file version [0]

我错过了什么或者我应该怎么做才能让它工作?

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.4 LTS
Release:    16.04
Codename:   xenial
snort
  • 1 个回答
  • 2071 Views
Martin Hope
Adrian
Asked: 2018-04-03 08:05:41 +0800 CST

Ubuntu 广播 UPnP 消息

  • 1

我用 iftop 注意到了这一点:

   # Host name (port/service if enabled)            last 2s   last 10s   last 40s cumulative
--------------------------------------------------------------------------------------------
   1 192.168.0.1:41144                        =>        61B        61B        61B     2.86KB
     239.255.255.250:1900                     <=         0B         0B         0B         0B

其中 192.168.0.1 是我的服务器。在我看来,我的服务器正在广播 UPnP 消息。这是什么进程?我怎样才能找到它?

语境

我的网络设置是这样的:
Internet ... [eth0] 我的服务器(充当路由器) [eth1] ... [eth0Asus] 华硕无线路由器 [eth1Asus] ... 无线局域网。
我正在测试使用iftop -i eth1.

sudo systemctl status avahi-daemon
● avahi-daemon.service - Avahi mDNS/DNS-SD Stack
   Loaded: loaded (/lib/systemd/system/avahi-daemon.service; disabled; vendor preset: enabled)
   Active: inactive (dead)

sudo ufw status numbered
Status: active
     To                         Action      From
     --                         ------      ----
[1] 22                         LIMIT IN    Anywhere                  
[2] 80                         ALLOW IN    Anywhere                  
[3] 443                        ALLOW IN    Anywhere

uname -a
Linux gigi-desktop 4.13.0-37-generic #42~16.04.1-Ubuntu SMP Wed Mar 7 16:03:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.4 LTS
Release:    16.04
Codename:   xenial
networking upnp
  • 1 个回答
  • 1149 Views
Martin Hope
Adrian
Asked: 2018-04-02 11:58:47 +0800 CST

iftop 和阻塞端口上的流量

  • 0

我正在使用 iftop 分析网络流量,我对此输出感到困惑:

188.25.15.139:11596     => 104.31.112.90:8880       130KB     32KB     19KB
                        <=                          162KB     51KB     30KB

我的 ip 是 188.25.15.139。

来自 104.31.112.90:8880 的流量我会解释为发送给我的数据包 - 这些可能与其他人想要发送的一样多(我的解释是否正确?)

我的问题是来自我的流量(188.25.15.139:11596);我有 UFW,它阻止了 11596(如果重要,也有 8880),所以我认为没有理由在端口 11596 上“来自我”的如此大的流量。

我也没有监听 11596 或 8880 的进程;我检查了这个:

sudo ss -lptn 'sport = :11596'  
sudo ss -lptn 'sport = :8880'

主要问题:如何解释“来自我”的流量?

lsb_release -a

没有可用的 LSB 模块。
发行商 ID:Ubuntu
描述:Ubuntu 16.04.4 LTS
版本:16.04
代号:xenial

uname -a

Linux gigi-desktop 4.13.0-37-generic #42~16.04.1-Ubuntu SMP Wed Mar 7 16:03:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

编辑

iftop -f "not dst port 443 and not src port 443 and not dst port 80 and not src port 80 and not dst port 53 and not src port 53 and not dst port 123 and not src port 123"

sudo ufw status numbered
Status: active

     To                         Action      From
     --                         ------      ----
[1] 22                         LIMIT IN    Anywhere                  
[2] 80                         ALLOW IN    Anywhere                  
[3] 443                        ALLOW IN    Anywhere                  
networking iftop
  • 1 个回答
  • 491 Views

Sidebar

Stats

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

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

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

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve