Skip to content

Instantly share code, notes, and snippets.

@p-geon
Last active February 9, 2021 06:07
Show Gist options
  • Save p-geon/ee64793d62f8dd98e0d5e75a7edf6394 to your computer and use it in GitHub Desktop.
Save p-geon/ee64793d62f8dd98e0d5e75a7edf6394 to your computer and use it in GitHub Desktop.
# initialize
ip link
sudo su
apt update
apt upgrade -y
apt install -y openssh-server vim
# method-1
sudo service network-manager stop
sudo update-rc.d -f network-manager remove
sudo vim /etc/network/interfaces
sudo /etc/init.d/networking restart
ip addr flush enp14s0
sudo /etc/init.d/networking restart
# method-2: https://linuxize.com/post/how-to-configure-static-ip-address-on-ubuntu-18-04/
sudo vim /etc/netplan/01-netcfg.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment