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

Nakrule's questions

Martin Hope
Nakrule
Asked: 2019-09-19 04:53:46 +0800 CST

linux命令名称如何唯一?

  • 0

有很多可用的 Linux 命令,无论是最近还是早期的 UNIX。有些是众所周知的,例如cat, top, sudo, 等等......有些则更少。

人们如何设法保持命令名称的唯一性?如果有人创建了一个foo命令,他怎么知道该命令foo尚未被其他人使用并且可以通过apt、github或snap其他任何方式获得?

package-management
  • 1 个回答
  • 96 Views
Martin Hope
Nakrule
Asked: 2019-03-28 09:32:53 +0800 CST

Ubuntu 无法识别 HDMI 端口

  • 1

我有一台带两个显卡的笔记本电脑:

  • 英特尔
  • 英伟达

我有官方的 Nvidia 驱动程序并使用 Nvidia 卡。但是,当我通过 HDMI 插入显示器时,Ubuntu 显示应用程序或 xrandr 都不会重新调整它:

 nakrule@mordor ~ xrandr 
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
   1920x1080    144.00*+  60.01    59.97    59.96    60.00    59.93  
   1680x1050     84.94    74.89    69.88    59.95    59.88  
   ...
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)

这是命令的输出lshw

 nakrule@mordor ~ sudo lshw -C display
  *-display UNCLAIMED       
       description: VGA compatible controller
       product: GP106M [GeForce GTX 1060 Mobile]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list
       configuration: latency=0
       resources: memory:ac000000-acffffff memory:80000000-8fffffff memory:90000000-91ffffff ioport:3000(size=128) memory:ad000000-ad07ffff
  *-display
       description: VGA compatible controller
       product: Intel Corporation
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:154 memory:ab000000-abffffff memory:40000000-4fffffff ioport:4000(size=64) memory:c0000-dffff

我也尝试使用我的英特尔卡,但这不起作用,除非我使用sudo apt purge nvidia-kernel-common-390. 然后,检测到我所有的视频端口。但是,由于使用了 Intel GPU,因此性能要差得多。我怎么还能使用 Nvidia 卡并访问视频端口?

谢谢您的帮助。

graphics hdmi 18.04
  • 1 个回答
  • 956 Views
Martin Hope
Nakrule
Asked: 2018-12-12 06:28:23 +0800 CST

使用 thunar 时为 feh 设置启动选项

  • 3

使用文件管理器 Thunar,当我单击图片时,它将以feh. 但是,图片通常对我的窗户来说太大了,我想自动缩小它。

这可以使用以下命令完成:feh --scale-down --auto-zoom something.jpg

是否可以将 Thunar 配置为feh默认使用这些选项?

thunar
  • 1 个回答
  • 618 Views
Martin Hope
Nakrule
Asked: 2018-06-15 03:34:57 +0800 CST

具有多个网关的 Linux DHCP 服务器

  • 2

在下图中,我在 LAN A 和 B 之间有两个路由器,以及 LAN A 上的几台主机应该连接到 LAN B。我的目标是让我的一半主机使用 R1,另一半使用 R2。为此,我考虑使用 DHCP 为 50% 的主机提供不同的网关。

在此处输入图像描述

这是我的 DHCP 配置:

default-lease-time 600;
max-lease-time 7200;

subnet 10.1.1.0 netmask 255.255.255.0 {
  range 10.1.1.3 10.1.1.254;
  option domain-name-servers 1.1.1.1;
  option routers 10.1.1.1;
}

我怎样才能做到这一点?

dhcp
  • 1 个回答
  • 2906 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