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

Enrique Moreno Tent's questions

Martin Hope
Enrique Moreno Tent
Asked: 2021-11-28 12:49:26 +0800 CST

低音炮不工作

  • 1

出于某种原因,在尝试测试工具时,我的低音炮不会给我任何输出。

在此处输入图像描述

我尝试了不同的配置,但都没有奏效。这是目前的状态/etc/pulse/daemon.conf。

; daemonize = no
; fail = yes
; allow-module-loading = yes
; allow-exit = yes
; use-pid-file = yes
; system-instance = no
; local-server-type = user
; enable-shm = yes
; enable-memfd = yes
; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB
; lock-memory = no
; cpu-limit = no

; high-priority = yes
; nice-level = -11

; realtime-scheduling = yes
; realtime-priority = 5

; exit-idle-time = 20
; scache-idle-time = 20

; dl-search-path = (depends on architecture)

; load-default-script-file = yes
; default-script-file = /etc/pulse/default.pa

; log-target = auto
; log-level = notice
; log-meta = no
; log-time = no
; log-backtrace = 0

; resample-method = speex-float-1
; avoid-resampling = false
; enable-remixing = yes
; remixing-use-all-sink-channels = yes
remixing-produce-lfe = yes
remixing-consume-lfe = yes
lfe-crossover-freq = 80

; flat-volumes = no

; rescue-streams = yes

; rlimit-fsize = -1
; rlimit-data = -1
; rlimit-stack = -1
; rlimit-core = -1
; rlimit-as = -1
; rlimit-rss = -1
; rlimit-nproc = -1
; rlimit-nofile = 256
; rlimit-memlock = -1
; rlimit-locks = -1
; rlimit-sigpending = -1
; rlimit-msgqueue = -1
; rlimit-nice = 31
; rlimit-rtprio = 9
; rlimit-rttime = 200000

; default-sample-format = s16le
; default-sample-rate = 44100
; alternate-sample-rate = 48000
default-sample-channels = 3
default-channel-map = front-left,front-right,lfe

; default-fragments = 4
; default-fragment-size-msec = 25

; enable-deferred-volume = yes
deferred-volume-safety-margin-usec = 1
; deferred-volume-extra-delay-usec = 0

当然,我还确保音量增加了。

在此处输入图像描述

我能做些什么?

更新

型号为:

罗技 Z333 2.1 扬声器系统,带低音炮 重低音、80 瓦峰值功率、3.5 毫米和 RCA 输入

2 个扬声器直接连接到低音炮,低音炮直接连接到“线路输出”连接器。

sound
  • 1 个回答
  • 116 Views
Martin Hope
Enrique Moreno Tent
Asked: 2021-01-09 02:23:36 +0800 CST

无法在内核 5.8.0 中安装 bcwml-kernel-source [重复]

  • 4
这个问题在这里已经有了答案:
bcmwl-kernel-source 在内核上损坏:5.8.0-34-generic (8 个答案)
去年关闭。

我的 Broadcom WiFi 卡的驱动程序又在耍猴戏了。显然,当我尝试重新安装驱动程序时,由于缺少 bcwml-kernel-source 而出现错误,但是当我尝试安装它时,我得到了这个:

➜ sudo apt install bcmwl-kernel-source
Reading package lists... Done
Building dependency tree       
Reading state information... Done
bcmwl-kernel-source is already the newest version (6.30.223.271+bdcom-0ubuntu5).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] 
Setting up bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu5) ...
Removing old bcmwl-6.30.223.271+bdcom DKMS files...
 
------------------------------
Deleting module version: 6.30.223.271+bdcom
completely from the DKMS tree.
------------------------------
Done.
Loading new bcmwl-6.30.223.271+bdcom DKMS files...
Building for 5.8.0-34-generic 5.8.0-36-generic
Building for architecture x86_64
Building initial module for 5.8.0-34-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/bcmwl-kernel-source.0.crash'
Error! Bad return status for module build on kernel: 5.8.0-34-generic (x86_64)
Consult /var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/make.log for more information.
dpkg: error processing package bcmwl-kernel-source (--configure):
 installed bcmwl-kernel-source package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
 bcmwl-kernel-source
E: Sub-process /usr/bin/dpkg returned an error code (1)

为什么我会收到此错误?我该如何解决这个问题?

更新:

我试着像这个问题中所说的那样做,但它也没有奏效。

➜ sudo dpkg -i bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu4_amd64.deb 
dpkg: warning: downgrading bcmwl-kernel-source from 6.30.223.271+bdcom-0ubuntu5 to 6.30.223.271+bdcom-0ubuntu4
(Reading database ... 300024 files and directories currently installed.)
Preparing to unpack bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu4_amd64.deb ...
Removing all DKMS Modules
Done.
Unpacking bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu4) over (6.30.223.271+bdcom-0ubuntu5) ...
Setting up bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu4) ...
Loading new bcmwl-6.30.223.271+bdcom DKMS files...
Building for 5.8.0-34-generic 5.8.0-36-generic
Building for architecture x86_64
Building initial module for 5.8.0-34-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/bcmwl-kernel-source.0.crash'
Error! Bad return status for module build on kernel: 5.8.0-34-generic (x86_64)
Consult /var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/make.log for more information.
dpkg: error processing package bcmwl-kernel-source (--install):
 installed bcmwl-kernel-source package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
 bcmwl-kernel-source
drivers
  • 1 个回答
  • 1739 Views
Martin Hope
Enrique Moreno Tent
Asked: 2020-12-22 01:54:36 +0800 CST

网络打印机在“设置 > 打印机”下出现两次

  • 0

我有一台网络打印机,一台 HP ENVY,由于某种原因,它总是在列表中出现 2 次(有时甚至 3 次)。

发生的另一个奇怪的事情是,每天晚上,正好在 00:00,会出现一条弹出消息,说我的打印机已在网络中被发现。

为什么会这样?我能做些什么来阻止这种奇怪的行为?

在此处输入图像描述

networking printing hp 20.04
  • 1 个回答
  • 512 Views
Martin Hope
Enrique Moreno Tent
Asked: 2020-08-27 23:01:51 +0800 CST

20.04 - Logitech MX Keys 无法与蓝牙配对

  • 4

我正在使用 Ubuntu 20.04.1,我正在尝试通过蓝牙配对我的 MX Keys 键盘。

我使用蓝牙控制面板启动该过程,然后卡在此窗口中。

在此处输入图像描述

即使我输入了正确的 PIN 并按 ENTER,该过程仍然没有完成。事实上,它卡在那个模式下,无法关闭 PIN 窗口。

我也尝试过使用“Blueman”获得类似的结果。我开始“设置”过程,这就是我最终得到的。

在此处输入图像描述

我也试过bluetoothctl

➜ bluetoothctl connect CB:DD:B4:5C:4E:E3
Attempting to connect to CB:DD:B4:5C:4E:E3
[CHG] Device CB:DD:B4:5C:4E:E3 Connected: yes
Connection successful

~ took 8s 
➜ bluetoothctl trust CB:DD:B4:5C:4E:E3
[CHG] Device CB:DD:B4:5C:4E:E3 Trusted: yes
Changing CB:DD:B4:5C:4E:E3 trust succeeded

~ 
➜ bluetoothctl pair CB:DD:B4:5C:4E:E3
Attempting to pair with CB:DD:B4:5C:4E:E3
[CHG] Device CB:DD:B4:5C:4E:E3 ServicesResolved: yes
[CHG] Device CB:DD:B4:5C:4E:E3 ServicesResolved: no
[CHG] Device CB:DD:B4:5C:4E:E3 Connected: no
Failed to pair: org.bluez.Error.AuthenticationCanceled

