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

nowox's questions

Martin Hope
nowox
Asked: 2023-09-12 14:14:52 +0800 CST

Windows 11 每 3-10 分钟定期冻结 1-2 秒

  • 5

我在 AMD Ryzen 9 5900X 上安装了 Windows 11 Pro 10.0.22621 Build 22621.2283,配备 ProArt X570-CREATOR、128GB RAM、GPU P2000、仅 SSD 2TB Evo 970。BIOS 已更新为 1301(最新)

我已经使用最新的 GPU 驱动程序进行了全新安装。有时,在notepad.exe(仅启动应用程序)上写一些东西时,所有界面都会冻结几秒钟,在冻结期间键盘上的击键保持按下状态,1-2秒后我会在我的笔记上多次点击nnnnnnnnnnnnn。

我检查了分辨率,但没有找到任何解决方法。这是我所做的:

  1. 最新的 GPU 驱动程序 [已检查]
  2. 全新 Windows 安装 [已检查]
  3. dism /在线 /cleanup-image /restorehealth [已检查]
  4. RAM 检查已满 [已检查]
  5. sfc /scannow [已检查]
  6. 没有 MiniSearchHost 进程 [已检查]
  7. BIOS 更新 [已检查]
  8. 分页文件建议 16GB,手动设置为 32GB [已检查]

有什么建议吗?

windows
  • 1 个回答
  • 43 Views
Martin Hope
nowox
Asked: 2022-09-24 01:44:46 +0800 CST

是否可以存储 ssh 服务器的登录信息?

  • 5

是否可以将 ssh 服务器的默认登录名存储在配置文件中?

我有很多具有不同凭据的服务器。我对所有这些都使用相同的 ssh 密钥,但我总是忘记我需要的登录名。而不是写:

$ ssh tbuser22@myserver.inc

我想使用:

$ ssh myserver.inc 

它将使用为该服务器配置的登录名。如果我需要使用不同的凭据登录,我仍然可以手动输入login@前缀。

那可能吗?

ssh linux
  • 1 个回答
  • 31 Views
Martin Hope
nowox
Asked: 2021-10-17 00:00:06 +0800 CST

修复移除数据 SSD 后在 Windows 11 上启动的问题

  • 5

我在 M.2 上安装了 Windows 10,然后我买了一个新的 M.2 并安装了 Windows 11。一切都很好,除了我必须选择要从哪个操作系统启动。

然后我用 Windows 10 删除了我的旧 M.2,系统不再启动。我尝试从 USB 驱动器运行修复控制台并做了:

> bootsec /fixmbr
The operation completed successfully.
> bootsec /fixboot
The operation completed successfully
> bootsec /rebuildbcd
Total identified Windows installations: 0
The operation completed successfully

