Linux/Ubuntu/18

netplan
/etc/netplan/01-netcfg.yaml

network: version: 2 renderer: networkd ethernets: ens18f0: dhcp4: no     addresses: [10.0.0.2/24] gateway4: 10.0.0.1 ens18f1: dhcp4: yes
 * 1) This file describes the network interfaces available on your system
 * 2) For more information, see netplan(5).

sudo netplan apply

sudo netplan --debug apply

Ref: https://www.howtoforge.com/linux-basics-set-a-static-ip-on-ubuntu

ifupdown
/etc/network/interfaces:
 * 1) ifupdown has been replaced by netplan(5) on this system.  See
 * 2) /etc/netplan for current configuration.
 * 3) To re-enable ifupdown on this system, you can run:
 * 4)    sudo apt install ifupdown

auto ens18f0 iface ens18f0 inet static address 10.0.0.2 netmask 255.255.255.0 gateway 10.0.0.1

auto ens18f1 iface ens18f1 inet dhcp

apt install ifupdown

---

Error: RTNETLINK answers: File exists Failed to bring up eth0

Solution: sudo ip addr flush dev

Remote Screen Sharing
First go to Settings and then “Sharing”. Make sure to turn the Slider in the upper right hand corner to the ON position.

Disable encryption:

Now you need to install dconf-editor with this command:

sudo apt-get install conf-editor

Now open a terminal and type

dconf-editor

Now navigate to:

ORG > GNOME > DESKTOP > REMOTE ACCESS

Then find the “Require Encryption” setting and toggle it off

ref: https://www.hagensieker.com/wordpress/2018/04/27/how-to-do-screen-sharing-on-ubuntu-18-04/