tag:blogger.com,1999:blog-86501660543071728372024-03-19T08:30:25.120+01:00an enthusiastic austrian *nix/Linux userInformations about the experience I made with Sun-Solaris/OpenSolaris/Linux and some other stuffEwald Ertlhttp://www.blogger.com/profile/10533198864334194124noreply@blogger.comBlogger778125tag:blogger.com,1999:blog-8650166054307172837.post-84169420140202298242024-03-19T08:29:00.005+01:002024-03-19T08:29:52.301+01:00Cleanup docker environment<p> Docker has a <i>prune </i>option. <br /><br />You can check the disk usage with: <br /><br /></p><p></p><blockquote><p><span style="color: #b45f06; font-family: courier;"><b>docker system df</b></span></p><p><span style="color: #b45f06; font-family: courier;"><b>TYPE TOTAL ACTIVE SIZE RECLAIMABLE</b></span></p><p><span style="color: #b45f06; font-family: courier;"><b>Images 114 13 35.94GB 30.75GB (85%)</b></span></p><p><span style="color: #b45f06; font-family: courier;"><b>Containers 13 1 358.8MB 358.8MB (99%)</b></span></p><p><span style="color: #b45f06; font-family: courier;"><b>Local Volumes 15 3 5.174GB 948.2MB (18%)</b></span></p><p><span style="color: #b45f06; font-family: courier;"><b>Build Cache 99 0 0B 0B</b></span></p></blockquote><p><br /></p><p>On My system, the "Build Cache" was using over 30GB. </p><p>There are a couple of commands, but be careful. The prune commands remove unused/unreferenced/stopped items. </p><p></p><blockquote><p><span style="color: #b45f06; font-family: courier;"><b>docker volume prune </b></span></p><p><span style="color: #b45f06; font-family: courier;"><b>docker container prune </b></span></p><p><span style="color: #b45f06; font-family: courier;"><b>docker builder du / docker builder prune </b></span></p></blockquote><p><br /></p><p>If you're on a RedHat based system like CentOS/RHEL/Fedora, docker is replaced by podman. <br />There are compatibility packages providing docker as a command. <br /><br /><span style="color: #b45f06; font-family: courier;"><b>podman system df <br /> podman volume prune</b></span></p><p><span style="color: #b45f06; font-family: courier;"><b>podman container prune </b></span> </p><p></p><p></p>Ewald Ertlhttp://www.blogger.com/profile/10533198864334194124noreply@blogger.com0tag:blogger.com,1999:blog-8650166054307172837.post-59916074245457413792024-03-14T11:23:00.004+01:002024-03-14T11:23:25.439+01:00Customize the Java Test parameters in VSCode <p> <a href="https://code.visualstudio.com/" target="_blank">VSCode </a>has a nice support for Java Development, which needs some configuration. <br /><br />The nice feature of VSCode is, that you can even do your development on a remote server, where the <br />VSCode server is running on the remote servers and "only" the visual is on your local machine. <br /><br /><br />If you run some integeration-tests on your local machine, but you can have the systems on a remote server and have to set some system properties or other settings for the JVM running the tests, VSCode <br />offers a workspace setting with the parameter "java.test.config". <br /><br />Setting this configuration, you can simply click on the green triangle and start the test and it is <br />utilizing that settings. </p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEilphPCMtg60FYNpKh12Db9chcs3k79wxReGi7IbeZD4K1aOCTk10eXrjLSaxc8o4pW6tzLQpVhKkrn5n9Z_3ejkllzRw4AbewiIkNU9y6eLBKLHp0XGm5lSBTwMtvFRpSq5IK9Bs8Wt0EHl17BetpV8Tyhfl0YfzFymL7A1mEViSRz23wFJIbhQL-JXzM" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="71" data-original-width="147" height="155" src="https://blogger.googleusercontent.com/img/a/AVvXsEilphPCMtg60FYNpKh12Db9chcs3k79wxReGi7IbeZD4K1aOCTk10eXrjLSaxc8o4pW6tzLQpVhKkrn5n9Z_3ejkllzRw4AbewiIkNU9y6eLBKLHp0XGm5lSBTwMtvFRpSq5IK9Bs8Wt0EHl17BetpV8Tyhfl0YfzFymL7A1mEViSRz23wFJIbhQL-JXzM" width="320" /></a></div><br /><br /><br />see the wonderful documentation <a href="https://code.visualstudio.com/docs/java/java-testing#_customize-test-configurations">https://code.visualstudio.com/docs/java/java-testing#_customize-test-configurations</a><p></p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEh5SEp-zJmkMjgb4pref12EMjJAc8eJenZ8hFIOxrHkcdEmuTd1VjzdEyOES7WCOTerE1EISbF0X_fq98BnB-ocG-_v5o1wWR7IRlyfmt8tLhtOTUanvjcgwXATPhG1pHugrv_qJlPooW3m_XEeCXSrVx5EqVX6uFeeNU5F18vD1qL1cxXg5fM63q6mh3s" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="193" data-original-width="536" height="115" src="https://blogger.googleusercontent.com/img/a/AVvXsEh5SEp-zJmkMjgb4pref12EMjJAc8eJenZ8hFIOxrHkcdEmuTd1VjzdEyOES7WCOTerE1EISbF0X_fq98BnB-ocG-_v5o1wWR7IRlyfmt8tLhtOTUanvjcgwXATPhG1pHugrv_qJlPooW3m_XEeCXSrVx5EqVX6uFeeNU5F18vD1qL1cxXg5fM63q6mh3s" width="320" /></a></div><br /><br /><p></p>Ewald Ertlhttp://www.blogger.com/profile/10533198864334194124noreply@blogger.com0tag:blogger.com,1999:blog-8650166054307172837.post-62470056712577909332024-02-13T11:50:00.003+01:002024-02-13T11:50:46.165+01:00AKHQ for searching a Kafka-Cluster doesn't show filtered messages<p> <a href="https://akhq.io/" target="_blank">AKHQ </a>is a nice tool to connect to Kafka-Clusters, which are configured via an application.yaml. <br /><br />The tool allows investigating the topic’s , see the messages in each partition, filter messages <br />on timeframes or content... </p><p><br /></p><p><br /></p><p>This worked quite fine, but now I had over 8000 messages and my local docker instance of akhq <br />failed retrieve messages filter on a timeframe, even I knew that there must be messages. <br />Sometimes it helped to look into each partition separately. <br /><br /><br /></p><p>The search via <a href="https://www.kafkamagic.com/">kafkaMagic </a>(an other tool) worked without issue. But the community edition of KafkaMagic has no option to send messages into a topic. </p><p><br /></p><p>Digging through the AKHQ docs, showed me an option under <a href="https://akhq.io/docs/configuration/akhq.html">https://akhq.io/docs/configuration/akhq.html</a></p><p><span face=""Source Code Pro", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace" style="background-color: #232526; color: #ff4444; font-size: 14px;">akhq.topic-data.poll-timeout </span></p><p>with a default timeout of 10000ms - 10- seconds. </p><p><br /></p><p>Out of curiosity, I added to the application yaml this configuration like below with 1 minute: <br /><br /></p><div style="background-color: #1e1e1e; color: #d4d4d4; font-family: "JetBrainsMono Nerd Font", "Source Code Pro", Consolas, "Courier New", monospace, Consolas, "Courier New", monospace; font-size: 14px; line-height: 19px; white-space: pre;"><div><span style="color: #4797d8;">akhq</span><span style="color: #ffb95d;">:</span></div><div> <span style="color: #4797d8;">clients-defaults</span><span style="color: #ffb95d;">:</span></div><div> <span style="color: #4797d8;">consumer</span><span style="color: #ffb95d;">:</span></div><div> <span style="color: #4797d8;">properties</span><span style="color: #ffb95d;">:</span></div><div> <span style="color: #4797d8;">default.api.timeout.ms</span><span style="color: #ffb95d;">:</span> <span style="color: #ee7d9a;">15000000</span></div><div> <span style="color: #4797d8;">topic-data</span><span style="color: #ffb95d;">:</span></div><div> <span style="color: #4797d8;">poll-timeout</span><span style="color: #ffb95d;">:</span> <span style="color: #ee7d9a;">60000</span></div><div> </div></div><div><br /></div><div>Now, the searching via the UI retrieves only the selected messages. </div><div><br /></div><div><div class="separator" style="clear: both; text-align: center;"><br /></div><br /><br /></div>Ewald Ertlhttp://www.blogger.com/profile/10533198864334194124noreply@blogger.com0tag:blogger.com,1999:blog-8650166054307172837.post-70833623049720829342024-01-25T10:27:00.003+01:002024-01-25T10:27:09.650+01:00docker daemon creates networks in 192.168.0.0 range, which interferes with my local network configuration <p> I had issues in the network communication from some container into my "local" network configured <br />as 192.168.1.X. <br /><br />After digging around in my WSL2 instance, I found with "ip addr show" that there are some bridges also <br />in the 192.168.x.x network, but I saw docker using the 172.x.x.x network. <br /><br />Now it was clear why the connection to my local host timed out in the container. <br /><br />After digging around, I found different entries. One said: <br /><br /><span style="background-color: #0b1416; color: #b8c5c9; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif; font-size: 14px;">Apparently Docker uses the following ranges by default:</span><br style="background-color: #0b1416; color: #b8c5c9; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif; font-size: 14px;" /><span style="background-color: #0b1416; color: #b8c5c9; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif; font-size: 14px;">172.17.0.0/16", 172.18.0.0/16", "172.19.0.0/16", "172.20.0.0/14", "172.24.0.0/14" "172.28.0.0/14", "192.168.0.0/16".</span></p><p>This clears up why the docker daemon created such bridges, but now how do a resistrict the docker daemon? <br /><br />This conversation brought some hints : <a href="https://forums.docker.com/t/docker-default-address-pool-customization-question/112969">https://forums.docker.com/t/docker-default-address-pool-customization-question/112969</a></p><p><br /></p><p>setting the configuration in /etc/docker/daemon.json fixed for the moment the issue. </p>Ewald Ertlhttp://www.blogger.com/profile/10533198864334194124noreply@blogger.com0tag:blogger.com,1999:blog-8650166054307172837.post-55082080847816418622024-01-15T08:50:00.001+01:002024-01-15T08:50:02.427+01:00Update of RHEL 8 fails with "- Curl error (91): SSL server certificate status verification FAILED for https://cdn.redhat.com/content/dist/rhel9/9/x86_64/appstream/os/repodata/repomd.xml [OCSP response has expired]"<p> The <i>dnf update </i>fails with: </p><p><br /></p><blockquote><p><b><span style="color: #b45f06; font-family: courier; font-size: x-small;">[root@rh2 eer]# dnf update</span></b></p><p><b><span style="color: #b45f06; font-family: courier; font-size: x-small;">Updating Subscription Management repositories.</span></b></p><p><b><span style="color: #b45f06; font-family: courier; font-size: x-small;">Extra Packages for Enterprise Linux 9 - x86_64 44 kB/s | 17 kB 00:00</span></b></p><p><b><span style="color: #b45f06; font-family: courier; font-size: x-small;">Extra Packages for Enterprise Linux 9 - x86_64 711 kB/s | 20 MB 00:28</span></b></p><p><b><span style="color: #b45f06; font-family: courier; font-size: x-small;">Extra Packages for Enterprise Linux 9 openh264 (From Cisco) - x86_64 5.4 kB/s | 993 B 00:00</span></b></p><p><b><span style="color: #b45f06; font-family: courier; font-size: x-small;">Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs) 0.0 B/s | 0 B 00:00</span></b></p><p><b><span style="color: #b45f06; font-family: courier; font-size: x-small;">Errors during downloading metadata for repository 'rhel-9-for-x86_64-appstream-rpms':</span></b></p><p><b><span style="color: #b45f06; font-family: courier; font-size: x-small;"> - Curl error (91): SSL server certificate status verification FAILED for https://cdn.redhat.com/content/dist/rhel9/9/x86_64/appstream/os/repodata/repomd.xml [OCSP response has expired]</span></b></p><p><b><span style="color: #b45f06; font-family: courier; font-size: x-small;">Error: Failed to download metadata for repo 'rhel-9-for-x86_64-appstream-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried</span></b></p></blockquote><p><br /></p><p>The solution was found here: <a href="https://access.redhat.com/discussions/6978248">https://access.redhat.com/discussions/6978248</a>. <br /><br />I didn't have the system running for some weeks and the time was one hour behind. For whatever reason<br />the <i>automatic time</i> was not active. After updating the <i>automatic time sync</i>, the time on the system caught up and <i>dnf update</i> started to work again. </p>Ewald Ertlhttp://www.blogger.com/profile/10533198864334194124noreply@blogger.com0tag:blogger.com,1999:blog-8650166054307172837.post-35817027132149620972023-12-12T16:12:00.001+01:002023-12-12T16:12:11.116+01:00Java based GUI client for SSH/SFTP - Snowflake & MuonSSH<p> I knew about the <a href="https://github.com/subhra74/snowflake" target="_blank">snowflake </a>GUI for SSH/SFTP on Linux, which is a Java based client, but unfortunately, <br />this project seems to be not continued anymore. <br /><br />But there is <a href="https://github.com/devlinx9/muon-ssh" target="_blank">Muon-SSH</a>, which is a fork of Snowflake and has more recent changes: <br /><br /></p><div class="separator" style="clear: both; text-align: center;"><br /></div><br /><br /><p></p><p></p><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMQ8LJI081hdA3s3E7iK2VAjA0EFHkNGBolGj2ONF5tGLV527h50bUF8euX6YEqXvfpeF8Ut0lKDwkaPLv8Anjh13d7xmy2QbEW8cy7jkyPIf4m4tN9lopzRAJtRpVaFVAFpUvc7089KJ9c7bNAO10xNTJeOXxk7pacrH1rswUV0CRdmoBRDYjCyXKrVo/s1467/MuonSSH.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="793" data-original-width="1467" height="346" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMQ8LJI081hdA3s3E7iK2VAjA0EFHkNGBolGj2ONF5tGLV527h50bUF8euX6YEqXvfpeF8Ut0lKDwkaPLv8Anjh13d7xmy2QbEW8cy7jkyPIf4m4tN9lopzRAJtRpVaFVAFpUvc7089KJ9c7bNAO10xNTJeOXxk7pacrH1rswUV0CRdmoBRDYjCyXKrVo/w640-h346/MuonSSH.png" width="640" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div></div></div><br />The UI offers a terminal, a NortonCommander based file browser for up and download and also some <br />system tools like Diskspace, processes or a Toolbox : <br /><br /><br /><p></p><p></p><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRGNUtgMkA1lrOUsT9fvz0ERF6UbVhcIlJVzleESNDOsazlmkTvXHaT6rT4pQQVCMH-21CYgIxheRgRJaqIANKptBKjlvyZIYBaMQt6_e0s0u4PXGr9BSbNb1ADDog0Wn4QRr9Hm-gnmjvcTgAsQHq6VYrT1t93TpLApvcxpk9q9IVKfUrVC7v3EVw5Uc/s1229/Screenshot_2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="700" data-original-width="1229" height="364" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRGNUtgMkA1lrOUsT9fvz0ERF6UbVhcIlJVzleESNDOsazlmkTvXHaT6rT4pQQVCMH-21CYgIxheRgRJaqIANKptBKjlvyZIYBaMQt6_e0s0u4PXGr9BSbNb1ADDog0Wn4QRr9Hm-gnmjvcTgAsQHq6VYrT1t93TpLApvcxpk9q9IVKfUrVC7v3EVw5Uc/w640-h364/Screenshot_2.png" width="640" /></a></div><br /><div class="separator" style="clear: both; text-align: center;"><br /></div></div><br /><br /><p></p>Ewald Ertlhttp://www.blogger.com/profile/10533198864334194124noreply@blogger.com0tag:blogger.com,1999:blog-8650166054307172837.post-35745353642476662242023-12-11T12:34:00.007+01:002023-12-11T12:34:58.786+01:00using an local insecure docker repository <p> If you have a local insecure repository and you implementation like on <a href="https://www.redhat.com/de/technologies/linux-platforms/enterprise-linux" target="_blank">RHEL </a>or <a href="https://fedoraproject.org/de/" target="_blank">Fedora </a>is <a href="https://podman.io/" target="_blank">podman </a><br />instead of <a href="https://www.docker.com/" target="_blank">docker</a>. </p><p><br /></p><p>For Docker the configuration for an insecure registry is: <br /><br /></p><p><br /></p><p style="--_pr-img-mb: 0; --theme-background-attachment: auto; --theme-background-color: var(--white); --theme-background-position: top left; --theme-background-repeat: repeat; --theme-background-size: auto; --theme-base-primary-color-h: 27; --theme-base-primary-color-l: 48%; --theme-base-primary-color-s: 89%; --theme-body-font-color: var(--black-600); --theme-body-font-family: var(--ff-sans); --theme-button-active-background-color: initial; --theme-button-color: initial; --theme-button-hover-background-color: initial; --theme-button-hover-color: initial; --theme-button-outlined-border-color: initial; --theme-button-outlined-selected-border-color: initial; --theme-button-primary-active-background-color: initial; --theme-button-primary-active-color: initial; --theme-button-primary-background-color: initial; --theme-button-primary-color: initial; --theme-button-primary-hover-background-color: initial; --theme-button-primary-hover-color: initial; --theme-button-primary-selected-background-color: initial; --theme-button-primary-selected-color: initial; --theme-button-selected-background-color: initial; --theme-button-selected-color: initial; --theme-content-background-color: var(--white); --theme-content-border-color: var(--black-225); --theme-footer-background-border-top: 0; --theme-footer-background-color: hsl(210,8%,5%); --theme-footer-background-position: top left; --theme-footer-background-repeat: no-repeat; --theme-footer-background-size: auto; --theme-footer-divider-color: var(--black-500); --theme-footer-link-color-hover: var(--black-200); --theme-footer-link-color: var(--black-300); --theme-footer-padding-bottom: 0; --theme-footer-padding-top: 0; --theme-footer-text-color: var(--black-300); --theme-footer-title-color: var(--black-250); --theme-header-background-border-bottom: 0; --theme-header-background-color: var(--theme-primary); --theme-header-background-position: center left; --theme-header-background-repeat: repeat; --theme-header-background-size: auto; --theme-header-foreground-color: transparent; --theme-header-foreground-position: bottom right; --theme-header-foreground-repeat: no-repeat; --theme-header-foreground-size: auto; --theme-header-link-color: var(--theme-primary); --theme-header-sponsored-color: hsla(0,0%,100%,0.4); --theme-link-color-hover: initial; --theme-link-color-visited: initial; --theme-link-color: initial; --theme-post-body-font-family: var(--ff-sans); --theme-post-owner-background-color: var(--theme-secondary-100); --theme-post-owner-new-background-color: var(--theme-secondary-200); --theme-post-title-color-hover: var(--theme-link-color-hover); --theme-post-title-color-visited: var(--theme-link-color-visited); --theme-post-title-color: var(--theme-link-color); --theme-post-title-font-family: var(--ff-sans); --theme-primary-custom-100: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .9))); --theme-primary-custom-200: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .75))); --theme-primary-custom-300: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .5))); --theme-primary-custom-400: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), var(--theme-base-primary-color-l)); --theme-primary-custom-500: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.3))); --theme-primary-custom-600: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.6))); --theme-primary-custom: var(--theme-primary-custom-400); --theme-tag-background-color: initial; --theme-tag-border-color: initial; --theme-tag-color: initial; --theme-tag-hover-background-color: initial; --theme-tag-hover-border-color: initial; --theme-tag-hover-color: initial; --theme-tag-required-background-color: var(--theme-secondary-500); --theme-tag-required-border-color: transparent; --theme-tag-required-color: var(--white); --theme-tag-required-hover-background-color: var(--theme-secondary-400); --theme-tag-required-hover-border-color: transparent; --theme-tag-required-hover-color: var(--white); --theme-topbar-bottom-border: 1px solid var(--black-225); background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #0c0d0e; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Adjusted", "Segoe UI", "Liberation Sans", sans-serif; font-feature-settings: inherit; font-kerning: inherit; font-optical-sizing: inherit; font-size: 15px; font-stretch: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; font-variant-position: inherit; font-variation-settings: inherit; line-height: inherit; margin: 0px 0px 1.1em; padding: 0px; vertical-align: baseline;">Adding to <code style="--theme-background-attachment: auto; --theme-background-color: var(--white); --theme-background-position: top left; --theme-background-repeat: repeat; --theme-background-size: auto; --theme-base-primary-color-h: 27; --theme-base-primary-color-l: 48%; --theme-base-primary-color-s: 89%; --theme-body-font-color: var(--black-600); --theme-body-font-family: var(--ff-sans); --theme-button-active-background-color: initial; --theme-button-color: initial; --theme-button-hover-background-color: initial; --theme-button-hover-color: initial; --theme-button-outlined-border-color: initial; --theme-button-outlined-selected-border-color: initial; --theme-button-primary-active-background-color: initial; --theme-button-primary-active-color: initial; --theme-button-primary-background-color: initial; --theme-button-primary-color: initial; --theme-button-primary-hover-background-color: initial; --theme-button-primary-hover-color: initial; --theme-button-primary-selected-background-color: initial; --theme-button-primary-selected-color: initial; --theme-button-selected-background-color: initial; --theme-button-selected-color: initial; --theme-content-background-color: var(--white); --theme-content-border-color: var(--black-225); --theme-footer-background-border-top: 0; --theme-footer-background-color: hsl(210,8%,5%); --theme-footer-background-position: top left; --theme-footer-background-repeat: no-repeat; --theme-footer-background-size: auto; --theme-footer-divider-color: var(--black-500); --theme-footer-link-color-hover: var(--black-200); --theme-footer-link-color: var(--black-300); --theme-footer-padding-bottom: 0; --theme-footer-padding-top: 0; --theme-footer-text-color: var(--black-300); --theme-footer-title-color: var(--black-250); --theme-header-background-border-bottom: 0; --theme-header-background-color: var(--theme-primary); --theme-header-background-position: center left; --theme-header-background-repeat: repeat; --theme-header-background-size: auto; --theme-header-foreground-color: transparent; --theme-header-foreground-position: bottom right; --theme-header-foreground-repeat: no-repeat; --theme-header-foreground-size: auto; --theme-header-link-color: var(--theme-primary); --theme-header-sponsored-color: hsla(0,0%,100%,0.4); --theme-link-color-hover: initial; --theme-link-color-visited: initial; --theme-link-color: initial; --theme-post-body-font-family: var(--ff-sans); --theme-post-owner-background-color: var(--theme-secondary-100); --theme-post-owner-new-background-color: var(--theme-secondary-200); --theme-post-title-color-hover: var(--theme-link-color-hover); --theme-post-title-color-visited: var(--theme-link-color-visited); --theme-post-title-color: var(--theme-link-color); --theme-post-title-font-family: var(--ff-sans); --theme-primary-custom-100: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .9))); --theme-primary-custom-200: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .75))); --theme-primary-custom-300: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .5))); --theme-primary-custom-400: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), var(--theme-base-primary-color-l)); --theme-primary-custom-500: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.3))); --theme-primary-custom-600: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.6))); --theme-primary-custom: var(--theme-primary-custom-400); --theme-tag-background-color: initial; --theme-tag-border-color: initial; --theme-tag-color: initial; --theme-tag-hover-background-color: initial; --theme-tag-hover-border-color: initial; --theme-tag-hover-color: initial; --theme-tag-required-background-color: var(--theme-secondary-500); --theme-tag-required-border-color: transparent; --theme-tag-required-color: var(--white); --theme-tag-required-hover-background-color: var(--theme-secondary-400); --theme-tag-required-hover-border-color: transparent; --theme-tag-required-hover-color: var(--white); --theme-topbar-bottom-border: 1px solid var(--black-225); background-color: var(--black-200); border-radius: var(--br-sm); border: 0px; box-sizing: inherit; color: var(--black-600); font-family: var(--ff-mono); font-feature-settings: inherit; font-kerning: inherit; font-optical-sizing: inherit; font-size: var(--_pr-code-fs); font-stretch: inherit; font-variant: inherit; font-variation-settings: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: var(--su2) var(--su4); vertical-align: baseline; white-space-collapse: preserve;"><i>/etc/docker/daemon.json</i></code> with following content</p><pre style="--theme-background-attachment: auto; --theme-background-color: var(--white); --theme-background-position: top left; --theme-background-repeat: repeat; --theme-background-size: auto; --theme-base-primary-color-h: 27; --theme-base-primary-color-l: 48%; --theme-base-primary-color-s: 89%; --theme-body-font-color: var(--black-600); --theme-body-font-family: var(--ff-sans); --theme-button-active-background-color: initial; --theme-button-color: initial; --theme-button-hover-background-color: initial; --theme-button-hover-color: initial; --theme-button-outlined-border-color: initial; --theme-button-outlined-selected-border-color: initial; --theme-button-primary-active-background-color: initial; --theme-button-primary-active-color: initial; --theme-button-primary-background-color: initial; --theme-button-primary-color: initial; --theme-button-primary-hover-background-color: initial; --theme-button-primary-hover-color: initial; --theme-button-primary-selected-background-color: initial; --theme-button-primary-selected-color: initial; --theme-button-selected-background-color: initial; --theme-button-selected-color: initial; --theme-content-background-color: var(--white); --theme-content-border-color: var(--black-225); --theme-footer-background-border-top: 0; --theme-footer-background-color: hsl(210,8%,5%); --theme-footer-background-position: top left; --theme-footer-background-repeat: no-repeat; --theme-footer-background-size: auto; --theme-footer-divider-color: var(--black-500); --theme-footer-link-color-hover: var(--black-200); --theme-footer-link-color: var(--black-300); --theme-footer-padding-bottom: 0; --theme-footer-padding-top: 0; --theme-footer-text-color: var(--black-300); --theme-footer-title-color: var(--black-250); --theme-header-background-border-bottom: 0; --theme-header-background-color: var(--theme-primary); --theme-header-background-position: center left; --theme-header-background-repeat: repeat; --theme-header-background-size: auto; --theme-header-foreground-color: transparent; --theme-header-foreground-position: bottom right; --theme-header-foreground-repeat: no-repeat; --theme-header-foreground-size: auto; --theme-header-link-color: var(--theme-primary); --theme-header-sponsored-color: hsla(0,0%,100%,0.4); --theme-link-color-hover: initial; --theme-link-color-visited: initial; --theme-link-color: initial; --theme-post-body-font-family: var(--ff-sans); --theme-post-owner-background-color: var(--theme-secondary-100); --theme-post-owner-new-background-color: var(--theme-secondary-200); --theme-post-title-color-hover: var(--theme-link-color-hover); --theme-post-title-color-visited: var(--theme-link-color-visited); --theme-post-title-color: var(--theme-link-color); --theme-post-title-font-family: var(--ff-sans); --theme-primary-custom-100: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .9))); --theme-primary-custom-200: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .75))); --theme-primary-custom-300: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .5))); --theme-primary-custom-400: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), var(--theme-base-primary-color-l)); --theme-primary-custom-500: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.3))); --theme-primary-custom-600: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.6))); --theme-primary-custom: var(--theme-primary-custom-400); --theme-tag-background-color: initial; --theme-tag-border-color: initial; --theme-tag-color: initial; --theme-tag-hover-background-color: initial; --theme-tag-hover-border-color: initial; --theme-tag-hover-color: initial; --theme-tag-required-background-color: var(--theme-secondary-500); --theme-tag-required-border-color: transparent; --theme-tag-required-color: var(--white); --theme-tag-required-hover-background-color: var(--theme-secondary-400); --theme-tag-required-hover-border-color: transparent; --theme-tag-required-hover-color: var(--white); --theme-topbar-bottom-border: 1px solid var(--black-225); border-radius: var(--br-md); border: 0px; box-sizing: inherit; font-feature-settings: inherit; font-kerning: inherit; font-optical-sizing: inherit; font-stretch: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; font-variant-position: inherit; font-variation-settings: inherit; line-height: var(--lh-md); margin-bottom: calc(1.5em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: var(--su12); vertical-align: baseline; width: auto;"><code style="--theme-background-attachment: auto; --theme-background-color: var(--white); --theme-background-position: top left; --theme-background-repeat: repeat; --theme-background-size: auto; --theme-base-primary-color-h: 27; --theme-base-primary-color-l: 48%; --theme-base-primary-color-s: 89%; --theme-body-font-color: var(--black-600); --theme-body-font-family: var(--ff-sans); --theme-button-active-background-color: initial; --theme-button-color: initial; --theme-button-hover-background-color: initial; --theme-button-hover-color: initial; --theme-button-outlined-border-color: initial; --theme-button-outlined-selected-border-color: initial; --theme-button-primary-active-background-color: initial; --theme-button-primary-active-color: initial; --theme-button-primary-background-color: initial; --theme-button-primary-color: initial; --theme-button-primary-hover-background-color: initial; --theme-button-primary-hover-color: initial; --theme-button-primary-selected-background-color: initial; --theme-button-primary-selected-color: initial; --theme-button-selected-background-color: initial; --theme-button-selected-color: initial; --theme-content-background-color: var(--white); --theme-content-border-color: var(--black-225); --theme-footer-background-border-top: 0; --theme-footer-background-color: hsl(210,8%,5%); --theme-footer-background-position: top left; --theme-footer-background-repeat: no-repeat; --theme-footer-background-size: auto; --theme-footer-divider-color: var(--black-500); --theme-footer-link-color-hover: var(--black-200); --theme-footer-link-color: var(--black-300); --theme-footer-padding-bottom: 0; --theme-footer-padding-top: 0; --theme-footer-text-color: var(--black-300); --theme-footer-title-color: var(--black-250); --theme-header-background-border-bottom: 0; --theme-header-background-color: var(--theme-primary); --theme-header-background-position: center left; --theme-header-background-repeat: repeat; --theme-header-background-size: auto; --theme-header-foreground-color: transparent; --theme-header-foreground-position: bottom right; --theme-header-foreground-repeat: no-repeat; --theme-header-foreground-size: auto; --theme-header-link-color: var(--theme-primary); --theme-header-sponsored-color: hsla(0,0%,100%,0.4); --theme-link-color-hover: initial; --theme-link-color-visited: initial; --theme-link-color: initial; --theme-post-body-font-family: var(--ff-sans); --theme-post-owner-background-color: var(--theme-secondary-100); --theme-post-owner-new-background-color: var(--theme-secondary-200); --theme-post-title-color-hover: var(--theme-link-color-hover); --theme-post-title-color-visited: var(--theme-link-color-visited); --theme-post-title-color: var(--theme-link-color); --theme-post-title-font-family: var(--ff-sans); --theme-primary-custom-100: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .9))); --theme-primary-custom-200: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .75))); --theme-primary-custom-300: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .5))); --theme-primary-custom-400: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), var(--theme-base-primary-color-l)); --theme-primary-custom-500: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.3))); --theme-primary-custom-600: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.6))); --theme-primary-custom: var(--theme-primary-custom-400); --theme-tag-background-color: initial; --theme-tag-border-color: initial; --theme-tag-color: initial; --theme-tag-hover-background-color: initial; --theme-tag-hover-border-color: initial; --theme-tag-hover-color: initial; --theme-tag-required-background-color: var(--theme-secondary-500); --theme-tag-required-border-color: transparent; --theme-tag-required-color: var(--white); --theme-tag-required-hover-background-color: var(--theme-secondary-400); --theme-tag-required-hover-border-color: transparent; --theme-tag-required-hover-color: var(--white); --theme-topbar-bottom-border: 1px solid var(--black-225); border-radius: 0px; border: 0px; box-sizing: inherit; font-feature-settings: inherit; font-kerning: inherit; font-optical-sizing: inherit; font-stretch: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; font-variant-position: inherit; font-variation-settings: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"><blockquote style="font-family: var(--ff-mono); font-size: var(--_pr-code-fs); font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; white-space: inherit;"><b><span style="color: #b45f06;">{
"insecure-registries" : [ "hostname.cloudapp.net:5000" ]
}</span></b></blockquote><p style="font-family: var(--ff-mono); font-size: var(--_pr-code-fs); font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; white-space: inherit;"><br /></p><p style="font-family: var(--ff-mono); font-size: var(--_pr-code-fs); font-variant-caps: inherit; font-variant-ligatures: inherit; white-space: inherit;"><span style="font-style: inherit;">But how is it done for podman?
add a new registry to </span><i>/etc/containers/registries.conf.d </i>an additional registry: </p><blockquote><p><span style="color: #b45f06; font-family: Times New Roman;"><b>[[registry]]
location = "<<your registry>>:5000"
insecure = true</b></span></p></blockquote><p style="font-family: var(--ff-mono); font-size: var(--_pr-code-fs); font-variant-caps: inherit; font-variant-ligatures: inherit; white-space: inherit;"><i><br /></i></p><p style="font-family: var(--ff-mono); font-size: var(--_pr-code-fs); font-variant-caps: inherit; font-variant-ligatures: inherit; white-space: inherit;"></p><blockquote><i><br /></i></blockquote><p></p></code></pre>Ewald Ertlhttp://www.blogger.com/profile/10533198864334194124noreply@blogger.com0tag:blogger.com,1999:blog-8650166054307172837.post-49988624198683828132023-12-07T09:01:00.004+01:002023-12-07T09:01:39.606+01:00Switching in VSCodes SCM/GIT Diff editor view the sides by command without using the mouse pointer<p> In <a href="https://code.visualstudio.com/" target="_blank">VSCode</a>, <a href="https://www.gitkraken.com/gitlens" target="_blank">GitLens </a>is a superb extension for handling git. <br /><br />Having an SCM/GIT diff view open, the cursor is placed on the right side for navigation. <br /><br />But if you want to change the focus to the left side, you can execute from the command palette <br /><br />>Diff Editor: Switch Side </p><p><br /></p><p>This command is not bound to a key shortcut per default. </p>Ewald Ertlhttp://www.blogger.com/profile/10533198864334194124noreply@blogger.com0tag:blogger.com,1999:blog-8650166054307172837.post-87080892657347887652023-12-04T09:13:00.010+01:002023-12-04T09:20:03.910+01:00How to connect to git from a local testenvironment not being fully integrated into the network<p> I have my main working laptop being connected via VPN. <br />There are also 2 other laptops connected with the main laptop via a local private network. </p><p><br /></p><p>If you have some git repo which needs to be synced on one of the laptops on the private network. <br />Usually you do not have DNS and routing setup that it can connect via the VPN-Network. <br /><br /><br />To work around, you can use the SSH port-forwarding. <br /><br />First is to get an SSHD on your main laptop. <br /><br />In my case, the main laptop is a Windows 10 with WSL2 and Ubuntu 23.10. <br /><br />On the WSL2 Ubuntu 23.10 instance, I've sshd up and running. <br /><br />To allow connection from outside, I've to open the WSL2 port in the Windows firewall with the following powershell script<br /><br /><br /><span style="color: #b45f06; font-family: courier;"><b>$address=wsl -d Ubuntu-20.04 --exec ip -4 addr show eth0 | grep inet | awk '{split($2, inet, "/"); print inet[1]}'</b></span></p><p><span style="color: #b45f06; font-family: courier;"><b>netsh interface portproxy add v4tov4 listenport=22 listenaddress=0.0.0.0 connectport=22 connectaddress=$address<br /></b></span><br /></p><p>This proxies the port forward to the WSL2 instance. <br /><br />On the test laptop in the private network, add the git host as an alias to 127.0.0.1 in /etc/hosts. <br /></p><p><b style="color: #b45f06; font-family: courier;">127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 git.host.com</b></p><p><b style="color: #b45f06; font-family: courier;"><br /></b></p><p>Now you can open the port-forwarding: <br /><br /><span style="color: #b45f06; font-family: courier;"><b>git remote -v</b></span>, can give you the remote address, if you've copied the repo manually with e.g. scp</p><p><span style="color: #b45f06; font-family: courier;"><b>ssh -fNL 2283:git.host.com:2283 <user>@<main laptop></b></span></p><p><br /></p><p>The options <b>'-f'</b> switches ssh into the background, and <b>'-N'</b> instructs ssh to do not like to execute a remote command. </p><p><br /></p><p><b>'-L'</b> is for the port-forwarding, where the local port <b>2283 </b>(first part of the semicolon separated list) is <br />sent to the remote host, which connects to (<b>git.host.com</b> and port <b>2283</b>) </p>Ewald Ertlhttp://www.blogger.com/profile/10533198864334194124noreply@blogger.com0tag:blogger.com,1999:blog-8650166054307172837.post-85071922188342938062023-11-17T10:02:00.005+01:002023-12-04T09:24:17.820+01:00Removing an accidentially added file from the git commit longer back in the history <p>In my local git branch, I have a couple of commits and noticed that an older commit (not the last one) <br />had some accidentally added files, which should not be on the branch.<br /><br /><br />As long as you've not shared your branch with somebody else, "<b>git rebase</b>" comes to help.</p><p><br /></p><p><br /></p><p>You need to get the SHA of the commit to be modified. <br />e.g </p><blockquote><p><b><span style="color: #b45f06;"><span style="font-family: courier;">git log --grep <what you search for></span> </span></b></p></blockquote><p><br /></p><p>When you've found your commit, the rebase is started with </p><p><br /></p><p></p><blockquote><b><span style="color: #b45f06; font-family: courier;">git rebase -i <SHA of the commit> </span></b></blockquote><p><br /></p><p>Depending on your configuration you end up with a vi-window or like on my system with the <br />rebase dialog of VS Code, where you select what should happen with each commit. <br /><br />To modify one you set it to <b>"edit" </b><br /><br />Here's VSCode </p><div class="separator" style="clear: both; text-align: center;"><a href="https://user-images.githubusercontent.com/641685/102309169-31ba2a00-3f36-11eb-8b26-050c7d83fa3f.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="680" data-original-width="889" height="680" src="https://user-images.githubusercontent.com/641685/102309169-31ba2a00-3f36-11eb-8b26-050c7d83fa3f.png" width="889" /></a></div><br /><p>and vim: <br /><br /><br /></p><div class="separator" style="clear: both; text-align: center;"><a href="https://user-images.githubusercontent.com/5087847/72719179-3e3fd200-3b6f-11ea-83d2-8c288a63df40.gif" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="509" data-original-width="1568" height="509" src="https://user-images.githubusercontent.com/5087847/72719179-3e3fd200-3b6f-11ea-83d2-8c288a63df40.gif" width="1568" /></a></div><br /><p><br /><br />The rebase process stops at that commit and lets you edit your commit. <br /><br />e.g remove unwanted files, add the deleted files to the staging area (<i>git add</i>) and do a </p><p><span style="color: #b45f06; font-family: courier;"><b></b></span></p><blockquote><span style="color: #b45f06; font-family: courier;"><b>git commit --amend</b></span></blockquote><p></p><p><br /></p><p>to update the changeset. <br /><br />After that, you continue the rebase with </p><p><br /></p><p><span style="color: #b45f06; font-family: courier;"><b></b></span></p><blockquote><span style="color: #b45f06; font-family: courier;"><b>git rebase --continue</b></span></blockquote> Now the unwanted files are not in the commit anymore. <p></p><p></p>Ewald Ertlhttp://www.blogger.com/profile/10533198864334194124noreply@blogger.com0tag:blogger.com,1999:blog-8650166054307172837.post-5717067447946801262023-10-25T09:20:00.003+02:002023-10-25T09:20:49.673+02:00VSCode: getting a more visible highlight of the active tab in VSCode<p> <a href="https://code.visualstudio.com/" target="_blank">VSCode </a>is my favorite editor for nearly everything. <br /><br />On issue I had, was that the active tab is not that visible, but as usually VSCode is so highly configurable <br />to change this: <br /><br /><br />Here's the original behavior with this short blue line above (possibly already adjusted by me)<br /></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEjJabt6Iic_oZTIAnDqK4Wwypl5jlG4a88jJsE_a0q_s8o8Em9kdRmZlQXsLr3g0i6bfa1nfiH2N9l5CQCq3awbqp0DVoG_Fa-9vRU2aO5LyF-Trx1Q5wh2MgU4XN9ePwaT48sRLNUZIk3SMjdTes0gi-R1oFBC72kAXT5aOr_4QhEJgffhyCQhLF_72BI" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="98" data-original-width="168" height="187" src="https://blogger.googleusercontent.com/img/a/AVvXsEjJabt6Iic_oZTIAnDqK4Wwypl5jlG4a88jJsE_a0q_s8o8Em9kdRmZlQXsLr3g0i6bfa1nfiH2N9l5CQCq3awbqp0DVoG_Fa-9vRU2aO5LyF-Trx1Q5wh2MgU4XN9ePwaT48sRLNUZIk3SMjdTes0gi-R1oFBC72kAXT5aOr_4QhEJgffhyCQhLF_72BI" width="320" /></a></div><br /><br /><p></p><p>But as you can this that's not really visually jumping into the eye. <br /><br />In the settings there is the "workbench.colorcustomizations" </p><p><br /></p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEhFm0DaryGrz1aa_i0GFiZ4WKitIE4MrGT9_BpZ20xe9ncZfz8YPNlxqTQTD-nTjihwF3xIkCgo8chQWc7qcwsPR0F2pmbCFf58K3IizhoUTkBiOKAGl-R3mrhgJt6X8n5J-wRLwHWzuI6M6CeedDXlqha15g4nn69rWkNU-1ol-WI5FXDaeKqw0pu6QF0" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="336" data-original-width="714" height="151" src="https://blogger.googleusercontent.com/img/a/AVvXsEhFm0DaryGrz1aa_i0GFiZ4WKitIE4MrGT9_BpZ20xe9ncZfz8YPNlxqTQTD-nTjihwF3xIkCgo8chQWc7qcwsPR0F2pmbCFf58K3IizhoUTkBiOKAGl-R3mrhgJt6X8n5J-wRLwHWzuI6M6CeedDXlqha15g4nn69rWkNU-1ol-WI5FXDaeKqw0pu6QF0" width="320" /></a></div><br /><br /><p></p><p>adding the "tab.activeBackground" and set a color of your choice helps a lot: <br /><br /></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEhd0hqKtsL8fI1KH5-pEEapiFVrmt4nEhtADOX6fRvVGcsjIiSP0sjfqIXiNEqFofk2RQgxpCPCFLYXh1PfdAdS9WaRb1aTBBcd4F-DpZbQrHntBElUHQvocIAYLBQ0XQfGQ1fZBxXgusxVJkvZXXRm1c-RWDMhkAgmkx1SjfnOeeMpYPEK8CK2aQaYltU" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="95" data-original-width="497" height="61" src="https://blogger.googleusercontent.com/img/a/AVvXsEhd0hqKtsL8fI1KH5-pEEapiFVrmt4nEhtADOX6fRvVGcsjIiSP0sjfqIXiNEqFofk2RQgxpCPCFLYXh1PfdAdS9WaRb1aTBBcd4F-DpZbQrHntBElUHQvocIAYLBQ0XQfGQ1fZBxXgusxVJkvZXXRm1c-RWDMhkAgmkx1SjfnOeeMpYPEK8CK2aQaYltU" width="320" /></a></div><br /><br /><p></p><p><br /></p><p>Here's the result: </p><p><br /></p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEiUoghqVPBRT3dAWEn4CVEs1bBZV9dknPLqTVDzRzv2lZSLRKlTILphhMsBjn-rMkt_6uXpGDkJQPXygSTCC_Dip_KLvl7ri4sx8IMqKQPrO55MSErjIWV0i51-M2xWCY6huu41KM0FL1eEY5kvryQDVwDvLUMMaPqOvBFoXass1buy5Nk4wW_WpfddXHU" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="79" data-original-width="170" height="149" src="https://blogger.googleusercontent.com/img/a/AVvXsEiUoghqVPBRT3dAWEn4CVEs1bBZV9dknPLqTVDzRzv2lZSLRKlTILphhMsBjn-rMkt_6uXpGDkJQPXygSTCC_Dip_KLvl7ri4sx8IMqKQPrO55MSErjIWV0i51-M2xWCY6huu41KM0FL1eEY5kvryQDVwDvLUMMaPqOvBFoXass1buy5Nk4wW_WpfddXHU" width="320" /></a></div><br /><br /><p></p>Ewald Ertlhttp://www.blogger.com/profile/10533198864334194124noreply@blogger.com0tag:blogger.com,1999:blog-8650166054307172837.post-60502822315071669942023-09-05T12:30:00.008+02:002023-09-05T12:30:48.541+02:00docker-compose or docker build fails for an insecure registry by a failing HEADS call using https<p> I have an <i>insecure registry</i>, which is configured in <i>/etc/docker/daemon.json</i>. <br /><br /><br /><b>docker pull</b> is working but neither "<i>docker-compose build</i>" nor "<i>docker build</i>" works, to load the Metadata with a HEAD call, which is using a <i>https</i> protocol. <br /><br />something like this: <br /><br /></p><pre class="lang-none s-code-block" style="--_cb-line-numbers-bg: var(--black-050); border-radius: var(--br-md); border: 0px; box-sizing: inherit; font-feature-settings: inherit; font-kerning: inherit; font-optical-sizing: inherit; font-size: var(--fs-body1); font-stretch: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; font-variation-settings: inherit; line-height: var(--lh-md); margin-bottom: calc(1.5em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: var(--su12); vertical-align: baseline; width: auto;"><code style="border: 0px; box-sizing: inherit; font-feature-settings: inherit; font-kerning: inherit; font-optical-sizing: inherit; font-size: var(--_pr-code-fs); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-variation-settings: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;"><blockquote><span style="color: #b45f06; font-family: courier;"><b>failed to solve with frontend dockerfile.v0: failed to create LLB definition:
failed to do request: Head "https://harbor.local/v2/undertow-revocation-filter/manifests/latest":
dial tcp 10.180.136.12:443:
connect: connection refused</b></span></blockquote></code></pre><p><br /><br />Found the solution in the following <a href="https://stackoverflow.com/questions/69871759/docker-build-command-tries-to-connect-https-to-insecure-registry" target="_blank">link</a>. <br /><br /><br />Setting the environment variable <b>DOCKER_BUILDKIT=0</b> solved the issue</p>Ewald Ertlhttp://www.blogger.com/profile/10533198864334194124noreply@blogger.com0tag:blogger.com,1999:blog-8650166054307172837.post-85569144476076254252023-08-31T15:52:00.002+02:002023-08-31T15:52:24.891+02:00Want to control your internet browser via the keyboard<p> If you like to control your PC more with the keyboard than with the mouse, there is a <br />nice extension for nearly every browser to provide keyboard control over every website. <br /><br />Just use the extension <a href="https://github.com/brookhong/Surfingkeys" target="_blank">SurfingKeys</a> at <a href="https://github.com/brookhong/Surfingkeys">https://github.com/brookhong/Surfingkeys</a>. <br /><br /><br /></p>Ewald Ertlhttp://www.blogger.com/profile/10533198864334194124noreply@blogger.com0tag:blogger.com,1999:blog-8650166054307172837.post-5907611974566627382023-07-07T10:13:00.004+02:002023-07-07T10:13:50.310+02:00Despite updated login app, Postman still shows the old login page in a PKCE flow. <p> I'm using postman to test the PKCE flow against WSO2 Identity server. <br /><br />After adjusting the authenticationendpoint webapp, the flow in Postman still showed the <br />old webpage, also in the deployment/server/webapps/authentciationendpoint, the new css got deployed. </p><p><br /></p><p>There were a hint in the menu for Help-menu an item to clear the cache: <br /><br /></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEilWfgBSMAtHGFQvgIZ8Y0RbU1Axq7aGbhorKUZoLmGoVdqdlz6ENFvzIWjh_96cbkHM0pm83xEajfVYsqt-lyC2pVCmxyg4JHBS9wuTqAOvNkuuJwvs8r7e3tgj-g29_7ERm_5rUjj5Weml8PvjCxjPg4wavrkwTZhRh3cOHn-EIh56i1znZPZfC8aTTA" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="369" data-original-width="383" height="386" src="https://blogger.googleusercontent.com/img/a/AVvXsEilWfgBSMAtHGFQvgIZ8Y0RbU1Axq7aGbhorKUZoLmGoVdqdlz6ENFvzIWjh_96cbkHM0pm83xEajfVYsqt-lyC2pVCmxyg4JHBS9wuTqAOvNkuuJwvs8r7e3tgj-g29_7ERm_5rUjj5Weml8PvjCxjPg4wavrkwTZhRh3cOHn-EIh56i1znZPZfC8aTTA=w400-h386" width="400" /></a></div><br /><br /><p></p><p>Problem is, that this didn't change anything. <br /><br /><br />What helped, was adding a "Token Name" and removing it afterward, so it pulled the new <br />page</p><p><br /></p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEgHMNO_cdxKftpjy82BsgU2AZOPDFQ2yLZdYxQmxagl2C69Q_cOlq0XuJfLpjN9lxnfwv1w3234BIvRou9TZGBKDxAj7oNO63IAFD7FUVERpXVEN0uA0SRijYOzuMbTYoL4kqslDGjSfJnd2BMwCJoexKaj40MJlyQtTow9AYzzxA8SEKEXwIw85tTuVf0" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="781" data-original-width="621" height="400" src="https://blogger.googleusercontent.com/img/a/AVvXsEgHMNO_cdxKftpjy82BsgU2AZOPDFQ2yLZdYxQmxagl2C69Q_cOlq0XuJfLpjN9lxnfwv1w3234BIvRou9TZGBKDxAj7oNO63IAFD7FUVERpXVEN0uA0SRijYOzuMbTYoL4kqslDGjSfJnd2BMwCJoexKaj40MJlyQtTow9AYzzxA8SEKEXwIw85tTuVf0=w318-h400" width="318" /></a></div><br /><br /><p></p>Ewald Ertlhttp://www.blogger.com/profile/10533198864334194124noreply@blogger.com0tag:blogger.com,1999:blog-8650166054307172837.post-56114986781017504322023-07-04T10:53:00.007+02:002023-07-04T10:53:57.135+02:00removing an archive from a remote server after pulling with sftp <p> Usually, I log in to a remote system via ssh prepare an archive of files. <br />Afterwards login via sftp to pull the archive and later on via the ssh-session, the archive is <br />removed.</p><p>Removing can also be done directly in sftp, without removing the file in the ssh-session. <br /><br /></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEh4KLzzMMhJSJHKkWEndjOk3RvCqZPq76EgRhRZuojtz093IIJoPxGpz7gdv4FHd7_u9OT-RDilOvc7gVAbFYVGX_oQ7hCM_x3HR-1ctIaHYNFKv7Kmj5eMiwX-KU1_g5Bzdaj_ZBNYJpecfXkkjweSN-ubLxxScH0S8lm7pamxvWpUQvgS3ppZxMQ2LZM" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="569" data-original-width="563" height="240" src="https://blogger.googleusercontent.com/img/a/AVvXsEh4KLzzMMhJSJHKkWEndjOk3RvCqZPq76EgRhRZuojtz093IIJoPxGpz7gdv4FHd7_u9OT-RDilOvc7gVAbFYVGX_oQ7hCM_x3HR-1ctIaHYNFKv7Kmj5eMiwX-KU1_g5Bzdaj_ZBNYJpecfXkkjweSN-ubLxxScH0S8lm7pamxvWpUQvgS3ppZxMQ2LZM" width="237" /></a></div><br /><br /><p></p>Ewald Ertlhttp://www.blogger.com/profile/10533198864334194124noreply@blogger.com0tag:blogger.com,1999:blog-8650166054307172837.post-34961373065790825652023-06-05T18:54:00.005+02:002023-06-05T18:55:12.691+02:00Adding GitLab workflow plugin in VS Code, but detected git project has "(no gitLab project)"<p> After adding the GitLab Workflow extension to VSCode, <br /><br /></p><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><br /></div><br /></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkmyzaSsAgLwFOBDfUx8JQ5wshgkmZ5SsVDNu8C26mXcxr8kPNZM4k6Ouf2iOXFraf312CWUYxHhSiOIYR1ifUl0YGpoGhc5Li-dD8nt_KoyUuzoX4fRKvGZGrv2JtOz2YFYEA1oguwvQYDDQxbH0j3l1Cy29TIAtL8HXGOXx0RALA-dKxDM6FJ1f7/s874/Screenshot_2.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="116" data-original-width="874" height="84" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkmyzaSsAgLwFOBDfUx8JQ5wshgkmZ5SsVDNu8C26mXcxr8kPNZM4k6Ouf2iOXFraf312CWUYxHhSiOIYR1ifUl0YGpoGhc5Li-dD8nt_KoyUuzoX4fRKvGZGrv2JtOz2YFYEA1oguwvQYDDQxbH0j3l1Cy29TIAtL8HXGOXx0RALA-dKxDM6FJ1f7/w640-h84/Screenshot_2.png" width="640" /></a></div><br /><br />After adding the GitLab account with the token (GitLab: Add Account to VSCode), <br /><br />from SourceControl, the project is determined, but shows <p></p><p>the following window, when clicking on the line for the repo on the left. </p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhX5dW6dZ-Nqg9eSluUlgWPoaE5qAZK4gP9tuEbVWeQNSzxj_cPxeiBq582NSmz0m41ZLeCJH2uRMUHDiYqXGT8QcRbZ9M0Vf3NhZnuX0LIbm_verT0nN6RJ6MH5QiKBaCzy2fVMeCnTXLaiDxf4az-DqNx-BmWMq1fIeZMzCSs2D-YA2nm5relt2DY/s2027/Screenshot_3.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="139" data-original-width="2027" height="44" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhX5dW6dZ-Nqg9eSluUlgWPoaE5qAZK4gP9tuEbVWeQNSzxj_cPxeiBq582NSmz0m41ZLeCJH2uRMUHDiYqXGT8QcRbZ9M0Vf3NhZnuX0LIbm_verT0nN6RJ6MH5QiKBaCzy2fVMeCnTXLaiDxf4az-DqNx-BmWMq1fIeZMzCSs2D-YA2nm5relt2DY/w640-h44/Screenshot_3.png" width="640" /></a></div><p><br /></p>The trick is to do a right click on the line: <br /><br /><br /><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtbrIkMxFEt7A17a6zpjn6mq3uug5VxRNJb0IBbw6XXCzAWOJ9kTuB4Pco8wJiJWu4vV6o8tm0uwqGvBJqQ_ek-au7PlD9RVx4tzm1Hy927wfJTzgRA-Va9xvp33IdE50oRlxkACY1Saokhgft2rOODNQvtOZbizyy_UIELpkvyP0UJjaUAqMZuhpI/s906/Screenshot_4.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="127" data-original-width="906" height="90" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtbrIkMxFEt7A17a6zpjn6mq3uug5VxRNJb0IBbw6XXCzAWOJ9kTuB4Pco8wJiJWu4vV6o8tm0uwqGvBJqQ_ek-au7PlD9RVx4tzm1Hy927wfJTzgRA-Va9xvp33IdE50oRlxkACY1Saokhgft2rOODNQvtOZbizyy_UIELpkvyP0UJjaUAqMZuhpI/w640-h90/Screenshot_4.png" width="640" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: left;">This opens a different dialog where the repos on the GitLab Instance are scanned, which can be assigned. </div><div class="separator" style="clear: both; text-align: center;"><br /></div></div><br /><br /><p></p><p><br /></p><p></p><div class="separator" style="clear: both; text-align: center;"><br /></div><br /><br /><p></p>Ewald Ertlhttp://www.blogger.com/profile/10533198864334194124noreply@blogger.com0tag:blogger.com,1999:blog-8650166054307172837.post-57332730456511852942023-05-26T16:53:00.005+02:002023-05-26T16:53:37.067+02:00Changing the color of the cursor in VS Code<p> Using a dark color scheme in VS Code having a grey cursor, makes it hard to find the <br />cursor on a large screen. <br /><br />There is a setting which can change the color: <br /><br /><br /></p><pre class="lang-js s-code-block" style="--_cb-line-numbers-bg: var(--black-050); border-radius: var(--br-md); border: 0px; box-sizing: inherit; font-family: var(--ff-mono); font-feature-settings: inherit; font-kerning: inherit; font-optical-sizing: inherit; font-size: var(--fs-body1); font-stretch: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; font-variation-settings: inherit; line-height: var(--lh-md); margin-bottom: calc(1.5em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: var(--su12); vertical-align: baseline; width: auto;"><code class="hljs language-javascript" style="border: 0px; box-sizing: inherit; font-family: inherit; font-feature-settings: inherit; font-kerning: inherit; font-optical-sizing: inherit; font-size: var(--_pr-code-fs); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-variation-settings: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;"><span class="hljs-string" style="border: 0px; box-sizing: inherit; font-family: inherit; font-feature-settings: inherit; font-kerning: inherit; font-optical-sizing: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-variation-settings: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"><span style="color: #b45f06;"><b></b></span></span><blockquote><span style="color: #b45f06;"><b><span class="hljs-string" style="border: 0px; box-sizing: inherit; font-family: inherit; font-feature-settings: inherit; font-kerning: inherit; font-optical-sizing: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-variation-settings: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">"workbench.colorCustomizations"</span>: {
<span class="hljs-string" style="border: 0px; box-sizing: inherit; font-family: inherit; font-feature-settings: inherit; font-kerning: inherit; font-optical-sizing: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-variation-settings: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">"editorCursor.foreground"</span>: <span class="hljs-string" style="border: 0px; box-sizing: inherit; font-family: inherit; font-feature-settings: inherit; font-kerning: inherit; font-optical-sizing: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-variation-settings: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">"#ffff00"</span>,
<span class="hljs-string" style="border: 0px; box-sizing: inherit; font-family: inherit; font-feature-settings: inherit; font-kerning: inherit; font-optical-sizing: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-variation-settings: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">"terminalCursor.foreground"</span>: <span class="hljs-string" style="border: 0px; box-sizing: inherit; font-family: inherit; font-feature-settings: inherit; font-kerning: inherit; font-optical-sizing: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-variation-settings: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">"#ffff00"</span>
}</b></span></blockquote></code></pre>Ewald Ertlhttp://www.blogger.com/profile/10533198864334194124noreply@blogger.com0tag:blogger.com,1999:blog-8650166054307172837.post-19570972273487553802023-05-17T17:25:00.005+02:002023-05-17T17:25:33.233+02:00Compare large files fails with meld or on VS Code - diffuse to the rescue<p> On my Ubuntu 23.04 WSL2 installation on Windows 10 I had to compare 2 70 MB files. <br /><br />The first attempt was to use <a href="https://code.visualstudio.com/" target="_blank">VSCode</a>, but that fails with a message that the file is too big. <br />As a second attempt, I tried my usual compare tool called <a href="https://meldmerge.org/" target="_blank">meld</a>. But I killed it after waiting a couple of minutes. <br /><br />The Rescue were <a href="https://sourceforge.net/projects/tkdiff/">TkDiff</a> and <a href="https://diffuse.sourceforge.net/index.html" target="_blank">Diffuse</a>, which were returning very quickly, offering a UI merge. <br /><br />DiffUse has a nicer interface and did the job. It even offers a direct edit with a double click. </p><p><br /></p><p>It can even be used as a difftool in git. <br /><br />Here an example from the homepage of DiffUse: <br /><br /><br /></p><div class="separator" style="clear: both; text-align: center;"><a href="https://diffuse.sourceforge.net/screenshot.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="795" data-original-width="1030" height="795" src="https://diffuse.sourceforge.net/screenshot.png" width="1030" /></a></div><br />Ewald Ertlhttp://www.blogger.com/profile/10533198864334194124noreply@blogger.com0tag:blogger.com,1999:blog-8650166054307172837.post-36416593787285062202023-05-16T13:26:00.004+02:002023-05-16T13:26:34.266+02:00Extracting a filtered data set from a database with DBeaver into an Excel sheet. <p> Some time ago, I wrote already about the installation of a plugin into DBeaver to allow <br />exporting data into an Excel sheet: <br /><br /><a href="https://ewaldertl.blogspot.com/2019/08/exporting-database-as-excel-sheet-from.html">https://ewaldertl.blogspot.com/2019/08/exporting-database-as-excel-sheet-from.html</a><br /><br />From the comments, it looks like for some time the plugin was not available, but today May 16th 2023 the plugin is available in DBeaver 23.0.4 Community Edition: <br /><br /></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEjunAcyamuwOQ3M0zCgsbK39draHi3KgTFLa9OcDCUg6SgqKzOMBVMmkccWTqQMH5EJjbRJWWFL25F0-syIpThvAzADiGoCUZoVZlh3BNWKJTEFLOnEGNsMSuOPC3Nm9gFQBzclCEwuYm4kOdHbvQBcu19lTA5T-_Oiw-jhLlzr12kmBIXWU2isNyll" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="530" data-original-width="1172" height="290" src="https://blogger.googleusercontent.com/img/a/AVvXsEjunAcyamuwOQ3M0zCgsbK39draHi3KgTFLa9OcDCUg6SgqKzOMBVMmkccWTqQMH5EJjbRJWWFL25F0-syIpThvAzADiGoCUZoVZlh3BNWKJTEFLOnEGNsMSuOPC3Nm9gFQBzclCEwuYm4kOdHbvQBcu19lTA5T-_Oiw-jhLlzr12kmBIXWU2isNyll=w640-h290" width="640" /></a></div><br /><br /><br />In the old post I described the export of the whole table, but today I found that it's also possible to <br />only export selected data. <br /><br /><br />Therefore, open the table and enter your selection criteria at the top: <p></p><p>Make a right-click in the table and use the "Export data" dialog as described in the original post <br />to extract to an Excel sheet. </p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKDcw0j8jXKnS3dRtC-8Pqj-YkTEb1sahFPkB3JpIIUjlgqtPgMN44RGyY__G1yGuTc0m_hhGFOcxR9Z3i0SYHI0S0j7G8p_OwUZ7r4lTu4FwXLwHe_7ZNwLqAcbpaLb_rZYdB9a5Mw5jpTCtH1z6exhvD33DzhuRLz2VzdYpHoRhGaYZrKSA03OIc/s1127/DBeaver1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="420" data-original-width="1127" height="238" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKDcw0j8jXKnS3dRtC-8Pqj-YkTEb1sahFPkB3JpIIUjlgqtPgMN44RGyY__G1yGuTc0m_hhGFOcxR9Z3i0SYHI0S0j7G8p_OwUZ7r4lTu4FwXLwHe_7ZNwLqAcbpaLb_rZYdB9a5Mw5jpTCtH1z6exhvD33DzhuRLz2VzdYpHoRhGaYZrKSA03OIc/w640-h238/DBeaver1.png" width="640" /></a></div><br /><div class="separator" style="clear: both; text-align: center;"><br /></div><br /><br /><br /><br /><p></p>Ewald Ertlhttp://www.blogger.com/profile/10533198864334194124noreply@blogger.com0tag:blogger.com,1999:blog-8650166054307172837.post-31125602246954610212023-05-16T12:11:00.005+02:002023-05-16T12:11:56.594+02:00When launching "npx cypress open" ends up in ENOSPC: System limit for number of file watchers reached, watch '/home/user/dev/testing/.git/HEAD'<p> I remember to have started cypress with '<i>npx cypress open</i>' without issue. Now coming back <br />after some time and relaunch, ends in the UI-Message ENOSPC: <br /><br /><br /></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqXaIUjovsG3M8pl0uaW24jVcDluWd3VHm1NdOAh8Mg7upJKuhy15Zsum2cZq3QYp2bSjl8ik97mtwCSREwE1-Q0yCgAy8RIX719A7aU4gMbjNMm0sfhzCI9_lUlpZCwMAABKlMy9fGsTC3J22nAVX1jzXWAkVy0P1TOwGF01gjheCxKxaEShOHgAe/s1188/cypress_error.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="361" data-original-width="1188" height="194" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqXaIUjovsG3M8pl0uaW24jVcDluWd3VHm1NdOAh8Mg7upJKuhy15Zsum2cZq3QYp2bSjl8ik97mtwCSREwE1-Q0yCgAy8RIX719A7aU4gMbjNMm0sfhzCI9_lUlpZCwMAABKlMy9fGsTC3J22nAVX1jzXWAkVy0P1TOwGF01gjheCxKxaEShOHgAe/w640-h194/cypress_error.png" width="640" /></a></div><br /><div>Looking around, I found this link: <a href="https://github.com/cypress-io/cypress/issues/6960">https://github.com/cypress-io/cypress/issues/6960</a></div><div><br /><br />starting with </div><div><br /></div><div><blockquote><b><span style="color: #b45f06;"> CHOKIDAR_USEPOLLING=1 npx cypress open</span></b></blockquote></div><div>by setting the environment variable <i>CHOKIDAR_USEPOLLING=1</i> the UI starts again: <br /><br /><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEi-ZEW5g4oOu4cspH99tdKzUlxsZKKt0ygjRo7lQvqusa7DeHdsehGGtpl14JmLKnT-pVjIzZtApvojCViYFINxVyKtJyZ71s_oycvcDgozyD5qWsvI-6-3dwiGihgq2Rt9xOQnHXCOwutcquaJhUVVFgkCrDMNT8hT5jORZ1ZUqEH3Medqd4Pu0jog" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="578" data-original-width="1012" height="366" src="https://blogger.googleusercontent.com/img/a/AVvXsEi-ZEW5g4oOu4cspH99tdKzUlxsZKKt0ygjRo7lQvqusa7DeHdsehGGtpl14JmLKnT-pVjIzZtApvojCViYFINxVyKtJyZ71s_oycvcDgozyD5qWsvI-6-3dwiGihgq2Rt9xOQnHXCOwutcquaJhUVVFgkCrDMNT8hT5jORZ1ZUqEH3Medqd4Pu0jog=w640-h366" width="640" /></a></div><br /><br /></div>Ewald Ertlhttp://www.blogger.com/profile/10533198864334194124noreply@blogger.com0tag:blogger.com,1999:blog-8650166054307172837.post-79042246017431336022023-04-25T09:19:00.007+02:002023-04-25T09:19:41.145+02:00Enable systemd on a WSL2 Ubuntu 23.04 intance<p> Before, it was always a little bit tricky to get systemd (and docker service) running on <br />Ubuntu instances on WSL2. <br /><br /><br />With Ubuntu 23.04 the "native" support for <i>systemd</i> is available. <br /><br /></p><p>Just commented the scripted version in <i>/etc/bash.bashrc: <br /><br /></i></p><p><i><b><span style="color: #b45f06;"></span></b></i></p><blockquote><p><span style="color: #b45f06;"><b></b></span></p><blockquote><p><span style="color: #b45f06;"><b># Start or enter a PID namespace in WSL2</b></span></p><p><b><span style="color: #b45f06;"></span></b></p><p><span style="color: #b45f06;"><b>#source /usr/sbin/start-systemd-namespace</b></span></p></blockquote><p><span style="color: #b45f06;"><b></b></span></p></blockquote><p>to remove the "manual" starting of <i>systemd,</i></p><p>and activated <i>systemd</i> in <i>/etc/wsl.conf: <br /><br /><br /></i></p><p><span style="color: #b45f06; font-family: courier;"><b></b></span></p><blockquote><p><span style="color: #b45f06; font-family: courier;"><b>[boot]</b></span></p><p><span style="color: #b45f06; font-family: courier;"><b>systemd = true</b></span></p></blockquote><p><span style="color: #b45f06; font-family: courier;"><b></b></span></p><p><i><br /><br />see also <a href="https://ubuntu.com/blog/ubuntu-wsl-enable-systemd">https://ubuntu.com/blog/ubuntu-wsl-enable-systemd</a></i></p><p><i><b><span style="color: #b45f06;"></span></b></i></p>Ewald Ertlhttp://www.blogger.com/profile/10533198864334194124noreply@blogger.com0tag:blogger.com,1999:blog-8650166054307172837.post-48509683439494335732023-04-24T09:06:00.009+02:002023-04-24T09:06:46.902+02:00Upgrade WSL2 Ubuntu 22.10 to 23.04<p> The upgarde was smoothly for me. </p><p><br /></p><p>First update the actual system and later on distribution upgrade. <br /><br /></p><pre style="border-radius: var(--br-md); border: 0px; box-sizing: inherit; font-feature-settings: inherit; font-kerning: inherit; font-optical-sizing: inherit; font-size: var(--fs-body1); font-stretch: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; font-variation-settings: inherit; line-height: var(--lh-md); margin-bottom: calc(1.5em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: var(--su12); vertical-align: baseline; width: auto;"><code style="border-radius: 0px; border: 0px; box-sizing: inherit; font-feature-settings: inherit; font-kerning: inherit; font-optical-sizing: inherit; font-size: var(--_pr-code-fs); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-variation-settings: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;"><blockquote><span style="color: #b45f06; font-family: courier;"><b>sudo apt update && sudo apt full-upgrade
# restart Ubuntu
sudo do-release-upgrade</b></span></blockquote><p><br /></p><p>Execution went smoothly, but unfortunatly the old "/usr/sbin/update-binfmts --disable cli"
alone didn't allow me to start vs code in the WSL2 bash.
Finally this ticket was of help: <a href="https://github.com/microsoft/WSL/issues/8843">https://github.com/microsoft/WSL/issues/8843</a></p><p>
Adding into /usr/lib/binfmt.d a WSLInterop.conf file with the content:
</p><blockquote><b><span style="color: #b45f06; font-family: courier;">cat /usr/lib/binfmt.d/WSLInterop.conf
:WSLInterop:M::MZ::/init:PF</span></b></blockquote><p><br /></p><p>and executing </p><p><br /></p><p></p><blockquote><span style="color: #b45f06; font-family: courier;"><b>/usr/sbin/update-binfmts --disable cli</b></span></blockquote><p> </p><p></p><p>allowed me to start code locally in the bash again. </p><p></p></code></pre>Ewald Ertlhttp://www.blogger.com/profile/10533198864334194124noreply@blogger.com0tag:blogger.com,1999:blog-8650166054307172837.post-25530947057229568422023-04-14T13:13:00.003+02:002023-04-14T13:13:33.946+02:00Running portainer agent on a podman instance<p> Since a podman instance is rootless, the socket must first be activated for your user via systemctl :<br /><br /><a href="https://github.com/containers/podman/blob/main/docs/tutorials/socket_activation.md">https://github.com/containers/podman/blob/main/docs/tutorials/socket_activation.md</a></p><p><br /></p><p><br /></p><p>When the socket is available, you can start the portainer agent via: <br /><br /><br /></p><blockquote><span style="color: #b45f06; font-family: courier;"><b>podman container run -d -p 9001:9001 --name=portainer_agent --privileged --restart=always -v $XDG_RUNTIME_DIR/podman/podman.sock:/var/run/docker.sock portainer/agent</b></span></blockquote><p><br /></p><p> </p><p></p>Ewald Ertlhttp://www.blogger.com/profile/10533198864334194124noreply@blogger.com0tag:blogger.com,1999:blog-8650166054307172837.post-31240905020785276132023-04-14T11:14:00.002+02:002023-04-14T11:14:27.853+02:00Controling remote containers running in a podman environment without logging into the remote machine<p><a href="https://podman.io/" target="_blank">Podman </a>is an alternative implementation of the docker command. It runs containers as the current user and doesn't need a running daemon in the background. <br /><br />This page describes the setup via ssh access and the socket listening as a systemd service: <br /><br /><a href="https://github.com/containers/podman/blob/main/docs/tutorials/remote_client.md">https://github.com/containers/podman/blob/main/docs/tutorials/remote_client.md</a></p><p><br />After everything is set up, it is as simple as </p><p><br /></p><p><br /></p><p><span style="color: #b45f06; font-family: courier;"><b></b></span></p><blockquote><span style="color: #b45f06; font-family: courier;"><b>podman -c <connectString> --remote container ls </b></span></blockquote><p><br /></p><p> </p><p></p>Ewald Ertlhttp://www.blogger.com/profile/10533198864334194124noreply@blogger.com0tag:blogger.com,1999:blog-8650166054307172837.post-19638849581291468392023-03-09T11:17:00.003+01:002023-03-09T11:17:33.049+01:00How to save tabgroups in chrome for later usage<p> In<a href="https://ewaldertl.blogspot.com/2022/10/managing-tabs-in-chrome-with-tab-groups.html" target="_blank"> https://ewaldertl.blogspot.com/2022/10/managing-tabs-in-chrome-with-tab-groups.html</a>, </p><p>I descried the usage of tab groups in chrome to bundle common tabs into a group. <br /><br />This groups can be collapsed and opened. If a group gets accidentally closed, the group can be <br />reopened from the history. <br /><br />But it would be nice to store the group. <br /><br />via the URL : chrome://flags , you can activate the feature: <br /><br /></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEiUX3t-8wlqj69yzL9KfVYlHoAEgoowuY9GGalF5TEhXlWM-1rtnmlpGrH-A31HMaMN2HTc9uRPLfD6uYjdK4iD-hea_2oIrzUj6BJa-v0gh6U2CcYGs_8-fVDLiYNWSoSOhBIN9KTBNeYLvBlzpTxE91HtiZ94NOT0gdx0K7WCNCXWh6SA0fBBXlmc" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="292" data-original-width="1062" height="110" src="https://blogger.googleusercontent.com/img/a/AVvXsEiUX3t-8wlqj69yzL9KfVYlHoAEgoowuY9GGalF5TEhXlWM-1rtnmlpGrH-A31HMaMN2HTc9uRPLfD6uYjdK4iD-hea_2oIrzUj6BJa-v0gh6U2CcYGs_8-fVDLiYNWSoSOhBIN9KTBNeYLvBlzpTxE91HtiZ94NOT0gdx0K7WCNCXWh6SA0fBBXlmc=w400-h110" width="400" /></a></div><br /><br />which adds a save to the context menu of the tabgroup. <br /><br />Found the description in <a href="https://www.theverge.com/23384844/chrome-google-tab-groups-create-save-how-to">https://www.theverge.com/23384844/chrome-google-tab-groups-create-save-how-to</a><p></p><p><br />The closed tabgroups are displayed in the bookmark bar. <br /><br /><br /></p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEi4w2rFaJyGGkQ_ZbPRlt0K9U2-jUKk1s5jh2CZl2wpmhmlP1Z6L8DdwDuB-VRYteh4DfMV4LG7pW9uhgjdODdyyz0WJptwuwpdTM5-FIXsDwLF6UR3mNnMfSW1DSvQIWdKXBXjfue79TDp_cqI3hZvCCAzXftm_PizYaLLv6hPhpfSKGv8hnRm0-4_" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="66" data-original-width="183" height="115" src="https://blogger.googleusercontent.com/img/a/AVvXsEi4w2rFaJyGGkQ_ZbPRlt0K9U2-jUKk1s5jh2CZl2wpmhmlP1Z6L8DdwDuB-VRYteh4DfMV4LG7pW9uhgjdODdyyz0WJptwuwpdTM5-FIXsDwLF6UR3mNnMfSW1DSvQIWdKXBXjfue79TDp_cqI3hZvCCAzXftm_PizYaLLv6hPhpfSKGv8hnRm0-4_" width="320" /></a></div><br /><br /><p></p>Ewald Ertlhttp://www.blogger.com/profile/10533198864334194124noreply@blogger.com0