如何列出通过安装的应用程序snap?
lz@vm:$ snap help
The snap command lets you install, configure, refresh and remove snaps.
Snaps are packages that work across many different Linux distributions,
enabling secure delivery and operation of the latest apps and utilities.
Usage: snap <command> [<options>...]
Commonly used commands can be classified as follows:
Basics: find, info, install, remove, list
...more: refresh, revert, switch, disable, enable, create-cohort
History: changes, tasks, abort, watch
Daemons: services, start, stop, restart, logs
Permissions: connections, interface, connect, disconnect
Configuration: …Run Code Online (Sandbox Code Playgroud) 我在 Ubuntu 17.10.1(主机和来宾)上使用 virt-manager。抢钥匙不起作用。也就是说,例如,我无法在来宾计算机内执行控制选项卡。
我发现它与Wayland有关:
https://bugzilla.redhat.com/show_bug.cgi?id=1285770
我已经关注了整个讨论,最后他们说这个问题对于为 Wayland 本地构建的应用程序是固定的。我猜 virt-manager 不是,因为它对我不起作用。
如何使用wayland在virt-manager中获取密钥?
我想为我的 ubuntu 测试一个新内核。我想要最新的稳定内核可用。我怎样才能安全地做到这一点?也就是说,没有http下载。
我刚刚安装了 Firefox
snap install firefox
Run Code Online (Sandbox Code Playgroud)
但我无法打开/保存主目录中的任何内容。
我试过
sudo snap connect firefox:home :home
Run Code Online (Sandbox Code Playgroud)
但它不起作用。我点击打开,但什么也没做。保存页面也没有任何作用。
其他软件,如 Inkscape,只有在我使用 root 启动时才会运行;
snap run inkscape
error: cannot find current revision for snap inkscape: readlink /snap/inkscape/current: permission denied
Run Code Online (Sandbox Code Playgroud)
这不太好
如果我在 Ubuntu 20.04 上使用第二台显示器并且它具有高分辨率 (4K),则第一个屏幕会出现故障。经过多次尝试,我发现将其设置为 175% 的小数缩放,然后再次设置为 200% 将解决此问题,但是它会在屏幕休眠后返回
因此,我想要一种从命令行更改为 175% 然后更改为 200% 的方法,以便我可以将其自动转换为脚本
我害怕升级我的 Ubuntu,因为升级时有一半的时间我的系统损坏了,我必须重新安装。所以我总是在周末这样做,而且很少这样做。
我有一台 Dell XPS 13 9310,最近两次尝试升级时出现黑屏,不得不重新安装 Ubuntu,因为它无法再启动。
有什么建议可以让我尝试防止这种情况再次发生吗?
我需要在第一次启动之前以我知道其ssh指纹的方式配置树莓派,因此唯一的方法是在我的计算机上的SD卡中生成密钥并获取指纹。我这样做了,但是当树莓启动时,它会在我生成的密钥之上创建新密钥。如何防止 ssh 守护进程这样做?如果它是第一次启动,它肯定会在某个地方读取,这必须是一种改变它的方法。
编辑:
我的脚本将生成的 ssh 文件放在 /etc/ssh.conf 中。在第一次启动时,这是 sh 服务的 /var/log/daemon.log 的日志:
Sep 7 16:12:31 raspberrypi sh[297]: removed '/etc/ssh/ssh_host_dsa_key'
Sep 7 16:12:31 raspberrypi sh[297]: removed '/etc/ssh/ssh_host_dsa_key.pub'
Sep 7 16:12:31 raspberrypi sh[297]: removed '/etc/ssh/ssh_host_ecdsa_key'
Sep 7 16:12:31 raspberrypi sh[297]: removed '/etc/ssh/ssh_host_ecdsa_key.pub'
Sep 7 16:12:31 raspberrypi sh[297]: removed '/etc/ssh/ssh_host_rsa_key'
Sep 7 16:12:31 raspberrypi sh[297]: removed '/etc/ssh/ssh_host_rsa_key.pub'
Run Code Online (Sandbox Code Playgroud)
它以某种方式知道这些密钥不是由 SSH 服务生成的。请注意,我没有生成 ssh_host_ed25519_key。这可能是原因吗?但我注释掉了它的行sshd_config:
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
#HostKey /etc/ssh/ssh_host_ed25519_key
Run Code Online (Sandbox Code Playgroud)
这可能是它检测到并删除密钥的原因吗?
编辑2:
我从之前启动的 SD 卡中添加了 …
根据BuildYourOwnKernel有两种方法可以获取源代码:
apt-get
混帐
Git 源代码未签名。
如何在ubuntu 18.04上获取pgp的scdaemon?似乎对于旧版本它是存在的,但是对于新版本我应该如何安装?
PS:我正在尝试使用gpg --edit-card
当我在树莓派上安装 mosh 并尝试通过我的计算机连接时,总是出现以下错误:
lz@blade:~$ mosh -ssh="ssh -p 2323" pi@192.168.0.3
pi@192.168.0.3's password:
The locale requested by LC_CTYPE=pt_BR.UTF-8 isn't available here.
Running `locale-gen pt_BR.UTF-8' may be necessary.
The locale requested by LC_CTYPE=pt_BR.UTF-8 isn't available here.
Running `locale-gen pt_BR.UTF-8' may be necessary.
mosh-server needs a UTF-8 native locale to run.
Unfortunately, the local environment (LC_CTYPE=pt_BR.UTF-8) specifies
the character set "US-ASCII",
The client-supplied environment (LC_CTYPE=pt_BR.UTF-8) specifies
the character set "US-ASCII".
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot …Run Code Online (Sandbox Code Playgroud) 我在 boost::thread 库标头(我没有碰过)中遇到了疯狂的编译错误,所以我删除了/usr/include/boost.
我清除了libboost-all-dev然后做了sudo apt-get install libboost-all-dev,但是标题不会回来。
我应该怎么办?
我知道我应该 apt-get 东西,但我问的是不存在的二进制文件,或者我需要最新版本的二进制文件。每次我搜索如何在 Ubuntu 上安装这些二进制文件时,都会得到不同的答案。当然,我可以将 bin 粘贴到 /bin 或我的 PATH 中已经存在的目录中,但是许多应用程序都充满了其他文件,因此这不是最好的方法。我经常看到说明告诉我在 PATH 中添加应用程序的文件夹,但是如果我使用这种技术安装 100 个应用程序会发生什么?我的 PATH 变量不会变得又大又乱吗?此外,我会将这个 PATH 传递给我打开的每个应用程序,我不认为这是在 Linux 中安装东西的更好方法。
那么,哪种方法是正确的呢?另外,如果这与PATH有关,那么将路径添加到PATH的正确方法是什么?我总是看到很多方法,我很困惑。
我想一劳永逸地结束这一切,因为我厌倦了以不同的方式安装东西,我想以正确和最优雅的方式来完成。
command-line bash environment-variables software-installation