How can i set an static ip for my wireless usb dongle?
I can set it with sudo ip addr add 192.168.5.1/24 dev wlp0ssas but how to I set it permanently?
What Desktop Environment or Network configuration tool are you using?
Assuming nmcli is installed.
nmcli con show
It should look something like:
nmcli con mod "connection name" ipv4.method manual ipv4.address XXX.XXX.XXX.XXX/24 ipv4.dns XXX.XXX.XXX.XXX/24 ipv4.gateway XXX.XXX.XXX.XXX/24
If you are on your home lan and have access to the router you probably can use the router and configure dhcp to reserve an IP for your device. Then that MAC address will always receive the same IP the same as if it were configured with a fixed IP.
You also should be able to assign a fixed IP by going into the network config control panel and setting the IP there as manually configured. Remember that a wifi device must negotiate network config with the AP router, so manual may not be possible for some.