added alot of docs

This commit is contained in:
Rudi klein 2024-10-05 19:05:51 +02:00
parent 96fbe30ca0
commit 4a04d34ae2
23 changed files with 440 additions and 48 deletions

View File

@ -8,10 +8,19 @@
<toc-element topic="FrontPage.md"/> <toc-element topic="FrontPage.md"/>
<toc-element topic="KleinOps.md"> <toc-element topic="KleinOps.md">
<toc-element topic="OS.md">
<toc-element topic="Windows.md"/>
<toc-element topic="Linux.md"/>
</toc-element>
<toc-element topic="Apps.md">
<toc-element topic="Wazuh.md"/>
</toc-element>
<toc-element topic="Home_automation.md"> <toc-element topic="Home_automation.md">
<toc-element topic="HomeAssistant.md"/> <toc-element topic="HomeAssistant.md"/>
</toc-element> </toc-element>
<toc-element topic="Network.md"> <toc-element topic="Network.md">
<toc-element topic="Networking.md"/>
<toc-element topic="cloudflare_config.md"/>
<toc-element topic="Switches.md"/> <toc-element topic="Switches.md"/>
<toc-element topic="Endpoints.md"/> <toc-element topic="Endpoints.md"/>
<toc-element topic="Routers.md"/> <toc-element topic="Routers.md"/>
@ -26,7 +35,12 @@
</toc-element> </toc-element>
</toc-element> </toc-element>
<toc-element topic="KleinArchives.md"> <toc-element topic="KleinArchives.md">
<toc-element topic="Media.md"/> <toc-element topic="Media.md">
<toc-element topic="Documents.md"/> <toc-element topic="Klein-Familiearchief.md"/>
<toc-element topic="Familie-Klein-foto-archief.md"/>
</toc-element>
<toc-element topic="Documents.md">
<toc-element topic="Paperless.md"/>
</toc-element>
</toc-element> </toc-element>
</instance-profile> </instance-profile>

View File

@ -1,3 +1,2 @@
# KleinArchives # KleinArchives
Start typing here...

View File

@ -1,19 +1,7 @@
# Documents # Documenten
## _____________ ## _____________
### Ga voor alle belangrijke documenten naar het Paperless documentarchief
### Eigendomspapieren huis Volg deze link: [Paperless](https://paperless.kleinsense.nl)
``` ``` Voor korte documentatie van het gebruik van Paperless, ga naar KleinArchives/Paperless in deze documentatie-omgeving.
### Levenstestament Rudi Voor uitgebreidere documentatie, ga naar de [documentatie](https://docs.paperless-ngx.com/) van Paperless-ngx.
``` ```
### Levenstestament Rolien
``` ```
### Hypotheekgegevens
``` ```
### Bankrekeningen
``` ```
### Privatelease
``` ```
### Medicatie Rudi
``` ```

View File

