Satura rādītājs

Šādas tādas piezīmes

Domēni

DKIM TXT ierakstā pie NIC.lv noformē šādi

DOS Apvārsnis uz Windows Vista

Lai uz Vistas panāktu vecajam DOS Apvārsnim latviešu valodu, pēc sistēmas latviskošanas (Vistas latviešu lokāle, Lāča „Apostrofs“ , Tiles birojs vai kas cits) jāiekopē fails c_775lv.nls no kāda darbojoša XP vai 2000 Windows un pēc tam jāreģistrē tas reģistrā.

  [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\CodePage]
   
   "775"="c_775lv.nls"

Klaviatūras draiveri, piem. - girc.com, draiveri pa vecam iekš autoexec.nt

Zip arhīvs ar c_775lv.nls un girc.com

Java

Jau 2019. gadā bija informācija, ka Oracle JAVA vairs nevar bez maksas izmantot juridiskas personas un arī šeit par šo atgādināja. Sankcijas var būt skarbas.

Oracle Javu noņem ar https://www.java.com/en/download/uninstallapplet.jsp

Vietā liek Open JDK.

MS kompilēto ar

winget install -e --id Microsoft.OpenJDK.17

vai kopienas kompilēto ar

winget install -e --id AdoptOpenJDK.OpenJDK.11

Vēl pastāv Oracle kompilētais Open JDK, bet ieteiktu ar to neķēpāties, ej nu viņu atšķir!

ZzDats Pakalpojuma serviss veiksmīgi darbojās ar abiem uz Win 10 Pro 22H2. 06.01.2023.

Jaunināšanās no veca Win 7 uz Win 10

Ja Windows Media Ceration tool uz veca Win 7 negrib sākt jaunināšanu uz Win 10 un rāda kļūdu Error 0x8007007F-0x20000, tad visticamāk ir problēmas sazināties ar jauninājumu serveri TLS versiju nesaderības dēļ.

To labo MicrosoftEasyFix51044 jauninājums. microsofteasyfix51044.zip

Mikrotik pamatkonfigurācijas špikeris

https://forum.mikrotik.com/viewtopic.php?t=143446

#12

OCR

Par labu atzīts latvisks OCR

sudo apt-get install tesseract-ocr tesseract-ocr-lav gimagereader 

DST Root CA X3 beidzas 30.09.2021.

First remove the expired certs manually:
Manually install the new one cert:

«Šokolāde»

Instalēšana

Ar administratora tiesībām;

@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
Paku instalācija
choco  install -yes 
choco install oraclejdk

far audacity firefox googlechrome adobereader flashplayerplugin jre8 7zip vlc putty skype cdburnerxp winscp opera gimp imagemagick libreoffice-fresh gimp

inkscape handbrake strawberryperl geosetter virtualbox notepadplusplus

ccleaner itunes pdf24

Unifi

TLS 1.2 priekš Win 11

tls12.zip

AP pielikšana

Kur tulkot Unifi vaučeri

<%@ page import="com.ubnt.data.Voucher" %>
<%@ page import="java.util.List" %>
<%@ page import="com.ubnt.ace.view.JspHelper" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<%

List vouchers = (List) request.getAttribute("vouchers");

%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta http-equiv="x-ua-compatible" content="IE=Edge;chrome=1" />
	<title>Vouchers</title>
<style type="text/css">
<%=JspHelper.renderTemplate(request, "bundle/voucher.css", null)%>
</style>
</head>
<body onload="self.focus(); window.print()">
	<% for (int i=0; i<vouchers.size(); i++) {
		Voucher voucher = (Voucher) vouchers.get(i);
		String code = voucher.getString("code");
		code = code.substring(0, 5)+"-"+code.substring(5);
		voucher.put("code", code);

		int duration = voucher.getInt("duration");
		int days = duration / 1440;
		int hours = (duration % 1440) / 60;
		int minutes = duration % 60;
		voucher.put("hasDays", days > 0 ? "days_enabled" : "days_disabled");
		voucher.put("hasHours", hours > 0 ? "hours_enabled" : "hours_disabled");
		voucher.put("hasMinutes", minutes > 0 ? "minutes_enabled" : "minutes_disabled");
		voucher.put("days", "" + days);
		voucher.put("hours", "" + hours);
		voucher.put("minutes", "" + minutes);
		String valid = (days > 0 ? days + ( days > 1? " dienas" : " dienu") : "") + (hours > 0 ? hours + " stundas" : "") + (minutes  > 0 ? minutes  + " minūtes" : "");
		voucher.put("valid", valid);

		int down = voucher.getInt("qos_rate_max_down");
		voucher.put("hasDown", down > 0 ? "downrate_enabled" : "downrate_disabled");
		voucher.put("down", "" + down);
		int up = voucher.getInt("qos_rate_max_up");
		voucher.put("hasUp", up > 0 ? "uprate_enabled" : "uprate_disabled");
		voucher.put("up", "" + up);
		int qos_usage_quota = voucher.getInt("qos_usage_quota");
		voucher.put("hasData", qos_usage_quota > 0 ? "quota_enabled" : "quota_disabled");
		voucher.put("data", "" + qos_usage_quota);

		String notes = voucher.getString("note");
		voucher.put("notes", notes);

		int quota = voucher.getInt("quota");
		voucher.put("voucher_type", quota > 0 ? "vienam lietotājam" : "daudziem lietotājiem");

		out.print(JspHelper.renderTemplate(request, "bundle/voucher.html", voucher));
	} %>
</body>
</html>


Unifi AP reset

Ja ir SSH pieeja, tad kāpšanu pie griestiem bakstīt ar saspraudi var aizstāt ar

syswrapper.sh restore-default

MSO 2013 bardaks

https://community.spiceworks.com/how_to/45794-fix-unlicensed-office-2013-error

http://admin-to-admin.info/blog/udalenie-aktivatsii-office-365/

Nojukušu kvotu inventarizācija

quota -v lietotajs
quotaoff /
quotacheck -ugvm /
quotaon /

Vajadzība pēc upload_tmp_dir

Ja PHP vajag definētu upload_tmp_dir, dara tā.

Izveido templeitu
cp /etc/e-smith/templates/etc/php.ini/50PathsDirectories /etc/e-smith/templates-custom/etc/php.ini

Tam beigās pieraksta
upload_tmp_dir = /tmp

Un katram IBAY, kurš ir jāpielaiž pie /tmp definē

/sbin/e-smith/db accounts setprop IBAY PHPBaseDir /tmp:/home/e-smith/files/ibays/IBAY 
/sbin/e-smith/signal-event ibay-modify IBAY

Datubāzu rezerves kopijas

All your databases are saved with the signal-event pre-backup

They are stored in the file /home/e-smith/db/mysql/mysql.dump.

To restore them, just type (as root) mysql < /home/e-smith/db/mysql/mysql.dump

This command will restore all your mysql database as they were during the backup.

SME/Koozali atjaunināšana

yum update
signal-event post-upgrade
signal-event reboot

Derēs arī priekš Nethserver.

SME/Koozali shell konta atvēršana

chsh username

ievada /bin/bash

db accounts setprop joe Shell /bin/bash

zip gabalos

Linux unzip nemāk atzipot gabalos sadalītus zip failus, tāpēc tie ieperiekš mehāniski jāapvieno

  cat arhivs.zip.* > arhivs.viss.zip
  unzip arhivs.viss.zip

MD5 kontrolsummas salīdzināšana

  md5sum -c atpumpetais_fails.iso.md5

tar ābece

Saspiest

 tar -czvf archive.tgz files/

Atspiest

 tar -xzvf archive.tgz

RAID

Aplūkot 3ware RAID veselību ar CLI

 tw_cli /c0 show

SME/Koozali pārvākšanās

Atsevišķā lapā

BackupPC

BackupPC un smeserver-BackupPC priekš SME8

BackupPC To install Backuppc, there is some problemes of dependancies.

