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
    • 最新
    • 标签
主页 / computer / 问题

问题[arch-linux](computer)

Martin Hope
GhostNoise
Asked: 2024-07-10 06:11:54 +0800 CST

pptpclient 拒绝 CHAP MD5 身份验证

  • 5

我正在使用 Arch Linux 路由器连接到 ISP 的 VPN,但由于某种原因,CHAP 身份验证被拒绝:

rcvd [LCP ConfReq id=0x1 <auth chap MD5> <mru 1436> <magic 0x5e9f9414>]
No auth is possible
sent [LCP ConfRej id=0x1 <auth chap MD5>]

如何修复此问题?

详细信息

日志

root@Chiruno:~# pon wan debug dump logfd 2 nodetach
pppd options in effect:
debug           # (from command line)
nodetach                # (from command line)
logfd 2         # (from command line)
ifname wan              # (from /etc/ppp/peers/wan)
dump            # (from command line)
noauth          # (from /etc/ppp/options.pptp)
refuse-pap              # (from /etc/ppp/options.pptp)
                # (from /etc/ppp/options)
                # (from /etc/ppp/options.pptp)
refuse-mschap-v2                # (from /etc/ppp/options.pptp)
refuse-eap              # (from /etc/ppp/options.pptp)
name username           # (from /etc/ppp/peers/wan)
remotename PPTP         # (from /etc/ppp/options.pptp)
                # (from /etc/ppp/options.pptp)
pty /usr/sbin/pptp pptp.isp --nolaunchpppd          # (from /etc/ppp/peers/wan)
ipparam $TUNNEL         # (from /etc/ppp/peers/wan)
defaultroute            # (from /etc/ppp/peers/wan)
replacedefaultroute             # (from /etc/ppp/peers/wan)
nobsdcomp               # (from /etc/ppp/options)
nodeflate               # (from /etc/ppp/options)
using channel 672
Using interface wan
Connect: wan <--> /dev/pts/6
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x6fec8267> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <auth chap MD5> <mru 1436> <magic 0x5e9f9414>]
No auth is possible
sent [LCP ConfRej id=0x1 <auth chap MD5>]
rcvd [LCP ConfRej id=0x1 <asyncmap 0x0> <pcomp> <accomp>]
sent [LCP ConfReq id=0x2 <magic 0x6fec8267>]
rcvd [LCP ConfReq id=0x2 <auth chap MD5> <mru 1436> <magic 0x5e9f9414>]
No auth is possible
sent [LCP ConfRej id=0x2 <auth chap MD5>]
Modem hangup
Connection terminated.
Script /usr/sbin/pptp pptp.isp --nolaunchpppd finished (pid 40392), status = 0x0

配置

/etc/ppp/options.pptp

###############################################################################
# $Id: options.pptp,v 1.4 2012/08/30 21:34:13 quozl Exp $
#
# Sample PPTP PPP options file /etc/ppp/options.pptp
# Options used by PPP when a connection is made by a PPTP client.
# This file can be referred to by an /etc/ppp/peers file for the tunnel.
# Changes are effective on the next connection.  See "man pppd".
#
# You are expected to change this file to suit your system.  As
# packaged, it requires PPP 2.4.2 or later from http://ppp.samba.org/
# and the kernel MPPE module available from the CVS repository also on
# http://ppp.samba.org/, which is packaged for DKMS as kernel_ppp_mppe.
###############################################################################

# Lock the port
lock

# Authentication
# We don't need the tunnel server to authenticate itself
noauth

# We won't do PAP, EAP, MSCHAP or MSCHAP-V2 but we will accept CHAP
# (you may need to remove these refusals if the server is not using MPPE)
refuse-pap
refuse-eap
refuse-mschap
refuse-mschap-v2

remotename PPTP

# Compression
# Turn off compression protocols we know won't be used
#nobsdcomp
#nodeflate

