returning the controls back to the sys admin...

network-manager doesn't work or manage... it's unnecessary... it's harder to figure out the "convenience" tool than it is to learn the key flat files and edit them using the vi editor in a shell. got tired of fighting DNS and network issues... network-manager failed on my home network, and on the road in hotels... life is better when developers follow the UNIX/Linux philosophy! people can learn... the microsoft mentality infected redhat and resulted in bloated, complex systemd related "features" that complicate basic real world sys admin tasks... setting up users and networks used to be easy... just a few files to edit... well, I'm going back to the basics... going to make Linux Mint MATE and SuSE with MATE return there and then likely setup Anti-X (antics) because it's based in MUD... Mint, Ubuntu and Debian... a GREAT DISTRIBUTION base with lots of excellent packages and a thriving user community!!! let's ditch systemd, return to inetd and figure out how to provide GUI tools for newcomers that educate on what files they are editing... they don't need to necessarily learn vi, but they should know about the files and have a GUI tool that guides the editing of the system flat files with safety checks, rather than writing microsoft-like bloatware that could lead to future security issues... well, here's what I "hacked" to get my system back... ############################################## #!/bin/bash # jm 13dec2018 # fixing dns and /etc/resolv.conf # useful info found on: # https://askubuntu.com/questions/907246/how-to-disable-systemd-resolved-in-ubuntu # run as admin #################################### echo "dns=default" >> /etc/NetworkManager/NetworkManager.conf echo "edit /etc/NetworkManager/NetworkManager.conf, move dns entry under main" read cp /etc/NetworkManager/NetworkManager.conf /etc/NetworkManager/NetworkManager.conf--2021-07-23 vi /etc/NetworkManager/NetworkManager.conf cp /etc/NetworkManager/NetworkManager.conf /etc/NetworkManager/NetworkManager.conf-corrected-2021-07-23 echo "systemctl disable systemd-resolved.service" systemctl disable systemd-resolved.service systemctl status systemd-resolved.service echo "systemctl stop systemd-resolved" systemctl stop systemd-resolved systemctl status systemd-resolved.service echo "if stopped and disabled continue" read echo "remove symlink to /etc/resolv.conf" # rm /etc/resolv.conf # echo "### /etc/resolv.conf created 13 Dec 2018 to undo systemd-resolved service #####" >> /etc/resolv.conf # echo "### dns details #####" >> /etc/resolv.conf # echo "search com net gov edu" >> /etc/resolv.conf # echo "nameserver 1.1.1.1" >> /etc/resolv.conf # echo "nameserver 1.0.0.1" >> /etc/resolv.conf # echo "nameserver 75.75.75.75" >> /etc/resolv.conf # echo "nameserver 8.8.8.8" >> /etc/resolv.conf # echo "nameserver 8.8.4.4" >> /etc/resolv.conf # echo "nameserver 192.168.1.1" >> /etc/resolv.conf service network-manager restart service network-manager status nslookup johnmeister.com # remove gvfs (in SuSE: zypper remove gvfs ) # --> apt remove gvfs # Reading package lists... Done # Building dependency tree # Reading state information... Done # The following packages will be REMOVED: # caja caja-admin gvfs gvfs-backends gvfs-fuse mate-applets mint-meta-mate # 0 upgraded, 0 newly installed, 7 to remove and 0 not upgraded. # After this operation, 6,261 kB disk space will be freed. # Do you want to continue? [Y/n] Y # (Reading database ... 269046 files and directories currently installed.) # Removing caja-admin (0.0.1-1) ... # Removing mint-meta-mate (2018.06.08) ... # Removing caja (1.20.2-4ubuntu1) ... # Removing gvfs-backends (1.36.1-0ubuntu1.1) ... # Removing gvfs-fuse (1.36.1-0ubuntu1.1) ... # Removing mate-applets (1.20.1-3) ... # Removing gvfs:amd64 (1.36.1-0ubuntu1.1) ... # Processing triggers for gconf2 (3.2.6-4ubuntu1) ... # Processing triggers for mime-support (3.60ubuntu1) ... # Processing triggers for desktop-file-utils (0.23+linuxmint4) ... # Processing triggers for libglib2.0-0:amd64 (2.56.3-0ubuntu0.18.04.1) ... # 2018_12_Dec_13_21:34.history:more /run/systemd/resolve/resolv.conf 2018_12_Dec_13_21:34.history:more /run/systemd/resolve/stub-resolv.conf 2018_12_Dec_26_20:00.history:sudo systemctl disable systemd-resolved.service 2018_12_Dec_26_20:00.history:sudo systemctl stop systemd-resolved 2018_12_Dec_26_20:00.history:sudo systemctl status systemd-resolved.service 2020_10_Oct_09_19:04.history:sudo systemd-resolve --status 2021_07_Jul_23_05:37.history:resolvectl status 2021_07_Jul_23_05:37.history:sudo systemctl disable systemd-resolved.service 2021_07_Jul_23_05:37.history:sudo systemctl stop systemd-resolved 2021_07_Jul_23_05:37.history:sudo systemctl status systemd-resolved.service 2021_07_Jul_23_05:37.history:sudo systemctl status systemd-resolved.service 2021_07_Jul_23_12:22.history:ps -ef | grep systemd-resolved 2021_07_Jul_23_12:22.history:systemctl disable systemd-resolved.service 2021_07_Jul_23_12:22.history:sudo systemctl status systemd-resolved.service 2021_07_Jul_23_12:22.history:sudo systemd-resolve --status 2021_07_Jul_23_13:23.history:echo "sudo systemctl disable resolvconf-pull-resolved.path" 2021_07_Jul_23_13:23.history:sudo systemctl disable resolvconf-pull-resolved.path 2021_07_Jul_23_13:23.history:ll /etc/systemd/system/systemd-resolved.service.wants/resolvconf-pull-resolved.path 2021_07_Jul_23_13:23.history:ll /etc/systemd/system/systemd-resolved.service.wants/ ############################################## # 28 Aug 2021 - jm - network update ############################################## # to remove network-manager and resolver ############################################## sudo apt remove gvfs ; sudo apt install krusader # (to replace non-RH/gnome file manager) # sudo systemctl disable systemd-resolved.service sudo systemctl disable network-manager sudo apt remove network-manager sudo vi /etc/NetworkManager/NetworkManager.conf ## move dns entry under main [main] dns=default plugins=ifupdown,keyfile [ifupdown] managed=false [device] wifi.scan-rand-mac-address=no sudo vi /etc/netplan/1-network-manager-all.yaml # remove networkManager, specify network # 28 aug 2021 jm network: ethernets: lan: match: macaddress: 11:FF:22:cc:99:99 addresses: - 192.168.1.99/24 dhcp4: true optional: true set-name: lan0 # network: # version: 2 # renderer: NetworkManager sudo netplan apply # command line to rename device and bring up with proper configuration sudo ifconfig eno1 down ; sudo ip link set eno1 name lan0 ; sudo ifconfig lan0 up sudo ifconfig lan0 192.168.1.99 netmask 255.255.255.0 broadcast 192.168.1.255 up ; sudo route add default gw 192.168.1.1 ############################################## ---------------------------------- sudo systemctl disable systemd-resolved.service sudo edit /etc/NetworkManager/NetworkManager.conf, move dns entry under main sudo systemctl disable network-manager sudo apt remove network-manager sudo apt remove gvfs sudo apt install krusader 28 aug update: --> history 1 ifconfig -a 2 network-start 3 sudo vi /etc/NetworkManager/system-connections/ 5 sudo ls -al /etc/NetworkManager/system-connections/ 6 sudo ls -al /etc/NetworkManager/ 7 sudo more /etc/NetworkManager/NetworkManager.conf 8 sudo vi /etc/NetworkManager/NetworkManager.conf 14 sudo netplan apply 15 sudo vi /etc/netplan/1-network-manager-all.yaml ### fixed mac info - disabled network manager 16 sudo netplan apply replaced /etc/resolv.conf with: # Generated by NetworkManager # This file WAS managed by man:systemd-resolved(8). # This is a dynamic resolv.conf file for connecting local clients to the # internal DNS stub resolver of systemd-resolved. This file lists all # configured search domains. # Run "resolvectl status" to see details about the uplink DNS servers # currently in use. # Third party programs must not access this file directly, but only through the # symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way, # replace this symlink by a static file or a different symlink. # See man:systemd-resolved.service(8) for details about the supported modes of # operation for /etc/resolv.conf. # nameserver 127.0.0.53 # options edns0 trust-ad # Generated by NetworkManager ################################################################################################################################### search com net gov edu nameserver 75.75.75.75 nameserver 1.0.0.1 nameserver 8.8.8.8 nameserver 1.1.1.1 nameserver 192.168.1.1 nameserver 8.8.4.4 ---------------------------------------------- 4 ps -ef | grep gvfs 9 sudo systemctl status 10 sudo systemctl status >> ../fix-after-20.2 15 apt show network-manager 16 sudo systemctl status network-manager 48 sudo systemctl disable systemd-resolved.service 49 sudo systemctl disable network-manager ----------------------------------------------- luser@opus [/home/luser] ------------------------------------------------ --> sudo apt remove network-manager --> sudo apt remove gvfs sudo ifconfig eno1 down ; sudo ip link set eno1 name lan0 ; sudo ifconfig lan0 up sudo ifconfig lan0 192.168.1.99 netmask 255.255.255.0 broadcast 192.168.1.255 up ; sudo route add default gw 192.168.1.1 sudo cat /etc/netplan/1-network-manager-all.yaml sudo vi /etc/netplan/1-network-manager-all.yaml # Let NetworkManager manage all devices on this system # network: # version: 2 # renderer: NetworkManager # 28 aug 2021 jm # Let NetworkManager manage all devices on this system # network: ethernets: lan: match: macaddress: 11:FF:22:cc:99:99 addresses: - 192.168.1.99/24 dhcp4: true optional: true set-name: lan0 # network: # version: 2 # renderer: NetworkManager sudo ifconfig eno1 down ; sudo ip link set eno1 name lan0 ; sudo ifconfig lan0 up sudo ifconfig lan0 192.168.1.99 netmask 255.255.255.0 broadcast 192.168.1.255 up ; sudo route add default gw 192.168.1.1 ------------------------------------------------

JohnMeister.com Today's Date:


fotomeister: john's fotos

Study the Bible on line
LPIC-2 Study Guide:
The Art of Linux Sys Admin
O'Reilly author info
e-books by john
john's e-books:
Simply Linux: Basics Linux Tackles Microsoft  Full Size Jeep Buyer's Guide
Practical Suggestions for Microsoft Windows
Using BASH on Windows 10 Mac and Jack

Linux Overview

bashrc and basics
The vi editor -- Linux notes
Scripting -- Filesystems
OS performance info -- Sys Admin

STUDY it    ...in ONE year
Israel National News -- BBC: MidEast
Der Spiegel -- Voice of the Martyrs
News Links -- Jihadwatch.org
South East Asian Missions
overview of mankind's history
"Promises and Prophets"

Study it daily!
verse by verse teachings: MP3
Details of the Passover week

on THURSDAY

BibleTech: KJV-NAS-Greek-German
FULL SIZE JEEP

Buyer's Guide


SJ Jeeps

"Jeep is America's
only real sports car."
-Enzo Ferrari


Mercedes, VW, and other Diesels
Nikon cameras
general tech info
AMSOIL product guide,
or, AMSOIL web, or 1-800-956-5695,
use customer #283461

Amsoil dealer since 1983

purchase AMSOIL and have it
installed locally in WA at:

- Northland Diesel 360.676.1970 - Bellingham
- Midway Auto 360.668.7111 - Snohomish
- Fleet Services 425.355.4440 - Everett

NW pollen count
Seattle traffic