我希望无头服务器(运行 Ubuntu Server 19.10)不断侦听 iperf3 请求,即使在重新启动后也是如此。目前,我可以使用 -c 和 -d 标志在终端上运行它,将其作为守护进程运行(我认为这只是在后台运行)。
sudo iperf3 -s -D
Run Code Online (Sandbox Code Playgroud)
但我希望它在启动时始终以这种模式启动,因此它始终在后台监听。
以前做这种的时候,涉及到systemd,我对systemd不是太熟悉。我不认为当我阅读 iperf3 程序时提到了 systemd,那么它是否与其兼容(或者该声明本身是无意义的?)
之前在教程中只以非常有限的方式使用过 systemd,因此无法快速了解其范围。
我尝试在我的Raspberry Pi 4上安装Ubuntu 20.04桌面,但在官方网站上找不到ISO映像。
https://ubuntu.com/download/raspberry-pi
该图片已经不可用了吗?
我尝试使用“软件和更新/附加驱动程序”功能切换到“nvidia-driver-470”,但它总是说不会安装这些软件包。
如果我选择带有 synaptic 的 nvidia-driver-470,它会安装所有必需的软件包,但有一些奇怪的事情:
它需要较旧的内核 5.4.0-1053-gcp(Google Cloud Platform),而最后一个是 5.11.0- 38-通用!
如果我尝试使用默认选项 5.11.0-38-generic 启动,nvidia 驱动程序将不会加载,并且分辨率将仅为 640x480!
如果我尝试 5.4.0-1053-gcp 内核(与 nvidia 470 兼容),它将无法启动!当尝试 initramfs 时它将停止启动,然后几分钟后打开 busybox 控制台......
安装 470 删除了几个旧的 nvidia 软件包...很好,我有一个使用 rsync 制作的根(和启动)备份(https://unix.stackexchange.com/a/626503/30352),所以我可以快速直接使用以前的工作操作系统副本和/或快速恢复它(我所做的)。
我看到有用于 5.11.0-38-generic 软件包的 nvidia 470,但我无法安装它们,因为
linux-modules-nvidia-470-5.11.0-38-generic需要
nvidia-kernel-common-470 >= 470.74,但唯一可用的软件包是
nvidia-kernel-common-470 470.63.01-0ubuntu0.20.04.2
,如果我下载https://launchpad.net/ubuntu/+archive/primary/+ files/nvidia-kernel-common-470_470.74-0ubuntu0.20.04.1_amd64.deb,
gdebi-gtk不会启用安装按钮!(我猜这是因为我的显然是20.04.2,而包是20.04.1的)
但有报告称它是可安装的:
NVIDIA 470 驱动程序在暂停 Ubuntu 20.04.3 LTS 后无法工作(是的,为什么我的最新更新显然是 20.04.2?)
470不稳定吗?尽管额外的驱动程序说它已经“经过测试”?
我需要升级,因为 UE4Editor 因 VK_ERROR_INITIALIZATION_FAILED“VkResult=-3”崩溃https://answers.unrealengine.com/questions/896820/out-of-memory-bug-running-422x-on-linux-with-vulka。 html
是否有任何命令行工具可用于将 Socks5 代理转换为 HTTP 代理?
我搜索了2015年的一个答案,说我可以使用Polipo,但它已经停产了。
还有其他工具可以做到吗?多谢。
在 Ubuntu LTS 中,应用程序被锁定到发布日期固定的版本。对于 Ubuntu 22.04“Jammy”,这些是:
我想在我的家庭服务器上安装这些应用程序的最新上游版本。
我怎样才能以简单可靠的方式做到这一点?
我想从变量中提取 IP 和端口。我尝试过使用这个:
ADDR=1.2.3.4:12345
IP=${ADDR##:}
PORT=${ADDR%:}
Run Code Online (Sandbox Code Playgroud)
但是,这会将整个地址分配给两个变量。
如何将 IP 和端口存储到两个变量?
我的系统日志收到许多这样的消息:
dbus-daemon[1311]: message repeated 12 times: [ apparmor="DENIED" operation="dbus_method_call" bus="session" path="/org/gnome/Mutter/IdleMonitor/Core" interface="org.gnome.Mutter.IdleMonitor" member="GetIdletime" mask="send" name=":1.30" pid=33590 label="snap.firefox.firefox" peer_pid=1646 peer_label="unconfined"]
Run Code Online (Sandbox Code Playgroud)
kern.log 还包含以下内容:
kernel: [16957.155886] audit: type=1107 audit(1697596358.271:348): pid=823 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/hostname1" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name=":1.410" pid=33590 label="snap.firefox.firefox" peer_pid=34265 peer_label="unconfined"
kernel: [16957.155886] exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
Run Code Online (Sandbox Code Playgroud)
这一切似乎都与火狐有关。我已经搜索过但找不到答案。
我的配置:
$ uname -a
Linux mksmith-laptop 6.2.0-34-generic #34~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 13:12:03 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor …Run Code Online (Sandbox Code Playgroud) 在 Redhat 中,有一个名为 的脚本certwatch,当 apache 证书即将过期时会发出警告。Ubuntu 有类似的东西吗?谢谢。
今天,我在 ubuntu 服务器版本 20.04 上运行了常规更新。无论如何,我像往常一样看到了这一点:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.15.0-58-generic
Found linux image: /boot/vmlinuz-5.15.0-57-generic
Found initrd image: /boot/initrd.img-5.15.0-57-generic
Found linux image: /boot/vmlinuz-5.15.0-56-generic
Found initrd image: /boot/initrd.img-5.15.0-56-generic
Found linux image: /boot/vmlinuz-5.4.0-137-generic
Found initrd image: /boot/initrd.img-5.4.0-137-generic
Found linux image: /boot/vmlinuz-5.4.0-136-generic
Found initrd image: /boot/initrd.img-5.4.0-136-generic
Run Code Online (Sandbox Code Playgroud)
因此,由于较新的 HWE,我的系统具有内核版本 5.15,但我仍然安装(并更新但未使用)内核分支 5.4。虽然更新过程正常工作,并且自动删除旧版本:我可以为所有内核 5.4 删除一次吗?
Linux 内核现在需要 gcc v13 才能编译,但 Ubuntu 22.04 仍停留在 gcc v11 上。我找到了通过 PPA 安装最新本机 gcc-13 的说明(https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/ppa),但我没有看到任何安装 v13 的方法aarch64(又名 ARM64)交叉编译器。PPA 说它包含“gcc-13-cross”,但这似乎不是我可以安装的软件包。