# Encryption
# (There have been multiple versions of PPP with encryption support,
# choose which of the following sections you will use.  Note that MPPE
# requires the use of MSCHAP-V2 during authentication)
#
# Note that using PPTP with MPPE and MSCHAP-V2 should be considered
# insecure:
# http://marc.info/?l=pptpclient-devel&m=134372640219039&w=2
# https://github.com/moxie0/chapcrack/blob/master/README.md
# http://technet.microsoft.com/en-us/security/advisory/2743314

# http://ppp.samba.org/ the PPP project version of PPP by Paul Mackarras
# ppp-2.4.2 or later with MPPE only, kernel module ppp_mppe.o
# If the kernel is booted in FIPS mode (fips=1), the ppp_mppe.ko module
# is not allowed and PPTP-MPPE is not available.
# {{{
# Require MPPE 128-bit encryption
#require-mppe-128
# }}}

# http://mppe-mppc.alphacron.de/ fork from PPP project by Jan Dubiec
# ppp-2.4.2 or later with MPPE and MPPC, kernel module ppp_mppe_mppc.o
# {{{
# Require MPPE 128-bit encryption
#mppe required,stateless
# }}}

/etc/ppp/peers/wan

pty "/usr/sbin/pptp pptp.isp --nolaunchpppd"
name username
remotename PPTP
require-chap
file /etc/ppp/options.pptp
ifname wan
ipparam $TUNNEL
defaultroute
replacedefaultroute

/etc/ppp/chap-秘密

# user          remote  secret          IP addresses
"username"      PPTP    "P4ssw0rd!1!"   *
arch-linux
  • 1 个回答
  • 11 Views
Martin Hope
Oleksandr Danulchyk
Asked: 2024-06-16 01:17:27 +0800 CST

如何使用 .xinitrc 在启动时执行 bash 命令

  • 6

我需要能够在工作时更改语言,因此每次登录时我都会使用此命令:

setxkbmap -layout us,ua -option grp:toggle

有什么办法可以在每次启动时执行此命令吗?

(setxkbmap -layout us,ua -option grp:toggle) & $(setxkbmap -layout us,ua -option grp:toggle)

对我来说不起作用,但我只在执行窗口管理器后尝试过它们。

目前,我的.xinitrc 文件如下所示:

/usr/bin/pipewire &
/use/bin/pipewire-pulse &


picom &
~/.fehbg

while true
do
    xsetroot -name "$(cat /sys/class/power_supply/BAT1/capacity)% | $(cat ~xenovar/mission.txt) | $(date +"%H:%M")"
    sleep 1m
done &
    
#exec startplasma-x11
exec dwm
$(setxkbmap -layout us,ua -option grp:toggle)
arch-linux
  • 1 个回答
  • 20 Views
Martin Hope
94230
Asked: 2024-03-23 07:45:28 +0800 CST

有没有一种使用 Chef 引导 Arch Linux 的简单方法?

  • 5

我知道chef.io不支持Arch Linux,但是有没有办法使用knife bootstrap来引导Arch Linux节点?

我尝试了在 Debian 机器中使用的相同命令,但出现错误:

knife bootstrap 10.2.128.80 --ssh-identity-file ~/.ssh/id_rsa --connection-user myUser -N webserver --environment staging --bootstrap-version 18 -y --sudo
Connecting to 10.2.128.80 using ssh
Connecting to 10.2.128.80 using ssh