db yum_repositories set rpmforge repository \
BaseURL 'http://apt.sw.be/redhat/el5/en/$basearch/rpmforge' \
EnableGroups no \
Exclude freetype,htop,iptraf,rsync,syslinux \
GPGCheck yes \
GPGKey http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt \
Name 'RPMForge - EL5' \
Visible no \
status disabled
signal-event yum-modify

yum install --enablerepo=rpmforge perl-XML-RSS perl-Time-module* perl-File-RsyncP

  
db yum_repositories set sme7contribs repository \
GPGCheck yes \
MirrorList http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smecontribs-7 \
Name 'SME 7 - contribs' \
Visible no \
status disabled
signal-event yum-modify
yum clean all
yum --enablerepo=smecontribs install BackupPC
yum --enablerepo=sme7contribs install smeserver-BackupPC 
 
signal-event post-upgrade && signal-event reboot

Nameja lomu penterim

Kad veidotājs spēj maitāt reģistrētu, jāatslēdz PD_DPV.APS.01.E02 PD_DPV.DTN.05.E01

Zudušas darbstacijas uzticības attiecības ar Samba/AD serveri

Izņemt un atkal pievienot AD ir garš ceļš.

Tā vietā labāk:

PoweShell ar admin tiesībām:

Reset-ComputerMachinePassword -Server 192.168.1.103  -Credential admin

Teorija: https://theitbros.com/fix-trust-relationship-failed-without-domain-rejoining/

Ms Egde UI

Paslēpt Bing pogu un sānu joslu

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge]
"HubsSidebarEnabled"=dword:00000000

Win 11 UI

Vecā stila printeru kontrolpanelis uz Win 11

 explorer shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}

Win 11 context menu

Wni 11 atjaunot Win 10 izskata context menu.

REG.EXE add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve

How to Restore or Enable Classic Taskbar in Windows 11 (All Versions)

https://www.askvg.com/how-to-restore-or-enable-classic-taskbar-in-windows-11-all-versions-22h2/

Winget

winget install -e –id Adobe.Acrobat.Reader.64-bit;winget install -e –id 7zip.7zip;winget install -e –id Mozilla.Firefox;winget install -e –id GIMP.GIMP;winget install -e –id ArtifexSoftware.GhostScript;winget install -e –id ImageMagick.ImageMagick

winget install -e –id Oracle.JavaRuntimeEnvironment

winget install Microsoft.OpenJDK.17
winget install -e --id AdoptOpenJDK.OpenJDK.11

winget install -e –id VideoLAN.VLC.Nightly;winget install -e –id CodecGuide.K-LiteCodecPack.Mega;winget install -e –id TeamViewer.TeamViewer

winget install -e –id TheDocumentFoundation.LibreOffice

winget install -e –id FarManager.FarManager;winget install -e –id Audacity.Audacity;winget install -e –id Google.Chrome;winget install -e –id NoMoreFood.PuTTY-CAC;winget install -e –id WinSCP.WinSCP;winget install -e –id Opera.Opera

Nethserver hotsync

2022. gada beigās sabojājās Netserver hotsync. 10.02.2023. vēl nav salabots.

Backup started at 2022-10-22 11:59:47
Event pre-backup-config: SUCCESS
Action backup-config-execute: SUCCESS
Event post-backup-config: SUCCESS
Backup status: SUCCESS
Backup ended at 2022-10-22 11:59:51
Time elapsed: 0 hours, 0 minutes, 4 seconds
hotsync error: rsync returned 2. rsync output:
ERROR: rejecting excluded file-list name: var/lib/nethserver/backup
rsync error: protocol incompatibility (code 2) at flist.c(907) [receiver=3.1.2]
rsync error: protocol incompatibility (code 2) at io.c(1640) [generator=3.1.2]

Jādaungreidojas uz iepriekšjo rsync versiju.

yum downgrade rsync-3.1.2-10.el7
signal-event nethserver-hotsync-update

Avots: https://community.nethserver.org/t/hotsync-trouble/20823/6