First Commit
This commit is contained in:
92
2 Personal/Home Lab/Light Show.md
Normal file
92
2 Personal/Home Lab/Light Show.md
Normal file
@@ -0,0 +1,92 @@
|
||||
# Overview
|
||||
## Protocols
|
||||
|
||||
### DMX
|
||||
DMX or also called [DMX512](https://en.wikipedia.org/wiki/DMX512) is a technical standard to control stage light in a digital communication network. Oftentimes it also refers to the protocol's standard connector: ![[Pasted image 20231030210630.png]]
|
||||
One of the big advantages is that you can daisy-chain different DMX devices and thus very effectively build a network of light sources around a physical stage without too many cables. An overview about how daisy chaining works can be seen in the following image:
|
||||
![[Pasted image 20231030210857.png]]
|
||||
|
||||
### Art-Net
|
||||
[Art-Net](https://en.wikipedia.org/wiki/Art-Net) is a protocol that communicates DMX over UDP and thus physical ethernet cables can be used, or even WIFI. Every light-controller acts as a `node` and the main control unit (often a light desk or computer) is called `server`.
|
||||
|
||||
Every `node` as a `subnet`-address that ranges from 0 to 15.
|
||||
Every `node` can have up to 4 `port`, which are individual connections that can send or receive ArtNet data. Every one of the `ports` has a `universe` identifier between 0 and 15 (not the same as DMX universe).
|
||||
- **DMX universe = ArtNet SubNet * 4 + ArtNet Universe**
|
||||
|
||||
#### Resources
|
||||
- https://support.troikatronix.com/support/solutions/articles/13000042899-controlling-led-strips-via-artnet
|
||||
-
|
||||
|
||||
# Hardware
|
||||
|
||||
## LED Strips
|
||||
In order to do different light effects we want to be able to address every LED on its own in a daisy chain way. The best known type is the [Adafruit Neopixel](https://www.adafruit.com/category/275).
|
||||
A good overview about the different LED-strips available: https://www.gindestarled.com/the-ultimate-guide-to-choosing-the-right-addressable-led-strip/
|
||||
|
||||
### LED Pixel
|
||||
Every LED pixel consists of several LEDs (usually RGB(W)), a tiny control chip and passive components. Normally there are 3 connections: power supply, ground and a data line. Every pixel in the system gets an address and the desired LED-control signal is then sent over the data-line and implemented by the tiny LED-controller for each and every pixel.
|
||||
#### LED Types
|
||||
- SMD5050: 5mm x 5mm, very bright and up to 3 leds in one
|
||||
- SMD3528: 3.28mm x 5mm, only one LED, so only one color
|
||||
- LED Cob ([continuous led](https://www.superlightingled.com/24-volt-addressable-rgbw-led-cob-light-strip-ultra-bright-784ledsm-p-5684.html), also as shown in [this video](https://www.youtube.com/watch?v=T4bbk-P0z7w).)
|
||||
|
||||
#### LED Control Chips
|
||||
There are different LED control chips:
|
||||
- WS2811
|
||||
- WS2812
|
||||
- WS2813b
|
||||
|
||||
The WS2812 is the best for us (or WS2813b)
|
||||
![[Pasted image 20231030224554.png]]
|
||||
|
||||
### LED Density
|
||||
This describes how many LEDs per meter. The denser, the higher the resolution, but the more energy is needed and the more complicated the entire system gets (number of controllers, power supplies, etc.)
|
||||
|
||||
### Voltage
|
||||
LEDs exist in 3 voltages: 5V, 12V and 24V. The higher the voltage, the better, because there will be less voltage drop. If too many LEDs are connected in series the last LEDs in the chain could be less bright if the voltage drop is too large (mostly a problem for 5V LEDs). The solution for this is [power injection](https://www.learnchristmaslighting.com/how-do-i-power-christmas-light-pixels-power-injection-101/).
|
||||
|
||||
### Waterproofness
|
||||
|
||||
## Connectors and Cabling
|
||||
Wiring needs to use Fuses, else it can become [very dangerous](https://www.youtube.com/watch?v=hR79ACc9hNs)([video in english](https://www.youtube.com/watch?v=nWC0PkHB8O4) is better).
|
||||
|
||||
|
||||
## Controllers
|
||||
### DMXKing - LEDMX4 Pro
|
||||
https://dmxking.com/led-pixel-control/ledmx4-pro
|
||||
|
||||
### ESP32
|
||||
WLED is a firmware for microcontrollers.
|
||||
Here is a fast introduction https://www.reddit.com/r/WLED/s/YYVw9ggJ1N
|
||||
|
||||
Its easy to install and can be modified to use a mic to add sound reactivity. An example can be found [here](https://www.youtube.com/watch?v=KplepH9BT9w&ab_channel=ChrisMaher).
|
||||
|
||||
# Add-Ons
|
||||
## MIDI-Controller
|
||||
A midi controller can be added to the control unit in order to have a user interface with physical buttons and sliders that can be used during a live event.
|
||||
|
||||
# Shopping List
|
||||
- [ ] Fuse holders and a fuse set
|
||||
- [ ] LED controller
|
||||
- [ ] LED strips
|
||||
|
||||
## Alkademiker Stock
|
||||
- 2x [16x16 panel](https://www.aliexpress.com/item/1005002489849443.html?spm=a2g0o.order_list.order_list_main.57.e4a71802KzlRLG)
|
||||
- 2x [5V, 40A power supply](https://www.aliexpress.com/item/33051556213.html?spm=a2g0o.order_list.order_list_main.52.e4a71802KzlRLG)
|
||||
- Multiple [JST connectors](https://www.aliexpress.com/item/1005001398935971.html?spm=a2g0o.order_list.order_list_main.45.e4a71802KzlRLG).
|
||||
-
|
||||
|
||||
# Power Supplies
|
||||
|
||||
# Software
|
||||
Madrix
|
||||
Jinx
|
||||
RESO
|
||||
[Resolume](https://resolume.com/download/)
|
||||
MadMapper
|
||||
https://github.com/hyperion-project/hyperion.ng
|
||||
https://kno.wled.ge/basics/tutorials/
|
||||
|
||||
|
||||
# Tutorials
|
||||
https://learn.sparkfun.com/tutorials/using-artnet-dmx-and-the-esp32-to-drive-pixels/all
|
||||
13
2 Personal/Home Lab/MAC/Automation.md
Normal file
13
2 Personal/Home Lab/MAC/Automation.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# Project Ideas
|
||||
- send email when TimeMachine Backup has not completed in X days.
|
||||
# Brew
|
||||
|
||||
# Menubar
|
||||
https://macmenubar.com/tag/free/
|
||||
|
||||
# Alfred
|
||||
https://www.youtube.com/watch?v=FXV-zwkRMxo&ab_channel=JeffSu
|
||||
|
||||
Dropzone: https://aptonic.com/
|
||||
|
||||
|
||||
20
2 Personal/Home Lab/MAC/Dotfiles.md
Normal file
20
2 Personal/Home Lab/MAC/Dotfiles.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# How I have setup the dotfiles to be automated.
|
||||
## Mackup
|
||||
A tool to manage my dotfiles and configuration files.
|
||||
https://github.com/lra/mackup
|
||||
|
||||
## Macprefs
|
||||
A tool to backup all the settings of my mac:
|
||||
https://github.com/clintmod/macprefs
|
||||
It seems outdated.
|
||||
|
||||
# VIM
|
||||
## ~/.vimrc
|
||||
```dotfile
|
||||
syntax on # enables syntax highlighing
|
||||
set number
|
||||
```
|
||||
|
||||
# Inspiration
|
||||
- [ ] https://github.com/christophrumpel/dotfiles setup my own backup strategy, also [this](https://github.com/driesvints/dotfiles) #todo/p
|
||||
|
||||
34
2 Personal/Home Lab/MAC/Software Management on MacOS.md
Normal file
34
2 Personal/Home Lab/MAC/Software Management on MacOS.md
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
aliases:
|
||||
- brew
|
||||
- homebrew
|
||||
---
|
||||
Software can come from several different sources:
|
||||
1. App Store
|
||||
2. Just downloaded from the Web
|
||||
3. Homebrew
|
||||
4. built locally
|
||||
|
||||
Whenever possible I use `brew` to manage software and its dependencies on my mac.
|
||||
|
||||
# Automation
|
||||
The update
|
||||
|
||||
# Software Sources
|
||||
- [ ] alle programme von mas-cli zu homebrew wechseln. #todo/p
|
||||
- [ ] script das wöchentlich updates zieht via homebrew #todo/p
|
||||
## Homebrew
|
||||
### Cheatsheat
|
||||
1. ```brew update && brew upgrade `brew outdated` ```
|
||||
2. `brew upgrade && brew upgrade --cask`
|
||||
Upgrades all packages that have been installed through brew.
|
||||
### Autoupdate
|
||||
My mac uses brew to autoupdate every 24 hours.
|
||||
I used the the [autoupdate package](https://github.com/DomT4/homebrew-autoupdate) and the following command for this:
|
||||
`brew autoupdate start 86400 --upgrade --cleanup --immediate --sudo`
|
||||
|
||||
## App Store
|
||||
In order to automate the app store interactions there is a command line interface (CLI) called [mas-cli](https://github.com/mas-cli/mas). It allows us to manage the dependencies in an automated manner.
|
||||
|
||||
- To update all apps run: `mas upgrade`
|
||||
- To list all outdated apps run: `mas outdated`
|
||||
9
2 Personal/Home Lab/MAC/TimeMachine.md
Normal file
9
2 Personal/Home Lab/MAC/TimeMachine.md
Normal file
@@ -0,0 +1,9 @@
|
||||
After upgrading to MacOS 12.7 my time machine backup does not work anymore.
|
||||
|
||||
I have read to debug you can look at the logs:
|
||||
|
||||
``` bash
|
||||
printf '\e[3J' && log show --predicate 'subsystem == "com.apple.TimeMachine"' --info --last 6h | grep -F 'eMac' | grep -Fv 'etat' | awk -F']' '{print substr($0,1,19), $NF}'
|
||||
```
|
||||
|
||||
It couldn't find the disk anymore, even though it was available. Thus, I removed it and re-added it, but it did not recognise the disk as the same. All old backups needed to be deleted and a fresh full backup needed to be done.
|
||||
5
2 Personal/Home Lab/NAS/Backup Strategy.md
Normal file
5
2 Personal/Home Lab/NAS/Backup Strategy.md
Normal file
@@ -0,0 +1,5 @@
|
||||
# Tools
|
||||
1. [restic](https://www.reddit.com/r/emacs/comments/q0i2nb/what_personal_system_do_you_have_to/)
|
||||
|
||||
## Hyperbackup
|
||||
- Setup my raspberry pi at home with a 5TB hard disk and use [this](https://www.reddit.com/r/synology/comments/sdpptz/using_an_ubuntu_server_as_a_backup_target_for/).
|
||||
41
2 Personal/Home Lab/NAS/External Access.md
Normal file
41
2 Personal/Home Lab/NAS/External Access.md
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
Owner: Claudio
|
||||
---
|
||||
# DS-Lite
|
||||
|
||||
My ISP (Salt) uses DS-Lite which basically shares a few IPV4 addresses between a lot of customers and internally route traffic using IPV6 addresses. This means that I only have a static IPV6 address and nothing else.
|
||||
|
||||
If you want to access your home network you will need to either use IPv6, which does not always work (old devices use IPv4) or have a port-mapping service that translates IPv4 traffic to your static IPv6 address.
|
||||
|
||||
|
||||
|
||||
# Other Methods
|
||||
|
||||
## Zerotier
|
||||
|
||||
Zerotier is an amazing tool to do a peer to peer network, it will however not allow anyone to access a service.
|
||||
|
||||
## VPS Forwarder
|
||||
I'm using [[nginx]] to forward ipv4 requests to my static ipv6 address of the NAS. It acts as a reverse server using different ports for different applications and I'm using A-records on my hosting provider to differentiate subdomains into different applications:
|
||||
- [photos.claudiofritsche.com](https://photos.claudiofritsche.com)
|
||||
- [drive.claudiofritsche.com](https://drive.claudiofritsche.com)
|
||||
- [kino.claudiofritsche.com](https://kino.claudiofritsche.com/)
|
||||
|
||||
The nginx subsite has the following config in `sites-availble`:
|
||||
```xml
|
||||
server {
|
||||
|
||||
server_name drive.claudiofritsche.com;
|
||||
location / {
|
||||
proxy_pass https://[2a04:ee41:3:c45c:211:32ff:fec0:4372]:5555;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
then I used certbot to add the ssl: ` sudo certbot --nginx -d drive.claudiofritsche.com`
|
||||
|
||||
and finally reload the nginx service: `sudo systemctl reload nginx`
|
||||
7
2 Personal/Home Lab/NAS/NAS Projects.md
Normal file
7
2 Personal/Home Lab/NAS/NAS Projects.md
Normal file
@@ -0,0 +1,7 @@
|
||||
Self Hosting
|
||||
1. Bitwarden vs Vaultwarden
|
||||
2. MonicaHQ CRM
|
||||
|
||||
# Tasks
|
||||
- [ ] Proper backup solution to an offsite location: https://www.wundertech.net/backup-your-synology-nas-using-hyper-backup-to-a-raspberry-pi-on-site-or-off-site/
|
||||
- [ ] syncthing setup to backup my obsidian vault and then back it up together with the nas
|
||||
8
2 Personal/Home Lab/NAS/NordVPN Setup.md
Normal file
8
2 Personal/Home Lab/NAS/NordVPN Setup.md
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
Owner: CClaudio
|
||||
---
|
||||
I followed this article here: [https://support.nordvpn.com/Connectivity/NAS/1047411072/How-to-Set-up-a-VPN-on-Synology.htm](https://support.nordvpn.com/Connectivity/NAS/1047411072/How-to-Set-up-a-VPN-on-Synology.htm).
|
||||
|
||||
This worked well.
|
||||
|
||||
I stored the required files on the drive.
|
||||
10
2 Personal/Home Lab/NAS/Photo Apps.md
Normal file
10
2 Personal/Home Lab/NAS/Photo Apps.md
Normal file
@@ -0,0 +1,10 @@
|
||||
- [ ] Immich
|
||||
- [ ] Synology photos
|
||||
- [ ] photoprism
|
||||
# Library Apps
|
||||
## Immich
|
||||
[Immich](https://immich.app/) is a fast changing app that apparently has better face recognition than Synology Photos.
|
||||
|
||||
# Photo Organization
|
||||
## [Phockup](https://github.com/ivandokov/phockup)
|
||||
This command line tool allows to sort photos in a date based folder structure.
|
||||
1
2 Personal/Home Lab/NAS/SSH.md
Normal file
1
2 Personal/Home Lab/NAS/SSH.md
Normal file
@@ -0,0 +1 @@
|
||||
I changed the port to 1717.
|
||||
19
2 Personal/Home Lab/NAS/Virtual Machine Hosting.md
Normal file
19
2 Personal/Home Lab/NAS/Virtual Machine Hosting.md
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
Owner: CClaudio
|
||||
---
|
||||
# vDSM to run it through a VPN
|
||||
|
||||
- [https://www.reddit.com/r/synology/comments/ee1hdc/docker_transmissionvpn_vs_virtual_dsm_download/](https://www.reddit.com/r/synology/comments/ee1hdc/docker_transmissionvpn_vs_virtual_dsm_download/)
|
||||
- [https://www.reddit.com/r/synology/comments/dtxzo6/comment/f6zljpg/](https://www.reddit.com/r/synology/comments/dtxzo6/comment/f6zljpg/)
|
||||
|
||||
> [!info] Download Station over VPN
|
||||
>
|
||||
> [https://www.reddit.com/r/synology/comments/qsfhf5/download_station_over_vpn/](https://www.reddit.com/r/synology/comments/qsfhf5/download_station_over_vpn/)
|
||||
|
||||
|
||||
|
||||
## Todos
|
||||
|
||||
- [ ] add daily cron job to move movie downloads from downloads to video folder
|
||||
- [ ] Change firewall settings for vDSM to allow only VPN traffic
|
||||
- [ ] Enable external access through my main nas
|
||||
25
2 Personal/Home Lab/Repairshop/Repair Climbing Light.md
Normal file
25
2 Personal/Home Lab/Repairshop/Repair Climbing Light.md
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
Created time: 2023-07-02T12:35
|
||||
Project ID: RepairClimbingLight
|
||||
Status: In progress
|
||||
---
|
||||
Overview
|
||||
|
||||
Druckknöpfe sind Kabutt
|
||||
|
||||
![[image.jpg]]
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Links nach rechts
|
||||
|
||||
- on/off
|
||||
- 50%
|
||||
- 100%
|
||||
- Gnd
|
||||
|
||||
|
||||
|
||||
Die aktion passiert immer wenn der Knopf losgelassen wird.
|
||||
81
2 Personal/Home Lab/Repairshop/Repair Kenwood.md
Normal file
81
2 Personal/Home Lab/Repairshop/Repair Kenwood.md
Normal file
@@ -0,0 +1,81 @@
|
||||
---
|
||||
tags:
|
||||
- DIY
|
||||
- Repair
|
||||
Created time: 2022-12-05T19:37
|
||||
Project ID: RepairKenwood
|
||||
Status: Not started
|
||||
---
|
||||
# Overview
|
||||
|
||||
|
||||
|
||||
# Kenwood Prospero KM262
|
||||
|
||||
The machine has stopped working and has been making clicking sounds whenever it got turned on. This seems to be a relay that is activated in order to allow power to flow to the motor.
|
||||
|
||||
## In Search of the Fault
|
||||
|
||||
### Other Posts with KM262 Faults
|
||||
|
||||
> [!info]
|
||||
>
|
||||
> [https://www.fixya.com/support/t15247441-kenwood_prospero_km262_stopped_working](https://www.fixya.com/support/t15247441-kenwood_prospero_km262_stopped_working)
|
||||
|
||||
> [!info]
|
||||
>
|
||||
> [https://www.fixya.com/support/t20913365-km262_will_not_start](https://www.fixya.com/support/t20913365-km262_will_not_start)
|
||||
|
||||
> [!info] Hyperentang's Blog
|
||||
> First, a correction.
|
||||
> [https://hyperentang.wordpress.com/page/2/](https://hyperentang.wordpress.com/page/2/)
|
||||
|
||||
> [!info] Panne Kenwood km262[résolu]
|
||||
> Bonjour mon robot c'est arrêté,après vérification il semblerait que la résistance R1 de la carte de commande soit hs , quelqu'un sait t'il les
|
||||
> [https://forums.futura-sciences.com/depannage/914634-panne-kenwood-km262-resolu.html](https://forums.futura-sciences.com/depannage/914634-panne-kenwood-km262-resolu.html)
|
||||
|
||||
> [!info]
|
||||
>
|
||||
> [https://www.fixya.com/support/t25382723-put_kenwood_km262_back_together_get](https://www.fixya.com/support/t25382723-put_kenwood_km262_back_together_get)
|
||||
|
||||
Especially the last link sounds very familiar to my problem (described below in the section about the sensor).
|
||||
|
||||
### Switches
|
||||
|
||||
With the multimeter I have probed all the different switches and potentiometers. They all seem to work. I was a bit confused by the main knob’s potentiometer, which gave weird readings
|
||||
|
||||
### Relay Test
|
||||
|
||||
I have found the exact relay which is on the board: Song Chuan [845 - 2C - V](https://www.mouser.com/datasheet/2/378/845-179617.pdf). It is a double pole double throw relay with the following schematics:
|
||||
|
||||
![[Untitled.png]]
|
||||
|
||||
Relay Schematics - double pole, double throw
|
||||
|
||||
The low voltage coil side is rated for up to 24V, whereas the high-power switching side is rated up to 230V and 5A.
|
||||
|
||||
I have [tested to energize](https://www.google.com/search?q=test+relay+with+multimeter&oq=test+relay&aqs=chrome.1.69i57j0i512l9.9664j0j1&sourceid=chrome&ie=UTF-8#kpvalbx=_7VmOY-TQMcqJ9u8PxZysyAQ_43) the coil with a car battery (13.3V), which immediately made the clicking sound. The switch did get thrown to the other side (tested with a multimeter, while powering the relay). —> The relay is working.
|
||||
|
||||
|
||||
|
||||
### Sensor by Food Processor (Name: KW706575, Marking: 137 103b)
|
||||
|
||||
There is a sensor which is attached somewhere close to the food-processor that might be the cause. I have found spareparts for it online, but I don’t know exactly what it is for.
|
||||
|
||||
> [!info] Kenwood Position Speed Sensor
|
||||
> Buy Kenwood spares for your cooker, dishwasher, fridge, freezer, tumble dryer and washing machine.
|
||||
> [https://www.4kenwood.co.uk/prospero/km262/position-speed-sensor/product.pl?pid=1352278&path=590704:622774,590797&model_ref=13827737](https://www.4kenwood.co.uk/prospero/km262/position-speed-sensor/product.pl?pid=1352278&path=590704:622774,590797&model_ref=13827737)
|
||||
|
||||
> [!info]
|
||||
>
|
||||
> [https://de.aliexpress.com/item/1005002331737461.html?spm=a2g0o.detail.1000016.1.1dd238b7Jg2wRM&isOrigTitle=true](https://de.aliexpress.com/item/1005002331737461.html?spm=a2g0o.detail.1000016.1.1dd238b7Jg2wRM&isOrigTitle=true)
|
||||
|
||||
> [!info] Kenwood Position Speed Sensor
|
||||
> Buy Kenwood spares for your cooker, dishwasher, fridge, freezer, tumble dryer and washing machine.
|
||||
> [https://www.4kenwood.co.uk/prospero/km262/position-speed-sensor/product.pl?pid=1352278&path=590704:622774,590797&model_ref=13827737](https://www.4kenwood.co.uk/prospero/km262/position-speed-sensor/product.pl?pid=1352278&path=590704:622774,590797&model_ref=13827737)
|
||||
|
||||
It seems to me that the sensor is the culprit, because whenever I move it somewhere else, it behaves differently and sometimes the motor starts turning very fast, out of nowhere. I managed to get the normal start-up behaviour a few times in a row and as soon as I moved the sensor around it stopped working once again. But it was not very logical and I cannot be certain.
|
||||
|
||||
|
||||
|
||||
# Research
|
||||
3
2 Personal/Home Lab/SmartHome/Smart Home.md
Normal file
3
2 Personal/Home Lab/SmartHome/Smart Home.md
Normal file
@@ -0,0 +1,3 @@
|
||||
I have found a lot of devices here https://athom.aliexpress.com/store/5790427
|
||||
A lot of them work with the esp32 controller
|
||||
|
||||
7
2 Personal/Home Lab/Syncthing.md
Normal file
7
2 Personal/Home Lab/Syncthing.md
Normal file
@@ -0,0 +1,7 @@
|
||||
A great synchronisation tool that works on all devices, without having to use a cloud.
|
||||
|
||||
# Debugging
|
||||
When debugging a Syncthing setup you can go to the gui, settings and logs to show log messages. In the log window that pops up there is a second tab where you can enable different debugging messages. The `model` messages are [usually the most important](https://forum.syncthing.net/t/failed-items-pull-generic-error/19323/6) to debug.
|
||||
![[Pasted image 20231212183600.png]]
|
||||
|
||||
|
||||
77
2 Personal/Home Lab/VPS/Netcup VPS.md
Normal file
77
2 Personal/Home Lab/VPS/Netcup VPS.md
Normal file
@@ -0,0 +1,77 @@
|
||||
- [Customer Control Panel](https://www.customercontrolpanel.de/): To add more VPS instances or to change an instance.
|
||||
- [Server Control Panel](https://www.servercontrolpanel.de/SCP/): To modify single server.
|
||||
|
||||
# SysAdmin
|
||||
First login:
|
||||
``` bash
|
||||
❯ ssh root@v2202403219121260300.supersrv.de
|
||||
The authenticity of host 'v2202403219121260300.supersrv.de (194.59.207.89)' can't be established.
|
||||
ED25519 key fingerprint is SHA256:bS+PhQlDWqf8OmtJ5EpLSpipne4gpoUarU/VVR0yYB8.
|
||||
This key is not known by any other names
|
||||
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
|
||||
Warning: Permanently added 'v2202403219121260300.supersrv.de' (ED25519) to the list of known hosts.
|
||||
root@v2202403219121260300.supersrv.de's password:
|
||||
Permission denied, please try again.
|
||||
root@v2202403219121260300.supersrv.de's password:
|
||||
Linux v2202403219121260300 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64
|
||||
|
||||
The programs included with the Debian GNU/Linux system are free software;
|
||||
the exact distribution terms for each program are described in the
|
||||
individual files in /usr/share/doc/*/copyright.
|
||||
|
||||
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
|
||||
permitted by applicable law.
|
||||
_____________________________________________________________________
|
||||
WARNING! Your environment specifies an invalid locale.
|
||||
The unknown environment variables are:
|
||||
LC_CTYPE=UTF-8
|
||||
This can affect your user experience significantly, including the
|
||||
ability to manage packages. You may install the locales by running:
|
||||
|
||||
sudo dpkg-reconfigure locales
|
||||
|
||||
and select the missing language. Alternatively, you can install the
|
||||
locales-all package:
|
||||
|
||||
sudo apt-get install locales-all
|
||||
|
||||
To disable this message for all users, run:
|
||||
sudo touch /var/lib/cloud/instance/locale-check.skip
|
||||
_____________________________________________________________________
|
||||
```
|
||||
|
||||
# OS
|
||||
|
||||
|
||||
# Apps
|
||||
|
||||
|
||||
## Ideas
|
||||
Huge list of ideas: https://github.com/awesome-selfhosted/awesome-selfhosted?tab=readme-ov-file#miscellaneous
|
||||
- [Shaarli](https://github.com/shaarli/Shaarli)
|
||||
- [firefly-III](https://www.firefly-iii.org/) (finance manager)
|
||||
- [gitea](https://about.gitea.com/)
|
||||
- gitlab
|
||||
- https://github.com/awesome-selfhosted/awesome-selfhosted?tab=readme-ov-file#document-management---e-books
|
||||
- calibre-web
|
||||
- [leon](https://blog.getleon.ai/i-ran-away-from-open-source/)
|
||||
- [rally](https://rallly.co/) (doodle alternative )
|
||||
- [e-commerce stuff](https://github.com/awesome-selfhosted/awesome-selfhosted?tab=readme-ov-file#e-commerce)?
|
||||
- [Geneaology](https://github.com/awesome-selfhosted/awesome-selfhosted?tab=readme-ov-file#genealogy) für Toni?
|
||||
- Homeassistant (eher auf NAS)
|
||||
- [MindMap tool](https://github.com/awesome-selfhosted/awesome-selfhosted?tab=readme-ov-file#knowledge-management-tools)?
|
||||
- [vanDam](https://github.com/Floppy/van_dam): asset manager for 3d files
|
||||
- [Kasm](https://kasmweb.com/) Ubuntu on the web
|
||||
- octave online
|
||||
- overleaf
|
||||
- note mark (access my obsidian notes from the web?)
|
||||
- bitwarden / vaultwarden
|
||||
# TODO
|
||||
- [ ] Vertrag von ganz am anfang: was ist das, brauche ich das?
|
||||
- [ ] Oh-My-Zsh installieren + mein VPS setup script als gist speichern
|
||||
- [ ] Root login with pw verbieten, Server security measures lernen und implementieren
|
||||
- [ ] Alkademiker.ch darauf hosten
|
||||
- [ ] Mail alternative finden
|
||||
- [ ] Opensource booking platform? To do scheduling next time
|
||||
- [ ] rally.alkademiker.ch für doodles
|
||||
- [ ]
|
||||
3
2 Personal/Home Lab/VPS/Selfhosting.md
Normal file
3
2 Personal/Home Lab/VPS/Selfhosting.md
Normal file
@@ -0,0 +1,3 @@
|
||||
|
||||
# Ideas
|
||||
- [ ]
|
||||
156
2 Personal/Home Lab/VPS/Server Setup.md
Normal file
156
2 Personal/Home Lab/VPS/Server Setup.md
Normal file
@@ -0,0 +1,156 @@
|
||||
# General Server Settings
|
||||
1. change root password: `sudo passwd root`
|
||||
2. From client: upload ssh-keys: `ssh-copy-id -i /path/to/pub_key user@server`
|
||||
3. On client: add Host to config:
|
||||
``` txt
|
||||
Host server_name
|
||||
HostName server_ip
|
||||
User username
|
||||
IdentityFile ~/.ssh/private_key
|
||||
```
|
||||
4. Verify ssh-key login: `ssh server_name -v`: check if authentication is made through the ssh-key. Look out for offering and accepting key:
|
||||
```
|
||||
debug1: Offering public key: keyfile RSA SHA256:HASH explicit
|
||||
debug1: Server accepts key: keyfile RSA SHA256:HASH explicit
|
||||
```
|
||||
5. disable password login:
|
||||
1. `vim /etc/ssh/sshd_config`:
|
||||
Change `yes` to `no` in line `PasswordAuthentication`
|
||||
2. `sudo service ssh restart`
|
||||
|
||||
## Add Another User
|
||||
Before continuing with everything else, we should add another user account in order not to use root all the time. This is just good practices.
|
||||
Follow the instructions here:
|
||||
https://www.digitalocean.com/community/tutorials/initial-server-setup-with-debian-10
|
||||
https://askubuntu.com/questions/521469/oh-my-zsh-for-the-root-and-for-all-user
|
||||
|
||||
```zsh
|
||||
export NEWUSER=claudio
|
||||
adduser $NEWUSER
|
||||
usermod -aG sudo $NEWUSER. # allow sudo rights
|
||||
```
|
||||
|
||||
## Setup a Firewall
|
||||
```zsh
|
||||
apt update
|
||||
apt install ufw
|
||||
ufw allow OpenSSH
|
||||
ufw enable
|
||||
```
|
||||
|
||||
# Software Setup
|
||||
- [ ] Add locale instructions #todo/p
|
||||
``` bash
|
||||
|
||||
# 1. update
|
||||
sudo apt update && sudo apt upgrade -y
|
||||
|
||||
# 2. Install server programs
|
||||
sudo apt install -y vim git curl wget lsb-release htop plocate ncdu nmap
|
||||
|
||||
# 3. Locale
|
||||
|
||||
```
|
||||
|
||||
## ZSH and Oh-my-zsh
|
||||
``` zsh
|
||||
# 1. install packages: zsh, fonts and fuzzy search fzf
|
||||
sudo apt install -y zsh fonts-font-awesome fontconfig fzf
|
||||
|
||||
# 2. Download Oh-My-Zsh, fonts and move everything at the correct place
|
||||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
||||
|
||||
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
|
||||
|
||||
sudo apt-get install -y fonts-font-awesome
|
||||
|
||||
wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
|
||||
wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
|
||||
mkdir -p ~/.local/share/fonts/
|
||||
mv PowerlineSymbols.otf ~/.local/share/fonts/
|
||||
fc-cache -vf ~/.local/share/fonts/
|
||||
mkdir -p ~/.config/fontconfig/conf.d/
|
||||
mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/
|
||||
|
||||
git clone https://github.com/abertsch/Menlo-for-Powerline.git
|
||||
sudo mv Menlo-for-Powerline/Menlo*.ttf /usr/share/fonts/
|
||||
rm -rf Menlo-for-Powerline # clean up
|
||||
|
||||
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
|
||||
|
||||
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
|
||||
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
|
||||
|
||||
# 3. Apply settings for reverse serach
|
||||
# fzf - better reverse search
|
||||
sed -i '$ a # fzf - Better Reverse Search' ~/.zshrc
|
||||
sed -i '$ a source /usr/share/doc/fzf/examples/key-bindings.zsh' ~/.zshrc
|
||||
sed -i '$ a source /usr/share/doc/fzf/examples/completion.zsh' ~/.zshrc
|
||||
|
||||
# 4. Install Other plugins
|
||||
# FZF-Tab
|
||||
git clone https://github.com/Aloxaf/fzf-tab ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/fzf-tab
|
||||
|
||||
# 5. Install Autojump
|
||||
sudo apt install -y autojump
|
||||
# sed -i '$ a ' ~/.zshrc # empty line not working
|
||||
sed -i '$ a # Autojump requirements' ~/.zshrc
|
||||
sed -i '$ a source /usr/share/autojump/autojump.sh' ~/.zshrc
|
||||
|
||||
|
||||
# 6. Add Plugins and main Theme to zshrc
|
||||
sed -i 's@^ZSH_THEME=.*$@ZSH_THEME="powerlevel10k/powerlevel10k"@g' ~/.zshrc
|
||||
|
||||
# Install fzf-tab
|
||||
git clone https://github.com/Aloxaf/fzf-tab ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/fzf-tab
|
||||
|
||||
|
||||
sed -i 's@plugins=(git)@plugins=(git zsh-autosuggestions zsh-syntax-highlighting autojump extract fzf-tab)@g' ~/.zshrc
|
||||
```
|
||||
|
||||
## Install Command Line Tools
|
||||
For inspiration [this collection](https://dev.to/lissy93/cli-tools-you-cant-live-without-57f6) is interesting.
|
||||
```zsh
|
||||
# bat: better cat
|
||||
sudo apt install -y bat
|
||||
mkdir -p ~/.local/bin
|
||||
ln -s /usr/bin/batcat ~/.local/bin/bat
|
||||
sed -i '$ a # Custom PATH' ~/.zshrc
|
||||
sed -i '$ a export PATH=~/.local/bin:$PATH' ~/.zshrc
|
||||
```
|
||||
|
||||
```zsh
|
||||
sudo apt install -y tree
|
||||
# Make sure to add those aliases to .zshrc
|
||||
# alias lstd="tree -d"
|
||||
# alias lst2="tree -L 2"
|
||||
# alias lst3="tree -L 3"
|
||||
# alias lst4="tree -L 4"
|
||||
# alias lst="tree"
|
||||
sed -i '/# Example aliases/a alias lstd="tree -d"\nalias lst2="tree -L 2"\nalias lst3="tree -L 3"\nalias lst4="tree -L 4"\nalias lst="tree"' ~/.zshrc
|
||||
```
|
||||
|
||||
```zsh
|
||||
sudo apt install -y duf ## better disk usage tool
|
||||
sudo apt install -y exa ## better ls (actually eza is newer)
|
||||
```
|
||||
## File Manager
|
||||
- [ ] Choose one
|
||||
- [ ] https://www.tecmint.com/linux-terminal-file-managers/
|
||||
|
||||
# Webhosting Setup
|
||||
|
||||
## 6tunnel
|
||||
6Tunnel is used to forward a request to a ipv6 address on a specific port. This is useful, because my network provider doesn't assign a static IP address to my home router, so I can use the static IP address of the VPS and forward to the static ipv6 address of my NAS.
|
||||
|
||||
## Install Docker
|
||||
We use [[Docker]] and [[Docker Compose]] for easier setup of different setups. I followed this setup, but it is not up to date. Nowadays the `apt-key add` command is done differently. I finally followed the instructions on the [official website](https://docs.docker.com/engine/install/debian/).
|
||||
```zsh
|
||||
# Allow docker without sudo
|
||||
sudo usermod -aG docker ${USER}
|
||||
```
|
||||
|
||||
I installed [[Docker Compose]] using the instructions found [here](https://docs.docker.com/compose/install/linux/).
|
||||
# Usage Tutorials
|
||||
## fzf
|
||||
https://www.freecodecamp.org/news/fzf-a-command-line-fuzzy-finder-missing-demo-a7de312403ff/
|
||||
2
2 Personal/Home Lab/VPS/Server.md
Normal file
2
2 Personal/Home Lab/VPS/Server.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# Harddrive
|
||||
## Drivers: SCSI vs VIRTIO vs IDE
|
||||
1
2 Personal/Home Lab/iPhone/Maps.md
Normal file
1
2 Personal/Home Lab/iPhone/Maps.md
Normal file
@@ -0,0 +1 @@
|
||||
https://apps.apple.com/ch/app/mapout/id477094081?l=en-GB
|
||||
Reference in New Issue
Block a user