DEBUG: [SSH] [email protected] cmd = cmd.exe /c ver
DEBUG: [SSH] [email protected] cmd = Get-WmiObject Win32_OperatingSystem | Select Caption,Version | ConvertTo-Json
DEBUG: [SSH] [email protected] cmd = uname -s
DEBUG: [SSH] [email protected] cmd = uname -m
DEBUG: [SSH] [email protected] cmd = test -f /etc/debian_version
DEBUG: [SSH] [email protected] cmd = test -f /etc/os-release && cat /etc/os-release
DEBUG: [SSH] [email protected] cmd = show version
DEBUG: [SSH] [email protected] cmd = test -f /etc/lsb-release && cat /etc/lsb-release
DEBUG: [SSH] [email protected] cmd = test -f /etc/oracle-release && cat /etc/oracle-release
DEBUG: [SSH] [email protected] cmd = test -f /etc/enterprise-release && cat /etc/enterprise-release
DEBUG: [SSH] [email protected] cmd = test -f /etc/parallels-release && cat /etc/parallels-release
DEBUG: [SSH] [email protected] cmd = test -f /etc/system-release && cat /etc/system-release
DEBUG: [SSH] [email protected] cmd = test -f /etc/redhat-release && cat /etc/redhat-release
DEBUG: [SSH] [email protected] cmd = test -f /etc/SuSE-release && cat /etc/SuSE-release
DEBUG: [SSH] [email protected] cmd = test -f /etc/arch-release
DEBUG: [SSH] [email protected] cmd = uname -r
DEBUG: [SSH] [email protected] cmd = sh -c '(sudo echo) < /dev/null'
DEBUG: [SSH] [email protected] cmd = sudo echo '[SSH] Established'
WARNING: Performing legacy client registration with the validation key at /home/myUser/.chef/org-validator.pem...
WARNING: Remove the key file or remove the 'validation_key' configuration option from your config.rb (knife.rb) to use more secure user credentials for client registration.
TRACE: Looking for bootstrap template in /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/knife-18.2.7/lib/chef/knife/bootstrap/templates
TRACE: Found bootstrap template: /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/knife-18.2.7/lib/chef/knife/bootstrap/templates/chef-full.erb
Bootstrapping 10.2.128.80
DEBUG: [SSH] [email protected] cmd = sudo sh /tmp/chef_T472LE/bootstrap.sh
 [10.2.128.80] -----> Installing Chef Omnibus (stable/18)
downloading https://omnitruck.chef.io/chef/install.sh
  to file /tmp/install.sh.32304/install.sh
 [10.2.128.80] trying wget...
 [10.2.128.80] "arch" "rolling" x86_64
 [10.2.128.80] Getting information for chef stable 18 for "arch"...
 [10.2.128.80] downloading https://omnitruck.chef.io/stable/chef/metadata?v=18&p="arch"&pv="rolling"&m=x86_64
  to file /tmp/install.sh.32308/metadata.txt
 [10.2.128.80] trying wget...
 [10.2.128.80] ERROR 404
 [10.2.128.80] Omnitruck artifact does not exist for version 18 on platform "arch"

Either this means:
   - We do not support "arch"
   - We do not have an artifact for 18

 [10.2.128.80] This is often the latter case due to running a prerelease or RC version of Chef
or a gem version which was only pushed to rubygems and not omnitruck.

You may be able to set your knife[:bootstrap_version] to the most recent stable
release of Chef to fix this problem (or the most recent stable major version number).

In order to test the version parameter, adventurous users may take the Metadata URL
 [10.2.128.80] below and modify the '&v=<number>' parameter until you successfully get a URL that
does not 404 (e.g. via curl or wget).  You should be able to use '&v=11' or '&v=12'
 [10.2.128.80] successfully.

 [10.2.128.80] If you cannot fix this problem by setting the bootstrap_version, it probably means
that "arch" is not supported.
 [10.2.128.80]
Metadata URL: https://omnitruck.chef.io/stable/chef/metadata?v=18&p="arch"&pv="rolling"&m=x86_64
 [10.2.128.80] Starting the first Chef Infra Client Client run...
 [10.2.128.80] /tmp/chef_T472LE/bootstrap.sh: line 364: chef-client: command not found
