Todos os posts de ronaldodavi

KMS38 Activation

KMS38 Activation


Clique com o botão direito no menu Iniciar do Windows e selecione PowerShell ou Terminal (não CMD).

Copie e cole o código abaixo e pressione Enter

irm https://get.activated.win | iex

Você verá as opções de ativação. Siga as instruções na tela. Isso é tudo.


Supported Products

Windows 10/11 Generic Volume License Key
Education NW6C2-QMPVW-D7KKK-3GKT6-VCFB2
Education N 2WH4N-8QGBV-H22JP-CT43Q-MDWWJ
Enterprise NPPR9-FWDCX-D2C8J-H872K-2YT43
Enterprise N DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4
Enterprise G YYVX9-NTFWV-6MDM3-9PT4T-4M68B
Enterprise G N 44RPN-FTY23-9VTTB-MP9BX-T84FV
Enterprise LTSB 2016 DCPHK-NFMTC-H88MJ-PFHPY-QJ4BJ
Enterprise LTSC 2019 M7XTQ-FN8P6-TTKYV-9D4CC-J462D
Enterprise LTSC 2021 M7XTQ-FN8P6-TTKYV-9D4CC-J462D
Enterprise LTSC 2024 M7XTQ-FN8P6-TTKYV-9D4CC-J462D
Enterprise N LTSB 2016 QFFDN-GRT3P-VKWWX-X7T3R-8B639
Enterprise N LTSC 2019 92NFX-8DJQP-P6BBQ-THF9C-7CG2H
Enterprise N LTSC 2021 92NFX-8DJQP-P6BBQ-THF9C-7CG2H
Enterprise N LTSC 2024 92NFX-8DJQP-P6BBQ-THF9C-7CG2H
IoT Enterprise LTSC 2021 (19044.2788 and later) KBN8V-HFGQ4-MGXVD-347P6-PDQGT
IoT Enterprise LTSC 2024 KBN8V-HFGQ4-MGXVD-347P6-PDQGT
Home TX9XD-98N7V-6WMQ6-BX7FG-H8Q99
Home N 3KHY7-WNT83-DGQKR-F7HPR-844BM
Home China PVMJN-6DFY6-9CCP6-7BKTT-D3WVR
Home Single Language 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH
Lean NBTWJ-3DR69-3C4V8-C26MC-GQ9M6
Pro W269N-WFGWX-YVC9B-4J6C9-T83GX
Pro N MH37W-N47XK-V7XM9-C7227-GCQG9
Pro Education 6TP4R-GNPTD-KYYHQ-7B7DP-J447Y
Pro Education N YVWGF-BXNMC-HTQYQ-CPQ99-66QFC
Pro for Workstations NRG8B-VKK3Q-CXVCJ-9G2XF-6Q84J
Pro N for Workstations 9FNHH-K3HBT-3W4TD-6383H-6XYWF
SE 37D7F-N49CB-WQR8W-TBJ73-FM8RX
SE N 6XN7V-PCBDC-BDBRH-8DQY7-G6R44
Windows Server (LTSC) Generic Volume License Key
Windows Server 2025 Standard DPNXD-67YY9-WWFJJ-RYH99-RM832
Windows Server 2025 Datacenter CNFDQ-2BW8H-9V4WM-TKCPD-MD2QF
Windows Server 2025 Azure Core QN7G3-4RM92-MT6QR-PR966-FVYV7
Windows Server 2025 Azure Datacenter NQ8HH-FTDTM-6VGY7-TQ3DV-XFBV2
Windows Server 2022 Datacenter WX4NM-KYWYW-QJJR4-XV3QB-6VM33
Windows Server 2022 Standard VDYBN-27WPP-V4HQT-9VMD4-VMK7H
Windows Server 2022 Azure Core 6N379-GGTMK-23C6M-XVVTC-CKFRQ
Windows Server 2022 Azure Datacenter NTBV8-9K7Q8-V27C6-M2BTV-KHMXV
Windows Server 2019 Datacenter WMDGN-G9PQG-XVVXX-R3X43-63DFG
Windows Server 2019 Standard N69G4-B89J2-4G8F4-WWYCC-J464C
Windows Server 2019 Essentials WVDHN-86M7X-466P6-VHXV7-YY726
Windows Server 2019 Azure Core FDNH6-VW9RW-BXPJ7-4XTYG-239TB
Windows Server 2019 ARM64 GRFBW-QNDC4-6QBHG-CCK3B-2PR88
Windows Server 2016 ARM64 K9FYF-G6NCK-73M32-XMVPY-F9DRR
Windows Server 2016 Datacenter CB7KF-BWN84-R7R2Y-793K2-8XDDG
Windows Server 2016 Standard WC2BQ-8NRM3-FDDYY-2BFGV-KHKQY
Windows Server 2016 Essentials JCKRF-N37P4-C2D82-9YXRT-4M63B
Windows Server 2016 Cloud Storage QN4C6-GBJD2-FB422-GHWJK-GJG2R
Windows Server 2016 Azure Core VP34G-4NPPG-79JTQ-864T4-R3MQX
Windows Server (Annual Channel) Generic Volume License Key
23H2
Windows Server Datacenter WX4NM-KYWYW-QJJR4-XV3QB-6VM33
Windows Server (Semi-Annual Channel) Generic Volume License Key
20H2, 2004, 1909, 1903, and 1809
Windows Server Datacenter 6NMRW-2C8FM-D24W7-TQWMY-CWH2D
Windows Server Standard N2KJX-J94YW-TQVFB-DG9YT-724CC
1803
Windows Server Datacenter 2HXDN-KRXHB-GPYC7-YCKFJ-7FVDG
Windows Server Standard PTXN8-JFHJM-4WC78-MPCBR-9W4KR
1709
Windows Server Datacenter 6Y6KB-N82V8-D8CQV-23MJW-BWTG6
Windows Server Standard DPCNP-XQFKJ-BJF7R-FRC8D-GF6G4

Notes:

  • X86-X64 and ARM64 architecture systems are supported.
  • Any Evaluation version of Windows (i.e. ‘EVAL’ LTSB/C) cannot be activated.
  • KMS38 only supports Windows/server version 14393 (1607) and newer versions.
  • Initial release (19044.1288) of Iot LTSC 2021 doesn’t support KMS license and it was added later in update 19044.2788.
  • ServerRdsh, Server Azure Datacenter editions do not officially support activation on non-azure systems.

How to remove KMS38?

  • In MAS, go to KMS38 Activation and apply the Remove KM38 Protection option.
  • After that, In MAS, go to Troubleshoot and apply the Fix Licensing option.
  • Done.

KMS38 – Server Cor/Acor

  • Windows Server Cor/Acor (No GUI) editions don’t have the clipup.exe file.
  • To KMS38 activate it, you need to download the ClipUp.exe file from this link.File: ClipUp.exe
    SHA-256: 0d6e9f6bbd0321eda149658d96040cb4f79e0bd93ba60061f25b28fecbf4d4efThis file has digital signatures that can be verified. You can also get this file from the official Windows Server 2016 x64 RTM ISO.
  • Put the ClipUp.exe file beside the KMS38 Activation script. That would be either MAS_AIO.cmd or KMS38_Activation.cmd
  • The activation script will check for ClipUp.exe in the current folder (from where the script is running) and will use it accordingly.

KMS38 Protection

  • KMS38 Activation is vulnerable to unintended replacement by a 180-Day KMS Activator.
  • From MAS 1.7, the script will enable KMS38 protection by default.
  • If you are going to use KMS_VL_ALL by abbodi1406 or MAS (Online KMS option) for Office activation, then you can choose to remove this protection.
  • Below is the explanation for how the script protect KMS38.
  • In the KMS activation method, Windows first checks the KMS IP registered as a specific KMS, and if that is not defined, then it checks the Global KMS IP. Another fact is that if Localhost (IP range 127.0.0.0/8) is defined as the KMS IP in Windows 8 and later OS, then Windows will not accept it as a valid KMS IP. This script simply utilizes the above facts to protect the KMS38 activation from being overwritten by any alternative ‘normal’ 180-Day KMS Activation, and at the same time, that KMS activator can be used for Office activation.
  • Script steps-
    • Set the Windows edition-specific KMS IP to Localhost (127.0.0.2)
    • Protect the below Registry from edit and delete
    • Done.

HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\55c92734-d682-4d71-983e-d6ec3f16059f\XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\

Remover MSG de trial windows server 2029

Para corrigir esse problema manualmente no Windows 8, e server 2019, siga estas etapas:

Passe o dedo da direita, clique ou toque em Pesquisar e digite cmd. Como alternativa, digite cmd na tela Inicial.

Toque e segure ou clique com o botão direito do mouse em Prompt de Comando nos resultados da pesquisa. Selecione Executar como administrador no menu exibido na parte inferior da tela.

Observação Se você receber um prompt de uma janela de Controle de Conta de Usuário, toque ou clique em Sim.

Na janela Prompt de Comando, digite o seguinte comando e pressione Enter:

bcdedit -set TESTSIGNING OFF

Após ver a confirmação, feche a janela Prompt de Comando.

Salve qualquer trabalho não salvo e reinicie o computador.

 

Correção pastas no shell linux apache

# crontab ajuste permisão de pastas
59 * * * * find /var/www/html/ -type f -exec chmod 644 {} \\;
59 * * * * find /var/www/html/ -type f -exec chmod 0644 {} \;
59 * * * * find /var/www/html/ -type d -exec chmod 0755 {} \;
59 * * * * chcon -t httpd_sys_content_t /var/www/html/ -R

sudo find /var/www/html -type d -exec chmod g+rx {} +
sudo find /var/www/html -type f -exec chmod g+r {} +

Ubuntu

sudo chown -R ubuntu:www-data /var/www
sudo find /var/www/html/ -type d -exec chmod 755 {} \+
sudo find /var/www/html/ -type f -exec chmod 644 {} \+

Centos

sudo chown -R apache:apache /var/www 
sudo find /var/www/html/ -type d -exec chmod 755 {} \+ 
sudo find /var/www/html/ -type f -exec chmod 644 {} \+

Metabase script install

Script de instalação Metabase

metabase-install.sh (103 downloads )

#!/bin/bash
# Para Centos 7
# Metabase, Openjdk 1.8, Postgresql-15, Nginx como proxy
# Banco: metabseappdb
#
# Por Ronaldo davi
# 27/04/2023
# Versão 1.0.0.6

# Desativando selinux
setenforce 0
wait
sudo sed -i ‘s/enforcing/disabled/g’ /etc/selinux/config /etc/selinux/config
setsebool -P httpd_can_network_connect_db 1
systemctl stop firewalld
systemctl disable firewalld
wait
yum -y update
wait
yum install -y epel-release yum-utils
wait
sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
wait
sleep 5
sudo yum install -y postgresql15-server
wait
sleep 5
sudo /usr/pgsql-15/bin/postgresql-15-setup initdb
wait
sudo systemctl enable postgresql-15
sudo systemctl start postgresql-15
wait
sudo -u postgres createdb metabaseappdb
wait
rm -rf /var/lib/pgsql/15/data/pg_hba.conf
echo ”
# TYPE DATABASE USER ADDRESS METHOD

# “local” is for Unix domain socket connections only
local all all peer
# IPv4 local connections:
host all all 127.0.0.1/32 trust
host all all 0.0.0.0/0 trust
# IPv6 local connections:
host all all ::1/128 trust
# Allow replication connections from localhost, by a user with the
# replication privilege.
local replication all peer
host replication all 127.0.0.1/32 trust
host replication all ::1/128 trust
” >> /var/lib/pgsql/15/data/pg_hba.conf

wait
systemctl restart postgresql-15
wait
yum -y install java-1.8.0-openjdk vim wget epel-release
wait
readlink -f /usr/bin/java | sed “s:/jre/bin/java::”
wait
echo “export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64″ | tee -a /etc/profile
wait
source /etc/profile
wait
wget http://downloads.metabase.com/v0.29.3/metabase.jar
wait
adduser –home-dir /var/metabase –comment=”Metabase User” –shell /sbin/nologin metabase
wait
mv metabase.jar /var/metabase
wait
chown metabase:metabase -R /var/metabase
wait
#touch /var/metabase/metabase.env
echo ”
if $programname == ‘metabase’ then /var/log/metabase.log
& stop
” >> /etc/rsyslog.d/metabase.conf
#sudo chown syslog:adm /var/log/metabase.log
wait
sudo systemctl restart rsyslog.service

echo ”
MB_PASSWORD_COMPLEXITY=normal
MB_DB_TYPE=postgres
MB_DB_DBNAME=metabaseappdb
MB_DB_PORT=5432
MB_DB_USER=postgres
MB_DB_PASS=q1w2e3r4
MB_DB_HOST=localhost
MB_EMOJI_IN_LOGS=true
# any other env vars you want available to Metabase
” >> /etc/default/metabase
wait
echo “[Unit]
Description=Metabase server
After=syslog.target
After=network.target

[Service]
EnvironmentFile=/etc/default/metabase
User=metabase
Group=metabase
Type=simple
ExecStart=/usr/bin/java -jar /var/metabase/metabase.jar
Restart=always
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=metabase

[Install]
WantedBy=multi-user.target ” >> /etc/systemd/system/metabase.service

wait
systemctl enable metabase
systemctl start metabase
systemctl status metabase
systemctl status postgresql-15

yum -y install nginx

systemctl start nginx

systemctl enable nginx

echo ” server {
listen 80;
server_name metabase.example.com;
access_log /var/log/nginx/metabase.access.log;
error_log /var/log/nginx/metabase.error.log;

location / {
proxy_pass http://localhost:3000;
}
} ” >> /etc/nginx/conf.d/metabase.conf

systemctl restart nginx
systemctl status metabase

xibo script 2.3.16

xibo-install2.3.16.sh (98 downloads ) Versão:
#!/bin/bash
# Para Centos 7
# Xibo install script
# CMS 2.2.16, MariaDB 5.5 , Apache, PHP7.4, zeromq, openXR
# Por Ronaldo davi
# 25/04/2023
# Versão 1.0.2.3

# Desativando selinux
setenforce 0
wait
sudo sed -i ‘s/enforcing/disabled/g’ /etc/selinux/config /etc/selinux/config
wait
# Atualizando SO
yum update -y
wait
# instalando apache e utils
yum install -y httpd libtool gcc-c++ glib* zip vim wget git yum-utils
wait
yum install -y epel-release
wait
yum install -y http://rpms.remirepo.net/enterprise/remi-release-7.rpm
wait
# ativar PHP 7.4
yum-config-manager –disable ‘remi-php*’
wait
yum-config-manager –enable remi-php74
wait
# cache rapido do yum
sudo yum makecache fast -y
wait
yum update -y
wait
# Instalar MariaDB5.5 e php7.4
yum install -y php
wait
yum install -y php-devel php-soap php-common php-mysql php-gd php-mbstring php-mcrypt php-xmlrpc php-zip php-intl php-mysqlnd php-dom php-simplexml php-xml php-xmlreader php-curl php-exif php-ftp php-gd php-iconv php-json php-mbstring php-posix php-sockets php-tokenizer php-cli php-smtp php-imagick php-opcache
wait
yum install -y zeromq-devel
wait
## install zmq.so
cd ~
wait
git clone https://github.com/zeromq/php-zmq.git
wait
cd php-zmq
wait
phpize && ./configure
wait
make && make install
wait
yum install -y mariadb-server mariadb

# Ativar MariaDB
sudo systemctl start mariadb.service
sudo systemctl enable mariadb.service
wait
# Adicionar zeromq config
echo “; Enable ZeroMQ extension module
extension=zmq.so
” >> /etc/php.d/20-zmq.ini
wait
# Configurando PHP
upload_max_filesize=256M
post_max_size=256M
max_execution_time=300
max_input_time=300

for key in upload_max_filesize post_max_size max_execution_time max_input_time
do
sed -i “s/^\($key\).*/\1 $(eval echo = \${$key})/” /etc/php.ini
done
wait

# Download xibo
cd /var/www/
wait
wget https://github.com/xibosignage/xibo-cms/releases/download/2.3.16/xibo-cms-2.3.16.tar.gz

# Descompactando e instalando
tar xvf /var/www/xibo-cms-2.3.16.tar.gz
mv /var/www/xibo-cms-2.3.16 /var/www/html/xibo2.3.16

sudo chown -R apache:apache /var/www/html/
sudo chmod -R 755 /var/www/html/

systemctl enable –now httpd
systemctl start –now httpd
systemctl disable –now firewalld
systemctl stop –now firewalld

#Criacao virtualhost
echo ”


DocumentRoot /var/www/html/xibo2.3.16/web/
CustomLog /var/log/httpd/xibo-access.log combined
ErrorLog /var/log/httpd/xibo-error.log
ServerName xibo.foo.bar

Options Indexes FollowSymLinks MultiViews
Order allow,deny
Allow from all
Require all granted
Allowoverride All
RewriteEngine On

” >> /etc/httpd/conf.d/xibo.foo.bar.conf

systemctl restart httpd

mysql_secure_installation