~ took 30s 

可以做些什么来让它发挥作用?

更新

如果我在我的电脑中重置蓝牙,我已经设法获得了一个 PIN bluetoothctl,但即使我输入了 PIN,身份验证也会失败。就好像它忽略了我输入的内容......

[bluetooth]# pair CB:DD:B4:5C:4E:E3
Attempting to pair with CB:DD:B4:5C:4E:E3
[CHG] Device CB:DD:B4:5C:4E:E3 Connected: yes
[agent] Passkey: 610148
[CHG] Device CB:DD:B4:5C:4E:E3 Connected: no
Failed to pair: org.bluez.Error.AuthenticationCanceled
keyboard bluetooth logitech 20.04
  • 4 个回答
  • 11392 Views
Martin Hope
Enrique Moreno Tent
Asked: 2020-05-04 12:30:16 +0800 CST

在我的网络列表中找不到我的 SSID

  • 0

我的路由器设置了 2 个不同的 SSID,一个用于 2.4 (SSID:) EMT,另一个用于 5.0 (SSID:) EMT-5Gzh。

最近几天我的互联网出现故障,所以我终于打电话给支持,过了一会儿,他只是告诉我“恢复出厂设置”路由器,看看是否能解决问题。所以我做了。

现在,完成所有设置后,我的手机可以再次连接EMT-5Ghz而没有任何问题,无需更改任何设置。但我的电脑并没有那么合作。

在可见网络列表中,EMT-5Ghz没有出现,即使EMT是。我知道我的卡可以做到这一点,因为它已经做了几个月了。而且我没有碰过我电脑中的任何配置,所以当我重置路由器时,它应该会自动重新连接。但是 5 Ghz SSID 只是没有出现。

在此处输入图像描述

到底是怎么回事?我怎么能尝试解决这个问题?

更新 1是的,我尝试重新启动我的电脑

更新 2要求的信息:

~ 
➜ iwlist wlp5s0 freq         
wlp5s0    32 channels in total; available frequencies :
          Channel 01 : 2.412 GHz
          Channel 02 : 2.417 GHz
          Channel 03 : 2.422 GHz
          Channel 04 : 2.427 GHz
          Channel 05 : 2.432 GHz
          Channel 06 : 2.437 GHz
          Channel 07 : 2.442 GHz
          Channel 08 : 2.447 GHz
          Channel 09 : 2.452 GHz
          Channel 10 : 2.457 GHz
          Channel 11 : 2.462 GHz
          Channel 12 : 2.467 GHz
          Channel 13 : 2.472 GHz
          Channel 32 : 5.16 GHz
          Channel 34 : 5.17 GHz
          Channel 36 : 5.18 GHz
          Channel 38 : 5.19 GHz
          Channel 40 : 5.2 GHz
          Channel 42 : 5.21 GHz
          Channel 44 : 5.22 GHz
          Channel 46 : 5.23 GHz
          Channel 48 : 5.24 GHz
          Channel 52 : 5.26 GHz
          Channel 54 : 5.27 GHz
          Channel 56 : 5.28 GHz
          Channel 58 : 5.29 GHz
          Channel 60 : 5.3 GHz
          Channel 62 : 5.31 GHz
          Channel 64 : 5.32 GHz
          Channel 66 : 5.33 GHz
          Channel 68 : 5.34 GHz
          Channel 96 : 5.48 GHz
          Current Frequency:2.412 GHz (Channel 1)
networking wireless network-manager
  • 1 个回答
  • 63 Views
Martin Hope
Enrique Moreno Tent
Asked: 2019-11-06 13:48:56 +0800 CST

Wifi 适配器似乎不见了……有点

  • 0

好的,所以我重新启动了我的计算机,但情况有所不同...我的 Wifi 连接面板不见了!好像我没有wifi适配器了!

在此处输入图像描述

奇怪的是,使用 lshw确实检测到适配器......

➜ lshw -C network                            
WARNING: you should run this program as super-user.
  *-network UNCLAIMED       
       description: Network controller
       product: BCM4352 802.11ac Wireless Network Adapter
       vendor: Broadcom Inc. and subsidiaries
       physical id: 0
       bus info: pci@0000:04:00.0
       version: 03
       width: 64 bits
       clock: 33MHz
       capabilities: bus_master cap_list
       configuration: latency=0
       resources: memory:a3400000-a3407fff memory:a3200000-a33fffff
  *-network
       description: Ethernet interface
       product: Ethernet Connection (7) I219-V
       vendor: Intel Corporation
       physical id: 1f.6
       bus info: pci@0000:00:1f.6
       logical name: eno1
       version: 10
       serial: 40:b0:76:de:79:9a
       size: 100Mbit/s
       capacity: 1Gbit/s
       width: 32 bits
       clock: 33MHz
       capabilities: bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k duplex=full firmware=0.5-4 ip=192.168.178.48 latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
       resources: irq:127 memory:a3500000-a351ffff
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.

到底是怎么回事?!

更新

➜ sudo dkms build bcmwl/6.30.223.271+bdcom

Kernel preparation unnecessary for this kernel.  Skipping...
applying patch 0002-Makefile.patch...patching file Makefile
Hunk #1 succeeded at 113 with fuzz 1.
Hunk #2 succeeded at 132 with fuzz 2 (offset 1 line).

applying patch 0003-Make-up-for-missing-init_MUTEX.patch...patching file src/wl/sys/wl_linux.c
Hunk #1 succeeded at 111 with fuzz 2 (offset 12 lines).

applying patch 0010-change-the-network-interface-name-from-eth-to-wlan.patch...patching file src/wl/sys/wl_linux.c
Hunk #1 succeeded at 221 (offset -14 lines).

applying patch 0013-gcc.patch...patching file Makefile

applying patch 0019-broadcom-sta-6.30.223.248-3.18-null-pointer-fix.patch...patching file src/wl/sys/wl_linux.c
Hunk #1 succeeded at 2169 (offset 12 lines).

applying patch 0020-add-support-for-linux-4.3.patch...patching file src/shared/linux_osl.c

applying patch 0021-add-support-for-Linux-4.7.patch...patching file src/wl/sys/wl_cfg80211_hybrid.c

applying patch 0022-add-support-for-Linux-4.8.patch...patching file src/wl/sys/wl_cfg80211_hybrid.c
Hunk #1 succeeded at 2391 (offset 3 lines).
Hunk #2 succeeded at 2501 (offset 3 lines).
Hunk #3 succeeded at 2933 (offset 9 lines).

applying patch 0023-add-support-for-Linux-4.11.patch...patching file src/include/linuxver.h
patching file src/wl/sys/wl_linux.c
Hunk #1 succeeded at 2919 (offset 4 lines).

applying patch 0024-add-support-for-Linux-4.12.patch...patching file src/wl/sys/wl_cfg80211_hybrid.c
Hunk #1 succeeded at 55 (offset 5 lines).
Hunk #2 succeeded at 472 (offset 5 lines).
Hunk #3 succeeded at 2371 (offset 5 lines).
Hunk #4 succeeded at 2388 (offset 5 lines).

applying patch 0025-add-support-for-Linux-4.14.patch...patching file src/shared/linux_osl.c
Hunk #1 succeeded at 1080 (offset 4 lines).

applying patch 0026-add-support-for-Linux-4.15.patch...patching file src/wl/sys/wl_linux.c
Hunk #2 succeeded at 2306 (offset 4 lines).
Hunk #3 succeeded at 2368 (offset 4 lines).


Building module:
cleaning build area...
make -j12 KERNELRELEASE=5.3.0-20-generic -C /lib/modules/5.3.0-20-generic/build M=/var/lib/dkms/bcmwl/6.30.223.271+bdcom/build...(bad exit status: 2)
ERROR (dkms apport): kernel package linux-headers-5.3.0-20-generic is not supported
Error! Bad return status for module build on kernel: 5.3.0-20-generic (x86_64)
Consult /var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/make.log for more information.

难道是内核 5.3.0-20 破坏了驱动程序?

networking wireless drivers 18.04
  • 2 个回答
  • 1363 Views
Martin Hope
Enrique Moreno Tent
Asked: 2019-06-24 10:29:38 +0800 CST

18.04 - 使用 NVIDIA GTX 970 屏幕撕裂

  • 2

我似乎在 Ubuntu 18.04 中遇到了屏幕撕裂的问题,通过运行此测试得到了确认:

https://www.youtube.com/watch?v=MfL_JkcEFbE

我在谷歌搜索了一段时间,但我发现的只是更改文件/etc/modprobe.d/nvidia-drm-nomodeset.conf并添加的建议

options nvidia-drm modeset=1

但这无济于事。

这些是我正在使用的驱动程序:

在此处输入图像描述

我能做些什么来解决这个问题?

更新:

这是我的 X 配置:

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 418.56

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "type1"
    Load           "freetype"
    Load           "glx"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "DELL U2719D"
    HorizSync       30.0 - 90.0
    VertRefresh     56.0 - 76.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 970"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-4"
    Option         "metamodes" "DP-2: nvidia-auto-select +1080+618, DP-0: nvidia-auto-select +0+0 {rotation=right}"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection


nvidia graphics 18.04
  • 1 个回答
  • 418 Views
Martin Hope
Enrique Moreno Tent
Asked: 2018-12-09 00:58:18 +0800 CST

华硕 PCE 无法检测到 5ghz 网络

  • 3

我有一个支持 5Ghz 的 wifi 卡。该卡是华硕PCE AC56。

我已经使用“Broadcom 802.11 Linux STA 无线驱动程序”从“软件和更新”中的“添加驱动程序”选项卡安装了我的 WiFi 卡的驱动程序。

我已将路由器设置为在 2.4Ghz 和 5Ghzs 上为网络提供不同的 SSID。

当我转到我的 Wifi 设置并列出可见网络时,只出现 2.4Ghz 的网络,而不出现 5Ghz 的网络。

我需要做什么才能找到 5Ghz 网络?

networking drivers network-manager broadcom asus
  • 1 个回答
  • 5891 Views
Martin Hope
Enrique Moreno Tent
Asked: 2018-10-26 08:35:35 +0800 CST

Ubuntu 18.04 - “Ubuntu 网络连接激活失败”

  • 16

我有IPVanish作为我的 VPN 提供商,通常我可以毫无问题地使用 Ubuntu 18.04 连接到他们几乎所有的服务器。

但是几周以来,每次我尝试登录他们的 VPN 时,都会收到以下通知:

激活网络连接失败 Ubuntu

我很不确定从这一点开始该怎么做,因为正如您所看到的,系统没有太多反馈。

有谁知道我能做些什么来解决它?

脚注:我知道我没有提供太多信息,但这就是我所得到的。如果您需要任何其他信息来调试此案例,请将其添加到评论中,我将立即转储终端输出。

更新 1:我已经尝试联系提供商。他们不断给我发电子邮件,但他们似乎很迷茫。

更新 2:通过导入.ovpn文件自动完成 VPN 的配置。我尝试删除所有现有的,并从头开始重置它们,但没有帮助。

更新 3:他们使用 OpenVPN。

networking vpn 18.04
  • 8 个回答
  • 79954 Views
Martin Hope
Enrique Moreno Tent
Asked: 2018-10-24 23:04:21 +0800 CST

Ubuntu 18.04 - 准备安装 rbenv 时依赖关系中断

  • 1

我正在尝试使用本指南安装rbenv。为此,需要以下依赖项:

$ sudo apt install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm5 libgdbm-dev

但这是我尝试从终端安装它们时得到的响应:

$ sudo apt install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm5 libgdbm-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libreadline-dev' instead of 'libreadline6-dev'
build-essential is already the newest version (12.4ubuntu1).
libgdbm5 is already the newest version (1.14.1-6).
zlib1g-dev is already the newest version (1:1.2.11.dfsg-0ubuntu2).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libncurses5-dev : Depends: libtinfo5 (= 6.1-1ubuntu1) but 6.1-1ubuntu1.18.04 is to be installed
                   Depends: libncurses5 (= 6.1-1ubuntu1) but 6.1-1ubuntu1.18.04 is to be installed
                   Depends: libtinfo-dev (= 6.1-1ubuntu1) but it is not going to be installed
 libreadline-dev : Depends: libtinfo-dev but it is not going to be installed
 libssl-dev : Depends: libssl1.1 (= 1.1.0g-2ubuntu4) but 1.1.0g-2ubuntu4.1 is to be installed
E: Unable to correct problems, you have held broken packages.

好像我安装了一些损坏的软件包,但我不太确定。我该如何解决这个问题?

package-management dependencies apt
  • 6 个回答
  • 12006 Views
Martin Hope
Enrique Moreno Tent
Asked: 2018-05-25 05:58:29 +0800 CST

Snap 包无法使用我的 SSH 密钥

  • 7

我已经通过 snappy 安装了 GitKraken,一个 git 客户端。

$ sudo snap install gitkrakren

但是当我尝试推送到我的存储库时,我收到了一个身份验证错误。这很奇怪,因为我可以毫无问题地从终端推送。于是我进入配置,尝试手动设置公钥和私钥。但是当我试图打开该文件夹时,~/.ssh我收到一条消息,它被禁止了。

  • GitKraken 是否使用了自己的 SSH 密钥,因为它是一个 snap 包?
  • 有没有办法让它使用我自己的密钥,还是我被迫使用 snap 包中的 SSH 密钥?
  • 如果是最后一种情况,我在哪里可以找到它们?
ssh snap
  • 2 个回答
  • 3948 Views
Martin Hope
Enrique Moreno Tent
Asked: 2018-04-20 07:25:11 +0800 CST

无法 ping 使用 NAT 创建的虚拟机

  • 1

所以我在我的主机(Ubuntu 17.10)中创建了一个带有 VirtualBox + Vagrant + Ansible 的虚拟机。

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

  config.vm.box = "centos-7.3-x86_64_latest.box"
  config.vm.box_url = "http://nas.my-compamy.intern/centos-7.3-x86_64_latest.box"

  config.vm.hostname = "login.my-cloud.dev"
  config.vm.network "private_network", ip: "192.168.33.240"

  # enable to use synced folders
  # config.vm.synced_folder "/my/local/path", "/var/www/cce_login", disabled: true

  config.ssh.forward_agent = true
  config.ssh.keep_alive = true
  config.ssh.username = "vagrant"
  config.ssh.password = "vagrant"

  config.vm.provider :virtualbox do |v|
    # workaround as some virtualbox version seem to disconnect the NAT adapter
    v.customize ['modifyvm', :id, '--cableconnected1', 'on']

    v.memory = 1024
    v.cpus = 2
    v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
    v.customize ["modifyvm", :id, "--name", "login.cce-cloud.dev"]
    v.customize ["modifyvm", :id, "--accelerate3d", "off"]
    v.customize ["modifyvm", :id, "--accelerate2dvideo", "off"]
    v.customize ["modifyvm", :id, "--cpuexecutioncap", "75"]
    v.customize ["modifyvm", :id, "--largepages", "on"]
  end

  config.vm.provision "ansible" do |ansible|
    ansible.playbook = "ansible/site.yml"
    ansible.verbose = "vvv"
  end

end

我通过

$ vagrant up --provision

完成所有这些之后,我可以像这样通过 Vagrant 登录 SSH。

$ vagrant ssh

但是当我想从 MySQL Workbench、FTP 访问或直接 SSH 中使用它时,我得到一个错误。我什至无法ping通机器。

$ ping 192.168.33.240

PING 192.168.33.240 (192.168.33.240) 56(84) bytes of data.
From 192.168.33.1 icmp_seq=1 Destination Host Unreachable
From 192.168.33.1 icmp_seq=2 Destination Host Unreachable
From 192.168.33.1 icmp_seq=3 Destination Host Unreachable

由于我没有从 DevOps 团队更改 Vagrantfile 的权限,我认为错误一定出在我的主机配置方式中,但我似乎看不出问题出在哪里。

$ ifconfig 

enxdc9b9cee07b2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.111.198  netmask 255.255.255.0  broadcast 192.168.111.255
        inet6 fe80::f0ad:1d52:8e55:7fc7  prefixlen 64  scopeid 0x20<link>
        ether dc:9b:9c:ee:07:b2  txqueuelen 1000  (Ethernet)
        RX packets 11159  bytes 4878538 (4.8 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 8289  bytes 2106425 (2.1 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 1607  bytes 173261 (173.2 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1607  bytes 173261 (173.2 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

vboxnet0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.33.1  netmask 255.255.255.0  broadcast 192.168.33.255
        inet6 fe80::800:27ff:fe00:0  prefixlen 64  scopeid 0x20<link>
        ether 0a:00:27:00:00:00  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 170  bytes 18067 (18.0 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

如何更改主机操作系统的配置,使其达到虚拟操作系统?

注意:这enxdc9b9cee07b2是我的有线连接。我知道通常是这样,eth0但我正在使用 USB 端口的适配器

更新

更多信息

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

networking virtualbox vagrant ping
  • 2 个回答
  • 6010 Views
Martin Hope
Enrique Moreno Tent
Asked: 2018-01-26 01:31:01 +0800 CST

无法导入 ovpn 文件 - 密钥文件包含不是键值对的“客户端”

  • 10

当我尝试VPN从文件导入设置时,OVPN出现以下错误。

无法读取文件“test.ovpn”或不包含可识别的 VPN 连接信息。错误:密钥文件包含不是键值对、组或注释的“client”行

我很确定“客户端”这一行不应该是一个问题,因为我在其他.ovpn文件中也有它。

这有什么问题?

PS:这是ovpn文件的开头(有假数据)

client
dev tun
proto tcp
remote xxxxx.yyyyyyyyy.de 443
verify-x509-name "C=de, L=Somewhere, O=mycompanyname AG, CN=xxxxx.yyyyyyyy.de, [email protected]"
route remote_host 255.255.255.255 net_gateway
resolv-retry infinite
nobind
persist-key
persist-tun
auth-user-pass
cipher AES-256-CBC
auth MD5
comp-lzo no
route-delay 4
verb 3
reneg-sec 0
vpn
  • 2 个回答
  • 10933 Views
Martin Hope
Enrique Moreno Tent
Asked: 2017-05-05 02:08:29 +0800 CST

识别图标集

  • 0

我正在使用带有酷图标集的 Ubuntu 系统,我很想知道它是哪一个,以便在家里尝试一下。但我不知道怎么做。

这是一个示例:

在此处输入图像描述

如果我查看“设置 > 外观”,这就是我得到的:

在此处输入图像描述

如您所见Theme,它是空的。

我也试着在下面找,~/.config/gtk-3.0/settings.ini什么也没有。

我能做什么?

icons
  • 2 个回答
  • 62 Views
Martin Hope
Enrique Moreno Tent
Asked: 2017-01-06 05:41:17 +0800 CST

控制泡沫火箭发射器的软件?

  • 2

我知道在较旧的发行版中,有一个名为“pyrocket”的包可以用来控制来自 Ubuntu 的这些小玩具。

有谁知道可以在 Ubuntu 16.04 上安装的任何当前软件包?

在此处输入图像描述

16.04
  • 1 个回答
  • 75 Views
Martin Hope
Enrique Moreno Tent
Asked: 2016-07-24 03:09:36 +0800 CST

SSH 公钥末尾的电子邮件用途

  • 26

authorized_keys当我意识到在我的公共 SSH 密钥的末尾有我的电子邮件时,我正在将我的一个公钥添加到我的一台服务器上:

$ cat .ssh/id_rsa.pub
ssh-rsa AAAA[...lots of characters...]bpL [email protected]
  • 为什么我的电子邮件地址在密钥末尾?
  • 它有什么特定的目的吗?
  • 我可以在我的authorized_keys文件中写任何我想要的东西吗?比如:

    ssh-rsa AAAA[...lots of characters...]bpL John Doe (Home PC)
    
ssh
  • 1 个回答
  • 23936 Views
Martin Hope
Enrique Moreno Tent
Asked: 2016-01-04 15:46:41 +0800 CST

zsh建议安装哪些软件包[重复]

  • 20
这个问题在这里已经有了答案:
配置检测命令是否不存在,建议安装 (5个回答)
6年前关闭。

我喜欢使用zsh,但有一个bash我想念的功能。就是这个:

➜  ~  bash

dbugger@mercury:~$ man2html
The program 'man2html' is currently not installed. You can install it by typing:
sudo apt-get install man2html-base

dbugger@mercury:~$ exit
exit

➜  ~  man2html
zsh: command not found: man2html

当我键入一个不是安装但可以轻松安装的命令时,bash告诉你是这样,但zsh不是。

有没有什么办法解决这一问题?

bash
  • 1 个回答
  • 3212 Views
Martin Hope
Enrique Moreno Tent
Asked: 2015-03-14 11:01:42 +0800 CST

完全删除 Sublime Text 3

  • 8

我想从我的系统中完全删除 Sublime Text 3。我试过这个:

sudo apt-get purge sublime-text-installer

并且应用程序消失了,但是当我再次安装它时......

sudo apt-get install sublime-text-installer

...主题和插件保持安装状态。

14.04
  • 3 个回答
  • 60178 Views
Martin Hope
Enrique Moreno Tent
Asked: 2014-10-18 07:05:15 +0800 CST

如果 Vagrant box 没有手动停止,系统将无法关闭

  • 2

当我尝试关闭我的机器时,它“冻结”或停留在一个点上,无法完成该过程。我收到消息

unregistered_netdevice: waiting for vboxnet2 to become free. Usage count = 1

经过一些实验后,我注意到如果我停止 vagrant boxes,这个错误就不会发生。

vagrant halt

这是几周前开始的新行为。我该如何解决这个问题?

virtualbox
  • 2 个回答
  • 1030 Views
Martin Hope
Enrique Moreno Tent
Asked: 2014-09-27 03:13:08 +0800 CST

可以使用 Ruby 2.1.3 在 Ubuntu 14.04 上安装 Rails

  • 0

我正在使用 Ubuntu 14.04。我想用最新的ruby(2.1.3版),所以用RVM安装。

rvm install ruby --latest
rvm use ruby --latest --default

但是当我尝试安装 Rails 时,出现以下错误:

vagrant@vagrant-ubuntu-trusty-64:~$ sudo gem install rails
Building native extensions.  This could take a while...
ERROR:  Error installing rails:
    ERROR: Failed to build gem native extension.

        /usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from extconf.rb:1:in `<main>'


Gem files will remain installed in /var/lib/gems/1.9.1/gems/json-1.8.1 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/json-1.8.1/ext/json/ext/generator/gem_make.out

怎么了?

14.04
  • 2 个回答
  • 2079 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