这似乎不起作用:(所以我跑了diskpart:

diskpart> select disk 0

diskpart> list volume

  Volume ###  Ltr  Label       Fs    Type       Size     Status
  ----------  ---  ----------  ----  ---------  -------  -------
* Volume 0                     NTFS  Partition  1863 GB  Healthy
  Volume 1     C   Windows 11  NTFS  Removable    14 GB  Healthy
  Volume 2     D   UEFI_NTFS   FAT   Removable   512 KB  Healthy

diskpart> list partition
  
  Partition ###  Type             Size   Offset
  -------------  ------------  -------  -------
  Partition 1    Reserved        16 MB  1024 KB
* Partition 2    Primary       1863 GB    17 MB

我的卷 0 上似乎没有任何 UEFI 分区。是否可以在不重新安装 Windows 的情况下启动此卷?

换句话说,是否可以调整卷 0 的大小并创建 UEFI_NTFS 分区和 MBR?

windows boot
  • 1 个回答
  • 151 Views
Martin Hope
nowox
Asked: 2021-07-16 07:46:45 +0800 CST

如何在 Raspberry PI 上运行单个 X11 应用程序?

  • 5

我有一个带有 DSI 触摸屏的 RPI4。我已经安装了 lxde,但我不想使用它。相反,我想以全屏模式启动单个应用程序。

我目前通过 SSH 与我的设备进行交互。

我尝试的是停止 lxde 并天真地启动一个应用程序:

# service stop lxde
# xeyes
Error: Can't open display: localhost:10.0

重新开始 lxde 我注意到它在 xorg 上运行

# ps -axu | grep xorg
# root      1397  0.4  0.5 127712 46884 tty7     Ssl+ 16:38   
            0:01 /usr/lib/xorg/Xorg :0 vt07 -nolisten tcp -novtswitch -auth 
            /var/run/lxdm/lxdm-:0.auth

我想我需要通过一些包装器来运行我的应用程序,但我真的不明白该怎么做。

如何xeyes从我的 ssh 遥控器以全屏模式运行?

最后,我想在启动后运行一个作为服务启动的 Qt 应用程序:

import sys
import PyQt5
from PyQt5.QtWidgets import *

import mainwindow_auto

class MainWindow(QMainWindow, mainwindow_auto.Ui_MainWindow):
    def pressedOnButton(self):
        print ("Pressed On!")

    def pressedOffButton(self):
        print ("Pressed Off!")

    def __init__(self):
        super(self.__class__, self).__init__()
        self.setupUi(self) # gets defined in the UI file

        self.btnOn.clicked.connect(lambda: self.pressedOnButton())
        self.btnOff.clicked.connect(lambda: self.pressedOffButton())

def main():
    app = QApplication(sys.argv)
    form = MainWindow()
    form.show()
    sys.exit(app.exec_())

这样做的出发点是什么?

linux raspberry-pi
  • 3 个回答
  • 2331 Views
Martin Hope
nowox
Asked: 2021-04-18 01:23:17 +0800 CST

ufw有什么优势,真的需要吗?

  • 10

我对 iptables 非常熟悉,而且我觉得iptables -L -v很容易阅读。备份很容易,我对此很满意。

然而,在最新版本的 Ubuntu 中,有一个 ufw 相当污染 iptables。在一个干净的规则列表中,我有很多不容易阅读的规则:

$ iptables -L -v
Chain INPUT (policy DROP 6114 packets, 331K bytes)
 pkts bytes target     prot opt in     out     source               destination
 131K   76M ufw-before-logging-input  all  --  any    any     anywhere             anywhere
 131K   76M ufw-before-input  all  --  any    any     anywhere             anywhere
 6618  368K ufw-after-input  all  --  any    any     anywhere             anywhere
 6191  346K ufw-after-logging-input  all  --  any    any     anywhere             anywhere
 6191  346K ufw-reject-input  all  --  any    any     anywhere             anywhere
 6191  346K ufw-track-input  all  --  any    any     anywhere             anywhere

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination
 390K  324M ufw-before-logging-forward  all  --  any    any     anywhere             anywhere
 390K  324M ufw-before-forward  all  --  any    any     anywhere             anywhere
    4  2160 ufw-after-forward  all  --  any    any     anywhere             anywhere
    4  2160 ufw-after-logging-forward  all  --  any    any     anywhere             anywhere
    4  2160 ufw-reject-forward  all  --  any    any     anywhere             anywhere
    4  2160 ufw-track-forward  all  --  any    any     anywhere             anywhere

Chain OUTPUT (policy ACCEPT 1 packets, 52 bytes)
 pkts bytes target     prot opt in     out     source               destination
 326K  317M ufw-before-logging-output  all  --  any    any     anywhere             anywhere
 326K  317M ufw-before-output  all  --  any    any     anywhere             anywhere
  164 14960 ufw-after-output  all  --  any    any     anywhere             anywhere
  164 14960 ufw-after-logging-output  all  --  any    any     anywhere             anywhere
  164 14960 ufw-reject-output  all  --  any    any     anywhere             anywhere
  164 14960 ufw-track-output  all  --  any    any     anywhere             anywhere
...

从这个角度来说。我真的不明白ufw的目的。它似乎比 iptables 增加了复杂性,没有真正的优势。

我错了吗?

linux networking
  • 1 个回答
  • 1173 Views
Martin Hope
nowox
Asked: 2021-03-04 00:06:17 +0800 CST

如何在Word中的表格后添加默认间距?

  • 5

我查看了表格样式,但Positionning默认情况下不可用。如何在每个表格之后指定我想要的像素数?

microsoft-word
  • 1 个回答
  • 28 Views
Martin Hope
nowox
Asked: 2020-09-13 11:51:13 +0800 CST

VsCode 服务器,CPU 使用率高

  • 6

我注意到我的 WSL2 实例使用大量 CPU,据此top来自nodeVsCode 服务器。如果我杀死所有 VsCode 实例,CPU 使用率会急剧下降。

要重现这个问题,我可以mkdir dummy && cd dummy && code .. 建立 WSL 连接后,我将node在 WSL2 上运行一个进程,该进程使用大约 120% 的单个 CPU。

如何解决这个问题?

在此处输入图像描述

在此处输入图像描述

visual-studio-code wsl2
  • 1 个回答
  • 2421 Views
Martin Hope
nowox
Asked: 2020-03-29 03:26:58 +0800 CST

从 WSL2 连接到 MySQL?

  • 11

我已经在 Windows 上安装了 MySQL 服务器,我想从 WSL2 连接到它。不幸的是,WSL 似乎无法访问 MySQL 服务器:

$ /mnt/c/Program\ Files/MySQL/MySQL\ Server\ 5.7/bin/mysql.exe -uroot -p
Enter password: 
mysql> exit
Bye

$ mysql -uroot -p --protocol=TCP
Enter password: 
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (111)

在ifconfig我只有两个接口eth0和lo,所以看起来 WSL 和 Windows 共享相同的本地接口。为了验证这一点,我启动了一个 Python 网络服务器并从 localhost 上的 Windows 访问。

如何从 WSL2 连接到 MySQL?

windows linux
  • 3 个回答
  • 20572 Views
Martin Hope
nowox
Asked: 2019-08-12 01:37:00 +0800 CST

如何禁用 WSL 密码?

  • 23

我觉得在 WSL 上不需要密码,因为它已经受到我的 Windows 帐户的保护。如果不知道我的 Windows 密码,任何人都无法使用我的 WSL。

如何禁用 WSL 密码?我试过passwd了,但它不接受NULL密码。

linux ubuntu
  • 1 个回答
  • 12405 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