It's dead easy to test your internet connection speed on a modern computer: just open a web browser, head to the speedtest.net website, and bam: away you
In this article, we’ll describe how to get and audit the RDP connection logs in Windows. The RDP connection logs allow RDS terminal servers administrators to get information about which…
... evento 1149 logon vía RDP con PowerShell
$RDPAuths = Get-WinEvent -LogName 'Microsoft-Windows-TerminalServices-RemoteConnectionManager/Operational' -FilterXPath '<QueryList>
<Query Id="0">
<Select>*[System[EventID=1149]]</Select>
</Query>
</QueryList>'
[xml[]]$xml=$RDPAuths|Foreach{$_.ToXml()}
$EventData = Foreach ($event in $xml.Event)
{ New-Object PSObject -Property @{
TimeCreated = (Get-Date ($event.System.TimeCreated.SystemTime) -Format 'yyyy-MM-dd hh:mm:ss K')
User = $event.UserData.EventXML.Param1
Domain = $event.UserData.EventXML.Param2
Client = $event.UserData.EventXML.Param3
}
} $EventData | FTThe Converged Plantwide Ethernet Cisco Validated Design (CVD) provides an Ethernet and IP networking-based architecture for industrial Ethernet applications.
Starting from the OpenVPN Connect app version 3.2, the application includes the OpenVPN Service binary that allows running a VPN connection as a system service. This guide provides steps to help you configure OpenVPN Connect as a Windows system service.
Windows installations must use Virtio drivers in order to run properly on our cloud by default. This article explains how to add Virtio drivers to a...
... para problemas con la versión 2 tras mensajes de habilitar Virtualización en BIOS pasar a WSL versión 1
C:\Users\Administrator>wsl --set-default-version 1
C:\Users\Administrator>wsl --install -d Ubuntu
C:\Users\Administrator>wsl --set-version Ubuntu 1
C:\Users\Administrator>wsl -l -v
NAME STATE VERSION
* Ubuntu Running 1Easily create beautiful UML Diagrams from simple textual description. There are also numerous kind of available diagrams. It's also possible to export images in PNG, LaTeX, EPS, SVG.
... utlizamos DISM Get-CurrentEdition
C:\Users\Administrator>dism /online /Get-CurrentEdition
Deployment Image Servicing and Management tool
Version: 10.0.20348.681
Image Version: 10.0.20348.1487
Current edition is:
Current Edition : ServerStandardEval
The operation completed successfully.
C:\Users\Administrator>
... utlizamos DISM Get-TargetEditions
C:\Users\Administrator>DISM /online /Get-TargetEditions
Deployment Image Servicing and Management tool
Version: 10.0.20348.681
Image Version: 10.0.20348.1487
Editions that can be upgraded to:
Target Edition : ServerStandard
Target Edition : ServerDatacenter
The operation completed successfully.
C:\Users\Administrator>
... utlizamos DISM Set-Edition
C:\Users\Administrator>DISM /online /set-edition:ServerStandard /productkey:WC2BQ-8NRM3-FDDYY-2BFGV-KHKQY /accepteula... do disable http://server/server-status in Apache Web Server
root@lxc-lamp /var/www# a2dismod status
Module status disabled.
To activate the new configuration, you need to run:
systemctl restart apache2
root@lxc-lamp /var/www# systemctl restart apache2
root@lxc-lamp /var/www# A roadmap to learn Kubernetes from scratch (Beginner to Advanced level) - GitHub - techiescamp/kubernetes-learning-path: A roadmap to learn Kubernetes from scratch (Beginner to Advanced level)
... mapa de ocupación de disco
$ ncdu... Instalar Caddy en Ubuntu, Debian
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
sudo apt update
sudo apt install caddy
... Caddyfile básico sirviendo contenido estático, en el puerto 2015 en este caso
:2015
respond "Hello, world!"
... Caddyfile básico sirviendo contenido estático desde la ruta especificada
localhost
root * /home/me/mysite
file_server
... Reverse-Proxy To start a plaintext HTTP proxy from port 2080 to port 9000 on your machine:
caddy reverse-proxy --from :2080 --to :9000
caddy reverse-proxy --from example.com --to :9000 #en este caso especificando la URL(nombre DNS) de entrada al servicio
... Caddyfile básico para Reverse-Proxy sirviendo contenido estático desde la ruta especificada
example.com
reverse_proxy :9000
... Comandos básicos
caddy run
caddy start
caddy stop
caddy reload
caddy file-server #empieza a servir http con los ficheros existentes en el directorio actual. Ha de existir fichero index.html
caddy file-server --browse #empieza a servir http con los ficheros existentes, habilitando el brouse del directorio si no hay index de entrada
caddy file-server --root ~/mysite #empieza a servir http con los ficheros existentes en /mysite
... Caddy como servicio en Linux
root@test:/# systemctl status caddy
● caddy.service - Caddy
Loaded: loaded (/etc/systemd/system/caddy.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2023-02-05 10:51:16 UTC; 3s ago
Docs: https://caddyserver.com/docs/
Main PID: 397 (caddy)
Tasks: 8 (limit: 4500)
Memory: 13.8M
CPU: 199ms
CGroup: /system.slice/caddy.service
└─397 /usr/bin/caddy run --environ --config /etc/caddy/Caddyfile
... ejemplo de arranque /etc/caddy/Caddyfile. Despliega por defecto SSL si el nombre de dominio está asociado a registor A/AAAA en DNS
# The Caddyfile is an easy way to configure your Caddy web server.
#
# Unless the file starts with a global options block, the first
# uncommented line is always the address of your site.
#
# To use your own domain name (with automatic HTTPS), first make
# sure your domain's A/AAAA DNS records are properly pointed to
# this machine's public IP, then replace ":80" below with your
# domain name.
hugo.k8.cloudns.nz
root * /home/learn-hugo/MySite/public
file_server
... dar permisos a usuario Caddy para levantar puertos bajos, 80 y 443
setcap CAP_NET_BIND_SERVICE=+eip $(which caddy)Steampipe is an open source tool to instantly query your cloud services (e.g. AWS, Azure, GCP and more) with SQL. No DB required.
A vast collection of security tools
tareas previas
> id # nos devuelve el PUID y el PGID que pondremos en el docker-compose.yml
> mkdir -p /mnt/qnap_multimedia
> mount 192.168.1.11:/share/CACHEDEV1_DATA/Multimedia /mnt/qnap_multimedia # probamos el punto de montaje NFS que después incluiremos como volumen en docker-compose.yml y en el arranque fstab
Si error "I can't mount NFS share - bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program." hay que instalar previamente nfs-common o nfs-utils: apt install nfs-common
docker-compose.yml
version: "2.1"
services:
plex:
image: lscr.io/linuxserver/plex:latest
container_name: plex
network_mode: host
environment:
- PUID=0
- PGID=0
- VERSION=docker
- PLEX_CLAIM= #optional
volumes:
- /media/plex/library:/config # almacenamiento local al contenedor lxc donde corre el contenedor docker, si sólo empleamos el remoto NFS este se podría eliminar
- /media/plex/tvseries:/tv
- /media/plex/movies:/movies
- /media/plex/music:/music
- /mnt/qnap_multimedia:/qnap # almacenamiento remoto montado por NFS en el contenedor lxc donde corre el contenedor docker
restart: unless-stopped
# /etc/fstab
192.168.1.11:/share/CACHEDEV1_DATA/Multimedia /mnt/qnap_multimedia nfs defaults 0 0