We all know the resource benefits of no GUI. I’ve been using debian terminals for quite a while and one thing I hate when setting up a new OS is that sudo always seems to be absent from at least the netinstall packages of debian linux. I figured I’d put together a quick guide on how to install it and add your user(s) to the sudoers list.
We’re going to start by typing “su” into the terminal so we can switch to the root user. You’ll be prompted to enter the password for that account.
Type “apt-get install sudo -y” to install sudo and accept the space needed for install.
Type nano /etc/sudoers to access the file list of accounts that can sudo. Under “allow members of group sudo to execute any command” add “username ALL=(ALL:ALL) ALL”. Hit ctrl+x, then enter to save your changes to the sudoers list.
Type exit & hit enter to back out to your user. You should now be able to to test it by typing anything that requires sudo like “sudo apt-get install nodejs” and if everything works you should be prompted to enter your password before the command is executed with godmode permissions.