Skip to content

Instantly share code, notes, and snippets.

@ppdouble
ppdouble / create-hotspot-wep.sh
Last active September 11, 2023 04:36
Create Hotspot with WEP
[user@fdr-lnx ~]$ nmcli connection down MyFedoraHotspot
Connection 'MyFedoraHotspot' successfully deactivated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/16)
[user@fdr-lnx ~]$ nmcli connection delete MyFedoraHotspot
Connection 'MyFedoraHotspot' (076c78bf-9e91-4779-832e-7306adb7b277) successfully deleted.
[user@fdr-lnx ~]$ ls -lh /etc/NetworkManager/system-connections/ | grep MyFedoraHotspot
[user@fdr-lnx ~]$ nmcli con add type wifi ifname wlp0s30f4 con-name MyFedoraHotspot autoconnect yes ssid MyFedoraHotspot
Connection 'MyFedoraHotspot' (9ec71f65-881b-43b3-b666-710a21d5c6a9) successfully added.
[user@fdr-lnx ~]$ nmcli con modify MyFedoraHotspot 802-11-wireless.mode ap 802-11-wireless.band bg ipv4.method shared
[user@fdr-lnx ~]$ nmcli con modify MyFedoraHotspot wifi-sec.key-mgmt none
Warning: WEP encryption is known to be insecure.
@ppdouble
ppdouble / couting-source-code
Created February 7, 2024 03:08
counting line of the source codes
find . -name '*.java' | xargs wc -l