小编chi*_*555的帖子

sudo su 和 sudo -i 之间的功能区别是什么?

为什么在这个例子中一个比另一个更受欢迎?

sudo su
echo "options iwlwifi 11n_disable=1" >> /etc/modprobe.d/iwlwifi.conf
exit
Run Code Online (Sandbox Code Playgroud)

请提供指向 Ubuntu 文档的链接。

command-line sudo

20
推荐指数
3
解决办法
1万
查看次数

为什么 pkexec 比 gksudo 更适合图形应用程序?

请提供反驳这一点的 Ubuntu 文档:https : //help.ubuntu.com/community/RootSudo 为什么在我完全更新的 13.04 系统上,pkexec 不起作用?

$ pkexec gedit somefile.txt
No protocol specified

** (gedit:13135): WARNING **: Could not open X display
Cannot open display: 
Run '/usr/bin/gedit --help' to see a full list of available command line options
Run Code Online (Sandbox Code Playgroud)

command-line

10
推荐指数
1
解决办法
6061
查看次数

是否可以在 Ubuntu 16.04 中使用 Broadcom BCM43142 wifi?

我花了几个小时在网上寻找,尝试了各种方法。一个站点说 b43 驱动程序不支持此特定卡,因此我必须使用 wl。并确保 b43 被列入黑名单,这是我无法做到的(我总是尝试将 b43 列入黑名单,它表示许可被拒绝)。那么,甚至可以在 Ubuntu (16.04) 上使用这个网络控制器吗?我的新笔记本电脑已经一周了,但仍然没有启动并运行 - 不过 Win 10 可以工作:(

wireless networking broadcom drivers

8
推荐指数
1
解决办法
5万
查看次数

netplan apply 不会改变IP地址

好的,我的文件位于 /etc/netplan/50-cloud-init.yaml 我将 IP 地址更改为静态 IP 地址,如下所示:

network:
  version: 2 

  renderer: netwokrd

  ethernets:

    dhcp4: no
    dhcp6: no
    addresses: [10.0.2.100/24]
    gateway4: 10.0.2.1
    nameservers:
       addresses: [10.0.2.100]
Run Code Online (Sandbox Code Playgroud)

然后,我输入 sudo netplan apply ,没有任何错误消息。但是,当我输入 ifconfig 时,它仍然在 enp0s3 上重新发送过去的 IP 地址。大家知道为什么会这样吗?

server networking netplan

8
推荐指数
1
解决办法
2万
查看次数

无法让我的 Netgear A6210 USB Wifi 适配器在我的 linux Ubuntu 上工作

我在桌面上运行 Ubuntu 18。我没有wifi卡。但是,我有这个 Netgear A6210 USB wifi 适配器。我插上它,但它不出来。我认为计算机无法识别该设备。

我尝试按照我在网上找到的这些说明安装驱动程序,这似乎对每个人都有效。但我收到此错误消息。

操作说明:

git clone https://github.com/jurobystricky/Netgear-A6210

cd Netgear-A6210

make

sudo make install
Run Code Online (Sandbox Code Playgroud)

错误信息:

~/Documents/Netgear-A6210$ make
export DBGFLAGS

*** Building driver with debug messages ***

cp -f os/linux/Makefile.6 /home/alseny/Documents/Netgear-A6210/os/linux/Makefile

make -C /lib/modules/4.15.0-20-generic/build DBGFLAGS=-DDBG SUBDIRS=/home/alseny/Documents/Netgear-A6210/os/linux modules

make[1]: Entering directory '/usr/src/linux-headers-4.15.0-20-generic'
  CC [M]  /home/alseny/Documents/Netgear-A6210/os/linux/../../os/linux/sta_ioctl.o

In file included from ./include/linux/bitmap.h:9:0,
                 from ./include/linux/cpumask.h:12,
                 from ./arch/x86/include/asm/cpumask.h:5,
                 from ./arch/x86/include/asm/msr.h:11,
                 from ./arch/x86/include/asm/processor.h:21,
                 from ./arch/x86/include/asm/cpufeature.h:5,
                 from ./arch/x86/include/asm/thread_info.h:53,
                 from ./include/linux/thread_info.h:38,
                 from ./arch/x86/include/asm/preempt.h:7,
                 from ./include/linux/preempt.h:81,
                 from ./include/linux/spinlock.h:51,
                 from ./include/linux/seqlock.h:36,
                 from ./include/linux/time.h:6,
                 from ./include/linux/stat.h:19,
                 from …
Run Code Online (Sandbox Code Playgroud)

usb compiling drivers

7
推荐指数
1
解决办法
3万
查看次数

带有 Intel 无线 AC-9462 的系统会冻结,除非由于缺少固件而禁用 WiFi

我有带英特尔无线 AC-9462 卡的 NUC 7PJYH。问题是系统在使用 WiFi 时会随机冻结。禁用 wifi 时不会冻结。我尝试使用不同的内核,但行为仍然相同。

我调查dmesg时,我是在内核12年4月16日,我发现内核要求iwlwifi-9000-pu-b0-jf-b0-35iwlwifi-9000-pu-b0-jf-b0-36固件文件。我试图在 wireless.wiki.kernel.org 上找到这些文件。我浏览了他们维护的所有存储库,我只找到了这个固件的 34 和 38 版本。

在哪里可以找到内核 4.16 的正确固件?这些文件甚至不在官方linux-firmware包树中。

编辑:

wifi相关的dmesg输出:

[    3.476177] iwlwifi 0000:00:0c.0: enabling device (0000 -> 0002)

[    3.483822] iwlwifi 0000:00:0c.0: Direct firmware load for iwlwifi-9000-pu-b0-jf-b0-36.ucode failed with error -2

[    3.483839] iwlwifi 0000:00:0c.0: Direct firmware load for iwlwifi-9000-pu-b0-jf-b0-35.ucode failed with error -2

[    3.497077] iwlwifi 0000:00:0c.0: loaded firmware version 34.3125811985.0 op_mode iwlmvm

[    3.570636] iwlwifi 0000:00:0c.0: …
Run Code Online (Sandbox Code Playgroud)

wireless kernel networking drivers

7
推荐指数
1
解决办法
5967
查看次数

在 17.10 中向接口添加第二个 IP 地址

如何在 Ubuntu 17.10 中添加第二个 IP 地址,就像过去可以添加 eth0:1、eth0:2 等一样。

我已经尝试过,但很多命令已被弃用,例如 ifup、ifdown 等,并且网络设置似乎与以前不同。我可能在这里错了,但我似乎无法弄清楚。

我有一个网卡eth0,我想在同一子网上添加第二个 IP。如果我将 eth0:1 添加到/etc/network/interfaces但我似乎无法启动接口。

有没有另一种方法可以永久地做到这一点?

编辑:

/etc/network/interfaces

auto lo
iface lo inet loopback

auto eth0:1
iface eth0:1 inet static
    address 10.100.1.39
    netmask 255.255.255.0
Run Code Online (Sandbox Code Playgroud)

我也尝试在eth0上添加信息,但似乎没有什么区别。

这如果ifconfig的输出

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
    inet 10.100.1.38  netmask 255.255.255.0  broadcast 10.100.1.255
    inet6 fe80::215:5dff:fe00:1605  prefixlen 64  scopeid 0x20<link>
    ether 00:15:5d:00:16:05  txqueuelen 1000  (Ethernet)
    RX packets 496  bytes 248506 (248.5 KB)
    RX errors 0  dropped 4  overruns 0 …
Run Code Online (Sandbox Code Playgroud)

networking ifconfig netplan

6
推荐指数
1
解决办法
2万
查看次数

移除 ifupdown(eth0) 连接

在安装 Ubuntu 14.04 时,我遇到了一些显卡驱动程序问题,因此我需要从 root 安装驱动程序,我使用 pppoeconf 创建了 adsl 连接。现在,当我启动我的 PC 时,我有两个连接,我使用的常规连接和ifupdown(eth0)使用pppoeconf.

如何删除eth0连接,使其不再困扰我?

network-manager networking pppoe 14.04

4
推荐指数
2
解决办法
3万
查看次数

为 ubuntu 15.04 安装 Broadcom 无线驱动程序

我只是按照说明安装 Broadcom 驱动程序,一切正常,但最后说明sudo apt-get install <bcmwl-kernel-source>,它只是说:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package bcmwl-kernel-source
Run Code Online (Sandbox Code Playgroud)

我重新启动系统后没有发生任何事情。我使用 Ibuntu 15.04 并且 pci id 是 [14e4:4365] (rev 01)

wireless broadcom

4
推荐指数
1
解决办法
2万
查看次数

Acer Aspire E5 573 在任何 Linux 平台上都没有 Wifi

我用 Windows 10 和 Ubuntu 15.10 双启动了我的笔记本电脑 Acer Aspire E5-573,从第一天开始我就无法在任何 Linux 平台上使用 WiFi。我做了我能做的一切仍然没有用。在 Ubuntu 上没有可供我使用的其他驱动程序,但我完全能够在 Windows 10 上使用 WiFi。我笔记本电脑中的 WiFi 芯片是 Qualcomm Atheros QCA9377 无线网络适配器。请为我找到解决方案。

    dmesg | grep ath10k
[   11.203844] ath10k_pci 0000:03:00.0: pci irq msi-x interrupts 8 irq_mode 0 reset_mode 0
[   11.599565] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/cal-pci-0000:03:00.0.bin failed with error -2
[   11.599579] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA9377/hw1.0/firmware-5.bin failed with error -2
[   11.599582] ath10k_pci 0000:03:00.0: could not fetch firmware file 'ath10k/QCA9377/hw1.0/firmware-5.bin': -2
[ …
Run Code Online (Sandbox Code Playgroud)

networking acer atheros drivers

3
推荐指数
1
解决办法
8882
查看次数

找不到 Wi-Fi 适配器 Ubuntu 20.04

系统:Dell Precision T3400 双启动 Windows 10/Ubuntu。该系统目前通过以太网连接到互联网。更新到 Ubuntu 20.04 后,我在尝试使用 EDUP EP-AC1661 Wi-Fi 适配器时遇到“找不到 Wi-Fi 适配器”。我已经从http://www.szedup.com/ep-ac1661/下载了这个适配器的 Linux 驱动程序,已经解压并双击 RTL8821CU_WiFi_linux_v5.2.5.1_22211_COEX20170310-1212.270170 中的所有 install.sh 文件文件夹。我在 Synaptic 中搜索了 RTL8821CU,但 Synaptic 返回:“无法下载所有存储库索引”缺乏Linux专业知识:

“wireless-info.txt”的输出如下:

########## wireless info START ##########

Report from: 21 Nov 2020 14:57 CST -0600

Booted last: 21 Nov 2020 00:00 CST -0600

Script from: 22 Oct 2018 03:34 UTC +0000

##### release ###########################

Distributor ID: Ubuntu
Description:    Ubuntu 20.04.1 LTS
Release:    20.04
Codename:   focal

##### kernel ############################

Linux 5.4.0-54-generic #60-Ubuntu SMP Fri …
Run Code Online (Sandbox Code Playgroud)

usb network-manager networking drivers 20.04

3
推荐指数
1
解决办法
3614
查看次数