Friško

Posted in SysAdmin Windows

get Windows serial / activation key

reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /v BackupProductKeyDefault  

Posted in Linux Powershell

Powershell 7 pwsh7 na Linux Ubuntu 22 u konzoli ne reagira na Ctrl+lijevo i Ctrl+desno za skok riječ-po-riječ

Rješenje Set-PSReadLineKeyHandler -Chord "Ctrl+LeftArrow" -Function BackwardWord Set-PSReadLineKeyHandler -Chord "Ctrl+RightArrow" -Function NextWord pwsh7 powershell linux cursor left right jump word

Posted in CLI

Regex primjeri

  # Što tražiš Regex izraz Opis 1 Točnu riječ “jedan” \bjedan\b Cijela riječ, ne dio druge riječi 2 Više riječi: jedan, četiri, sedam \b(jedan|četiri|sedam)\b…

Posted in Windows

zabbix – Unattended install Windows

msiexec.exe /l*v "C:\temp\zabbix.log" /i "C:\temp\zabbix_agent-7.2.6-windows-amd64-openssl.msi" /qn+ SERVER=192.168.1.2 ENABLEPATH=1

Posted in Linux

zabbix: ZBX_NOTSUPPORTED: Received empty response from Zabbix Agent at [<%IPadresaAgenta%>]. Assuming that agent dropped connection because of access permissions.

Remote log kaže: 240102:20250516:103830.208 failed to accept an incoming connection: connection from "<%IPadresaAgenta%>" rejected, allowed hosts: "127.0.0.1" Rješenje Editiraj /etc/zabbix/zabbix_agentd.conf i dodaj ili promijeni Server=192.168.123.234…

Posted in CMD Linux

cannot execute binary file: Exec format error

Problem Instaliraš i pokreneš program, kadli error: cannot execute binary file: Exec format error Uzrok Koristiš x64 paket na x86 ili ARM mašini. Rješenje uname…

Posted in Apache Bash CLI Linux Python SysAdmin WebAdmin

Instaliraj LAMPY

  #!/bin/bash # LAMP + Python + SQLite stack sa pipx/pipenv (Ubuntu Server) set -e sudo apt update sudo apt upgrade -y sudo apt install…

Posted in Android

ScrCpy

Problem adb.exe: error: cannot bind listener: cannot bind to <ipaddress>:<port> An attempt was made to access a socket in a way forbidden by its access…

Posted in Excel Firefox php Powershell SysAdmin Windows

windows, powershell – izlistaj sve upravljačke programe

powershell.ps1 Get-WmiObject Win32_PnPSignedDriver | select DeviceName, DeviceClass, Manufacturer, DriverVersion, DriverDate, InfName | Out-GridView   dism.exe dism.exe /online /get-drivers /format:table   Obriši driver pnputil.exe -d oem987.inf…

Posted in Linux

Trilium – Promjena porta

Editiraj.. ~/.local/share/trilium-data/config.ini ..i promijeni.. [Network] # port setting is relevant only for web deployments, desktop builds run on a fixed port (changeable with TRILIUM_PORT environment…

Posted in šđčćž

Spriječi browser DNS leak

Registry Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters] "DisableParallelAandAAAA"=dword:00000001   Group policy gpedit.msc >> Computer configuration >> Administrative templates >> Network >> DNS Client >> Turn…

Posted in SysAdmin Windows

Očisti sve EventLogove

batch.cmd / powershell.ps1 @echo off FOR /F "tokens=*" %%G IN (‘wevtutil.exe el’) DO (wevtutil.exe cl "%%G") exit /b Ručno FOR /F "tokens=*" %G IN (‘wevtutil.exe…

Posted in Android CLI CMD Powershell SysAdmin Windows

Kopiranje datoteke na / sa mobitela / tableta spojenog putem USB-a

Preduvjeti • ADB je instaliran na računalu https://www.xda-developers.com/install-adb-windows-macos-linux • mobitel/tablet je u načinu rada “USB debugging” = ON ○ Settings >> About phone >> Build…

Posted in Linux

playwright Host system is missing dependencies to run browsers libgstcodecparsers-1.0.so.0

playwright install-deps playwright install  

Posted in HTML Linux

Linux – Instaliraj / nadogradi geckodriver

wget "https://github.com/mozilla/geckodriver/releases/download/v0.34.0/geckodriver-v0.34.0-linux64.tar.gz" tar -xzvf geckodriver-v0.34.0-linux64.tar.gz sudo mv geckodriver /usr/bin/ —o—

Posted in Linux

IPtables – preusmjeri promet po portu 443 na 8443

iptables -t nat -A PREROUTING -p tcp –dport 443 -j REDIRECT –to-port 8443 ip6tables -t nat -A PREROUTING -p tcp –dport 443 -j REDIRECT –to-port…

Posted in Linux SysAdmin

Instaliraj Webmin na Ubuntu

curl -o setup-repos.sh https://raw.githubusercontent.com/webmin/webmin/master/setup-repos.sh sh setup-repos.sh apt-get install webmin –install-recommends webmin xwebmin install xinstall

Posted in Windows

Windows 11 – Instaliranje *be* Microsoft accounta

Shift+F10 >> OOBE\BYPASSNRO >> reboot >> “I don’t have internet” >> “Continue with limited setup” i – kreiraj lokalni račun. Nisam testirao. Možda ne radi….

Posted in Powershell

Powershell – Prikaži jednu vrijednost iz JSON datoteke

Struktura JSON datoteke “” > Settings > Common > Proxy > Server > Address (prvi entitet je prazan string) powershell.ps1 $jsonFilePath = "efs_cfg_dump" $jsonContent =…

Posted in Windows

Hyper-V error 0x80070020

Problem Kreiraš novu virtualku, pokreneš, kadli ono pogreška: The vhdx cannot be accessed because it is in use by another process on the server. The…