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

alle_meije's questions

Martin Hope
alle_meije
Asked: 2023-12-27 19:49:40 +0800 CST

Kubuntu 安装后未检测到 Grub

  • 5

我有一台配备 MSI B550 Gaming Plus 主板、运行 Windows 10 的电脑。

在尝试使用不同的方式安装Kubuntu对SSD进行分区(使用整个磁盘安装Windows并让Kubuntu调整其大小,在部分磁盘上安装Windows并手动为Kubuntu创建新分区等)后,这些似乎都不起作用以检测到的方式安装 grub2。

我尝试过将引导加载程序安装到 /dev/sda 以及 /dev/sda1 (Windows 使用的 ESP),但似乎没有将 grub2 放在那里。

当我在 Windows 中运行 BCDedit 时,它只显示 Windows 启动管理器和 Windows 启动加载程序。

当 Kubuntu 安装完成且没有错误时,我假设 grub2 放置在某处,但不是主板设置“MSI click”可以找到它的地方。

有没有办法在不重新安装 Kubuntu 或 Windows 的情况下更改此设置?

编辑:使用具有启动修复功能的 USB 闪存驱动器和高级选项“备份和重命名 Windows EFI 文件”我可以启动到 grub2,但 Windows 启动选项不会执行任何操作,它会返回到菜单。

也许菜单选项有问题?现在内容如下:

setparams 'Windows Boot Manager (on /dev/sda1)'
insmod part_gpt
insmod fat
set root='hd0,gpt1'
if [ x$feature_platform_search_hint == xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  409C-954a
else
  search --no-floppy --fs-uuid --set=root 409C-954a
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi

我的理解是有道理的。但是似乎有一个选择:移动 Windows 文件,获取 grub2 但没有 Windows,以及使用启动修复而不移动文件而不获取 grub2?

dual-boot
  • 1 个回答
  • 103 Views
Martin Hope
alle_meije
Asked: 2020-08-06 01:03:40 +0800 CST

带有 Nvidia + Intel 卡的笔记本电脑找不到带有 Intel 的 HDMI 显示器

  • 1

我在其他地方看到过这个问题的解决方案,但涉及xrandr检测所有显卡,但这不会发生在我的电脑上,所以这里是:

我的笔记本电脑有一个 Nvidia GPU 和一个 Intel 显卡。我希望 Nvidia 卡能够被检测到并可用于 CUDA、Tensorflow 等,但不能用于图形。这是硬件:

lspci|grep VGA
00:02.0 VGA compatible controller: Intel Corporation Device 3e9b
01:00.0 VGA compatible controller: NVIDIA Corporation Device 1f10 (rev a1)

并hardinfo为图形显示:

-Display-
Resolution      : 1920x1080 pixels
OpenGL Renderer : Mesa DRI Intel(R) UHD Graphics 630 (CFL GT2)
X11 Vendor      : The X.Org Foundation

所以图形通过英特尔卡。

英特尔卡看不到 HDMI 端口的原因之一是该端口仅物理连接到 Nvidia 卡,因此如果使用另一张卡,则无法访问 HDMI。我xrandr只看到笔记本电脑的屏幕,所以我假设我就是这种情况。

我试图找出我的系统上是否是这种情况,以便我可以xrandr --setprovideroffloadsink在 Intel 上渲染,然后通过 Nvidia 发送到 HDMI。但

xrandr --listproviders
Providers: number : 1
Provider 0: id: 0x43 cap: 0x9, Source Output, Sink Offload crtcs: 3 outputs: 1 associated providers: 0 name:modesetting

在示例中我可以在哪里找到这将提供两张卡(名为 Nvidia 和 Intel 或类似的卡)我不知道该怎么办?

multiple-monitors drivers intel-graphics hdmi nvidia-geforce
  • 1 个回答
  • 1721 Views
Martin Hope
alle_meije
Asked: 2019-08-16 01:57:01 +0800 CST

是否可以在没有 sudo 的情况下使用 docker?

  • 10

根据这个关于 docker的问题的答案,以非 root 身份运行它就像将非 root 用户名添加到docker组中一样简单,然后注销并重新登录。果然,当我将它sudo用于hello-world图像时进展顺利。但是对于另一个名为的测试图像,whalefortune我仍然得到access denied错误——见下文。

通常不再可能以非 root 身份运行 docker 吗?我使用的是 Ubuntu 19.04,它是比示例更新的版本,并且有人提到以非 root 身份运行 docker 可能存在安全漏洞。

我的想法是以普通用户身份运行 nvidia-docker,这可能(甚至是一个好主意)吗?

$ sudo docker run --rm hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
1b930d010525: Pull complete 
Digest:   sha256:6540fc08ee6e6b7b63468dc3317e3303aae178cb8a45ed3123180328bcc1d20f
Status: Downloaded newer image for hello-world:latest

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
  1. The Docker client contacted the Docker daemon.
  2. The Docker daemon pulled the "hello-world" image from the Docker Hub. (amd64)
  3. The Docker daemon created a new container from that image which runs the executable that produces the output you are currently reading.
  4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.

To try something more ambitious, you can run an Ubuntu container with: $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/

For more examples and ideas, visit:
https://docs.docker.com/get-started/

$ docker run --rm dbkdoc/whalefortune
docker: Got permission denied while trying to connect to the 
Docker daemon socket at unix:///var/run/docker.sock: 
Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/containers/create: 
dial unix /var/run/docker.sock: connect: permission denied.
See 'docker run --help'.
permissions sudo groups docker
  • 1 个回答
  • 20074 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