我的一个无头系统通过/etc/network/interfaces有线以太网分配了一个静态 IP 地址。它连接到路由器,该路由器也是 DHCP 服务器。几天后,静态地址被删除并替换为 DHCP 地址。为什么会这样?
sudo ifdown eth0 && sudo ifup eth0或sudo service networking restart或重新启动,系统将在其静态地址一遍,但随后几天后,IP地址更改为动态的。 自动低速
iface lo inet环回
自动 eth0
iface eth0 inet 静态
地址 192.168.124.104
网关 192.168.124.253
网络掩码 255.255.255.0
这有点像一个谜。
什么会导致系统放弃其静态地址并改为请求 DHCP 地址?要查找什么,在哪个日志文件中?
我试过这个:
moncef@moncef-Latitude-E7270:~$ sudo apt install tor
Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 3321 (apt)
Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 3321 (apt)
Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 3321 (apt)
Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 3321 (apt)
Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It …Run Code Online (Sandbox Code Playgroud) 是否需要在 Ubuntu 14.04 LTS 中安装 C/C++ 编译器?在哪里写程序?如何编译相同?
我正在关闭 Ubuntu,并在超时时不断遇到错误。完全关闭它的唯一方法是关闭 VM。我得到的错误是。
[Time] Timed out stopping /sys/devices/virtual/block/dm-0
[Time] Timed out stopping /dev/disk/by-id/dm=name=sda5_crypt
[Time] Timed out stopping /dev/dm-0.
[Time] Timed out stopping /dev/disk/by-d/dm-uuid-C...
[Time] Timed out stopping /dev/disk/by-id/lvm-pv-uuid-3F....
[Failed] Failed to start unattended Upgrades Shutdown
Run Code Online (Sandbox Code Playgroud) 在我的戴尔 Latitude 5491 和 Ubuntu 18.04.2 上。LTS,(内核4.19),显卡硬件好像有问题。
之前我用标准内核在Ubuntu安装时选择“安装第三方模块”选项,内核死机太多,几乎无法使用。
在没有第三方模块的当前安装中,一切都非常顺利,但是在移动到最新的上游内核后,我收到了这些警告apt-get upgrade。
update-initramfs: Generating /boot/initrd.img-4.19.20-041920-generic
W: Possible missing firmware /lib/firmware/nvidia/gv100/sec2/sig.bin for module nouveau
W: Possible missing firmware /lib/firmware/nvidia/gv100/sec2/image.bin for module nouveau
W: Possible missing firmware /lib/firmware/nvidia/gv100/sec2/desc.bin for module nouveau
W: Possible missing firmware /lib/firmware/nvidia/gv100/nvdec/scrubber.bin for module nouveau
W: Possible missing firmware /lib/firmware/nvidia/gv100/gr/sw_method_init.bin for module nouveau
W: Possible missing firmware /lib/firmware/nvidia/gv100/gr/sw_bundle_init.bin for module nouveau
W: Possible missing firmware /lib/firmware/nvidia/gv100/gr/sw_nonctx.bin for module nouveau
W: Possible missing firmware /lib/firmware/nvidia/gv100/gr/sw_ctx.bin for module nouveau
W: …Run Code Online (Sandbox Code Playgroud) 在过去 24 小时内,我的屏幕上突然出现两次奇怪的窗口。它在顶部写着“热点登录”,只有这个链接。该进程的名称是gnome-shell-portal-helper.
我不需要门户助手,无线网络工作正常。
链接“check_network_status.txt”指向http://nmcheck.gnome.org/check_network_status.txt。现在您一定很好奇,想知道当您单击它时会发生什么(我会的):它显示一个带有文本“NetworkManager 在线”的网页。
这个窗口有什么意义呢?有人经历过这个吗?
我使用的是 19.10,Gnome shell 版本 3.34.1。
编辑:我注意到每次计算机从睡眠状态唤醒时都会打开该窗口。
我正在尝试设置对 samba 共享的访客访问权限,但一无所获。我不得不多次清除桑巴舞。这是我的 smb.conf:
#
# Sample configuration file for the Samba suite for Debian GNU/Linux.
#
#
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options most of which
# are not shown in this example
#
# Some options that are often worth tuning have been included as
# commented-out examples in this file. …Run Code Online (Sandbox Code Playgroud) 我使用 Ubuntu 12.04(出于性能原因我没有升级到 14.04)但我不喜欢 Unity。如何将 XFCE 安装为我的默认图形系统,并完全删除 Unity?
我想将值与 0 进行比较,它告诉我它小于 0。我用过
solution=`echo $a / $b | bc -l`
Run Code Online (Sandbox Code Playgroud)
仅当“a”小于“b”时才会出现此问题。
在我的 Ubuntu 系统上的一个大目录(> 140000 个文件和> 200 个子目录)中,我知道某处有两个文件名太长而无法复制到 Windows (NTFS) 文件夹。我试过了,收到了两条错误消息,但我没有注意文件所在的子文件夹。
如何找到名称最长的两个文件?