Dual Boot Windows 11 and Omarchy on Dell XPS 13 9310

目标与前提 在一台 Dell XPS 13 9310 上装 Windows 11(最新版)和 Omarchy 双系统。 关于 Omarchy:它是 DHH(David Heinemeier Hansson)在 2025 年做的一套基于 Arch Linux + Hyprland 的预配置系统,前身是基于 Ubuntu 的 Omakub。底层还是 Arch,用 pacman 和 AUR;桌面用 Hyprland(Wayland 平铺式合成器),配好了 Waybar、walker、终端、hyprlock 等,并带一套可一键切换的主题系统。引导器用 Limine。官网 omarchy.org,代码在 GitHub basecamp/omarchy。 Omarchy 本身的介绍、系统更新和装软件的方法见 Omarchy Linux,本文只讲双系统安装。 本文是一份安装顺序的初稿,实际操作前请再核对当前版本的官方文档(basecamp/omarchy 仓库 manual/50-dual-boot-install.md)。 推荐顺序 先调 BIOS,再装 Windows,最后装 Omarchy。 Windows 每次安装都会重写 EFI 引导项,先装 Linux 会被覆盖;反过来 Omarchy 的 Limine 引导器能扫描并接管已存在的 Windows。所以顺序是固定的:Windows 在前,Omarchy 在后。 同类流程可参考本站已有的 dual boot windows and ubuntu。 阶段 0:准备 备份数据。 在 Windows 里更新 BIOS 到最新版本(或用 Dell 的更新 U 盘)。9310 早期 BIOS 对 NVMe 和电源管理有已知问题。 记快捷键:开机按 F2 进 BIOS 设置,按 F12 进一次性启动菜单。 阶段 1:先改 BIOS 这一步要在装 Windows 之前完成。 ...

Created 4046-09-04 · Updated 20206-10-20 · 4 min · 650 words · -

How to configure Office applications to run under a specific user account

How to configure Office applications to run under a specific user account This article was previously published under Q288367 SUMMARY We do not recommend or support automation to a Microsoft Office application from an unattended user account. For additional information on why Microsoft does not recommend automation under this context, click the following article number to view the article in the Microsoft Knowledge Base:257757 Considerations for server-side automation of Office If there is no choice but to automate Office from an unattended user account, the following steps can be used to configure the computer to run the Office application as a specific user, giving the application a fixed identity when it is started for Automation. MORE INFORMATION Caution Automation of any Office application from an unattended, non-interactive user account is risky and unstable. A single error in code or configuration can result in a dialog box that can cause the client process to stop responding (hang), that can corrupt data, or that can even crash the calling process (which could bring down your Web server if the client is ASP). Warning Office was not designed, and is not safe, for unattended execution on a server. Developers who use Office in this manner do so at their own risk. Regardless, it may be absolutely required to use Office in this manner. In these cases, special configuration must be done to avoid errors on Office startup. The steps in this article demonstrate how to configure Office to run as a specific user account when it is started for Automation. When you automate under a specific user account, you should be aware of the following problems: Any process that creates an Automation instance of the configured Office application creates the instance under the specific user account, allowing it to run with that user's security credentials. Setting the Distributed Componenet Object Model (DCOM) settings to run as a specific user is global to the system. This setting affects all users and programs that automate the Office application on the system. Terminal Server clients may not be able to use Office appropriately. You should not use this setting and the steps in this article on an application Terminal Server. Component Object Model (COM) creates a unique WinStation for the new instance of the Office application. Any dialog boxes or warnings that may display do not appear on the interactive desktop. If you set the Visible flag for an application, the interactive user will not see that application. For more information about COM and WinStations, see the "References" section. When COM loads a server to run as a specific user account, the registry hive for that user is not loaded. Because the hive is not loaded for that user, the system .DEFAULT hive is used. Because Office has not been run under an account with this hive, you may receive dialog boxes that prompt you for input or the Office CD-ROMs to complete installation. The dialog boxes are not visible on the interactive desktop, so the application appears to stop responding (hang). The dialog boxes may time out and allow the process to continue, but after a noticeable delay in running the program. To work around this situation, install an NT service that runs under the same user account that is set for the DCOM setting. The NT Service Control Manager (SCM) loads the hive for that user when the service starts. Because the changes in DCOM are global, configuring Office in this manner can have negative side effects for other clients on the system that use Office. It is possible that another client application, or Terminal Server clients, will not be able to use the Office application after the settings are made. Consider carefully what impact this has to your server before you make any changes to the DCOM configuration settings. If the problems listed here are too great for your design, or cause other unidentified problems, it is possible to configure Office differently and still allow it to start from an unattended process or service. For additional information, click the following article numbers to view the articles in the Microsoft Knowledge Base:288366 How To Configure Office Applications to Run Under the Interactive User Account 288368 How To Configure Office Applications for Automation from a COM+/MTS Package Configuring Office as a Specific User To set up an Office Automation server under a specific user account, follow these steps: Log on to the computer as the Administrator and create a new user account that will automate Office. In our example, this account is named OfficeAutomationUser. Create a password for this user account, and select Never expire so that the password does not have to be changed. Add the OfficeAutomationUser account to the Administrators group. Log in to the computer as OfficeAutomationUser and install (or reinstall) Office using a complete install. For system robustness, it is recommended that you copy the contents of the Office CD-ROM to a local drive and install Office from this location. Start the Office application that you intend to automate. This forces the application to register itself. After the application is running, press ALT+F11 to load the Microsoft Visual Basic for Applications (VBA) editor. This forces VBA to initialize itself. Close the applications, including VBA. Click Start, click Run, and then type `<kbd>``DCOMCNFG</kbd>`. Select the application that you want to automate. The application names are listed below:Microsoft Access 97/2002 - Microsoft Access Database Microsoft Access 2003 - Microsoft Office Access Application Microsoft Excel 97/2000/2002/2003 - Microsoft Excel Application Microsoft Word 97 - Microsoft Word Basic Microsoft Word 2000/2002/2003 - Microsoft Word Document Click Properties to open the property dialog box for this application. ...

Created 23236-09-23 · Updated 9096-10-09 · 7 min · 1362 words · -

Windows netsh 端口转发

windows netsh 端口转发 http://aofengblog.blog.163.com/blog/static/631702120148573851740/ 在windows上用netsh动态配置端口转发 下载LOFTER客户端 使用多个虚拟机,将开发环境和工作沟通环境分开 (即时通,办公系统都只能在windows下使用…) ,将开发环境的服务提供给外部访问时,需要在主机上通过代理配置数据转发。 VirtualBox提供了端口转发的功能,可以将主机中的端口转发至指定IP的虚拟机中的端口,支持TCP协议和UDP协议。但有一个缺点: 需要重启虚拟主机才生效。 其实在Windows中,如果想做端口转发,可以使用Windows自身携带的服务:netsh,使用netsh interface portproxy指令,新增和修改配置信息后,即时生效,并且重启系统后配置信息仍然存在,非常方便。适用于WindowsXP、Windows7,其他的版本还没有试过,支持IPv4和IPv6,但是只支持TCP协议。 新增端口转发 命令 netsh interface portproxy add v4tov4 - 添加通过 IPv4 的 IPv4 和代理连接到的侦听项目。 netsh interface portproxy add v4tov6 - 添加通过 IPv6 的 IPv4 和代理连接到的侦听项目。 netsh interface portproxy add v6tov4 - 添加通过 IPv4 的 IPv6 和代理连接到的侦听项目。 netsh interface portproxy add v6tov6 - 添加通过 IPv6 的 IPv6 和代理连接到的侦听项目。 命令语法 以netsh interface portproxy add v4tov4为例,其语法格式如下: netsh interface portproxy add v4tov4 [listenport=]<integer>|<servicename> [connectaddress=]<IPv4 address>|<hostname> [[connectport=]<integer>|<servicename>] [[listenaddress=]<IPv4 address>|<hostname>] [[protocol=]tcp] 参数: ...

Created 13136-06-13 · Updated 9096-10-09 · 3 min · 431 words · -

Windows 硬盘空间清理

临时文件目录 C:\Users\<用户名>\AppData\Local\Temp 存放应用程序运行时产生的临时文件,目录里的文件可以安全删除。 手动清理: 在文件资源管理器地址栏输入 %LOCALAPPDATA%\Temp 回车,全选并删除。 或者在"运行"对话框(Win + R)中输入 %temp%,回车后打开目录,全选删除。 部分文件可能正被程序占用无法删除,跳过即可,不影响系统运行。 使用磁盘清理工具: Win + R 输入 cleanmgr,选择要清理的驱动器,勾选"临时文件"后确认。 C:\Windows\Temp 系统级临时文件目录,需要管理员权限才能清理。全选删除,跳过被占用的文件即可。 C:\Windows\SoftwareDistribution\Download Windows Update 下载缓存。更新安装完成后,这里的文件可以删除,不影响已安装的更新。 清理前建议先停止 Windows Update 服务: net stop wuauserv 删除目录内容后再启动服务: net start wuauserv C:\Windows.old Windows 大版本升级后保留的旧系统文件,通常占用数 GB 到十几 GB。 升级后 10 天内系统会自动保留用于回滚,确认新系统稳定后可通过磁盘清理工具删除:cleanmgr → 清理系统文件 → 勾选"以前的 Windows 安装"。 回收站 右键桌面回收站图标 → 清空回收站。 C:\Users\<用户名>\Downloads 下载目录积累的安装包、压缩包等,手动检查后删除不再需要的文件。 缩略图缓存 %LOCALAPPDATA%\Microsoft\Windows\Explorer 目录下的 thumbcache_*.db 文件,可通过 cleanmgr 勾选"缩略图"清理,或在文件夹选项中关闭缩略图预览后手动删除。 浏览器缓存 各浏览器设置内均有"清除浏览数据"选项,可清除缓存文件、Cookie 等。 以 Chrome 为例:缓存位于 %LOCALAPPDATA%\Google\Chrome\User Data\Default\Cache,也可在浏览器设置 → 隐私和安全 → 清除浏览数据中操作。 ...

Created 2026-06-02 · Updated 2026-06-02 · 1 min · 96 words · -

Windows OpenSSH Server 远程登录

在 Windows 10(1809 及以后)和 Windows 11 上,系统自带 OpenSSH Server,安装并启动 sshd 服务后,Linux 或其他机器即可用 ssh 登录本机。 与 win11 ssh agent 的区别: 组件 作用 OpenSSH Client 本机作为客户端,ssh user@host 连别人 OpenSSH Authentication Agent 管理本机私钥(ssh-add) OpenSSH Server 本机作为服务端,让别人 ssh 进来 本文只讲 Server。 安装 OpenSSH Server(英文系统) 方法一:设置里搜索(推荐) 打开 Settings(Win + I) 顶部搜索框输入 optional features,进入 Optional features / Manage optional features 点 View features 或 Add an optional feature 搜索 openssh,勾选 OpenSSH Server,安装 也可从 Settings → Apps → Installed apps → Optional features 进入同一路径。 ...

Created 25256-05-25 · Updated 25256-05-25 · 2 min · 301 words · -

chkdsk

chkdsk chkdsk磁盘修复工具怎么用? 可以通过以下方法打开: 单击"开始",点击"运行",输入cmd并回车打开命令提示符窗口; 在此窗口输入以下命令: 例如检查并修复D分区: chkdsk D: /f 回车就会启动chkdsk磁盘检查工具扫描D分区了,检查其他分区类似。 详细的参数说明如下: CHKDSK [volume[[path]filename]]] [/F] [/V] [/R] [/X] [/I] [/C] [/L[:size]] volume 指定驱动器(后面跟一个冒号)、装入点 或卷名。 filename 仅用于 FAT/FAT32: 指定要检查是否有碎片的文件。 /F 修复磁盘上的错误。 /V 在 FAT/FAT32 上: 显示磁盘上每个文件的完整路径和名称。 在 NTFS 上: 如果有清除消息,将其显示。 /R 查找不正确的扇区并恢复可读信息(隐含 /F)。 /L:size 仅用于 NTFS: 将日志文件大小改成指定的 KB 数。 如果没有指定大小,则显示当前的大小。 /X 如果必要,强制卷先卸下。 卷的所有打开的句柄就会无效(隐含 /F)。 /I 仅用于 NTFS: 对索引项进行强度较小的检查。 /C 仅用于 NTFS: 跳过文件夹结构的循环检查。 /I 和 /C 命令行开关跳过卷的某些检查,减少运行 Chkdsk 所需的时间。 怎样运行chkdsk工具修复?【案例实操分享】 电脑右下角出现损坏文件。请运行chkdsk修复工具提示,该如何解决呢? 病例如图: 解决方案: ...

Created 3036-05-03 · Updated 3036-05-03 · 1 min · 123 words · -

windows command

windows command tasklist 查看进程对应哪服务 tasklist -svc 查看进程调用哪些DLL tasklist -m 查看调用某一Dll的所有进程 tasklist -m MSVCP60.DLL,有时候不得以需要删除文件夹,老是提示dll文件受保护,不能删除文件夹,找到进程结束掉,regsvr32 -u *.dll注销dll文件,删除。这样应该可以了。 查看进程详细信息 tasklist -v: “进程名”,“PID”,“会话名 “,“会话#”,“内存使用 “,“状态 “,“用户名”,“CPU 时间”,“窗口标题 " 筛选器查找进程 EQ:等于 NE:不等于 LT:小于 LE:小于等于 GT:大于 GE:大于等于 tasklist -fi “username ne NT authority\system” -fi “status eq running” 列出系统中正在运行的非SYSTEM状态的所有进程 tasklist -fi "username ne NT authority\system" -fi "status eq running" 列出系统中正在运行的非SYSTEM状态的所有进程 tasklist -fi "pid eq 2860" -svc列出pid是2860的这个进程中的服务 (有问题的进程调用哪些服务) tasklist -fi "pid eq 2860" -m列出pid是2860的这个进程加载的dll模块 (有问题的进程调用哪些DLL文件) tasklist -fi "pid eq 2860" -v列出pid是2860的这个进程的详细信息 tasklist -fi "servicers eq spooler"列出对应服务是spooler的进程 (哪些进程在使用这个有问题的服务) tasklist -fi "modules eq MSVCP60.DLL"列出调用MSVCP60.DLL的进程 (哪些进程在使用这个有问题的DLL) Taskkill -pid 2860/Taskkill -im qq.exe 关掉进程 系统debug级的ntsd,很多进程Tasklist是杀不了的,但是用ntsd就可以,基本上除了WINDOWS系统自己的管理进程,ntsd都可以杀掉,不过有些rootkit级别的超级木马就无能为力了,不过幸好这类木马还是很少的。 ntsd 系统debug级的ntsd,很多进程Tasklist是杀不了的,但是用ntsd就可以,基本上除了WINDOWS系统自己的管理进程,ntsd都可以杀掉,不过有些rootkit级别的超级木马就无能为力了,不过幸好这类木马还是很少的。 1、利用进程的PID结束进程 命令格式: ntsd -c q -p pid 命令范例: ntsd -c q -p 1332 (结束explorer.exe进程) 2、利用进程名结束进程 命令格式: ntsd -c q -pn ***.exe (***.exe 为进程名,exe不能省) 命令范例: ntsd -c q -pn explorer.exe 大家有补充的,请留言 ...

Created 11116-04-11 · Updated 11116-04-11 · 1 min · 127 words · -

windows 命令行 杀进程

windows 命令行 杀进程 列出进程: tasklist|findstr task TASKKILL /IM taskmgr.exe TASKKILL.exe TASKKILL命令是Microsoft Windows内置的一款命令,可以用来终止进程,具体的命令规则如下: TASKKILL [/S system [/U username [/P [password]]]] { [/FI filter] [/PID processid | /IM imagename] } [/F] [/T] 参数列表: /S system 指定要连接到的远程系统。 /U [domain]user 指定应该在哪个用户上下文 执行这个命令。 /P [password] 为提供的用户上下文指定密码。如果忽略,提示输入。 /F 指定要强行终止的进程。 /FI filter 指定筛选进或筛选出查询的的任务。 /PID process id 指定要终止的进程的PID。 /IM image name 指定要终止的进程的图像名。通配符 ‘*‘可用来指定所有图像名。 /T Tree kill: 终止指定的进程和任何由此启动的子进程。 /? 显示帮助/用法。 示例 TASKKILL /S system /F /IM notepad.exe /T TASKKILL /PID 1230 /PID 1241 /PID 1253 /T TASKKILL /F /IM QQ.exe ...

Created 30306-12-30 · Updated 30306-12-30 · 1 min · 95 words · -

Set JAVA_HOME in windows cmd

Set JAVA_HOME in windows cmd http://kooyee.iteye.com/blog/525068 set JAVA_HOME=jrepath set PATH=%JAVA_HOME%\bin;%PATH% 注意这里没有引号。 这样就不需要在我的电脑属性中修改java_home了,以及重启命令行了。 对于程序会用到多个jre 会比较有用。 linux 修改 JAVA_HOME如下 export JAVA_HOME=jrepath export PATH=$JAVA_HOME\bin;$PATH 如果需要永久修改 则 在.bashrc文件中加入上面的两句话就可以了。

Created 29296-12-29 · Updated 29296-12-29 · 1 min · 24 words · -

windows route, 路由表

windows route, 路由表 打印路由表 route print 显示以10.开始的路由 route print 10.* 1.具体功能 该命令用于在本地IP路由表中显示和修改条目。使用不带参数的ROUTE可以显示帮助。 2.语法详解 route [-f] [-p] [command [destination] [mask netmask] [gateway] [metric metric] [if interface] 3.参数说明 -f 清除所有不是主路由(子网掩码为255.255.255.255的路由)、环回网络路由(目标为127.0.0.0,子网掩码为 255.255.255.0的路由)或多播路由(目标为224.0.0.0,子网掩码为240.0.0.0的路由)的条目的路由表。如果它与命令之一(例如Add、Change或Delete)结合使用,表会在运行命令之前清除。 -p 与Add命令共同使用时,指定路由被添加到注册表并在启动TCP/IP协议的时候初始化IP路由表。默认情况下,启动TCP/IP协议时不会保存添加的路由,与Print命令一起使用时,则显示永久路由列表。所有其他的命令都忽略此参数。永久路由存储在注册表中的位置是 HKEY_LOCAL_MACHSYSTEMCurrentControlSetServicesTcpipParametersPersistentRoutes。 command 指定要运行的命令。下表列出了有效的命令。 destination 指定路由的网络目标地址。目标地址可以是一个IP网络地址(其中网络地址的主机地址位设置为0),对于主机路由是IP地址,对于默认路由是0.0.0.0。mask subnetmask 指定与网络目标地址相关联的网掩码(又称子网掩码)。子网掩码对于IP网络地址可以是一适当的子网掩码,对于主机路由是255.255.255.255 ,对于默认路由是0.0.0.0。如果忽略,则使用子网掩码255.255.255.255。定义路由时由于目标地址和子网掩码之间的关系,目标地址不能比它对应的子网掩码更为详细。换句话说,如果子网掩码的一位是0,则目标地址中的对应位就不能设置为1。 gateway 指定超过由网络目标和子网掩码定义的可达到的地址集的前一个或下一个跃点IP地址。对于本地连接的子网路由,网关地址是分配给连子网接口的IP地址。对于要经过一个或多个路由器才可用到的远程路由,网关地址是一个分配给相邻路由器的、可直接达到的IP地址。 metric metric 为路由指定所需跃点数的整数值(范围是1~9999),它用来在路由表里的多个路由中选择与转发包中的目标地址最为匹配的路由。所选的路由具有最少的跃点数。跃点数能够反映跃点的数量、路径的速度、路径可靠性、路径吞吐量以及管理属性。 if interface 指定目标可以到达的接口的接口索引。使用Route print命令可以显示接口及其对应接口索引的列表。对于接口索引可以使用十进制或十六进制的值。对于十六进制值,要在十六进制数的前面加上0x。忽略if参数时,接口由网关地址确定。 注意: 路由表中跃点数一列的值较大是由于允许TCP/IP根据每个LAN接口的IP地址、子网掩码和默认网关的配置自动确定路由表中路由的跃点数造成的。默认启动的自动确定接口跃点数确定了每个接口的速度,调整了每个接口的路由跃点数,因此最快接口所创建的路由具有最低的跃点数。要删除大跃点数,请在每个 LAN连接的TCP/IP协议的高级属性中禁用自动确定接口跃点数。 如果在systemrootSystem32DriversEtc文件夹的本地网络文件中存在适当的条目,名称可以用于Destination。只要名称可以通过"域名系统"(DNS)查询这样的标准主机名解析技术分解为IP地址,就可以将其用于Gateway,DNS查询使用存储在 systemrootSystem32DriversEtc 文件夹下的本地主机文件和NetBIOS 名称解析。 如果是Print或Delete命令,可以忽略Gateway参数,使用通配符来表示目标和网关。Destination的值可以是由星号()指定的通配符。如果指定目标含有一个星号()或问号(?),它被看作是通配符,只打印或删除匹配的目标路由。星号代表任意一字符序列,问号代表任一字符。例如, 10..1、192.168.、127._和_224_都是星号通配符的有效使用。 使用了无效的目标和子网掩码(网掩码)值的组合,会显示"Route bad gateway address netmask"错误消息。目标中有一位或多位设置为1,而其在子网掩码中的对应位设置为0时会发生这个错误。可以通过二进制表示法表示目标和子网掩码来检查这种情况。以二进制表示的子网掩码包括表示目标网络地址部分的一连串的1和表示目标主机地址部分的一连串的0两个部分。查看目标以确定目标的主机地址部分(由子网掩码所定义) 是否有些位设置成了1。 Windows 98 的Route命令不支持-p参数。 只有当TCP/IP协议在网络连接中安装为网络适配器属性的组件时,该命令才可用。 例子3: 要添加默认网关地址为192.168.12.1的默认路由,执行以下命令: ...

Created 25256-12-25 · Updated 25256-12-25 · 2 min · 313 words · -