ERROR: The following error occurred on 10.2.128.80:
ERROR: -----> Installing Chef Omnibus (stable/18)
     downloading https://omnitruck.chef.io/chef/install.sh
       to file /tmp/install.sh.32304/install.sh
     trying wget...
     "arch" "rolling" x86_64
     Getting information for chef stable 18 for "arch"...
     downloading https://omnitruck.chef.io/stable/chef/metadata?v=18&p="arch"&pv="rolling"&m=x86_64
       to file /tmp/install.sh.32308/metadata.txt
     trying wget...
     ERROR 404
     Omnitruck artifact does not exist for version 18 on platform "arch"

     Either this means:
        - We do not support "arch"
        - We do not have an artifact for 18

     This is often the latter case due to running a prerelease or RC version of Chef
     or a gem version which was only pushed to rubygems and not omnitruck.

     You may be able to set your knife[:bootstrap_version] to the most recent stable
     release of Chef to fix this problem (or the most recent stable major version number).

     In order to test the version parameter, adventurous users may take the Metadata URL
     below and modify the '&v=<number>' parameter until you successfully get a URL that
     does not 404 (e.g. via curl or wget).  You should be able to use '&v=11' or '&v=12'
     successfully.

     If you cannot fix this problem by setting the bootstrap_version, it probably means
     that "arch" is not supported.

     Metadata URL: https://omnitruck.chef.io/stable/chef/metadata?v=18&p="arch"&pv="rolling"&m=x86_64
     Starting the first Chef Infra Client Client run...
      /tmp/chef_T472LE/bootstrap.sh: line 364: chef-client: command not found
DEBUG: [SSH] [email protected] cmd = sudo rm -f "/tmp/chef_T472LE/bootstrap.sh"

据我了解,由于 Arch Linux 不受支持,因此无法在以下 URL中找到要下载的文件。

有什么方法可以欺骗它认为它是受支持的操作系统吗?如果它可以下载用于 Debian 安装的文件,那么安装的其余部分仍然可以工作吗?

arch-linux
  • 1 个回答
  • 32 Views
Martin Hope
BuBu
Asked: 2023-07-26 16:45:48 +0800 CST

KDE Plasma 中的通知框不会将所有表情符号显示为彩色

  • 6

我正在使用 CachyOS KDE(Arch Linux 系列),但我对表情符号有疑问。系统中上传了一些彩色表情符号的字体,但在通知框中并非所有表情符号都是彩色的。屏幕截图中有一个示例。即使从头开始全新安装系统后也是如此。

我的屏幕

我的字体

该主题随附的是我在系统上使用的字体的屏幕截图。例如,这个表情符号在通知“?”中没有着色,但是当我将其粘贴到 Visual Studio Code 或其他编辑器中时,它就会着色。

我怎样才能解决这个问题?

KDE 等离子 5.27.6

arch-linux
  • 1 个回答
  • 28 Views
Martin Hope
bluesquare
Asked: 2023-05-06 01:40:54 +0800 CST

为什么我无法独立验证开发人员个人密钥是否已由主密钥签名?

  • 6

它在这里说Arch Linux 项目有 5 个主签名密钥。它还表示,活跃的、受信任的开发人员的密钥由一个或多个主密钥签名。我们可以看到 Pierre Schmitz 的个人密钥是由主密钥 0x77514E00、0x7BE9892E 和 0x037F4F41 签名的。

现在,我导入了所有 Arch 项目主密钥,包括 0x77514E00、0x7BE9892E 和 0x037F4F41,Arch 网站上声称这些主密钥已经签署了 Pierre Schmitz 的个人密钥。 在此处输入图像描述

我用 archlinux-x86_64.iso.sig 验证了 archlinux-x86_64.iso。它说它未经验证并去寻找这个密钥ID

0x3E80CA1A8B89F69CBA57D98A76A5EF9054449A5C

. 美好的。但我只是想独立验证 Pierre Schmitz 的个人密钥实际上是由主密钥签名的,这样我就可以在这个和许多未来的任务中开始智能地进行这些验证。

我列出了 Pierre Schmitz 密钥 ID 的签名: 在此处输入图像描述 自签名好的,我想我需要接收密钥?

我在密钥 ID 上运行了 recv 密钥: 在此处输入图像描述

我刷新: 在此处输入图像描述

我再次列出了相关 ID 的密钥: 在此处输入图像描述

这实际上不可能吗?独立验证密钥是否由一组已定义的主密钥签署不是总是或永远不可能吗?或者我在这个验证程序中哪里犯了错误?

arch-linux
  • 1 个回答
  • 27 Views
Martin Hope
itil nonok
Asked: 2023-04-30 23:05:56 +0800 CST

从包名中获取包的 tar 文件名

  • 5

我们如何从包名称中获取 tar 包文件的名称(在缓存目录中)?

$ pacman -Q       

...

或者

$ pacman -F        

...

到完整正确的 CLI

arch-linux
  • 1 个回答
  • 15 Views
Martin Hope
sw1nn
Asked: 2023-03-05 19:31:06 +0800 CST

何时应将 TERM 设置为 alacritty-direct

  • 6

我在 Arch 上使用 alacritty 0.11.0 (8dbaa0bb)。

默认TERM类型是alacritty,它适用于除终端 emacs 之外的所有内容(真彩色等)。在终端中,emacs 不显示原色。

但是,如果我export TERM=alacritty-direct那么一切,包括 emacs,都可以正常工作 AFAICT。

alacritty-direct什么时候应该使用它的目的是什么?

我现在有这个.zshrc

[[ "${TERM}" == "alacritty" ]] && export TERM=alacritty-direct
arch-linux
  • 1 个回答
  • 18 Views
Martin Hope
MatiasGdo
Asked: 2023-02-28 23:34:27 +0800 CST

架构Linux | 存储库中没有更新

  • 5

零更新 5 天后,每天检查有pacman -Syyu1GB 的更新量,为什么会这样?

我是 Arch Linux 的新手,我希望这只是巧合而不是坏事。

arch-linux
  • 1 个回答
  • 26 Views
Martin Hope
Hans Kilian
Asked: 2022-06-24 04:53:02 +0800 CST

Arch 安装在 Windows 11 Hyper-V VM 上挂起

  • 5

我正在尝试在 Windows 11 Hyper-V VM 中安装 Arch Linux。我使用的 ISO 是 archlinux-2022.06.01-x86_64.iso。

启动虚拟机时,它会显示一个菜单,我可以在其中进行选择

  • Arch Linux 安装介质 (x86_64, UEFI)
  • Arch Linux 安装介质 (x86_64, UEFI) 带语音
  • Arch Linux 安装介质 (x86_64, UEFI, Copy to RAM)
  • Arch Linux 安装介质(x86_64、UEFI、复制到 RAM)和语音
  • 电喷外壳
  • 重启进入固件界面

我选择第一个。然后安装挂在黑屏上。我没有得到命令提示符。在 Hyper-V 管理器中,我可以看到 VM 正在使用一些 CPU(它说 8%)。我让它运行了 15 分钟,但没有任何反应。

我已经在 VM 上禁用了安全启动,因为我知道您需要这样做。

我有一个运行良好的 Ubuntu VM,fwiw。

为什么会挂?

编辑:这些是 Hyper-V 设置。这是第 2 代虚拟机。

在此处输入图像描述

arch-linux hyper-v
  • 1 个回答
  • 47 Views
Martin Hope
Stephen Boston
Asked: 2022-05-27 23:04:33 +0800 CST

新希捷 1T 硬盘可接受的性能?

  • 5

希捷梭子鱼 ST1000LM048

我最近用完了一个SSD。smartctl 测试表明该系统上的驱动器非常忙于进行少量写入,因此我安装了这个新的希捷硬盘,它对我来说似乎很慢。这是因为我被 SSD 的速度宠坏了,还是这个驱动器有点过时了。

我检查了物理 SATA 连接,它们很好而且很紧。

hdparm 读数

  Timing buffered disk reads: 342 MB in  3.02 seconds = 113.42 MB/sec
  Timing buffered disk reads: 354 MB in  3.00 seconds = 117.94 MB/sec
  Timing buffered disk reads: 288 MB in  3.01 seconds =  95.82 MB/sec
  Timing buffered disk reads: 334 MB in  3.01 seconds = 110.84 MB/sec
  Timing buffered disk reads: 320 MB in  3.08 seconds = 104.04 MB/sec


 
hard-drive arch-linux
  • 1 个回答
  • 30 Views

Sidebar

Stats

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

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Vickel Firefox 不再允许粘贴到 WhatsApp 网页中? 2023-08-18 05:04:35 +0800 CST
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助
subwaysurfers
my femboy roommate

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve