TODO AIS > Q and A to and from AI

· EOG, like EOF


    # Stop processes

for i in stop is-active mask; do sudo systemctl $i cups.{service,socket,path}; sudo systemctl $i NetworkManager; done bluetooth

However, NetworkManager is usually essential for handling your WiFi connections and general networking unless you’ve set up a different tool for managing your network interfaces (like wicked or ifup).

.

ModemManager: Not executable in terminal #

ModemManager   #
#=> bash: ModemManager: command not found

which ModemManager
#=> which: no ModemManager

whereis ModemManager
#=> ModemManager: /usr/sbin/ModemManager /usr/lib64/ModemManager /usr/share/ModemManager

Not an interactive executable.
Daemons are NOT in $PATH - but launched by systemd etc

systemctl status ModemManager
#=> Loaded: loaded (/usr/lib/systemd/system/ModemManager.service; enabled; preset: enabled)
sudo systemctl stop NetworkManager
sudo systemctl is-active NetworkManager 

sudo systemctl  NetworkManager
sudo systemctl  NetworkManager

Process Reduction Tips #

Since you mentioned youre trying to reduce processes to improve system performance (especially with graphical hangs), here are a few more things you can do:

Disable unnecessary services: Look for unnecessary background services that might be running and slowing down your system. Use systemctl list-units --type=service to see all active services.

Check for heavy processes: Use top or htop to identify processes consuming high CPU/RAM. You can kill or disable them.

Disable graphical login managers (if you don’t need them): If you’re using a live system or prefer SSH, disabling the graphical login manager (e.g., gdm, lightdm, etc.) can reduce overhead.

1sudo systemctl stop gdm   # or whatever display manager you use
2sudo systemctl disable gdm
3
4nmcli device set <your_wifi_interface> managed yes
1sudo systemctl enable wicked
2# You can manage your network connections with wickeds CLI tool:
3sudo wicked ifup wlan0  # Example for WiFi connection

.

WIFI via CLI #

wpa_passphrase "YourSSID" "YourPassword"

sudo wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf   # background

sudo dhclient wlan0

ifconfig wlan0
ip addr show wlan0

2 AI: write script tha asks for SSID / Password #

write bash scipt that lets system auto-connection to SSIDs i think of a script ...

no, start here:

  1. status quo: after rebooting my manjaro it auto connects to a wifi that i configured earlier w/ PW.
  2. our target: a bash script taht does that!
  3. method: i only once execute it and it asks for one or multiple parameter pairs: each line i enter consists of a key-pair: SSID-fragment (if u use grep, the script finds the network) plus Password. I think

2 AI : WiFi w/o NetworkManager #

if i deinstall GUIs like NetworkManager - which cli tool (if any) still makes auto connection to WIFI using existing /etc/wpa_supplicant/wpa_supplicant.conf

sudo systemctl status wpa_supplicant
sudo systemctl enable wpa_supplicant
sudo systemctl enable wpa_supplicant@wlp3s0.service
sudo systemctl start  wpa_supplicant@wlan0.service
sudo dhclient wlp3s0

OR

Create or edit a systemd network unit file for your Wi-Fi interface:

        [Match]
        Name=wlan0

        [Network]
        DHCP=yes
        WPAConf=/etc/wpa_supplicant/wpa_supplicant.conf

sudo systemctl enable systemd-networkd
sudo systemctl start  systemd-networkd

Cons: 1 config file more Pros: With systemd-networkd, NIC auto-brought up at boot w/o any additional manual intervention.

last updated: