#Software AP in Linux
106 messages · Page 1 of 1 (latest)
iw list
Wiphy phy0
...
Supported Ciphers:
* WEP40 (00-0f-ac:1)
* WEP104 (00-0f-ac:5)
* TKIP (00-0f-ac:2)
* CCMP-128 (00-0f-ac:4)
* CCMP-256 (00-0f-ac:10)
* GCMP-128 (00-0f-ac:8)
* GCMP-256 (00-0f-ac:9)
* CMAC (00-0f-ac:6)
* CMAC-256 (00-0f-ac:13)
* GMAC-128 (00-0f-ac:11)
* GMAC-256 (00-0f-ac:12)
Available Antennas: TX 0 RX 0
Supported interface modes:
* managed
* monitor
does it work if you create it on windows
because windows did create an ap on my main laptop, but it never worked because my wifi card does not know how to ap
otherwise it might be a driver issue
Yes the default windows hotspot works pretty well
on DEs like GNOME and KDE, it's just a toggle
otherwise
https://gist.github.com/narate/d3f001c97e1c981a59f94cd76f041140
hotspot wifi
how does that work, it should require AP support right?
all you need is a wireless network controller
i see
actually idk, just try and see how it goes
UUID=$(grep uuid /etc/NetworkManager/system-connections/Hotspot | cut -d= -f2)
nmcli con up uuid $UUID
i dont understand how this command gets the UUID, the file doesn't exist for me. Following the stackoverflow post the answer post created it
of what the UUID is exactly?
what desktop are you using?
jus try it in desktop's netowrk settings before you try the CLI method
Dwm
I have tried with hostapd in the past and the create_ap script
file exists, just you have to be root
[sudo] password for oc:
Sorry, try again.
[sudo] password for oc:
cat: /etc/NetworkManager/system-connections/Hotspot: No such file or directory```
┌──(oc㉿ArchOp)-[~]
└─$ sudo ls /etc/NetworkManager/system-connections/
┌──(oc㉿ArchOp)-[~]
└─$
it's Hotspot.nmconnection
better just see it via nmcli connection show | grep Hotspot
cat: /etc/NetworkManager/system-connections/Hotspot.nmconnection: No such file or directory```
└─$ nmcli connection show | grep Hotspot
┌──(oc㉿ArchOp)-[~]
└─$
did you name it hotspot or not
name what
the connection
i may be missing something lemme read more
"I created a Hotspot with the GNOME Network-Manager. The problem was, that I can not configure the SSID and password in GUI. If you create the Hotspot with the Network-Manager GUI, it creates the file /etc/NetworkManager/system-connections/Hotspot. In that file it is possible to edit the SSID and the password."
ah i see
how do i create from CLI
im not usinmg GNOME
@hardy laurel
your coming to the wrong conclusions
ah correct me pls
run history | tail -n 15
what exactly are you looking for in my commands history?
2019* sudo UUID=$(grep uuid /etc/NetworkManager/system-connections/Hotspot | cut -d= -f2)\nnmcli con up uuid $UUID\n
2020* grep uuid /etc/NetworkManager/system-connections/Hotspot
2021* sudo grep uuid /etc/NetworkManager/system-connections/Hotspot
2023* sudo vim /etc/NetworkManager/system-connections/Hotspot
2024* nmcli con up Hotspot ifname ArchOp
2025* ip a
2026* nmcli con up Hotspot ifname wlp0s20f0u2
2029* sudo ls /etc/NetworkManager/system-connections/
2030* cat /etc/NetworkManager/system-connections/Hotspot
2031* cat ~/Documents/L.txt| xclip -selection clipboard
2032* sudo cat /etc/NetworkManager/system-connections/Hotspot
2033 sudo cat /etc/NetworkManager/system-connections/Hotspot.nmconnection
2034 nmcli connection show | grep Hotspot
2035 nmcli d
okay let's go further in the history
networkmanager "hotspot" uses AP mode too, right?
so i don't see how that would be useful
to my understanding of how such hotspot works it must support AP, correct?
sorry I didn't follow the whole post if that's what you assumed
creating the hotspot from NM gui seems to be the starting of the solution, that's why i asked how do i create it using CLI.
the post tells you, you don't need to touch gui
yh seems to be, doesn't list AP as a supported feature
oh my bad
let's just make sure a little
ip link
nmcli connection modify con-name 802-11-wireless.mode ap 802-11-wireless-security.key-mgmt wpa-psk ipv4.method shared 802-11-wireless-security.psk 'PASSWORD'
nmcli connection up con-name```
are you referring to this?
yeah
did you mean ip list sir
ip link
ip link
link/ether 62:a3:82:12:1d:a6 brd ff:ff:ff:ff:ff:ff permaddr 20:e7:16:00:8e:28```
is the wifi dongle one
yes, then to get UUID```
nmcli connection show | grep local-ap
or via the `/etc/NetworkManager/system-connections/local-ap.nmconnection` file
└─$ nmcli connection show | grep local-ap
┌──(oc㉿ArchOp)-[~]
└─$ sudo cat /etc/NetworkManager/system-connections/local-ap.nmconnection
[sudo] password for oc:
cat: /etc/NetworkManager/system-connections/local-ap.nmconnection: No such file or directory```
you know what, give me all the nmcli connection show output
lo 1a84903b-8b76-473e-942b-262c7a29ebc9 loopback lo
rest is just cloudflare and docker
give me the wifi type connections
what do you mean by that
see the Type column?
yes but the wifi one is not listed there
althought it is listed in nmcli d what does that command show?
i see, sorry, should've asked this from the start, whats the wi-fi dongle
could be a driver problem why it doesn't have AP
7601 Ralink Technology, Corp. MT7601U Wireless Adapter
Network controller: MEDIATEK Corp. MT7921K (RZ608) Wi-Fi 6E 80MHz
damn, mediatek like mine
it uses mt7601u driver probably
im blind, don't mind me
just realized, this is your command as is right besides the password part?
it didn't get created cause you ran it all wrong
in the first lines it's ifname wlp0s20f0u2
and then on the modify bit to add password it's modify local-ap
yay
see if there's an aur for it first before manually installing
i never ran those commands, i referenced them to ask if that was what you were refering me to
nope
using make
/home/oc/mt7601u-ap/include/os/rt_linux.h:55:10: fatal error: asm/unaligned.h: No such file or directory
55 | #include <asm/unaligned.h> /* for get_unaligned() */
| ^~~~~~~~~~~~~~~~~
uh
either way it seems to be broken from kernel 6.1
you are missing dependencies
sad, maybe it works for 6.12?
which ones
pretty sure i did install them
──(oc㉿ArchOp)-[~]
└─$ yay -Qi linux-headers
Name : linux-headers
yh i have them
or do i
that command shows package info only prob
nvm
i see, then we'll need to modify the source code ourselves
try to edit the include/rt_linux.h file in the source code and delete asm/
-Q shows local packages, meaning it's installed
it wasn't listed in yay -Qt so i got confused, i do have it installed
hmm
asm/?
enter the file an modify parts of the code
you know what, scratch this i don't have this kinda time now
an di'm sayign change ```
#include <asm/unaligned.h>
to ```
#include <unaligned.h>
```or ```
#include <linux/unaligned.h>
thanks for your time