12 Kvě
Create a PKCS12 file containing the certificate and its private key: $ openssl pkcs12 -export -in MyCertficate.crt -inkey MyPrivateKey.pem -out CertificateForImportInWindows.p12 The .p12 generated file is protected by a password and can then be transported without any risk. On a Windows, open this .p12 file and follow the instructions provided.
Posted in Linux, Scriptíky, Windows by: admin
No Comments
20 Dub
Get-Content (Get-PSReadlineOption).HistorySavePath
Posted in Scriptíky, Wordpres by: admin
No Comments
30 Zář
In Exchange Management Shell run this command: Get-ECPVirtualDirectory | Format-List InternalURL,ExternalURL
Posted in Mail, Služby, Windows by: admin
No Comments
08 Zář
Když vám třeba někdo rozbijete oprávnění na domovských složkách uživatelů z Active Directory… Foreach ($Folder in Get-ChildItem „D:\data\home-students“) { $domain=”nazev.domeny” $Username=$Folder.Name $ID=new-object System.Security.Principal.NTAccount($domain, $username) $Path=“D:\data\home-students\$username“ write-host $path $acl=get-acl $path $acl.SetOwner($ID) set-acl -path $path -aclObject $acl }
Posted in Scriptíky, Windows by: admin
No Comments
06 Čvn
1. Enable SSH 2. Sign as root user 3. Run SQLite3 sqlite3 /volume1/\@ActiveBackup/config.db 4. Determine inventory_id: sqlite> SELECT inventory_id, host_name, host_addr FROM inventory_table; 1|172.26.1.3|172.26.1.3 5. Update IP address and host name (on row with correct inventory_id): sqlite> update inventory_table set host_name = „172.26.1.3“, host_addr = „172.26.1.3“ WHERE inventory_id = ‚1‘; 6. Terminate SQLite3 program: sqlite> […]
Posted in Hardware, Linux, Scriptíky, virtualizace by: admin
1 Comment
09 Kvě
1. Right-click an empty area on the desktop and select New > Shortcut 2. In the Location field, enter the following URI and click Next ms-settings:windowsupdate 3. In the next field type in a shortcut name (Windows Update) and click Finish
Posted in Scriptíky, Windows by: admin
No Comments
09 Kvě
Error: # apt update Hit:1 http://security.debian.org/debian-security buster/updates InRelease Hit:2 http://deb.debian.org/debian buster InRelease Get:3 https://download.jitsi.org stable/ InRelease [1,882 B] Err:3 https://download.jitsi.org stable/ InRelease The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY B4D2D216F1FD7806 Reading package lists… Done Building dependency tree Reading state information… Done 12 packages can be upgraded. Run ‚apt […]
Posted in Debian, Linux, Ostatní, Scriptíky by: admin
No Comments
24 Bře
Error: root@mailgw:~# apt update Hit:1 http://deb.debian.org/debian buster InRelease Hit:2 http://security.debian.org/debian-security buster/updates InRelease Hit:3 http://downloads.metasploit.com/data/releases/metasploit-framework/apt lucid InRelease Hit:4 https://packages.sury.org/php buster InRelease Err:4 https://packages.sury.org/php buster InRelease The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key Reading package lists… Done Building dependency tree Reading state information… Done All packages are up to date. W: An error […]
Posted in Debian, Distribuce, Linux, Scriptíky by: admin
4 Comments
08 Úno
Koupil jsem si nový monitor s rozlišením 2560×1440 pixelů, ale Xorg ho nerozpoznal korektně xrandr –listmonitors Monitors: 1 0: +*HDMI-1 1920/725×1440/428+0+0 HDMI-1 …takže jsem musel rozlišení nastavit ručně. Nejdříve jsem si vygeneroval adekvátní modeline (rozlišení 2560×1400 pixelů při 60Hz): $ cvt 2560 1440 60 # 2560×1440 59.96 Hz (CVT 3.69M9) hsync: 89.52 kHz; pclk: 312.25 […]
Posted in Debian, Hardware, Kernel, Linux, Multimédia, Scriptíky, Ubuntu by: admin
No Comments
04 Úno
Dnes jsem zákazníkovi obnovoval certifikáty. Jelikož jsem generování a stažení certifikátů dělal z různých počítačů, chtěl jsem mít 100% jistotu, že soubory k sobě patří. S OpenSSL to lze naštěstí velmi snadno ověřit: # CSR $ openssl req -in domena.cz.csr -pubkey -noout -outform pem | sha256sum a9a2390ea6ea6a3d5a186b5ee137f89909f533031fab9e2010a8f2c237fb9b7e – # Certifikát $ openssl x509 -in domena.cz.crt […]
Posted in Bezpečnost, Linux, Scriptíky, Uncategorized by: admin
No Comments