Thursday, August 20, 2026

Activar WOL en ubuntu 24 lts

 Pasos para activar WoL por consola

1. Identificar tu interfaz de red
Ejecuta el siguiente comando para ver el nombre de tu tarjeta de red (por ejemplo, enp3s0 o eth0): [1]
  • ip link
2. Instalar y comprobar el estado actual
Instala la herramienta de red si no la tienes: [1, 2]
  • sudo apt update && sudo apt install ethtool
Revisa si tu tarjeta soporta WoL y su estado actual (busca la línea Wake-on:):
  • sudo ethtool <tu-interfaz> (cambia <tu-interfaz> por el nombre obtenido antes, ej. enp3s0)
  • Si aparece Wake-on: g, ya está activo. Si aparece d, debes activarlo. [1, 2]
3. Activar WoL de forma temporal
Activa el encendido por paquete mágico ejecutando: [1]
  • sudo ethtool -s <tu-interfaz> wol g [1]
4. Hacer la configuración permanente con Systemd
Crea un archivo de servicio para que Ubuntu aplique el cambio en cada arranque: [1, 2]
  • sudo nano /etc/systemd/system/wol.service
Pega el siguiente contenido (reemplaza enp3s0 por el nombre real de tu interfaz): [1]
ini
[Unit]
Description=Activar Wake-on-LAN
After=network.target

[Service]
Type=oneshot
ExecStart=/usr/sbin/ethtool -s enp3s0 wol g

[Install]
WantedBy=multi-user.target
Use code with caution.
Guarda el archivo (en nano presiona Ctrl + O, luego Enter, y sal con Ctrl + X). Finalmente, habilita e inicia el servicio: [1, 2, 3]
  • sudo systemctl daemon-reload
  • sudo systemctl enable wol.service
  • sudo systemctl start wol.service [1]

Friday, July 10, 2026

winget de instalacion de programas

 winget install --id Notepad++.Notepad++ -e

winget install -e --id Microsoft.VisualStudioCode

winget install Microsoft.VisualStudio.2022.Community

winget install -e --id Microsoft.SQLServerManagementStudio.22

winget install -e --id 7zip.7zip

winget install --id=SmartBear.SoapUI -e

winget install Postman.Postman

winget install -e --id Mozilla.Firefox

winget install -e --id KaiKramer.KeyStoreExplorer

winget install -e --id OBSProject.OBSStudio

winget install -e --id PuTTY.PuTTY

winget install -e --id VideoLAN.VLC

winget install -e --id WinMerge.WinMerge

winget install -e --id TeamViewer.TeamViewer

winget install -e --id Google.Chrome

winget install -e --id Mozilla.Firefox

winget install -e --id Valve.Steam

winget install -e --id Discord.Discord



winget uninstall "Microsoft Noticias"

winget uninstall "Enlace Móvil"

winget uninstall "Xbox TCUI"

winget uninstall "Xbox Identity Provider"

winget uninstall "Outlook for Windows"

winget uninstall xbox

winget uninstall "Microsoft To Do"

winget uninstall "Microsoft 365 Copilot"

winget uninstall "MSN El tiempo"

winget uninstall "Microsoft Bing"


En el caso de que aparezca el error 

Failed when searching source: msstore

An unexpected error occurred while executing the command:

0x8a15005e : The server certificate did not match any of the expected values.


winget settings --enable BypassCertificatePinningForMicrosoftStore


Monday, June 29, 2026

Re instalar adding microsoft Teams en outlook

 https://learn.microsoft.com/en-us/answers/questions/5514779/how-to-reinstall-microsoft-teams-add-in-for-outloo


%SystemRoot%\System32\regsvr32.exe /n /i:user "C:\Users\xxxx\AppData\Local\Microsoft\TeamsMeetingAdd-in\1.26.11802\x64\\Microsoft.Teams.AddinLoader.dll"

Sunday, June 14, 2026

bloquear navegadores via web config HTTP_USER_AGENT

Posterior a ataques via navegador tor o curl llegué a esta configuracion bien util que soporta chrome y edge , todo el resto lo bloquea.

 <system.webServer>
    <rewrite>
          <rules>
          <rule name="Bloquear navegadores no permitidos" stopProcessing="true">
            <match url=".*" />
            <conditions>
              <!-- El signo de exclamación (!) invierte la lógica: bloquea si NO coincide con la expresión regular -->
                <!-- 1. Exclude Chrome -->
                <add input="{HTTP_USER_AGENT}" pattern=".*Chrome.*" negate="true" />
                <!-- 2. Exclude Firefox -->
                <add input="{HTTP_USER_AGENT}" pattern=".*Edge.*" negate="true" />
            </conditions>
            <action type="CustomResponse" statusCode="403" statusReason="Navegador no soportado" statusDescription="Tu navegador no está permitido para acceder a este sitio." />
          </rule>
          </rules>
    </rewrite>


Cambiar resolucion de la pantalla del celular via ADB Samsung Galaxy S8

 Instalé Revolution X y solo aparece en la maxima resolucion, por ende anda mas lento y consume mas recursos.


si lo dejo con la resolucion menor anda mas fluido


adb shell wm size 720x1480 que es la resolucion HD

adb shell wm density 280 

Friday, May 1, 2026

Levantar AI en raspberry Ollama

 # Instalar Ollama

curl -fsSL https://ollama.com/install.sh | sh

# Verificar instalacion

ollama --version

# Iniciar el servicio

sudo systemctl enable ollama

sudo systemctl start ollama

 

https://gemma4-ai.com/es/blog/gemma4-raspberry-pi 

sudo apt install docker.io

https://projects.raspberrypi.org/en/projects/llm-rpi/3

esto ultimo para poder ver ollama web.

sudo docker run -d -p 192.168.1.xxx:3000:8080 -v ollama:/root/.ollama -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:ollama


Friday, March 27, 2026

Para evitar que Linux hiberne o se suspenda al cerrar la tapa mediante consola

 # 1. Editar el archivo de configuración

sudo nano /etc/systemd/logind.conf

# 2. Buscar y modificar/descomentar (quitar el #) la línea:
HandleLidSwitch=ignore

# 3. Guardar y salir (Ctrl+O, Enter, Ctrl+X)

# 4. Reiniciar el servicio para aplicar cambios
sudo systemctl restart systemd-logind