今天我打开 Windows 图像查看器,弹出一个广告,上面写着“使用 AI 编辑您的图像...了解更多(超链接)”。我不想在桌面上使用 AI,也没有要求使用此功能。有什么方法可以禁用此类宣传 Windows 新功能的弹出消息吗?我正在使用 Win10,已完全更新。
computer
我正在将以太网升级到 10 Gbps,以加快本地网络的连接速度。遗憾的是,我网络上的一台机器的 PCIe 插槽已经用完了,因此无法使用原生 10 GbE PCIe 适配器。USB 适配器是唯一可行的替代方案 - 由于 5 Gbps 以太网交换机和 USB 适配器很难找到且价格昂贵,因此决定在服务器上运行两个基于 Realtek RTL8156 芯片组的 2.5 Gbps 以太网到 USB 3 适配器,该芯片组很容易买到。然后,它们在以太网级别使用 LAG/LACP 中的链路聚合连接在一起,并连接到 2.5/10 Gbps 交换机。
Linux 可以识别这些 USB 适配器,如下所示。我还事先确定,通过为每个 NIC 分配一个 IP 地址并运行 iperf3 测试,两个适配器都可以以 2.5 Gbps 的速度独立运行。
$ dmesg
[ 5.118103] usb 4-4: new SuperSpeed USB device number 2 using xhci_hcd
[ 5.138434] usb 4-4: New USB device found, idVendor=0bda, idProduct=8156, bcdDevice=31.04
[ 5.138436] usb 4-4: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[ 5.138438] usb 4-4: Product: USB 10/100/1G/2.5G LAN
[ 5.138439] usb 4-4: Manufacturer: Realtek
[ 5.138440] usb 4-4: SerialNumber: 401300ÿÿÿÿ
[ 6.970319] cdc_ncm 4-4:2.0: MAC-Address: 00:e0:4c:68:10:e6
[ 6.970325] cdc_ncm 4-4:2.0: setting rx_max = 16384
[ 6.970356] cdc_ncm 4-4:2.0: setting tx_max = 16384
[ 6.984099] cdc_ncm 4-4:2.0 eth0: register 'cdc_ncm' at usb-0000:0a:00.3-4, CDC NCM (NO ZLP), 00:e0:4c:68:10:e6
# lsusb
Bus 004 Device 002: ID 0bda:8156 Realtek Semiconductor Corp. USB 10/100/1G/2.5G LAN
Bus 002 Device 002: ID 0bda:8156 Realtek Semiconductor Corp. USB 10/100/1G/2.5G LAN
有问题的机器正在运行 Linux 虚拟机管理程序 (Proxmox),并且两个网络接口被识别为 enx00e04c680152 和 enx00e04c6810e6(我相信 udev/systemd 根据它们的 MAC 地址生成了名称)。为了将两个接口绑定在一起,我在 Proxmox 上使用了以下设置:
Linux Bond
* Name: bond0
* Autostart: Yes
* Slaves: enx00e04c680152 enx00e04c6810e6
* Mode: LACP (802.3ad)
* Hash policy: layer3+4
在交换机上,我创建了一个端口通道组,并在主动模式下启用了 LACP,并选择了两个连接到服务器的 2.5 Gbps 端口。Linux 还报告说,从它自己的角度来看,两个卡都已被检测到并绑定:
# ip link | grep enx
3: enx00e04c6810e6: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond0 state UP mode DEFAULT group default qlen 1000
4: enx00e04c680152: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond0 state UP mode DEFAULT group default qlen 1000
不幸的是,由于某种原因,无论如何,Linux 都无法与交换机建立 LACP 链路,Linux 内核一直告诉我“对于绑定中的任何适配器,链路伙伴均无 802.3ad 响应”。
# dmesg
[ 1004.491253] bond0: Warning: No 802.3ad response from the link partner for any adapters in the bond
[ 1034.527234] bond0: Warning: No 802.3ad response from the link partner for any adapters in the bond
[ 1064.547217] bond0: Warning: No 802.3ad response from the link partner for any adapters in the bond
状态文件/proc/net/bonding/bond0
显示 IEEE 802.3ad 处于活动状态,但未成功建立链接。这可以从两个 NIC 的“聚合器 ID”不同以及它们都进入“搅动”状态(这实际上意味着链接失败)这一事实中看出。
# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v6.1.15-1-pve
Bonding Mode: IEEE 802.3ad Dynamic link aggregation
Transmit Hash Policy: layer3+4 (1)
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Peer Notification Delay (ms): 0
802.3ad info
LACP active: on
LACP rate: slow
Min links: 0
Aggregator selection policy (ad_select): stable
System priority: 65535
System MAC address: 8a:f5:1c:f4:8b:70
Active Aggregator Info:
Aggregator ID: 1
Number of ports: 1
Actor Key: 10
Partner Key: 1
Partner Mac Address: 00:00:00:00:00:00
Slave Interface: enx00e04c680152
MII Status: up
Speed: 2500 Mbps
Duplex: half
Link Failure Count: 0
Permanent HW addr: 00:e0:4c:68:01:52
Slave queue ID: 0
Aggregator ID: 1
Actor Churn State: none
Partner Churn State: churned
Actor Churned Count: 0
Partner Churned Count: 1
details actor lacp pdu:
system priority: 65535
system mac address: 8a:f5:1c:f4:8b:70
port key: 10
port priority: 255
port number: 1
port state: 77
details partner lacp pdu:
system priority: 65535
system mac address: 00:00:00:00:00:00
oper key: 1
port priority: 255
port number: 1
port state: 1
Slave Interface: enx00e04c6810e6
MII Status: up
Speed: 2500 Mbps
Duplex: half
Link Failure Count: 0
Permanent HW addr: 00:e0:4c:68:10:e6
Slave queue ID: 0
Aggregator ID: 2
Actor Churn State: churned
Partner Churn State: churned
Actor Churned Count: 1
Partner Churned Count: 1
details actor lacp pdu:
system priority: 65535
system mac address: 8a:f5:1c:f4:8b:70
port key: 10
port priority: 255
port number: 2
port state: 69
details partner lacp pdu:
system priority: 65535
system mac address: 00:00:00:00:00:00
oper key: 1
port priority: 255
port number: 1
port state: 1
免责声明:曾经有这个问题,但在我发布答案之前就被删除了。由于我花了精力来创建答案,并且不想让它付诸东流,所以我在这里重新发布了这个问题。
原始问题:
我在网上搜索,但没有找到确切的参考资料。我也读过https://en.wikipedia.org/wiki/CD-RW
我知道可重写 CD(CD-RW)的快速擦除和完全擦除之间的基本区别。
但我想知道的是:
- 完全擦除会在介质上创建全 0 还是全 1?
- 在完全擦除期间(最好在 Windows 上),有什么方法可以指定 CD-RW 应该是全 0 还是全 1?
我运行 Matlab 模拟,有时需要几周时间才能完成,当 Windows 重新启动时,我会丢失所有工作,因此我确实需要一种方法来停止自动重新启动。
Windows 11 似乎已禁用所有绕过自动更新重启的方法。还有解决方法吗?
过去可以在以下位置设置 NoAutoRebootWithLoggedOnUsers:
计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
如果您还在同一位置将 AUOptions 设置为 4,但这现在对我不起作用。
我们有一个使用 SSD(4TB Samsung 860 Pro)的系统,我们通过 Linux 系统打开电源 10 分钟以写入数据,然后每小时关闭一次,每天 24/7,持续大约六个月。我们手动打开驱动器的电源并等待操作系统查看已安装的驱动器。这通常需要 12 秒到 22 秒才能完成。如果驱动器在等待挂载 30 秒后仍未显示,我们将认为挂载失败。我们第一次这样做时,一切都工作正常。我们使用相同的驱动器进行了第二轮,但在我们运行的 5 个系统之间大约 1 个月到 3 个月后,驱动器在 30 秒内停止安装。
基本上,在第一轮中,驱动器将打开和关闭至少 4,320 次。由于驱动器在第二轮测试中无法一致安装,总电源周期似乎在 5,000 到 7,000 次之间。如果您等待超过 30 秒,所有驱动器仍在工作,但它们被认为不再可靠地安装在我们的系统中。
我似乎找不到任何有关电源循环的 SSD 驱动器规格以及这样做是否有限制。我们购买 4TB 860 Pro 驱动器时非常昂贵(> 1,000 美元),据说非常可靠,具有非常高的编程/擦除 (P/E) 周期。但是,没有有关电源循环的规格。
频繁的电源循环对于 SSD 驱动器来说是一件坏事吗?我知道大多数人可能不会这样做,并且驱动器每天可能不会重新启动超过一次。我们基本上在 6 个月内完成了 12 年的日常动力循环。
编辑 1(来自评论的附加信息):我们使用电池运行,因此电量使用非常有限。
编辑 2(来自评论的附加信息):SSD 驱动器使用修改后的 USB 3 转 SATA 电缆连接到 RPi 2B v.1.2。我们有一个外部电源控制器来打开和关闭电缆的电源。基本上,Pi 打开 SSD 的电源,然后监视 SSD 是否连接到特定的 USB 端口,然后尝试安装驱动器。这是通过 bash 脚本完成的,它会运行一个延迟 1 秒的安装循环,直到可以访问 SSD。我们给它最多 30 个循环计数(安装失败后每次延迟 1 秒)。
编辑3(来自评论的附加信息):卸载过程是卸载驱动器,然后关闭电源。我们在卸载和断电之前验证数据已完全写入。数据大小是压缩文件,通常约为 1.2GB 到 1.6GB。通常一小时内只是一个文件,从 SD 卡上的原始数据压缩文件并将其传输到 SSD 大约需要 10 分钟左右。因此 SSD 在关闭前会开启 10-12 分钟。
编辑 4 检查更多驱动器后,我发现一个驱动器已经进行了超过 13,000 次电源循环,并且仍然按照我们想要的方式安装。我正在等待恢复故障驱动器,看看它们的计数是多少。我们知道我们在之前的运行中至少使用过它们 2 次,因此我预计每次运行都会超过 10k 次电源周期。
编辑 5 SSD 上的文件类型为 Ext4。
我买了一台本应“恢复出厂设置”的二手笔记本电脑,但当我启动它时,它要求我以特定人身份登录:
所以我做了一个干净的启动并让 Windows 自行重置 -仍然出现相同的登录屏幕。
然后我从一个新的媒体创建 USB 记忆棒运行 Windows 安装程序并在安装过程中删除了所有 HD 分区 - 同样的问题。
接下来我从 USB 运行 gparted 启动并使用 parted 和 wipefs(从这里)擦除所有分区 - 同样的问题。
我不知道还能尝试什么。这台笔记本电脑只有一个 HDD/SDD,这些登录设置还能存储在哪里?
我怎样才能清除此登录信息并让 Windows 真正表现为完全干净的安装?
仅供参考,如果没有任何效果,我可以退回这台笔记本电脑,但避免这种情况可以节省很多时间。另外,在这一点上,我很好奇这是如何工作的。
更新:我最终退货了。我曾尝试过在没有网络的情况下登录,但即使是登录屏幕看起来也不标准(显示相同的公司名称等)最终我不相信这台笔记本电脑能可靠地工作。同样正如评论所暗示的那样,这充其量是狡猾的,并且可能表明硬件被盗。最好避开。
在很多需要登录的网站上,会出现那些烦人的谷歌登录提示:
Internet 上有几个关于如何避免这种情况的教程,例如How-To Geek 上的这个教程,它建议禁用 Google 帐户中的一个选项。但是,这不起作用,因为我的未启用并且从未启用过:
请注意,这仅发生在 Firefox(110.0.1(64 位),已安装 AdBlocker ultimate v 3.7.21);如果我使用 Brave 浏览器(版本 1.49.120 Chromium:111.0.5563.64(官方构建)(64 位)),默认情况下会阻止广告,它们不会显示。我正在使用Linux 内核 5.19.0-35-generic x86_64 的Ubuntu 22.04.2 LTS (Jammy Jellyfish)。
我很惊讶我不得不问这个问题。它让我想起人们问如何退出Vim,这个形象在流行文化中根深蒂固。
我发现要在 Windows 10 中退出桌面会话,我必须执行以下操作:
- 左键单击任务面板上的“Windows 开始”按钮
- 在弹出面板中,将鼠标悬停在“关闭电源”图标上以展开面板
- 在新的弹出面板中右键单击我的名字
- 在第三个弹出面板中,我终于可以看到一个“退出”桌面会话的选项。我可以左键单击它来终止会话。
这看起来一点也不直观,因为仅在第 4 步我看到了我正在寻找的选项。
有没有更简单更直观的方法来终止 Windows 会话?一种不需要印刷说明的方式,只需通过电话喊叫即可传达给新用户。
我的 Apple MacBook pro M1 2020 自动更新到Monterey 12.6
最近。随着更新,我必须同意 Xcode 协议/许可。之后,我发现两者python
都git
无法正常工作。我有一个弹出窗口说:The “git” command requires the command line developer tools.
但是在我安装了该工具之后,弹出窗口又回来并要求我递归安装该工具。有什么建议可以解决这个问题吗?
当我运行git
命令时,我收到以下错误消息:
2022-09-15 16:35:42.216 xcodebuild[5621:29269] [MT] DVTPlugInLoading: Failed to load code for plug-in com.apple.dt.IDESimulatorAvailability (/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin), error = Error Domain=NSCocoaErrorDomain Code=3588 "dlopen(/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0109): Symbol not found: (_OBJC_CLASS_$_SimDiskImage)
Referenced from: '/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator'" UserInfo={NSLocalizedFailureReason=The bundle couldn’t be loaded., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, NSDebugDescription=dlopen(/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0109): Symbol not found: (_OBJC_CLASS_$_SimDiskImage)
Referenced from: '/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator', NSBundlePath=/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin, NSLocalizedDescription=The bundle “IDESimulatorAvailability” couldn’t be loaded.}, dyldError = dlopen(/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0000): Symbol not found: (_OBJC_CLASS_$_SimDiskImage)
Referenced from: '/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator'
2022-09-15 16:35:42.235 xcodebuild[5621:29269] [MT] DVTAssertions: ASSERTION FAILURE in /System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot2/ActiveBuildRoot/Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-21303/DVTFoundation/PlugInArchitecture/DataModel/DVTPlugIn.m:374
Details: Failed to load code for plug-in com.apple.dt.IDESimulatorAvailability (/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin)
Please ensure Xcode packages are up-to-date — try running 'xcodebuild -runFirstLaunch'.
NSBundle error: Error Domain=NSCocoaErrorDomain Code=3588 "dlopen(/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0109): Symbol not found: (_OBJC_CLASS_$_SimDiskImage)
Referenced from: '/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator'" UserInfo={NSLocalizedFailureReason=The bundle couldn’t be loaded., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, NSDebugDescription=dlopen(/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0109): Symbol not found: (_OBJC_CLASS_$_SimDiskImage)
Referenced from: '/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator', NSBundlePath=/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin, NSLocalizedDescription=The bundle “IDESimulatorAvailability” couldn’t be loaded.}
Object: <DVTPlugIn: 0x600003f1fd40>
Method: -loadAssertingOnError:error:
Thread: <_NSMainThread: 0x600001b542c0>{number = 1, name = main}
Hints:
Backtrace:
0 0x0000000101c19410
1 0x0000000101c18aec
2 0x0000000101c18c6c
3 0x0000000101ac72ac
4 0x0000000101a8d118
5 0x0000000101a8b528
6 0x00000001bc9701b4
7 0x00000001bc97f414
8 0x0000000101c5d58c
9 0x0000000101c394b0
10 0x0000000101a8b3c0
11 0x0000000101a8b5e0
12 0x0000000102b4f2ec
13 0x0000000102b4eae0
14 0x0000000102b4e1e8
15 0x00000001004ec324
16 0x000000010027de0c
sh: line 1: 5626 Abort trap: 6 /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -find git 2> /dev/null
git: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -find git 2> /dev/null' failed with exit code 34304: (null) (errno=Invalid argument)
xcode-select: Failed to locate 'git', requesting installation of command line developer tools.
> putty
dbus[6750]: Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
我在 Windows 机器上使用 Microsoft Teams。有时我发现自己需要离开我的电脑片刻,但我不希望通话中的人认为我还在那里。
似乎没有办法手动保持通话,是否有任何解决方法?