小编sta*_*abs的帖子

模拟 mv 命令的动作

我正在移动一些文件,我想mv在继续运行之前确保我输入的命令是正确的。

如果我正在使用apt-get,我可以使用该-s标志来执行一个实际上可以做任何事情的模拟。

是否mv有类似的功能,可以模拟文件的移动但实际上不做任何事情?

command-line mv

13
推荐指数
3
解决办法
6901
查看次数

在 Firefox 中精确滚动?

我使用的是带有 Ubuntu 19.04 的笔记本电脑,虽然在NautilusChromium 中我可以获得精确的滚动,但在 Firefox 中似乎并非如此。这是一个(短短 30 秒)演示视频,向您展示我的意思:https : //youtu.be/GeLQLZAp2lg

在 Firefox 中,我有Smooth Scrolling,但没有Precise Scrolling。在 Chromium(和 Nautilus 文件管理器,以及几乎所有其他地方)中,我有Precise Scrolling,如视频所示。

  • uname -aLinux MACHINE_NAME 5.0.0-16-generic #17-Ubuntu SMP Wed May 15 10:52:21 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
  • 桌面环境:Unity 7.5.0+19.04.20190304-0ubuntu1
  • Firefox 版本:`68.0b7(64 位)
  • 铬版: 74.0.3729.169 (Official Build) Built on Ubuntu , running on Ubuntu 19.04 (64-bit)
  • 触摸板型号(来自xinput):DELL0767:00 06CB:7E92 Touchpad
  • 笔记本电脑型号:戴尔 Inspiron 5567

touchpad firefox scrolling

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

无法从 17.10 升级到 18.04:计算升级时出现无法解决的问题

我听说在新的 Ubuntu 版本发布后等待几周通常是个好主意,所以我才刚刚开始尝试安装更新。事实证明,当我尝试sudo do-release-upgrade在我的笔记本电脑上安装更新时,我得到了这个:

Calculating the changes

Calculating the changes

Could not determine the upgrade 

An unresolvable problem occurred while calculating the upgrade. 

This can be caused by: 
* Upgrading to a pre-release version of Ubuntu 
* Running the current pre-release version of Ubuntu 
* Unofficial software packages not provided by Ubuntu 

If none of this applies, then please report this bug using the 
command 'ubuntu-bug ubuntu-release-upgrader-core' in a terminal. 


Restoring original system state

Aborting
Reading package lists... …
Run Code Online (Sandbox Code Playgroud)

upgrade package-management apt 17.10 18.04

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

更新后Fail2ban无法启动?

我已经在我的 Ubuntu 服务器上使用了 fail2ban 一段时间了。最近(我假设升级到 ubuntu 15.04 后)fail2ban 一直无法启动。

最初,这是因为该port选项已在某处指定了两次 - 我修复了该问题。

现在我收到以下错误:

WARNING 'filter' not defined in 'sshd'. Using default one: ''
ERROR  Failed during configuration: Bad value substitution:
        section: [sshd]
        option : action
        key    : port
        rawval : ", protocol="%(protocol)s", chain="%(chain)s"]
%(mta)s-whois-lines[name=%(__name__)s, dest="%(destemail)s", logpath=%(logpath)s, chain="%(chain)s", sendername="%(sendername)s"]
Run Code Online (Sandbox Code Playgroud)

这是我的jail.local配置文件的 pastebin 的链接:http : //pastebin.com/KksbwT1r

出于隐私原因,我已删除电子邮件地址。

server configuration services fail2ban

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