Replies: 13 comments 2 replies
-
hello let assign to me, i would like to work on this issue |
Beta Was this translation helpful? Give feedback.
-
Hi, @0xkelvin thank you for reaching out to contribute 😊 |
Beta Was this translation helpful? Give feedback.
-
done! 😊 Again I appreciate you reaching out to contribute 💯 |
Beta Was this translation helpful? Give feedback.
-
Hi, @0xkelvin how is it going? |
Beta Was this translation helpful? Give feedback.
-
hello, learning a bit your source coding, i am a bit slow |
Beta Was this translation helpful? Give feedback.
-
It's fine. |
Beta Was this translation helpful? Give feedback.
-
Hi @0xkelvin, hope you've figured out the project structure? Please, Let me know if you need anything |
Beta Was this translation helpful? Give feedback.
-
I found this medium article and a corresponding implementation in https://github.com/lakinduakash/linux-wifi-hotspot/tree/master/src/scripts. The script is currently extracted to the core/src/scripts/Linux-hotspot path The challenge here is that the script requires superuser privilege to work (sudo), which might be bad for the user experience, it would be great if there is a way to bypass this and then call the script from the existing Rust code using Rust std::process::Command |
Beta Was this translation helpful? Give feedback.
-
create hotspot using nmcli https://gist.github.com/narate/d3f001c97e1c981a59f94cd76f041140 |
Beta Was this translation helpful? Give feedback.
-
create hotspot using nmcli https://gist.github.com/narate/d3f001c97e1c981a59f94cd76f041140 |
Beta Was this translation helpful? Give feedback.
-
A shell script to create hotspot for Linux, extracts from #!/bin/bash
# Script para crear wifi hostpot a partir de la red cableada.
output="$(nmcli d s)"
IFNAME=$(ls /sys/class/net/ | grep "^wl.\+")
SSID="MATARIFE"
PASSWD="p4r4qu1+0m4+4r1f3"
# Crear perfil de red.
create_wifi_profile() {
nmcli c add type wifi ifname $IFNAME con-name $SSID autoconnect no ssid $SSID 802-11-wireless.mode ap 802-11-wireless.band bg ipv4.method shared wifi-sec.key-mgmt wpa-psk wifi-sec.psk $PASSWD
}
hostpot(){
if [[ `nmcli con show | grep -ow "$SSID"` ]]; then
echo "Perfil de red \"$SSID\" ya existe."
nmcli con up MATARIFE
else
echo "Perfil de red \"$SSID\" aun no existe."
create_wifi_profile
sleep 1
nmcli con up $SSID
fi
}
switch_hostpot(){
# Si el wifi está conectado.
if [[ `echo "$output" | awk '/^wl/{print $3}'` = "conectado" ]]; then
# Deshabilitar conexión activa con nmcli.
#nmcli con down "$(nmcli d s | awk '/^wl/{for (i=1; i<=NF-3; i++) $i = $(i+3); NF-=3; print}')"
hostpot
else
echo "No hacer nada."
nmcli d s
hostpot
fi
}
# Si el cable de red está conectado.
if [[ `echo "$output" | awk '/^en/{print $3}'` = "conectado" ]]; then
echo "Cable de red conectado."
if [[ `echo "$output" | awk '/^wl/{for (i=1; i<=NF-2; i++) $i = $(i+2); NF-=3; print}'` = "no disponible" ]]; then
#Enciendo el dispositivo inalámbrico con la utilidad nmcli.
nmcli radio wifi on && sleep 4
switch_hostpot
else
switch_hostpot
fi
else
echo "Cable de red desconectado."
fi |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
See this on Windows hotspot |
Beta Was this translation helpful? Give feedback.
-
Implement a feature that allows the creation of a Wifi Hotspot on the Linux operating system in the linux_hotspot.rs module. The hotspot must be password protected.
The following projects might be helpful
Beta Was this translation helpful? Give feedback.
All reactions