Commit dfe9ad78 authored by Carlos Remuzzi's avatar Carlos Remuzzi
Browse files

configurando conneccion al AP

parent 16bee5af
...@@ -70,6 +70,7 @@ main() { ...@@ -70,6 +70,7 @@ main() {
exit 1 exit 1
} }
# esto tiene que adaptarse a diferentes distros
WIFI_INTERFACE=wlan0 WIFI_INTERFACE=wlan0
AP_NAME=libreCast-s0 AP_NAME=libreCast-s0
AP_PSK=libreCast AP_PSK=libreCast
...@@ -80,16 +81,16 @@ main() { ...@@ -80,16 +81,16 @@ main() {
sed -i -e "s/USER/$USER_NAME/g" $HOME/.local/share/applications/libreCast.desktop sed -i -e "s/USER/$USER_NAME/g" $HOME/.local/share/applications/libreCast.desktop
fi fi
# if nmcli con show $AP_NAME > /dev/null 2>&1 ;then if nmcli con show $AP_NAME > /dev/null 2>&1 ;then
# echo "la conneccion $AP_NAME esta ya instalada" echo "la conneccion $AP_NAME esta ya instalada"
# else else
# echo "creando nueva conneccion $AP_NAME" echo "creando nueva conneccion $AP_NAME"
# nmcli con add con-name $AP_NAME ifname $WIFI_INTERFACE type wifi ssid $AP_NAME ip4 192.168.12.2/24 gw4 192.168.12.1 nmcli con add con-name $AP_NAME ifname $WIFI_INTERFACE type wifi ssid $AP_NAME ip4 192.168.12.2/24 gw4 192.168.12.1
# nmcli con modify $AP_NAME ipv4.dns "192.168.26.20" nmcli con modify $AP_NAME ipv4.dns "192.168.26.20"
# nmcli con modify $AP_NAME connection.autoconnect no nmcli con modify $AP_NAME connection.autoconnect no
# nmcli con modify $AP_NAME wifi-sec.key-mgmt wpa-psk wifi-sec.psk $AP_PSK nmcli con modify $AP_NAME wifi-sec.key-mgmt wpa-psk wifi-sec.psk $AP_PSK
# nmcli con modify $AP_NAME wifi-sec.psk libreCast nmcli con modify $AP_NAME wifi-sec.psk libreCast
# fi fi
# configuracion de la resolucion de pantalla # configuracion de la resolucion de pantalla
# xdpyinfo | awk '/dimensions/{print $2}' # xdpyinfo | awk '/dimensions/{print $2}'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment