我是 Ubuntu 的新手。我想在我的机器上安装最新的 Scala 版本 2.11.4,但他们网站上的说明对我来说很神秘。任何人都可以解释如何逐步安装它?
如何将 Grub 完全移动到新分区?当我安装 Ubuntu (Kubuntu) 时,我只为/boot分区分配了 256 MiB,这似乎不够。每次安装新内核时,安装都会因空间不足而中途失败,因此我必须手动干预。所以我试图将 grub 从我的旧引导分区 , 移动/dev/sdb5到我的新 512 MiB 分区/dev/sdb7。
我编辑/etc/fstab点使用新的引导分区。
# /boot was on /dev/sdb5 during installation
#UUID=f1fcbfbe-7943-4e48-9796-8d0c42076c0b /boot ext4 defaults 0 2
# /boot is now on /dev/sdb7
UUID=70d8be3a-6b6c-4722-ab0d-e79d93e6dd1c /boot ext4 defaults 0 2
Run Code Online (Sandbox Code Playgroud)
我卸载了/boot/efi( /dev/sdb2) 和/boot( /dev/sdb5)。然后安装/dev/sdb7为/boot,重新安装/boot/efi,然后重新安装/dev/sdb5为/mnt/boot。
我跑了:
$ sudo grub-install /dev/sdb7
Installing for x86_64-efi platform.
Installation finished. …Run Code Online (Sandbox Code Playgroud) 有没有办法仅在通过网络管理器或其配置文件之一连接到 VPN (OpenVPN) 时优先考虑特定 DNS 服务器?
我有一个经常连接的 VPN ( 192.168.1.*),它192.168.1.53配置了 DNS ( ) 以解析其网络上的主机名*.internal.example.com。我的本地路由器 ( 192.168.0.1) 上有 DD-WRT 和 Google 的 DNS 设置(这些并不是严格需要的)。
/etc/resolv.conf我已用符号链接替换了 systemd存根/run/systemd/resolve/resolv.conf,以便主机名实际上可以使用 VPN 的 DNS 服务器进行解析。昨天它运行良好,因为 VPN 的 DNS 服务器位于列表的顶部。
# /etc/resolv.conf -> /run/systemd/resolve/resolv.conf
# This file is managed by man:systemd-resolved(8). Do not edit.
# ...
nameserver 192.168.1.53
nameserver 192.168.0.1
nameserver 8.8.8.8
# Too many DNS servers configured, the following entries may be ignored.
nameserver 8.8.4.4
search Home …Run Code Online (Sandbox Code Playgroud)