@ -0,0 +1,11 @@
# Familie Klein foto-archief
### Familie Klein fotoarchief online
#### via het Familie Klein archief
[](https://familieklein.wordpress.com/foto/)
Het Familie Klein fotoarchief wordt gehost op KleinNext via Synology Photos.
Inloggegevens (rudi) in 1Password.

View File

@ -0,0 +1,8 @@
# Klein Familiearchief
### Familie Klein archief online
[](https://familieklein.wordpress.com/)
Het Familie Klein archief wordt gehost op WordPress.
Inloggegevens in 1Password.

View File

@ -1,3 +1,3 @@
# Media # Media
Start typing here... ## _____________

View File

@ -0,0 +1,99 @@
# Linux
## Sysadmin commands
| Command | Description |
|------------------|----------------------------------------------------------------------------------------------------|
| alias | Create an alias for Linux commands. Its a shorthand way to customize and streamline your commands |
| apropos | Search man page names and descriptions. |
| atop | For Linux server performance analysis. |
| awk | A powerful pattern scanning and processing language. Its used to manipulate data and generate |
| blkid | command-line utility to locate/print block device attributes. |
| btop | C++ version and continuation of bashtop and bpytop. |
| bzip2 | similar to gzip. It uses a different compression algorithm. |
| cat | display file contents. |
| cd | directory navigation. |
| cheat | allows you to create and view interactive cheatsheets on the command line.” |
| chmod | change the access permissions of file system objects. |
| chown | change file owner and group. |
| chpassword | allows users to change the password for various user accounts. |
| chroot | run command or interactive shell with a special root directory. |
| clear | clears the screen of the terminal. |
| cp | copying files and folders. |
| cron | set up scheduled tasks to run. |
| crontab | Schedule commands to run periodically at fixed times, dates, or intervals with the cron da |
| dd | convert and copy files. |
| df | display disk space usage. |
| diff | Compare files line by line. Its particularly useful for comparing text files such as scripts |
| dmesg | prints the message buffer of the kernel ring. |
| dstat | view processes, memory, paging, I/O, CPU, etc., in real-time. All-in-one for vmstat, iostat |
| du | estimate file space usage. |
| env | Run a command in a modified environment. |
| fdisk | manipulate the disk partition table. |
| find | locates files based on some user-specified criteria. |
| free | display memory usage. |
| fsck | tool for checking the consistency of a file system. |
| Glances and nmon | htop and top Alternatives: |
| grep | Search a file for a pattern of characters, then display all matching lines. |
| gzip | file compression and decompression. |
| history | used to view the previously executed commands. |
| htop | interactive process viewer and manager. |
| iostat | for storage I/O statistics. |
| iotop | interactive I/O viewer. Get an overview of storage r/w activity. |
| ip | from Iproute2, a collection of utilities for controlling TCP/IP networking and traffic control |
| journalctl | query the systemd journal. |
| kill | terminate a process. |
| killall | Sends a kill signal to all instances of a process by name. |
| last | show a listing of last logged-in users. |
| less | similar to the more command with additional features. |
| ln | Make links between files. By creating a link, you can access the linked file by more than one p |
| locate | search files in Linux. |
| ls | list directory contents. |
| lspci | List all PCI devices. This is particularly useful for diagnosing hardware and system problem |
| lsusb | List USB devices. Similar to lspci, but for USB hardware connected to the system. |
| man | for reading system reference manuals. |
| mkdir | create or make new directories. |
| mkfs | build a Linux file system. |
| more | display file contents one screen/page at a time. |
| mount / umount | provides access to an entire filesystem in one directory. |
| mv | moving files and folders. |
| nc | command-line networking utility. (Also, see 60 Linux Networking commands and scripts.) |
| ncdu | a disk utility for Unix systems. |
| netstat | for network statistics. |
| nohup | Run Commands in the Background. |
| parted | for creating and manipulating partition tables. |
| passwd | change a users password. |
| ps | information about the currently running processes. |
| pstree | display a tree of processes. |
| pwd | shows your current directory location. |
| rm | removing files and folders. |
| rsync | remote file transfers and syncing. |
| sar | collects, reports, and saves system activity information, including CPU, memory, disk, and ne |
| scp | securely Copy Files Using SCP, with examples. |
| screen | hold a session open on a remote server. (also a full-screen window manager) |
| sed | A stream editor used to perform basic text transformations on an input stream (a file or input |
| sleep | suspends program execution for a specified time. |
| sof | List open files and the corresponding processes. This command is invaluable for troubleshootin |
| ssh | secure command-line access to remote Linux systems. |
| sudo | execute commands with administrative privilege. |
| systemctl | central management tool for controlling the init system. |
| tac | output file contents, in reverse. |
| tail | used to display the tail end of a text file or piped data. |
| tar | an archiving utility. |
| tldr | Collaborative cheatsheets for console commands. |
| tmux | a terminal multiplexer. |
| top | shows an overall system view. |
| touch | used to update the access date and modification date of a computer file or directory. |
| umask | set file mode creation mask. |
| uptime | shows system uptime and load average. |
| useradd | create a new user or update default new user information. |
| userdel | used to delete a user account and all related files. |
| usermod | used to modify or change any attributes of an existing user account. |
| vi | text editor. |
| vmstat | shows system memory, processes, interrupts, paging, block I/O, and CPU info. |
| w | show a list of currently logged-in user sessions. |
| wait | Suspend script execution until all jobs running in the background have been terminated. |
| watch | Execute a program periodically, showing output fullscreen. Its useful for monitoring comman |
| whois | client for the whois directory service. |
| zip | for packaging and compressing (to archive) files. |
| uname | Show system information (arch, linux version) |

2
topics/KleinOps/OS/OS.md Normal file
View File

@ -0,0 +1,2 @@
# OS

View File

@ -0,0 +1 @@
# Windows

View File

@ -0,0 +1 @@
# Apps

View File

@ -0,0 +1,43 @@
# Paperless
## ___________________
Paperless(-ngx) is het document-archief voor belangrijke documenten. Wat belangrijk is bepaal jezelf.
Paperless draait op onze eigen KleinServer, onze eigen private cloud eigenlijk, dus geen pottenkijkers.
Je kun je documenten inzien en extra noties toevoegen via de Paperless webpagina: https://paperless.kleinsense.nl
Je hebt daar een account op basis van je voornaam. Het tijdelijke wachtwoord is **_maniakaal_**, maar dat moet je
aanpassen naar een moeilijk te raden wachtwoord.
### Inzien en beheren
Het inzien en beheren kan via de Paperless webpagina: https://paperless.kleinsense.nl. Documenten zijn zichtbaar,
leesbaar en kunnen worden gedownload.
Je kunt tags (steekwoorden) toevoegen en correspondenten (afzenders, bijvoorbeeld: Notaris). Daarnaast kun je nog meer
eigenschappen aan een document toevoegen.
Het beheer van bijvoorbeeld steekwoorden wordt ook via deze pagina gedaan. Er is dus eigenlijk een centrale plek waar
alles beheertd wordt.
### Documenten toevoegen
Je kunt op verschillende manieren een document toevoegen. In alle gevallen kun je achteraf tags toevoegen en andere
archiverings methodes uitvoeren. Ook kan Paperless zelf tags toevoegen op basis van aangeleerde keuzes.
Alle documenten worden geconverteerd naar PDF en doorzoekbaar gemaakt. Je kunt dus eenvoudig naar een document zoeken op
door woorden te zoeken die in het document worden gebruikt.
#### Via een email
Stuur een email met een document-bijlage naar **paperless@[jouw domein]**, bijvoorbeeld: paperless@rudiklein.nl.
De bijlage wordt automatisch in Paperless gezet, in je eigen documentopslag (document storage).
#### Via de Paperless webpagina
Sleep een document naar een **[Paperless webpagina](https://paperless.kleinsense.nl)**, of via de **upload functie** aan
de rechterkant van de [Paperless homepage](https://paperless.kleinsense.nl).
#### Via een netwerkfolder
Sleep of plak een document in de **\\\kleinserver\paperless** netwerkfolder op je Windows of Linux systeem.
De bijlage wordt automatisch in Paperless gezet.
#### Via een scannerprogramma op KleinMeTwo
Als je op **KleinMeTwo** het programma **Paperless** start (icon, bovenin-midden op de desktop), kun je met een druk op
de
knop een document scannen via Draadje en deze toevoegen in Paperless.
#### Via de scanner van Draadje
Scan een document als PDF in zoals je gewend bent en sleep het daarna in de Paperless-folder (Drive P:).

View File

@ -0,0 +1,75 @@
# Wazuh
## ____________________
### Troubleshooting
#### Check Server Resources
Ensure that the server running the Wazuh dashboard has sufficient CPU, memory, and disk space.
Inadequate resources can delay the startup process.
```
$ https://documentation.wazuh.com/current/quickstart.html#requirements
```
#### Check Wazuh Logs
##### Wazuh indexer
```
$ cat /var/log/wazuh-indexer/wazuh-cluster.log | grep -i -E "error|warn"
```
##### Wazuh manager
```
$ cat /var/log/filebeat/filebeat | grep -i -E "error|warn"
```
##### Wazuh dashboard
```
$ journalctl -u wazuh-dashboard
$ cat /usr/share/wazuh-dashboard/data/wazuh/logs/wazuhapp.log | grep -i -E "error|warn"
```
##### Service Status
Verify that all necessary Wazuh services are running correctly. You can use the following commands to check the status:
```
1)
$ systemctl status wazuh-manager
or $ systemctl status wazuh-manager|grep Active
2)
$ systemctl status wazuh-dashboard
or $ systemctl status wazuh-dashboard|grep Active
3)
$ systemctl status wazuh-indexer
or $ systemctl status wazuh-indexer|grep Active
4)
$ systemctl status filebeat
or $ systemctl status filebeat|grep Active
5)
$ filebeat test output
```
#### Another common problem.
Wazuh-indexer may timeout when starting the service and Wazuh-dashboard may not start.
This can happen if the service does not start in the time Linux expects it to. We can extend this time with the following steps:
```
$ systemctl edit wazuh-indexer
```
and add the following lines
```
[Service]
TimeoutStartSec=180
```
Save the file and execute
```
$ systemctl daemon-reload
$ systemctl restart wazuh-indexer
$ systemctl restart wazuh-dashboard
```

View File

@ -1,3 +1,2 @@
# Home automation # Home automation
Start typing here...

View File

@ -1,3 +1,2 @@
# Network # Network
Start typing here...

View File

@ -0,0 +1,67 @@
# Linux Networking commands
## Networking commands
| Command | Description |
|--------------------------|--------------------------------------------------------------------------------------------|
| aria2 | downloading just about everything. Torrents included. |
| arpwatch | Ethernet Activity Monitor. |
| bmon | bandwidth monitor and rate estimator. |
| bwm-ng | live network bandwidth monitor. |
| curl | transferring data with URLs. (or try httpie) |
| darkstat | captures network traffic, usage statistics. |
| dhclient | Dynamic Host Configuration Protocol Client |
| dig | query DNS servers for information. |
| dstat | replacement for vmstat, iostat, mpstat, netstat and ifstat. |
| ethtool | utility for controlling network drivers and hardware. |
| gated | gateway routing daemon. |
| host | DNS lookup utility. |
| hping | TCP/IP packet assembler/analyzer. |
| ibmonitor | shows bandwidth and total data transferred. |
| ifstat | report network interfaces bandwidth. |
| iftop | display bandwidth usage. |
| ip (PDF file) | a command with more features that ifconfig (net-tools). |
| iperf3 | network bandwidth measurement tool. (above screenshot Stacklinux VPS) |
| iproute2 | collection of utilities for controlling TCP/IP. |
| iptables | take control of network traffic. |
| IPTraf | An IP Network Monitor. |
| iputils | set of small useful utilities for Linux networking. |
| iw | a new nl80211 based CLI configuration utility for wireless devices. |
| jwhois (whois) | client for the whois service. |
| lsof -i | reveal information about your network sockets. |
| mtr | network diagnostic tool. |
| ncat | improved re-implementation of the venerable netcat. |
| netcat | networking utility for reading/writing network connections. |
| nethogs | a small net top tool. |
| Netperf | Network bandwidth Testing. |
| netplan | Netplan is a utility for easily configuring networking on a linux system. |
| netsniff-ng | Swiss army knife for daily Linux network plumbing. |
| net-tools | utilities include: arp, hostname, ifconfig, netstat, rarp, route, etc. |
| netwatch | monitoring Network Connections. |
| ngrep | grep applied to the network layer. |
| nload | display network usage. |
| nmap | network discovery and security auditing. |
| nmcli | a command-line tool for controlling NetworkManager and reporting network status. |
| nmtui | provides a text interface to configure networking by controlling NetworkManager. |
| nslookup | query Internet name servers interactively. |
| ping | send icmp echo_request to network hosts. |
| route | show / manipulate the IP routing table. |
| slurm | network load monitor. |
| smokeping | keeps track of your network latency. |
| snort | Network Intrusion Detection and Prevention System. |
| socat | establishes two bidirectional byte streams and transfers data between them. |
| speedometer | Measure and display the rate of data across a network. |
| speedtest-cli | test internet bandwidth using speedtest.net |
| ss | utility to investigate sockets. |
| ssh | secure system administration and file transfers over insecure networks. |
| tcpdump | command-line packet analyzer. |
| tcptrack | Displays information about tcp connections on a network interface. |
| telnet | user interface to the TELNET protocol. |
| tracepath | very similar function to traceroute. |
| traceroute | print the route packets trace to network host. |
| vnStat | network traffic monitor. |
| websocat | Connection forwarder from/to web sockets to/from usual sockets, in style of socat. |
| wget | retrieving files using HTTP, HTTPS, FTP and FTPS. |
| Wireless Tools for Linux | includes iwconfig, iwlist, iwspy, iwpriv and ifrename. |
| Wireshark | network protocol analyzer. |

View File

@ -3,28 +3,49 @@
### KleinFritz ### KleinFritz
``` ```
-> http://kleinfritz.kleinnet TYPE: Access point
http://192.168.0.1 URL: http://kleinfritz.kleinnet
IP: 192.168.0.1
MAC: b0:f2:08:a9:17:75
LOC: meterkast
``` ```
### KleinMore ### KleinMore
``` ```
-> http://kleinmore.kleinnet TYPE: Access point
http://192.168.3.254 URL: http://kleinmore.kleinnet
IP: 192.168.3.254
MAC: e8:df:70:a3:3c:45
LOC: zolder
``` ```
### KleinHole ### KleinHole
``` ```
-> http://kleinhole.kleinnet/admin TYPE: DNS server/Ad blocker
http://192.168.178.252/admin URL: http://kleinhole.kleinnet/admin
IP: 192.168.178.252/admin
MAC: e4:5f:01:81:59:73
LOC: meterkast
``` ```
### KleinLess ### KleinLess
``` ```
-> http://kleinless.kleinnet TYPE: Access point
http://192.168.178.253 URL: http://kleinless.kleinnet
IP : 192.168.178.253
MAC: 5c:62:8b:cb:8c:04
LOC: meterkast
``` ```
### KleinSense ### KleinSense
``` ```
-> http://kleinsense.kleinnet TYPE: Router
http://192.168.178.254 URL: http://kleinsense.kleinnet
IP: 192.168.178.254
MAC: 60:be:b4:10:27:2c
LOC: meterkast
``` ```
### KleinWired ### KleinWired
```
TYPE: Access point
URL: http://kleinless.kleinnet
IP: 192.168.178.249
MAC: 94:83:c4:4c:1f:6e
LOC: slaapkamer J&D

View File

@ -0,0 +1,39 @@
# Cloudflare
## ___________________
### Cloudflare configuration
*__KleinWizard__*
| Type | Target | IP address | Mode |
| --- | --- | --- |----------|
| A | docker | 77.174.236.10 | DNS_only |
| A | docs.kleinserver | 77.174.236.10 | DNS_only |
| A | docs | 77.174.236.10 | DNS_only |
| A | foto | 77.174.236.10 | DNS_only |
| A | holtkamp | 77.174.236.10 | DNS_only |
| A | homeassistant | 77.174.236.10 | DNS_only |
| A | kleinwizard.nl | 77.174.236.10 | DNS_only |
| A | www | 77.174.236.10 | DNS_only |
*__KleinSense__*
| Type | Target | IP address | Mode |
|------|---------------|---------------------------------------------------------------------------------------------------------------------------|----------|
| A | docker | 77.174.236.10 | DNS_only |
| A | docs.notifier | 77.174.236.10 | DNS_only |
| A | kleinsense.nl | 77.174.236.10 | DNS_only |
| A | netboot | 77.174.236.10 | DNS_only |
| A | netdata | 77.174.236.10 | DNS_only |
| A | ntfy | 77.174.236.10 | DNS_only |
| A | opnsense | 77.174.236.10 | DNS_only |
| A | pihole | 77.174.236.10 | DNS_only |
| A | speedtest | 77.174.236.10 | DNS_only |
| A | wazuh | 77.174.236.10 | DNS_only |
| A | paperless | 77.174.236.10 | DNS_only |
| NS | kleinsense.nl | dom.ns.cloudflare.com | DNS_only |
| NS | kleinsense.nl | elsa.ns.cloudflare.com | DNS_only |
| TXT | _dmarc | v=DMARC1; p=reject; sp=reject; adkim=s; aspf=s; rua=mailto:02d7bbae0cd84125a5d71d7e61807053@dmarc-reports.cloudflare.net; | DNS_only |
| TXT | *._domainkey | v=DKIM1; p= | DNS_only |
| TXT | kleinsense.nl | v=spf1 -all | DNS_only |

View File

@ -1,3 +1,3 @@
# Other # Other.md
Start typing here... Start typing here...

View File

@ -1,3 +1,4 @@
# KleinHole # KleinHole
## __________
Start typing here... ### [Address information](Routers.md#kleinhole)

View File

@ -1,5 +1,9 @@
# KleinServer # KleinServer
## General ## General
### Address information
[Address information](Routers.md#)
### Users ### Users
| User | Purpose | | User | Purpose |
@ -36,18 +40,40 @@
### Databases ### Databases
- Portfolio Database Postgres ```Port 5432```
- DB-DB-1 ```Port 3306``` | Database | Port | Remarks |
- DB-DB-1 ```Port 3307``` |-----------------------------|------|---------|
| Portfolio Database Postgres | 5432 | |
| DB-DB-1 | 3306 | |
| DB-DB-1 | 3307 | |
### Docs ### Docs
- portfolio Docs ```Port 4002```
- KleinCord docs ```Port 9090``` | Docs | Port | Remarks |
- Wazuh notifier docs ```Port 9091``` |----------------|------|---------|
- KleinServer docs ```Port 9092``` | Portfolio | 4002 | |
| KleinCord | 9090 | |
| Wazuh notifier | 9091 | |
| KleinServer | 9092 | |
## Services ## Services
- Wazuh
- Jetbrains remote IDE (multiple) | Services | Remarks |
- GitHub actions (need more info) |----------------------|---------|
- ... | Wazuh | |
| Jetbrains remote IDE | |
| GitHub actions | |
## Games ## Games
| Game | Info | Remarks |
|------|------|---------|
| | | |
| | | |
| | | |

View File

@ -1,3 +1,2 @@
# Servers # Servers
Start typing here...