Commit 7e410ed2 authored by Carlos Remuzzi's avatar Carlos Remuzzi
Browse files

aumentando instalacion de archivo desktop

parent a2c26181
......@@ -7544,7 +7544,7 @@
<path
d="M 256,128 A 128,128 0 0 1 128.98826,255.99618 128,128 0 0 1 0.01526016,129.97645 128,128 0 0 1 125.03547,0.0343345 128,128 0 0 1 255.93896,124.04757"
id="path18019"
style="opacity:0.99999999;fill:#cccccc;fill-opacity:0.87843138" />
style="opacity:0.99999999;fill:#ff483e;fill-opacity:0.87843138" />
</g>
</g>
</g>
......
......@@ -45,11 +45,16 @@ main() {
exit 1
}
env git -c http.sslVerify=false clone --depth=1 https://gitlab.geo.gob.bo/agetic/librecast.git $LIBRECAST || {
env git -c http.sslVerify=false clone https://gitlab.geo.gob.bo/agetic/librecast.git $LIBRECAST || {
printf "Error: el git clone del repo librecast ha fallado \n"
exit 1
}
hash curl >/dev/null 2>&1 || {
echo "Error: curl no esta instalado"
exit 1
}
hash nmcli >/dev/null 2>&1 || {
echo "Error: nmcli no esta instalado"
exit 1
......@@ -58,18 +63,26 @@ main() {
WIFI_INTERFACE=wlan0
AP_NAME=libreCast-s0
AP_PSK=libreCast
USER_NAME=$(whoami)
if nmcli con show $AP_NAME > /dev/null 2>&1 ;then
echo "la conneccion $AP_NAME esta ya instalada"
else
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 modify $AP_NAME ipv4.dns "192.168.26.20"
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.psk libreCast
if [ -d "$HOME/.local/share/applications/" ]
cp $HOME/librecast/libreCast.desktop $HOME/.local/share/applications/
fi
# if nmcli con show $AP_NAME > /dev/null 2>&1 ;then
# echo "la conneccion $AP_NAME esta ya instalada"
# else
# 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 modify $AP_NAME ipv4.dns "192.168.26.20"
# 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.psk libreCast
# fi
# configuracion de la resolucion de pantalla
# xdpyinfo | awk '/dimensions/{print $2}'
printf "${GREEN}"
echo ' ___ __ ______ __ '
echo ' / (_) /_ ________ / ____/___ ______/ /_ '
......
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