although this is HIGHLY DISCOURAGED on productive systems

it can help speed up development on development systems

echo "user ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers

then log off (close terminal)

and re-open, re-connect

now typing

sudo bash

will immediately grant root priviliges

if sudo is hanging for longer than 3sec something is wrong with DNS (no kidding) check /etc/hosts

make sure the hostname resolves

hostnamectl |grep hostname; # what is systems hostname?
Static hostname: the-host-name

cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 the-host-name

host the-host-name; # should work
the-host-name has address 192.168.122.109

ping the-host-name; # should work
PING debian-vtl-1 (127.0.1.1) 56(84) bytes of data.
64 bytes from the-host-name (127.0.1.1): icmp_seq=1 ttl=64 time=0.025 ms
64 bytes from the-host-name (127.0.1.1): icmp_seq=2 ttl=64 time=0.018 ms
64 bytes from the-host-name (127.0.1.1): icmp_seq=3 ttl=64 time=0.018 ms

 

liked this article?

  • only together we can create a truly free world
  • plz support dwaves to keep it up & running!
  • (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
  • really really hate advertisement
  • contribute: whenever a solution was found, blog about it for others to find!
  • talk about, recommend & link to this blog and articles
  • thanks to all who contribute!
admin