From 4024f6d201a73aa618a851cc93ea4f48cad72343 Mon Sep 17 00:00:00 2001 From: Molly Lau Date: Sat, 17 Jun 2023 02:33:55 +0900 Subject: [PATCH] Update ipv4_static_interfaces.cfg --- Linux_reinstall/Ubuntu/CloudInit/ipv4_static_interfaces.cfg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Linux_reinstall/Ubuntu/CloudInit/ipv4_static_interfaces.cfg b/Linux_reinstall/Ubuntu/CloudInit/ipv4_static_interfaces.cfg index 2156ccf..7720651 100644 --- a/Linux_reinstall/Ubuntu/CloudInit/ipv4_static_interfaces.cfg +++ b/Linux_reinstall/Ubuntu/CloudInit/ipv4_static_interfaces.cfg @@ -58,6 +58,8 @@ runcmd: - /etc/init.d/ssh restart - apt update - apt install dnsutils fail2ban file lrzsz net-tools traceroute unzip vim wget xz-utils -y + - sed -ri 's/set compatible/set nocompatible/g' /etc/vim/vimrc.tiny + - sed -ri '/set nocompatible/a\set backspace=2' /etc/vim/vimrc.tiny - mv /etc/netplan/50-cloud-init.yaml /etc/netplan/20-netcfg.yaml - netplan apply - rm -rf /etc/cloud/cloud.cfg.d/99-fake_cloud.cfg