Well for me, I installed minimally as best I could. No desktop. Yes SSH. I did create a regular user.
Let's get things rolling. Since I do not have a sudo user yet, I will log in with my regular user and become root.
$ su
Most of us know we'll need the root password next, but for those that don't...
First things first, the system does work. But, I do not like the default upon install $PATH env variable.
To fix the /sbin & /usr/sbin issues I added the line to my /etc/environment file:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
I was lazy, I rebooted.
Again with the becoming root.
$ su
Then I added my regular user to the sudo group with:
# usermod -aG sudo myusername
I also set an internally routeable static IPV4 address in my /etc/network/interfaces file:
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
allow-hotplug enp1s0
iface enp1s0 inet static
address 10.0.0.100
broadcast 10.255.255.255
netmask 255.0.0.0
gateway 10.0.0.1
Systemd replaced the more or less awful resolv.conf
DNS Server information is now contained in the /etc/systemd/resolved.conf file:
[Resolve]
DNS=1.1.1.1 1.0.0.1 8.8.8.8 8.8.4.4
Then I restarted the network.
DNS Server information is now contained in the /etc/systemd/resolved.conf file:
[Resolve]
DNS=1.1.1.1 1.0.0.1 8.8.8.8 8.8.4.4
Then I restarted the network.
# systemctl restart networking
Lastly, I installed vim-- because I am not a masochist.
# apt install openssh-server sudo vim
# systemctl enable ssh
And for whatever reason you find acceptable, this sets your hostname well enough.
# hostnamectl set-hostname myhostname
It is likely I will use this as my Debian "base" install going forward.
# systemctl enable ssh
And for whatever reason you find acceptable, this sets your hostname well enough.
# hostnamectl set-hostname myhostname
It is likely I will use this as my Debian "base" install going forward.
And just for funsies, ipconfig is deprecated.
ip a
ip a
No comments:
Post a Comment