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-307939

Mévatlavé Kraspek's questions

Martin Hope
Mévatlavé Kraspek
Asked: 2024-10-19 18:41:41 +0800 CST

remmina-gnome:卡住,按钮不起作用

  • 5

我使用 LinuxMint Wilma。

通过 apt 安装了 remmina 1.4.35。

当我打开 remmina-gnome 时,我看到:

在此处输入图片描述

当我点击按钮时,什么也没有发生。如果我添加一个热名,什么也没有改变。

G_MESSAGES_PREFIXED=all G_MESSAGES_DEBUG=all remmina-gnome 
(process:766370): remmina-DEBUG: 17:34:44.035: (remmina_file_manager_init) - Initialized the "/home/stardust/.local/share/remmina" data folder
(process:766370): GLib-GIO-DEBUG: 17:34:44.038: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
(process:766370): GLib-GIO-DEBUG: 17:34:44.042: _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ?gio-vfs?
(process:766370): remmina-DEBUG: 17:34:44.053: (remmina_plugin_entry) - gfx_h264_available: 0
(process:766370): remmina-DEBUG: 17:34:44.054: (remmina_rdp_settings_kbd_init) - rdp_keyboard_remapping_list: (null)
(process:766370): remmina-DEBUG: 17:34:44.057: (remmina_plugin_manager_register_plugin) - Remmina plugin glibsecret (type=Secret) has been registered, but is not yet initialized/activated. The initialization order is 2000.
(process:766370): remmina-DEBUG: 17:34:44.120: (remmina_plugin_manager_load_plugins) - The glibsecret secret plugin has been initialized and it will be your default secret plugin
(process:766370): GLib-DEBUG: 17:34:44.120: unsetenv() is not thread-safe and should not be used after threads are created
(org.remmina.Remmina:766370): GLib-DEBUG: 17:34:44.139: unsetenv() is not thread-safe and should not be used after threads are created
(org.remmina.Remmina:766370): Gtk-DEBUG: 17:34:44.139: Connecting to session manager
(org.remmina.Remmina:766370): Gtk-DEBUG: 17:34:44.139: Failed to get the GNOME session proxy: The name org.gnome.SessionManager is not owned
(org.remmina.Remmina:766370): remmina-INFO: 17:34:44.202: StatusNotifier/Appindicator support in “xfce xfce”: your desktop does support it
(org.remmina.Remmina:766370): remmina-INFO: 17:34:44.202: StatusNotifier/Appindicator support in “xfce xfce”: and Remmina has built-in (compiled) support for libappindicator.

(org.remmina.Remmina:766370): Gtk-WARNING **: 17:34:44.413: gtk_menu_attach_to_widget(): menu already attached to GtkMenuItem
(org.remmina.Remmina:766370): remmina-DEBUG: 17:34:44.418: (remmina_main_init) - Initializing the Remmina main window
(org.remmina.Remmina:766370): remmina-DEBUG: 17:34:44.476: (remmina_main_init) - Initializing monitor
(org.remmina.Remmina:766370): GLib-GIO-DEBUG: 17:34:44.476: Failed to initialize portal (GNetworkMonitorPortal) for gio-network-monitor: Not using portals
(org.remmina.Remmina:766370): GLib-GIO-DEBUG: 17:34:44.477: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
(org.remmina.Remmina:766370): GLib-GIO-DEBUG: 17:34:44.481: _g_io_module_get_default: Found default implementation networkmanager (GNetworkMonitorNM) for ‘gio-network-monitor’
(org.remmina.Remmina:766370): remmina-DEBUG: 17:34:44.484: (remmina_network_monitor_status) - G_NETWORK_CONNECTIVITY_FULL
(org.remmina.Remmina:766370): remmina-DEBUG: 17:34:44.692: (remmina_icon_connection_changed_cb) - Indicator connection changed to: 1

我不使用 gnome-keyring。我尝试通过 ssh 连接 cli,但失败了,提示:

在此处输入图片描述

但是我可以不用密码进行 ssh。Remmina 尝试使用密码。

linux-mint
  • 1 个回答
  • 12 Views
Martin Hope
Mévatlavé Kraspek
Asked: 2024-01-09 19:40:24 +0800 CST

奇怪的 init 进程监听 TCP 端口 53,LinuxMint Victoria

  • 6

当我运行时netstat -nptl,我有这个奇怪的输出:

tcp        0      0 127.0.2.1:53            0.0.0.0:*               LISTEN      1/init

这是来自dnscrypt-proxyDoH 服务的默认配置。

ps uww 1
USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root           1  0.1  0.0 166580 11936 ?        Ss   12:15   0:01 /sbin/init splash

我想知道为什么 PID 1 现在没有意义了

linux
  • 1 个回答
  • 49 Views
Martin Hope
Mévatlavé Kraspek
Asked: 2023-05-29 09:34:17 +0800 CST

使用 CSV 解析器根据特定列删除重复的 CSV 行

  • 10

我搜索了这个任务,发现了以下较旧的问题:

  • 根据指定列从 CSV 中删除重复项
  • 根据特定列识别 CSV 上的唯一记录

但是我不能使用,awk因为我的数据是一个复杂的 CSV 文件,有多个嵌套的双引号。

假设我想删除以下重复数据(简化案例):

Ref,xxx,zzz
ref1,"foo, bar, base",qux
ref1,"foo, bar, base",bar
ref2,aaa,bbb

在输出中我需要它如下:

Ref,xxx,zzz
ref1,"foo, bar, base",qux
ref2,aaa,bbb

没有awk解决方案,只能使用任何 CSV 解析器。

我尝试了以下内容:

mlr --csv uniq -a -g Ref file.csv

但这是一个错误。

linux
  • 2 个回答
  • 320 Views
Martin Hope
Mévatlavé Kraspek
Asked: 2023-04-19 01:48:00 +0800 CST

XFCE4 中的 alt+f2 让我失去选择

  • 6

有没有人有解决方案来防止alt+f2在 Linux Mint Xfce4 中窃取选择?

例如:我有一个 URL 可以粘贴到 URL 栏中(假设我使用过ctrl+c),然后我用打开brave-browser,alt+f2然后xfrun4由 触发alt+f2,当我粘贴时ctrl+v,而不是我的 URL 我有例子ve-browser。

也许有些东西gsettings或者我需要填写错误报告?

lsb_release -cir
Distributor ID: Linuxmint
Release:    21.1
Codename:   vera
xfce
  • 1 个回答
  • 17 Views
Martin Hope
Mévatlavé Kraspek
Asked: 2023-04-04 18:59:32 +0800 CST

Debian11无法升级Jenkins,公钥不可用:NO_PUBKEY FCEF32E745F2C3D5

  • 7

我尝试升级詹金斯。

我使用新的方式来使用 gpg 密钥:

wget https://pkg.jenkins.io/debian-stable/jenkins.io.key 
gpg --dearmor jenkins.io.key
mv jenkins.io.key.gpg /usr/share/keyrings/jenkins-keyring.asc

cat /etc/apt/sources.list.d/jenkins.list

deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] https://pkg.jenkins.io/debian-stable binary/

apt键:

apt-key list | grep -i jenkins # nothing
# file /usr/share/keyrings/jenkins-keyring.asc
/usr/share/keyrings/jenkins-keyring.asc: PGP/GPG key public ring (v4) created Mon Mar 30 15:10:17 2020 RSA (Encrypt or Sign) 4096 bits MPI=0x99a14538d6e6150d...

但是当我跑步时apt update:

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://pkg.jenkins.io/debian-stable binary/ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FCEF32E745F2C3D5
W: Failed to fetch https://pkg.jenkins.io/debian-stable/binary/Release.gpg  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FCEF32E745F2C3D5
W: Some index files failed to download. They have been ignored, or old ones used instead.

怎么了?

debian
  • 2 个回答
  • 183 Views
Martin Hope
Mévatlavé Kraspek
Asked: 2023-02-28 18:06:46 +0800 CST

bash IO 重定向,如何 du dup() STDERR?

  • 5

考虑以下示例:

exec 10>&2 # duplicate STDERR to fd 10
{ echo ok; inexistantcommand; } > /tmp/both 2>&1 10>/tmp/err
exec 10>&- # close fd 10

我希望 /tmp/err 有错误,但它是空白的:

$ cat /tmp/both
ok
-bash: inixistantcommand: command not found

$ cat /tmp/err
$ 

我做错了什么?

编辑:

试过:

{ echo ok; qsdfghjk;  } &> >(tee /tmp/both) 2>/tmp/err

但是 /tmp/both 只有STDOUT

bash
  • 1 个回答
  • 35 Views
Martin Hope
Mévatlavé Kraspek
Asked: 2023-02-28 16:33:04 +0800 CST

'xmlstarlet edit' 使用变量作为 XPath

  • 8

当您遵循文档时:

xmlstarlet edit --help

您可以阅读--var可用于将 XPath 表达式声明为变量的内容。

生成moc文件:

cat<<EOF > /tmp/file.xml
<root>
<elt>x</elt>
<!-- comment -->
<elt>y</elt>
<!-- other comment -->
</root>
EOF

这个有效,没有变量:

xmlstarlet edit \
    --var xp '//elt/following::comment()' \
    -a '//elt/following::comment()' -t elem -n p -v 'some new text' \
    -a '//elt/following::comment()' -t elem -n p -v 'some other text' \
/tmp/file.xml

这个不使用变量进行编辑:

xmlstarlet edit \
    --var xp '//elt/following::comment()' \
    -a xp -t elem -n p -v 'some new text' \
    -a xp -t elem -n p -v 'some other text' \
/tmp/file.xml

使用变量我想念什么?

xml
  • 1 个回答
  • 78 Views
Martin Hope
Mévatlavé Kraspek
Asked: 2023-02-23 00:14:05 +0800 CST

在 Vagrant 中打开 Solaris11:无法与 127.0.0.1 端口 2222 协商:找不到匹配的主机密钥类型。他们提供:ssh-rsa,ssh-dss

  • 5

我使用这个 Vagrantfile:

Vagrant.configure("2") do |config|

  config.vm.box = "jonatasbaldin/solaris11"
  config.vm.box_version = "1.0.0"
  
end

成功vagrant up,但vagrant ssh退出时返回 255 代码,根本没有任何输出。要调试,我做

$ ssh -v vagrant@localhost -p 2222

我得到:

$ ssh -v vagrant@localhost -p 2222
OpenSSH_8.9p1 Ubuntu-3ubuntu0.1, OpenSSL 3.0.2 15 Mar 2022
debug1: Reading configuration data /home/mevatlave/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 267: Applying options for localhost
debug1: /etc/ssh/ssh_config line 288: Applying options for *
debug1: Connecting to localhost [127.0.0.1] port 2222.
debug1: Connection established.
debug1: identity file /home/mevatlave/.ssh/id_rsa type 0
debug1: identity file /home/mevatlave/.ssh/id_rsa-cert type -1
debug1: identity file /home/mevatlave/.ssh/id_ecdsa type -1
debug1: identity file /home/mevatlave/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/mevatlave/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/mevatlave/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/mevatlave/.ssh/id_ed25519 type -1
debug1: identity file /home/mevatlave/.ssh/id_ed25519-cert type -1
debug1: identity file /home/mevatlave/.ssh/id_ed25519_sk type -1
debug1: identity file /home/mevatlave/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/mevatlave/.ssh/id_xmss type -1
debug1: identity file /home/mevatlave/.ssh/id_xmss-cert type -1
debug1: identity file /home/mevatlave/.ssh/id_dsa type -1
debug1: identity file /home/mevatlave/.ssh/id_dsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.1
debug1: Remote protocol version 2.0, remote software version Sun_SSH_2.2
debug1: compat_banner: no match: Sun_SSH_2.2
debug1: Authenticating to localhost:2222 as 'vagrant'
debug1: load_hostkeys: fopen /home/mevatlave/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: diffie-hellman-group-exchange-sha256
debug1: kex: host key algorithm: (no match)
Unable to negotiate with 127.0.0.1 port 2222: no matching host key type found. Their offer: ssh-rsa,ssh-dss

尝试了很多来自网络搜索的解决方案,但没有成功。有什么提示吗?

在 virtualbox tty 上,我得到sshd[1234]: fatal: no hostkey alg

ssh
  • 2 个回答
  • 20 Views
Martin Hope
Mévatlavé Kraspek
Asked: 2023-02-21 04:14:35 +0800 CST

Bash IO 重定向,打开和关闭“fd”,有人可以解释一下吗?

  • 6

多年来,我一直试图理解这个概念,但此时对此的了解还不完整。

这里有没有人可以通过示例来制作一种教程或很好的解释

  • 开一个新的fd
  • 读自fd
  • 使用fd
  • 关闭fd

我已经阅读了https://www.gnu.org/software/bash/manual/html_node/Redirections.html和man bash,但不清楚,根本没有具体且易于理解的示例。

如果有人能很好地解释它,那将是一个有价值的答案,不仅对我而言。大多数时候语法有点混乱。
有时需要exec,有时不需要。

bash
  • 2 个回答
  • 66 Views
Martin Hope
Mévatlavé Kraspek
Asked: 2022-12-29 10:47:47 +0800 CST

macOS Vagrant 图像卡在“boot.efi, launching..”,Linux 主机上

  • 6

这是我的Vagrantfile:

Vagrant.configure("2") do |config|
  config.vm.box = "ramsey/macos-catalina"
  config.vm.define "macosx-test"
  config.vm.box_version = "1.0.0"

  ## NFS needs host-only network
  config.vm.network "private_network", ip: "192.168.56.100"
  #Ranges: 192.168.56.0/21 

  config.vm.provider :virtualbox do |virtualbox|
    virtualbox.name = "macosx-test"
    virtualbox.memory = 4096
    virtualbox.cpus = 2
    # Show gui, incl. some power
    virtualbox.gui = false

    # Some needed OSX configs
    virtualbox.customize ["modifyvm", :id, "--cpuid-set", "00000001", "000106e5", "00100800", "0098e3fd", "bfebfbff"]
    virtualbox.customize ["setextradata", :id, "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct", "MacBookPro11,3"]
    virtualbox.customize ["setextradata", :id, "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion", "1.0"]
    virtualbox.customize ["setextradata", :id, "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct", "Iloveapple"]
    virtualbox.customize ["setextradata", :id, "VBoxInternal/Devices/smc/0/Config/DeviceKey", "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"]
    virtualbox.customize ["setextradata", :id, "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC", "1"]

    # set resolution on OSX:
    # 0,1,2,3,4,5 :: 640x480, 800x600, 1024x768, 1280x1024, 1440x900, 1920x1200
    virtualbox.customize ["setextradata", :id, "VBoxInternal2/EfiGopMode", "4"]
  end

end

当我跑步时vagrant up,我得到:

在此处输入图像描述

如果我打开virtualbox并打开display,我会得到:

在此处输入图像描述

我怎样才能让它工作?


版本:

$ dpkg -l | grep -E 'vagrant|virtualbox'
ii  ruby-vagrant-cloud                            3.0.5-1                                    all          Vagrant Cloud API Library
ii  vagrant                                       2.2.19+dfsg-1ubuntu1                       all          Tool for building and distributing virtualized development environments
ii  vagrant-libvirt                               0.7.0-1                                    all          Vagrant plugin that adds an Libvirt provider to Vagrant
ii  virtualbox                                    6.1.38-dfsg-3~ubuntu1.22.04.1              amd64        x86 virtualization solution - base binaries
ii  virtualbox-dkms                               6.1.38-dfsg-3~ubuntu1.22.04.1              amd64        x86 virtualization solution - kernel module sources for dkms
ii  virtualbox-qt                                 6.1.38-dfsg-3~ubuntu1.22.04.1              amd64        x86 virtualization solution - Qt based user interface

安装扩展包

linux
  • 1 个回答
  • 35 Views
Martin Hope
Mévatlavé Kraspek
Asked: 2019-09-22 19:38:46 +0800 CST

默认配置iptables,刷表时如何避免被阻塞?

  • 0

当我有一个新的服务器要配置时,我有这个iptables基础:

*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [0:0]

# Keep state.
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

# Loop device.
-A INPUT -i lo -j ACCEPT

# Allow PING from remote hosts.
-A INPUT -p icmp --icmp-type echo-request -j ACCEPT

# allow ssh port 22
-A INPUT -p tcp --dport 22 -j ACCEPT

# allow foobar public IP
-A INPUT -p tcp -s 9.8.7.6 -j ACCEPT

# Allow outgoing trafic
-A OUTPUT -p tcp -d 1.2.3.4 -j ACCEPT
-A OUTPUT -o enp8s0 -d 0.0.0.0/0 -j ACCEPT

COMMIT

我用iptable-restore < file.

问题是当我用 刷新时iptables -F,我被阻塞了。

我必须做些什么才能避免被阻止?

linux
  • 2 个回答
  • 123 Views
Martin Hope
Mévatlavé Kraspek
Asked: 2019-01-31 03:35:04 +0800 CST

如何将鼠标键映射为键盘键而不会丢失 Linux 的“数字键盘”?

  • 5

我知道如何映射鼠标单击F1,F2和F3(分别左键单击、中键单击、右键单击):

xkbset m   # required, but disable keypad
xmodmap -e "keycode 67 = Pointer_Button1 Pointer_Button1"
xmodmap -e "keycode 68 = Pointer_Button2"
xmodmap -e "keycode 69 = Pointer_Button3"

但这需要我使用xkbset m慢键模式:

4如果我从键盘按下,它会将光标移到左侧。我不需要这个功能,只需要上面的映射。

我试图用 来弄清楚xdotool,但我不知道如何处理按下/释放键(用于拖放)

xdotool mousedown 1
xdotool mouseup 1

如何不使用此模式或如何重新映射所有键盘键?

请问键盘上的数字和算术符号怎么样?

还有其他解决方案吗?

有关 Debian (cinnamon) 和 Archlinux (xfce) 所需的信息,如果可能,我想要一个不基于窗口管理器的解决方案。

编辑:

尝试了此解决方案,但我无法使用F1.

在~/.xbindkeysrc:

"xdotool mousedown 1"
    F1
"xdotool mouseup 1"
    F1 + Release

或者 :

"xdotool mousedown 1"
    m:0x10 + c:67
"xdotool mouseup 1"
    m:0x10 + c:67 + Release

然后 :

xset -r 67

编辑2

尝试使用actkbd

# actkbd configuration file
<keycode ("67")> :key : :xdotool mousedown 1
<keycode ("67")> :rel : :xdotool mouseup 1

没有雪茄:/

改编自这里

linux xorg
  • 2 个回答
  • 3640 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