11-25
This commit is contained in:
		
							
								
								
									
										27
									
								
								_-Review/acme.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								_-Review/acme.md
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,27 @@ | ||||
| --- | ||||
| created: 2024-11-13T01:48:24.000Z | ||||
| type: note | ||||
| updated: 2024-11-13T01:48:24.000Z | ||||
| --- | ||||
|  | ||||
| # acme | ||||
|  | ||||
| ```bash 638666368162310000 = Thu Nov 07 2024 21:26:55 GMT-0700 (Mountain Standard Time) | ||||
| # https://www.snbforums.com/threads/duckdns-with-letsencrypt.86114/ | ||||
| cd /tmp | ||||
| git clone https://github.com/acmesh-official/acme.sh.git | ||||
| cd /tmp/acme.sh | ||||
| ./acme.sh --install -m mikepharesjr@msn.com | ||||
| export DuckDNS_Token=1d3fc707-7052-4459-a624-fb01250f00b9 | ||||
| echo $DuckDNS_Token | ||||
| ./acme.sh --register-account -m mikepharesjr@msn.com | ||||
| ./acme.sh --set-default-ca --server letsencrypt | ||||
| # https://intodns.com/ | ||||
| ./acme.sh --issue --dns dns_duckdns -d '*.jmlc.duckdns.org' --debug --home /root/.acme.sh --dnssleep 120 --days 90 --ecc --server https://acme-v02.api.letsencrypt.org/directory | ||||
| cp -R /root/.acme.sh/\*.jmlc.duckdns.org_ecc/ /root/.acme.sh/wild-jmlc | ||||
| mv /root/.acme.sh/wild-jmlc/\*.jmlc.duckdns.org.cer /root/.acme.sh/wild-jmlc/jmlc.duckdns.org.cer | ||||
| mv /root/.acme.sh/wild-jmlc/\*.jmlc.duckdns.org.conf /root/.acme.sh/wild-jmlc/jmlc.duckdns.org.conf | ||||
| mv /root/.acme.sh/wild-jmlc/\*.jmlc.duckdns.org.csr /root/.acme.sh/wild-jmlc/jmlc.duckdns.org.csr | ||||
| mv /root/.acme.sh/wild-jmlc/\*.jmlc.duckdns.org.csr.conf /root/.acme.sh/wild-jmlc/jmlc.duckdns.org.csr.conf | ||||
| mv /root/.acme.sh/wild-jmlc/\*.jmlc.duckdns.org.key /root/.acme.sh/wild-jmlc/jmlc.duckdns.org.key | ||||
| ``` | ||||
| @ -194,99 +194,6 @@ cat /etc/bash_history_2024-11-05.txt | ||||
| exit | ||||
| ``` | ||||
|  | ||||
| ## Podman Quadlet Rootless Example | ||||
|  | ||||
| ```bash Tue Nov 05 2024 17:54:37 GMT-0700 (Mountain Standard Time) | ||||
| apt-get install podman -y | ||||
| apt-cache rdepends podman-compose | ||||
| apt-get install podman-compose -y | ||||
| apt-get install sudo | ||||
| # apt-get remove podman-compose -y | ||||
| # apt-get purge podman-compose -y | ||||
| adduser podman | ||||
| mkdir /home/podman/.ssh | ||||
| cp /root/.ssh/authorized_keys /home/podman/.ssh/authorized_keys | ||||
| chown podman:podman -R /home/podman | ||||
| adduser podman sudo | ||||
| loginctl enable-linger | ||||
| sudo -iu podman | ||||
| # 2. | ||||
| podman --version | ||||
| # podman version 4.3.1 | ||||
| # https://www.redhat.com/sysadmin/quadlet-podman | ||||
| cd ~/ | ||||
| mkdir -p .config/containers/systemd/ | ||||
| # nano .config/containers/systemd/mysleep.container | ||||
| exit | ||||
| ``` | ||||
|  | ||||
| ```bash Tue Nov 05 2024 17:55:28 GMT-0700 (Mountain Standard Time) | ||||
| # cp -R /run/user/0/ /run/user/1000/ | ||||
| mkdir -p /run/user/1000/ | ||||
| chown -R podman:podman /run/user/1000/ | ||||
| sudo -iu podman | ||||
| cd ~/ | ||||
| mkdir -p ~/.bashrc.d | ||||
| echo "export XDG_RUNTIME_DIR=/run/user/$(id -u)" > ~/.bashrc.d/systemd | ||||
| source ~/.bashrc.d/systemd | ||||
| sudo loginctl enable-linger 1000 | ||||
| systemctl --user daemon-reload | ||||
| podman ps -a --sort names | ||||
| # systemctl --user enable --now podman.socket | ||||
| # systemctl --user status mysleep.service | ||||
| ``` | ||||
|  | ||||
| ## how to run a shell scripts at every login | ||||
|  | ||||
| - [how-to-run-a-shell-scripts-at-every-login](https://serverfault.com/questions/782433/how-to-run-a-shell-scripts-at-every-login-in-centos) | ||||
|  | ||||
| ```bash Tue Nov 05 2024 17:56:47 GMT-0700 (Mountain Standard Time) | ||||
| nano ~/.bash_profile | ||||
| ``` | ||||
|  | ||||
| ```conf Tue Nov 05 2024 17:56:49 GMT-0700 (Mountain Standard Time) | ||||
| cd ~/ | ||||
| mkdir -p ~/.bashrc.d | ||||
| echo "export XDG_RUNTIME_DIR=/run/user/$(id -u)" > ~/.bashrc.d/systemd | ||||
| source ~/.bashrc.d/systemd | ||||
| loginctl enable-linger 1000 | ||||
| systemctl --user daemon-reload | ||||
| podman ps -a --sort names | ||||
| ``` | ||||
|  | ||||
| - [user-flag-rootless-containers](https://www.redhat.com/en/blog/user-flag-rootless-containers) | ||||
|  | ||||
| ```bash Tue Nov 05 2024 18:36:38 GMT-0700 (Mountain Standard Time) | ||||
| podman run --user 1000 -d fedora sleep 10 | ||||
| find / -name "*fedora*" 2>/dev/null | ||||
| podman run --user 1000 -d docker.io/louislam/uptime-kuma | ||||
| ``` | ||||
|  | ||||
| ```bash Tue Nov 05 2024 19:17:28 GMT-0700 (Mountain Standard Time) | ||||
| exit | ||||
| podman pull docker.io/louislam/uptime-kuma:1 | ||||
| systemctl --user daemon-reload | ||||
| systemctl --user start uptime-kuma-server | ||||
| # Failed to start uptime-kuma-server.service: Unit uptime-kuma-server.service not found. | ||||
| # Podman rootless unit search path | ||||
| # Quadlet files for non-root users can be placed in the following directories | ||||
| # ~/.config/containers/systemd/ | ||||
| chown -R podman:podman /home/podman/.config/containers/systemd | ||||
| chown -R podman:podman /home/podman | ||||
| systemctl --user list-unit-files | ||||
| ls -la /usr/libexec/podman | ||||
| # lrwxrwxrwx  1 root root      19 Nov  4  2021 catatonit -> ../../bin/catatonit | ||||
| # -rwxr-xr-x  1 root root 1999200 Oct  1 14:54 quadlet | ||||
| # -rwxr-xr-x  1 root root 3558560 Oct  1 14:54 rootlessport | ||||
| /usr/libexec/podman/quadlet -dryrun --user | ||||
| /usr/libexec/podman/quadlet --user /home/podman/libexec-podman-quadlet-output | ||||
| # -bash: /usr/libexec/podman/quadlet: No such file or directory | ||||
| systemctl enable podman.socket | ||||
| systemctl start podman.socket | ||||
| apt install software-properties-common uidmap -y | ||||
| apt-get install -y libapparmor-dev | ||||
| ``` | ||||
|  | ||||
| ## Arch DMS | ||||
|  | ||||
| - [arc-releases](https://github.com/AuxXxilium/arc/releases) | ||||
|  | ||||
| @ -5,7 +5,7 @@ progress: 0 | ||||
| tags: | ||||
|   - Hosts | ||||
| type: note | ||||
| updated: 2024-11-11T21:10:59.698Z | ||||
| updated: 2024-11-13T01:47:38.000Z | ||||
| --- | ||||
|  | ||||
| # Cockpit | ||||
| @ -22,6 +22,10 @@ apt-get install cockpit cockpit-podman -y | ||||
| systemctl enable --now cockpit.socket | ||||
| ``` | ||||
|  | ||||
| ## Cockpit SSL | ||||
|  | ||||
| - [Proxying-Cockpit-over-NGINX](https://cockpit-project.org/external/wiki/Proxying-Cockpit-over-NGINX) | ||||
|  | ||||
| ```bash 1731356291510 = 638669530915100000 = Mon Nov 11 2024 13:18:11 GMT-0700 (Mountain Standard Time) | ||||
| systemctl restart cockpit.service | ||||
| systemctl restart cockpit.socket | ||||
|  | ||||
| @ -1,7 +1,7 @@ | ||||
| --- | ||||
| created: 2024-02-25T00:52:01.425Z | ||||
| type: topic | ||||
| updated: 2024-11-02T15:37:49.000Z | ||||
| updated: 2024-11-25T20:45:14.336Z | ||||
| --- | ||||
|  | ||||
| # dotnet | ||||
| @ -160,3 +160,60 @@ dotnet_diagnostic.CA1861.severity = none # CA1861: Prefer 'static readonly' fiel | ||||
| dotnet_diagnostic.JSON002.severity = warning # JSON002: Probable JSON string detected | ||||
| dotnet_diagnostic.IDE0230.severity = warning # IDE0230: Use UTF-8 string literal | ||||
| ``` | ||||
|  | ||||
| ```bash 1731863670156 = 638674604701560000 = Sun Nov 17 2024 10:14:29 GMT-0700 (Mountain Standard Time) | ||||
| # snap install dotnet-sdk --classic --channel 9.0/stable | ||||
| # snap install dotnet-sdk --classic --stable | ||||
| # snap remove dotnet-sdk | ||||
| snap install dotnet-sdk --classic --channel latest/stable | ||||
| export DOTNET_ROOT=/snap/dotnet-sdk/current | ||||
| # ~/.bash_profile | ||||
| # ~/.bashrc | ||||
| dotnet --info | ||||
| ``` | ||||
|  | ||||
| ```bash 1732378004187 = 638679748041870000 = Sat Nov 23 2024 09:06:43 GMT-0700 (Mountain Standard Time) | ||||
| wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb | ||||
| dpkg -i packages-microsoft-prod.deb | ||||
| apt-get update | ||||
| apt-get install -y dotnet-sdk-9.0 | ||||
| rm packages-microsoft-prod.deb | ||||
| dotnet --info | ||||
| ``` | ||||
|  | ||||
| ```bash | ||||
| mkdir -p ~/.microsoft/usersecrets/cc24ad7a-1d95-4c47-a3ea-0d8475ab06da | ||||
| nano ~/.microsoft/usersecrets/cc24ad7a-1d95-4c47-a3ea-0d8475ab06da/secrets.json | ||||
| ``` | ||||
|  | ||||
| ```bash 1732478061005 = 638680748610050000 = Sun Nov 24 2024 12:54:20 GMT-0700 (Mountain Standard Time) | ||||
| dotnet nuget why Map/Map.csproj System.Private.Uri | ||||
| ``` | ||||
|  | ||||
| ```conf 1732559357181 = 638681561571810000 = Mon Nov 25 2024 11:29:16 GMT-0700 (Mountain Standard Time) | ||||
| # New line preferences | ||||
| csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = true | ||||
| csharp_style_allow_blank_line_after_token_in_arrow_expression_clause_experimental = true | ||||
| csharp_style_allow_blank_line_after_token_in_conditional_expression_experimental = true | ||||
| csharp_style_allow_blank_lines_between_consecutive_braces_experimental = false | ||||
| csharp_style_allow_embedded_statements_on_same_line_experimental = true | ||||
|  | ||||
| #### C# Formatting Rules #### | ||||
|  | ||||
| # New line preferences | ||||
| csharp_new_line_before_catch = false | ||||
| csharp_new_line_before_else = false | ||||
| csharp_new_line_before_finally = false | ||||
| csharp_new_line_before_members_in_anonymous_types = true | ||||
| csharp_new_line_before_members_in_object_initializers = true | ||||
| csharp_new_line_before_open_brace = none | ||||
| csharp_new_line_between_query_expression_clauses = true | ||||
| ``` | ||||
|  | ||||
| ```conf 1732567489197 = 638681642891970000 = Mon Nov 25 2024 13:44:48 GMT-0700 (Mountain Standard Time) | ||||
| #### .NET Coding Conventions #### | ||||
|  | ||||
| # Organize usings | ||||
| dotnet_separate_import_directive_groups = true | ||||
| dotnet_sort_system_directives_first = true | ||||
| ``` | ||||
|  | ||||
							
								
								
									
										10
									
								
								_-Review/firefox.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								_-Review/firefox.md
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,10 @@ | ||||
| --- | ||||
| created: 2024-11-13T01:28:56.000Z | ||||
| type: note | ||||
| updated: 2024-11-13T01:28:56.000Z | ||||
| --- | ||||
|  | ||||
| # Firefox | ||||
|  | ||||
| - [docker-firefox](https://github.com/jlesage/docker-firefox) | ||||
| - [ha-firefox](https://github.com/Mincka/ha-addons/tree/main/firefox) | ||||
| @ -8,7 +8,7 @@ tags: | ||||
|   - LinkPC | ||||
|   - Gitea | ||||
| type: note | ||||
| updated: 2024-08-05T21:46:07.493Z | ||||
| updated: 2024-11-24T00:42:09.000Z | ||||
| --- | ||||
|  | ||||
| # Gitea | ||||
| @ -308,15 +308,34 @@ User=act_runner | ||||
| WantedBy=multi-user.target | ||||
| ``` | ||||
|  | ||||
|  | ||||
|  | ||||
| ```bash | ||||
| L:\Git\tea\tea-0.9.2-windows-amd64.exe login phares | ||||
| L:\Git\tea\tea-0.9.2-windows-amd64.exe login delete phares | ||||
| L:\Git\tea\tea-0.9.2-windows-amd64.exe login add | ||||
| ``` | ||||
|  | ||||
|  | ||||
|  | ||||
| #  | ||||
| ```bash | ||||
| L:\Git\tea\tea-0.9.2-windows-amd64.exe login mikep | ||||
| L:\Git\tea\tea-0.9.2-windows-amd64.exe org | ||||
| ``` | ||||
|  | ||||
| ## Push Docker Image | ||||
|  | ||||
| ```bash 1732388683697 = 638679854836970000 = Sat Nov 23 2024 12:04:43 GMT-0700 (Mountain Standard Time) | ||||
| # build an image with tag | ||||
| # docker build -t {registry}/{owner}/{image}:{tag} . | ||||
| # docker build -t https://33aada599f8e245782e68931fe2629a959af5d26@gitea.phares.duckdns.org/phares3757/immich-to-slideshow-api:latest | ||||
| # docker build https://33aada599f8e245782e68931fe2629a959af5d26@gitea.phares.duckdns.org/phares3757/immich-to-slideshow-api:latest | ||||
| # docker build -t gitea.phares.duckdns.org/phares3757/immich-to-slideshow-api:latest | ||||
| # docker build gitea.phares.duckdns.org/phares3757/immich-to-slideshow-api:latest | ||||
| # docker push https://33aada599f8e245782e68931fe2629a959af5d26@gitea.phares.duckdns.org/phares3757/immich-to-slideshow-api:latest | ||||
| # docker push gitea.phares.duckdns.org/phares3757/immich-to-slideshow-api | ||||
| # docker push immich-to-slideshow-webapp:latest | ||||
| # docker tag 87f3280803c4 gitea.phares.duckdns.org/phares3757/immich-to-slideshow-api:latest | ||||
| # docker tag 87f3280803c4 https://33aada599f8e245782e68931fe2629a959af5d26@gitea.phares.duckdns.org/phares3757/immich-to-slideshow-api:latest | ||||
| # docker tag 87f3280803c4 gitea.phares.duckdns.org:443/phares3757/immich-to-slideshow-api:latest | ||||
| # docker push gitea.phares.duckdns.org:443/phares3757/immich-to-slideshow-api:latest | ||||
| docker login gitea.phares.duckdns.org:443 | ||||
| docker tag b84c1f73de01 gitea.phares.duckdns.org:443/phares3757/immich-to-slideshow:latest | ||||
| docker push gitea.phares.duckdns.org:443/phares3757/immich-to-slideshow:latest | ||||
| ``` | ||||
|  | ||||
| @ -1,7 +1,7 @@ | ||||
| --- | ||||
| type: "note" | ||||
| created: "2024-06-30T05:49:28.000Z" | ||||
| updated: "2024-06-30T05:49:28.000Z" | ||||
| created: '"2024-06-30T05:49:28.000Z"' | ||||
| type: '"note"' | ||||
| updated: 2024-11-12T03:21:40.000Z | ||||
| --- | ||||
|  | ||||
| # Logan | ||||
| @ -148,6 +148,7 @@ systemctl disable --now dnsmasq | ||||
| apt install frr-pythontools -y | ||||
| exit | ||||
| reboot | ||||
| # Use GUI ... (sdn) | ||||
| ``` | ||||
|  | ||||
| ### LXC | ||||
|  | ||||
							
								
								
									
										21
									
								
								_-Review/open-project.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								_-Review/open-project.md
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,21 @@ | ||||
| --- | ||||
| created: 2024-11-26T06:22:19.679Z | ||||
| type: note | ||||
| updated: 2024-11-26T06:36:01.614Z | ||||
| --- | ||||
|  | ||||
| # Open-Project | ||||
|  | ||||
| - [faq](https://www.openproject.org/docs/installation-and-operations/operation/faq/) | ||||
| - [issues](https://github.com/opf/openproject-docker-compose/issues/101) | ||||
| - [docker-compose](https://www.openproject.org/docs/installation-and-operations/installation/docker-compose) | ||||
| - []() | ||||
|  | ||||
| ```bash 1732602239395 = 638681990393950000 = Mon Nov 25 2024 23:23:58 GMT-0700 (Mountain Standard Time) | ||||
| docker exec -it openproject-db-1 psql -U postgres -d openproject | ||||
| psql -U postgres -d openproject | ||||
| SELECT id, login, admin, status FROM users WHERE login = 'mikepharesjr@msn.com'; | ||||
| UPDATE users SET admin = true WHERE login = 'mikepharesjr@msn.com'; | ||||
| UPDATE users SET status = 1 WHERE login = 'mikepharesjr@msn.com'; | ||||
| \q | ||||
| ``` | ||||
| @ -1,7 +1,7 @@ | ||||
| --- | ||||
| created: 2024-07-23T21:06:31.645Z | ||||
| type: note | ||||
| updated: 2024-11-11T21:19:09.780Z | ||||
| updated: 2024-11-14T03:37:33.000Z | ||||
| --- | ||||
|  | ||||
| # Podman | ||||
| @ -99,3 +99,12 @@ sudo -iu podman | ||||
| /usr/libexec/podman/quadlet -dryrun --user | ||||
| /usr/libexec/podman/quadlet --user /home/podman/libexec-podman-quadlet-output | ||||
| ``` | ||||
|  | ||||
| ## Dockge | ||||
|  | ||||
| - [dockge](https://github.com/louislam/dockge/) | ||||
|  | ||||
| ```bash 1731555394479 = 638671521944790000 = Wed Nov 13 2024 20:36:34 GMT-0700 (Mountain Standard Time) | ||||
| apt install podman-docker | ||||
| #  trying to overwrite '/usr/bin/docker', which is also in package docker-ce-cli 5:27.3.1-1~debian.12~bookworm | ||||
| ``` | ||||
|  | ||||
| @ -1,7 +1,7 @@ | ||||
| --- | ||||
| created: 2024-11-05T22:57:55.000Z | ||||
| type: note | ||||
| updated: 2024-11-11T19:25:14.208Z | ||||
| updated: 2024-11-13T01:48:34.000Z | ||||
| --- | ||||
|  | ||||
| # Trigkey Ubuntu Podman | ||||
| @ -75,37 +75,3 @@ mkisofs -o /mnt/free-file-sync/iso/All\ Pictures\ from\ Wedding\ Originals\ 2006 | ||||
|  - [x] Create library for still photos | ||||
|  - [x] Create library for moving photos | ||||
|  - [ ] Enable person | ||||
|  | ||||
| ```bash 638666368162310000 = Thu Nov 07 2024 21:26:55 GMT-0700 (Mountain Standard Time) | ||||
| # https://www.snbforums.com/threads/duckdns-with-letsencrypt.86114/ | ||||
| cd /tmp | ||||
| git clone https://github.com/acmesh-official/acme.sh.git | ||||
| cd /tmp/acme.sh | ||||
| ./acme.sh --install -m mikepharesjr@msn.com | ||||
| export DuckDNS_Token=1d3fc707-7052-4459-a624-fb01250f00b9 | ||||
| echo $DuckDNS_Token | ||||
| ./acme.sh --register-account -m mikepharesjr@msn.com | ||||
| ./acme.sh --set-default-ca --server letsencrypt | ||||
| # https://intodns.com/ | ||||
| ./acme.sh --issue --dns dns_duckdns -d '*.jmlc.duckdns.org' --debug --home /root/.acme.sh --dnssleep 120 --days 90 --ecc --server https://acme-v02.api.letsencrypt.org/directory | ||||
| cp -R /root/.acme.sh/\*.jmlc.duckdns.org_ecc/ /root/.acme.sh/wild-jmlc | ||||
| mv /root/.acme.sh/wild-jmlc/\*.jmlc.duckdns.org.cer /root/.acme.sh/wild-jmlc/jmlc.duckdns.org.cer | ||||
| mv /root/.acme.sh/wild-jmlc/\*.jmlc.duckdns.org.conf /root/.acme.sh/wild-jmlc/jmlc.duckdns.org.conf | ||||
| mv /root/.acme.sh/wild-jmlc/\*.jmlc.duckdns.org.csr /root/.acme.sh/wild-jmlc/jmlc.duckdns.org.csr | ||||
| mv /root/.acme.sh/wild-jmlc/\*.jmlc.duckdns.org.csr.conf /root/.acme.sh/wild-jmlc/jmlc.duckdns.org.csr.conf | ||||
| mv /root/.acme.sh/wild-jmlc/\*.jmlc.duckdns.org.key /root/.acme.sh/wild-jmlc/jmlc.duckdns.org.key | ||||
| ``` | ||||
|  | ||||
| ## Cockpit SSL | ||||
|  | ||||
| - [Proxying-Cockpit-over-NGINX](https://cockpit-project.org/external/wiki/Proxying-Cockpit-over-NGINX) | ||||
|  | ||||
| ```bash 638666392861430000 = Thu Nov 07 2024 22:08:05 GMT-0700 (Mountain Standard Time) | ||||
| nano /etc/cockpit/cockpit.conf | ||||
| ``` | ||||
|  | ||||
| ```conf | ||||
| [WebService] | ||||
| Origins = https://cockpit.phares.duckdns.org wss://cockpit.phares.duckdns.org | ||||
| ProtocolHeader = X-Forwarded-Proto | ||||
| ``` | ||||
|  | ||||
		Reference in New Issue
	
	Block a user