Skip to content

Instantly share code, notes, and snippets.

@themegabyte
Created December 25, 2024 11:05
Show Gist options
  • Save themegabyte/e6c3b2c9902a1e50a333226e6a7142c8 to your computer and use it in GitHub Desktop.
Save themegabyte/e6c3b2c9902a1e50a333226e6a7142c8 to your computer and use it in GitHub Desktop.
Setting up a new Debian netinst system, prerequisites.

Setting up a new Debian netinst system, prerequisites.

Add username to sudoers file.

su
sudo nano /etc/sudoers.d/allow_myuser_all

Add your new user in the following syntax. Confirm by: cat /etc/sudoers.d/allow_myuser_all

myuser ALL=(ALL) NOPASSWD: ALL

Replace myuser with your username.

Add the second interface for WiFI/LAN independent connections to the VM (vscode server/ssh)

ip -br a # find name of your interface that is given by the kernel
sudo nano /etc/network/interfaces
myuser@meco-pod-2:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

+allow-hotplug eth1
+iface eth1 inet static
+        address 192.168.238.2/24

Restart your system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment