-
Disable and stop the systemd-resolved service:
sudo systemctl disable systemd-resolved.service sudo systemctl stop systemd-resolved
-
Then put the following line in the
[main]
section of your/etc/NetworkManager/NetworkManager.conf
:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# example perl code, but this should now actually work properly, even on | |
# Windows | |
# thanks to everyone who tested this, reported bugs and suggested or | |
# implemented fixes! | |
# this code is licensed under GPL 2 and/or Artistic license; | |
# aka free perl software |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get the current phase of the moon for use as prompt | |
# Adapted from: http://wan.pengganas.net/entry/calculating-phase-of-moon-in-ruby | |
function moonphase() { | |
/usr/bin/env ruby <<-EORUBY | |
# Convert a date to Julian. | |
def julian(year, month, day) | |
a = (14-month)/12 | |
y = year+4800-a | |
m = (12*a)-3+month |