小编use*_*501的帖子

我可以从命令行使用 UUID 挂载驱动器吗(不是 fstab?)

是否可以使用 UUID 挂载驱动器,而不是在 fstab 中使用这些值?

我有一个挂载设备的脚本,但是无法保证诸如此类的驱动器标签/dev/sda2始终相同。

我知道我可以在启动时使用这种方法挂载驱动器fstab,但是在外部磁盘的情况下,它们在启动时可能并不总是存在。

command-line debian mount

22
推荐指数
3
解决办法
2768
查看次数

Debian 测试 - apt 软件包在安装 Virtualbox 6.0 或 6.1 时存在未满足的依赖项

这可能不是问这个问题的最佳地点(如果不是,请把我指向其他地方)但是我在尝试在 Debian 测试系统上安装 Virtualbox 6.0 或 6.1 时遇到了未满足的依赖关系问题。

我的猜测 - 虽然我不知道是不是这种情况 -libvpx5是不是testing由于某种原因不可用。

sudo apt install virtualbox-6.0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The …
Run Code Online (Sandbox Code Playgroud)

debian apt virtualbox

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

Debian 10 systemd,如何禁用图形环境的自动启动

我在服务器上安装了一个图形环境,我决定不再希望在启动时运行该环境。如何使用 systemd 禁用它?

这是 gnome 桌面环境。

debian systemd

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

mdadm - 全新安装后如何重建 raid 阵列?

我曾经在挂载点上有一个 raid1 阵列/mnt/md0,但是我重新安装了操作系统,现在我不知道如何重新组装它。

我相信我应该按照 的思路做一些事情mdadm --assemble,但我不知道如何将此信息添加到在重新启动之间保持不变的配置文件中。(我也不记得配置文件的位置。)

我首先按照此信息创建了数组

https://www.digitalocean.com/community/tutorials/how-to-create-raid-arrays-with-mdadm-on-debian-9

但没有有关如何使用现有磁盘创建阵列的信息。

有人能指出我正确的方向吗?

更新:我找到了这个配置文件:/etc/mdadm/mdadm.conf

这就是它包含的内容

# mdadm.conf
#
# !NB! Run update-initramfs -u after updating this file.
# !NB! This will ensure that initramfs has an uptodate copy.
#
# Please refer to mdadm.conf(5) for information about this file.
#

# by default (built-in), scan all partitions (/proc/partitions) and all
# containers for MD superblocks. alternatively, specify devices to scan, using
# wildcards if desired.
#DEVICE partitions containers

# …
Run Code Online (Sandbox Code Playgroud)

raid software-raid debian mdadm

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

服务器受到密钥交换尝试的攻击。没有被fail2ban添加到禁止列表中

查看日志sshd,有一台远程计算机似乎正在攻击我的服务器。这是一个条目的示例。它始终是同一个IP。

5 月 8 日 17:57:32 [已删除] sshd[99267]:无法与 37.49.226.19 端口 42302 协商:找不到匹配的密钥交换方法。他们的报价:diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1 [preauth]

我已经安装了fail2ban,但是好像并没有屏蔽这个IP。

我该如何解决这个问题?

linux security ssh fail2ban

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