<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linux / Unix &#8211; Stefan Meyer</title>
	<atom:link href="https://blog.meyer-luenen.de/category/it/linux-unix/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.meyer-luenen.de</link>
	<description>Lose-Blatt-Sammlung</description>
	<lastBuildDate>Sat, 28 Mar 2026 14:11:17 +0000</lastBuildDate>
	<language>de</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://i0.wp.com/blog.meyer-luenen.de/wp-content/uploads/2018/12/cropped-StM-Portrait-Raesfeld-600x600-removebg-2.png?fit=32%2C32&#038;ssl=1</url>
	<title>Linux / Unix &#8211; Stefan Meyer</title>
	<link>https://blog.meyer-luenen.de</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">148105417</site>	<item>
		<title>IP-Adresse vor dem Login anzeigen</title>
		<link>https://blog.meyer-luenen.de/2025/08/28/ip-adresse-vor-dem-login-anzeigen/</link>
		
		<dc:creator><![CDATA[Stefan]]></dc:creator>
		<pubDate>Thu, 28 Aug 2025 07:09:13 +0000</pubDate>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Linux / Unix]]></category>
		<guid isPermaLink="false">https://blog.meyer-luenen.de/?p=866</guid>

					<description><![CDATA[Gerade bei lokalen virtuellen Testmaschinen kann es sinnvoll sein, die (sich wechselnde) lokale IP-Adresse vor dem login zu sehen, um z.B. von der lokalen Kommandozeile per ssh darauf zugreifen zu können. Guckst Du hier, &#8222;wie&#8220;&#8230; Hinweis: aus Sicherheitsgründen dieses nicht auf echten Servern machen &#8211; maximal bei lokalen VMs.Alles hier auf der VM durchführen als [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Gerade bei lokalen virtuellen Testmaschinen kann es sinnvoll sein, die (sich wechselnde) lokale IP-Adresse <strong>vor</strong> dem login zu sehen, um z.B. von der lokalen Kommandozeile per ssh darauf zugreifen zu können. Guckst Du hier, &#8222;wie&#8220;&#8230;</p>


<a class="wp-block-read-more" href="https://blog.meyer-luenen.de/2025/08/28/ip-adresse-vor-dem-login-anzeigen/" target="_self">Weiterlesen<span class="screen-reader-text">: IP-Adresse vor dem Login anzeigen</span></a>


<p>Hinweis: aus Sicherheitsgründen dieses nicht auf echten Servern machen &#8211; maximal bei lokalen VMs.<br>Alles hier auf der VM durchführen als sudo-User (dann mit sudo) oder als root (ohne sudo):</p>



<ol class="wp-block-list">
<li>Erstelle das Verzeichnis:<br><code>sudo mkdir -p /etc/issue.net.d</code></li>



<li>Erstelle die Datei <code>/etc/issue.net.d/ip-show.sh</code>:<br><code>sudo nano /etc/issue.net.d/ip-show.sh</code></li>



<li>Füge folgenden Inhalt ein:<br>!/bin/bash<br>IP=$(ip -4 addr show | grep -v &#8222;127.0.0.1&#8220; | grep -oP &#8218;(?&lt;=inet\s)\d+(.\d+){3}&#8216; | head -n1) <br>echo &#8222;System IP Address: $IP&#8220; &gt; /etc/issue</li>



<li>Mache das Script ausführbar:<br><code>sudo chmod +x /etc/issue.net.d/ip-show.sh</code></li>



<li>Erstelle das Verzeichnis für den systemd Service:<br><code>sudo mkdir -p /etc/systemd/system/getty@.service.d/</code></li>



<li>Erstelle die Datei <code>/etc/systemd/system/getty@.service.d/show-ip.conf</code>:<br><code>sudo nano /etc/systemd/system/getty@.service.d/show-ip.conf</code></li>



<li>Mit folgendem Inhalt:<br>[Service]<br>ExecStartPre=/etc/issue.net.d/ip-show.sh</li>



<li>Reload systemd und restart den getty service:<br>sudo systemctl daemon-reload<br>sudo systemctl restart getty@tty1.service</li>
</ol>



<p>Jetzt sollte die IP-Adresse vor dem Login angezeigt werden. Das Script wird beim Start des getty-Services ausgeführt und aktualisiert die <code>/etc/issue</code> Datei mit der aktuellen IP-Adresse.</p>



<p>Oder Du kopierst diesen ganzen Block und fügst ihn in deine Shell ein:</p>



<pre class="wp-block-code"><code>sudo mkdir -p /etc/issue.net.d
sudo tee /etc/issue.net.d/ip-show.sh &gt; /dev/null &lt;&lt; 'EOF'
#!/bin/bash
IP=$(ip -4 addr show | grep -v "127.0.0.1" | grep -oP '(?&lt;=inet\s)\d+(\.\d+){3}' | head -n1)
echo "System IP Address: $IP" &gt; /etc/issue
EOF
sudo chmod +x /etc/issue.net.d/ip-show.sh
sudo mkdir -p /etc/systemd/system/getty@.service.d/
sudo tee /etc/systemd/system/getty@.service.d/show-ip.conf &gt; /dev/null &lt;&lt; 'EOF'
&#91;Service]
ExecStartPre=/etc/issue.net.d/ip-show.sh
EOF
sudo systemctl daemon-reload
sudo systemctl restart getty@tty1.service</code></pre>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">866</post-id>	</item>
		<item>
		<title>Ubuntu als zweites WSL installieren</title>
		<link>https://blog.meyer-luenen.de/2025/01/07/ubuntu-als-zweites-wsl-installieren/</link>
		
		<dc:creator><![CDATA[Stefan]]></dc:creator>
		<pubDate>Tue, 07 Jan 2025 07:39:26 +0000</pubDate>
				<category><![CDATA[Linux / Unix]]></category>
		<guid isPermaLink="false">https://blog.meyer-luenen.de/?p=772</guid>

					<description><![CDATA[Ah, jetzt verstehe ich genau was Sie möchten. Hier ist die Vorgehensweise: Nach der ersten Anmeldung sollten Sie noch einen Benutzer anlegen, da die importierte Version standardmäßig nur root als Benutzer hat: Das Image in C:\temp können Sie nach erfolgreicher Installation löschen.]]></description>
										<content:encoded><![CDATA[
<p>Ah, jetzt verstehe ich genau was Sie möchten. Hier ist die Vorgehensweise:</p>



<ol class="wp-block-list">
<li>Zuerst müssen Sie ein temporäres Verzeichnis erstellen, um das Ubuntu-Image herunterzuladen:</li>
</ol>



<pre class="wp-block-code"><code>mkdir C:\temp</code></pre>



<ol class="wp-block-list" start="2">
<li>Laden Sie das Ubuntu 22.04 Image herunter:</li>
</ol>



<pre class="wp-block-code"><code>curl.exe -L -o C:\temp\ubuntu-22.04-server-cloudimg-amd64-wsl.rootfs.tar.gz https://cloud-images.ubuntu.com/wsl/jammy/current/ubuntu-jammy-wsl-amd64-wsl.rootfs.tar.gz</code></pre>



<ol class="wp-block-list" start="3">
<li>Erstellen Sie ein Zielverzeichnis für Ihre neue WSL-Installation:</li>
</ol>



<pre class="wp-block-code"><code>mkdir C:\WSL\ubutest</code></pre>



<ol class="wp-block-list" start="4">
<li>Importieren Sie das Image unter dem gewünschten Namen:</li>
</ol>



<pre class="wp-block-code"><code>wsl --import ubutest C:\WSL\ubutest C:\temp\ubuntu-22.04-server-cloudimg-amd64-wsl.rootfs.tar.gz</code></pre>



<ol class="wp-block-list" start="5">
<li>Jetzt können Sie die neue Installation starten mit:</li>
</ol>



<pre class="wp-block-code"><code>wsl -d ubutest</code></pre>



<p>Nach der ersten Anmeldung sollten Sie noch einen Benutzer anlegen, da die importierte Version standardmäßig nur root als Benutzer hat:</p>



<pre class="wp-block-code"><code># In der WSL Shell:
adduser ihrwunschname
usermod -aG sudo ihrwunschname</code></pre>



<p>Das Image in C:\temp können Sie nach erfolgreicher Installation löschen.</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">772</post-id>	</item>
		<item>
		<title>fail2ban snippets</title>
		<link>https://blog.meyer-luenen.de/2024/08/06/fail2ban-snippets/</link>
		
		<dc:creator><![CDATA[Stefan]]></dc:creator>
		<pubDate>Tue, 06 Aug 2024 14:36:33 +0000</pubDate>
				<category><![CDATA[Linux / Unix]]></category>
		<guid isPermaLink="false">https://blog.meyer-luenen.de/?p=767</guid>

					<description><![CDATA[alle bans auflisten: fail2ban-client status Einzelnen Service (z.B. ssh): fail2ban-client status sshd Eine ip-Adresse entbannen: fail2ban-client set sshd unbanip x.x.x.x]]></description>
										<content:encoded><![CDATA[
<p>alle bans auflisten:</p>



<p>fail2ban-client status</p>



<p>Einzelnen Service (z.B. ssh):</p>



<p>fail2ban-client status sshd</p>



<p>Eine ip-Adresse entbannen:</p>



<p>fail2ban-client set sshd unbanip x.x.x.x</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">767</post-id>	</item>
		<item>
		<title>tmux</title>
		<link>https://blog.meyer-luenen.de/2024/07/23/tmux/</link>
		
		<dc:creator><![CDATA[Stefan]]></dc:creator>
		<pubDate>Tue, 23 Jul 2024 14:38:11 +0000</pubDate>
				<category><![CDATA[Linux / Unix]]></category>
		<guid isPermaLink="false">https://blog.meyer-luenen.de/?p=762</guid>

					<description><![CDATA[tmux ist ein Terminal-Multiplexer, der es ermöglicht, mehrere Terminal-Sitzungen in einem einzigen Fenster zu erstellen und zu verwalten. Mit tmux kannst du verschiedene Programme gleichzeitig ausführen, zwischen ihnen wechseln und sie auf eine benutzerfreundliche Weise anordnen. Ein großer Vorteil von tmux ist seine Fähigkeit, bei einer SSH-Verbindung aktiv zu bleiben, auch wenn die Verbindung unterbrochen [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>tmux ist ein Terminal-Multiplexer, der es ermöglicht, mehrere Terminal-Sitzungen in einem einzigen Fenster zu erstellen und zu verwalten. Mit tmux kannst du verschiedene Programme gleichzeitig ausführen, zwischen ihnen wechseln und sie auf eine benutzerfreundliche Weise anordnen.

Ein großer Vorteil von tmux ist seine Fähigkeit, bei einer SSH-Verbindung aktiv zu bleiben, auch wenn die Verbindung unterbrochen wird. Das bedeutet, dass du deine Arbeit fortsetzen kannst, ohne deine Aktionen zu verlieren, selbst wenn deine Internetverbindung instabil ist. Diese Funktion macht tmux zu einem unverzichtbaren Werkzeug für Entwickler, Systemadministratoren und alle, die häufig mit entfernten Servern arbeiten.

Darüber hinaus bietet tmux zahlreiche Anpassungs- und Erweiterungsmöglichkeiten, die es dir ermöglichen, deine Arbeitsumgebung nach deinen Bedürfnissen zu gestalten. Es unterstützt die Aufteilung des Bildschirms in mehrere Panes, was die Effizienz bei der Arbeit erheblich steigert.</p>



<span id="more-762"></span>



<p><a href="https://www.youtube.com/watch?v=GYfuTxNeVIU">tmux &#8211; dein bester Freund für effektives Arbeiten im Terminal (youtube.com)</a></p>



<p>tmux-Plugins-Manager:<br><a href="https://github.com/tmux-plugins/tpm">GitHub &#8211; tmux-plugins/tpm: Tmux Plugin Manager</a></p>



<p>Installation:</p>



<pre class="wp-block-code"><code>git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm</code></pre>



<pre class="wp-block-code"><code>Aibix' Konfiguration herunterladen:</code></pre>



<pre class="wp-block-code"><code>curl -L https://github.com/aibix0001/cfg/raw/main/tmux/.tmux.conf -o ~/.tmux.conf</code></pre>



<p>Aus laufendem tmux heraus starten:</p>



<pre class="wp-block-code"><code>tmux source ~/.tmux.conf</code></pre>



<p></p>



<p>aibix0001 Config:<br><a href="https://github.com/aibix0001/cfg">https://github.com/aibix0001/cfg</a></p>



<p>Download Install.-Script von Github:<br><a href="https://github.com/Traxxel/ubuntu-bash/blob/main/tmux-install-configure.sh">https://github.com/Traxxel/ubuntu-bash/blob/main/tmux-install-configure.sh</a><br>oder als Download:<br></p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>curl -L https://raw.githubusercontent.com/Traxxel/ubuntu-bash/main/tmux-install-configure.sh | tr -d '\r' | bash</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #D8DEE9">curl</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">-</span><span style="color: #D8DEE9">L</span><span style="color: #D8DEE9FF"> https</span><span style="color: #ECEFF4">:</span><span style="color: #616E88">//raw.githubusercontent.com/Traxxel/ubuntu-bash/main/tmux-install-configure.sh | tr -d &#39;\r&#39; | bash</span></span></code></pre></div>



<p>Quicktips:</p>



<p class="is-style-default">c-b d detach from tmux<br>tmux a </p>



<p>c-b q zeigt die Pane-Nummern an<br>c-b und c-Cursortasten vergrößert Panes</p>



<p></p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">762</post-id>	</item>
		<item>
		<title>Normalen User in root-Gruppe aufnehmen</title>
		<link>https://blog.meyer-luenen.de/2024/04/23/normalen-user-in-root-gruppe-aufnehmen/</link>
		
		<dc:creator><![CDATA[Stefan]]></dc:creator>
		<pubDate>Tue, 23 Apr 2024 08:27:50 +0000</pubDate>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[Linux / Unix]]></category>
		<guid isPermaLink="false">https://blog.meyer-luenen.de/?p=742</guid>

					<description><![CDATA[nano /etc/passwd tom:x:0:0:Tom,,,:/home/tom:/bin/bash bob:x:0:0:Bob,,,:/home/bob:/bin/bash Make sure to replace /home/tom and /home/bob with the actual home directories for the users, and /bin/bash with the desired shell. nano /etc/group root:x:0:tom,bob nano /etc/rsyslog.conf authpriv.*;user.* /var/log/auth.log This will log user-related authentication messages to /var/log/auth.log. service rsyslog restart After completing these steps, the users tom and bob should have full [&#8230;]]]></description>
										<content:encoded><![CDATA[
<ol class="wp-block-list">
<li>Open the <code>/etc/passwd</code> file in a text editor:</li>
</ol>



<p><code>nano /etc/passwd</code></p>



<ol class="wp-block-list" start="2">
<li>Add the following lines at the end of the file:</li>
</ol>



<p><code>tom:x:0:0:Tom,,,:/home/tom:/bin/bash bob:x:0:0:Bob,,,:/home/bob:/bin/bash</code></p>



<p>Make sure to replace <code>/home/tom</code> and <code>/home/bob</code> with the actual home directories for the users, and <code>/bin/bash</code> with the desired shell.</p>



<ol class="wp-block-list" start="3">
<li>Save and exit the file.</li>



<li>Open the <code>/etc/group</code> file in a text editor:</li>
</ol>



<p><code>nano /etc/group</code></p>



<ol class="wp-block-list" start="5">
<li>Add <code>tom</code> and <code>bob</code> to the <code>root</code> group. Find the line that starts with <code>root</code> and add <code>tom</code> and <code>bob</code> separated by commas:</li>
</ol>



<p><code>root:x:0:tom,bob</code></p>



<ol class="wp-block-list" start="6">
<li>Save and exit the file.</li>



<li>To ensure that the usernames are logged in the log files instead of &#8222;root&#8220;, you need to configure the system logging. Open the syslog configuration file:</li>
</ol>



<p><code>nano /etc/rsyslog.conf</code></p>



<ol class="wp-block-list" start="8">
<li>Find the line that starts with <code>authpriv.*</code> and add <code>;user</code> to it. It should look like this:</li>
</ol>



<p><code>authpriv.*;user.* /var/log/auth.log</code></p>



<p>This will log user-related authentication messages to <code>/var/log/auth.log</code>.</p>



<ol class="wp-block-list" start="9">
<li>Save and exit the file.</li>



<li>Restart the syslog service to apply the changes:</li>
</ol>



<p><code>service rsyslog restart</code></p>



<p>After completing these steps, the users <code>tom</code> and <code>bob</code> should have full root access, and their usernames will be logged in the appropriate log files when they execute commands.</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">742</post-id>	</item>
		<item>
		<title>.NET 6 &#038; .NET 8 auf einem Ubuntu-Server installieren und ansprechen</title>
		<link>https://blog.meyer-luenen.de/2024/03/23/net-6-net-8-auf-einem-ubuntu-server-installieren-und-ansprechen/</link>
		
		<dc:creator><![CDATA[Stefan]]></dc:creator>
		<pubDate>Sat, 23 Mar 2024 10:56:58 +0000</pubDate>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Linux / Unix]]></category>
		<guid isPermaLink="false">https://blog.meyer-luenen.de/?p=739</guid>

					<description><![CDATA[To install .NET 6 and .NET 8 in parallel on Ubuntu Server and access these versions, follow these steps: For .NET 8: Alternatively, you can use the dotnet --list-sdks command to list all installed SDKs and dotnet --version to see the default SDK version. Use the dotnet new globaljson --sdk-version &#60;version&#62; command to generate a [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>To install .NET 6 and .NET 8 in parallel on Ubuntu Server and access these versions, follow these steps:</p>



<ol class="wp-block-list">
<li><strong>Add Microsoft Package Signing Key to your list of trusted keys and add the package repository:</strong> First, update the package index and install the required dependencies:</li>
</ol>



<pre class="wp-block-code"><code>   sudo apt-get update; \
   sudo apt-get install -y apt-transport-https &amp;&amp; \
   sudo apt-get update &amp;&amp; \
   sudo apt-get install -y dotnet-sdk-6.0 dotnet-sdk-8.0</code></pre>



<ol class="wp-block-list" start="2">
<li><strong>Install .NET SDKs:</strong> You can install both .NET 6 and .NET 8 SDKs using the following commands:</li>
</ol>



<pre class="wp-block-code"><code>   sudo apt-get install -y dotnet-sdk-6.0
   sudo apt-get install -y dotnet-sdk-8.0</code></pre>



<ol class="wp-block-list" start="3">
<li><strong>Accessing the Specific .NET Versions:</strong> After installation, you can specify which version of the .NET SDK to use for a specific project by using a global.json file in the project directory. To specify the SDK version, create a <code>global.json</code> file with the following content: For .NET 6:</li>
</ol>



<pre class="wp-block-code"><code>   {
     "sdk": {
       "version": "6.0.0"
     }
   }</code></pre>



<p>For .NET 8:</p>



<pre class="wp-block-code"><code>   {
     "sdk": {
       "version": "8.0.0"
     }
   }</code></pre>



<p>Alternatively, you can use the <code>dotnet --list-sdks</code> command to list all installed SDKs and <code>dotnet --version</code> to see the default SDK version. Use the <code>dotnet new globaljson --sdk-version &lt;version&gt;</code> command to generate a <code>global.json</code> for a specific version.</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">739</post-id>	</item>
		<item>
		<title>Visual Studio Code Remote Development</title>
		<link>https://blog.meyer-luenen.de/2024/03/07/visual-studio-code-remote-development/</link>
		
		<dc:creator><![CDATA[Stefan]]></dc:creator>
		<pubDate>Thu, 07 Mar 2024 12:36:01 +0000</pubDate>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Linux / Unix]]></category>
		<guid isPermaLink="false">https://blog.meyer-luenen.de/?p=736</guid>

					<description><![CDATA[Um auf einem Ubuntu-Server das Remote Dedugging zu installieren (Achtung: sollte man nicht auf einen Produktionsserver tun!):]]></description>
										<content:encoded><![CDATA[
<p>Um auf einem Ubuntu-Server das Remote Dedugging zu installieren (Achtung: sollte man nicht auf einen Produktionsserver tun!):</p>



<pre class="wp-block-code"><code>curl -sSL https://aka.ms/getvsdbgsh | bash /dev/stdin -v latest -l ~/.vs-debugger</code></pre>



<p></p>



<p></p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">736</post-id>	</item>
		<item>
		<title>Linux: journalctl Logfiles verkleinern</title>
		<link>https://blog.meyer-luenen.de/2024/03/01/linux-journalctl-logfiles-verkleinern/</link>
		
		<dc:creator><![CDATA[Stefan]]></dc:creator>
		<pubDate>Fri, 01 Mar 2024 09:07:00 +0000</pubDate>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[Linux / Unix]]></category>
		<guid isPermaLink="false">https://blog.meyer-luenen.de/?p=734</guid>

					<description><![CDATA[Log anzeigen Logs löschen / verkleinern Alles älter als 2 Tage löschen: Nur die letzten 500MB behalten:]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Log anzeigen</h2>



<pre class="wp-block-code"><code>journalctl -u my.ebc.rocks.service
journalctl -u my.ebc.rocks.service # -f zum follow</code></pre>



<h2 class="wp-block-heading">Logs löschen / verkleinern</h2>



<p>Alles älter als 2 Tage löschen:</p>



<pre class="wp-block-code"><code>journalctl --vacuum-time=2d</code></pre>



<p>Nur die letzten 500MB behalten:</p>



<pre class="wp-block-code"><code>journalctl --vacuum-size=500M</code></pre>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">734</post-id>	</item>
		<item>
		<title>Ubuntu Timezone einstellen</title>
		<link>https://blog.meyer-luenen.de/2024/01/18/ubuntu-timezone-einstzellen/</link>
		
		<dc:creator><![CDATA[Stefan]]></dc:creator>
		<pubDate>Thu, 18 Jan 2024 11:05:26 +0000</pubDate>
				<category><![CDATA[Linux / Unix]]></category>
		<guid isPermaLink="false">https://blog.meyer-luenen.de/?p=727</guid>

					<description><![CDATA[Abfrage der aktuellen Timezone / Zeitzone: Auflisten der bekannten Timezones: Setzen der neuen Timezone:]]></description>
										<content:encoded><![CDATA[
<p>Abfrage der aktuellen Timezone / Zeitzone:</p>



<pre class="wp-block-code"><code>timedatectl status</code></pre>



<p>Auflisten der bekannten Timezones:</p>



<pre class="wp-block-code"><code>timedatectl list-timezones</code></pre>



<p>Setzen der neuen Timezone:</p>



<pre class="wp-block-code"><code>sudo timedatectl set-timezone Europe/Berlin</code></pre>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">727</post-id>	</item>
		<item>
		<title>Umbenennen einer Ubuntu-Maschine</title>
		<link>https://blog.meyer-luenen.de/2024/01/03/umbenennen-einer-ubuntu-maschine/</link>
		
		<dc:creator><![CDATA[Stefan]]></dc:creator>
		<pubDate>Wed, 03 Jan 2024 07:07:48 +0000</pubDate>
				<category><![CDATA[Linux / Unix]]></category>
		<guid isPermaLink="false">https://blog.meyer-luenen.de/?p=718</guid>

					<description><![CDATA[Ändere den Hostnamen: Um den Hostnamen deines Ubuntu-Servers zu ändern, verwende den Befehl hostnamectl. Ersetze neuer-hostname durch den gewünschten Hostnamen Bearbeite die Hosts-Datei: Als nächstes musst du die Datei /etc/hosts bearbeiten, um den neuen Hostnamen widerzuspiegeln. Verwende einen Texteditor wie nano oder vim, um die Datei zu öffnen: Innerhalb der Datei siehst du eine Zeile [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><strong>Ändere den Hostnamen</strong>: Um den Hostnamen deines Ubuntu-Servers zu ändern, verwende den Befehl <code>hostnamectl</code>. Ersetze <code>neuer-hostname</code> durch den gewünschten Hostnamen</p>



<pre class="wp-block-code"><code><code>sudo hostnamectl set-hostname neuer-hostname</code></code></pre>



<p><strong>Bearbeite die Hosts-Datei</strong>: Als nächstes musst du die Datei <code>/etc/hosts</code> bearbeiten, um den neuen Hostnamen widerzuspiegeln. Verwende einen Texteditor wie <code>nano</code> oder <code>vim</code>, um die Datei zu öffnen:</p>



<pre class="wp-block-code"><code>s<span style="background-color: initial; font-family: inherit; font-size: inherit; color: var(--wp--preset--color--contrast);">udo nano /etc/hosts </span></code></pre>



<p>Innerhalb der Datei siehst du eine Zeile wie:</p>



<pre class="wp-block-code"><code><code>127.0.1.1 alter-hostname </code></code></pre>



<p>Ersetze <code>alter-hostname</code> durch deinen neuen Hostnamen:</p>



<p><code>127.0.1.1 neuer-hostname </code></p>



<p>Speichere die Datei und verlasse den Texteditor.</p>



<p><strong>Bearbeite die Netzwerkkonfigurationsdatei</strong>: Öffne die Netzwerkkonfigurationsdatei mit einem Texteditor:</p>



<pre class="wp-block-code"><code><code>sudo nano /etc/netplan/01-netcfg.yaml </code></code></pre>



<p>In dieser Datei siehst du einen Abschnitt mit <strong><code>ethernets</code> </strong>und <code><strong>version</strong></code>. Aktualisiere das Feld <strong><code>hostname</code> </strong>mit deinem neuen Hostnamen:</p>



<p><code>network:</code><br>  <code>version: 2 </code><br>  <code>ethernets: </code><br>    <code>eth0: </code><br>      <code>dhcp4: true </code><br>      <code>hostname: neuer-hostname </code></p>



<p>Speichere die Datei und verlasse sie.</p>



<p><strong>Änderungen anwenden</strong>: Wende die Änderungen an der Netzwerkkonfiguration mit <code>netplan</code> an:</p>



<pre class="wp-block-code"><code>s<span style="background-color: initial; font-family: inherit; font-size: inherit; color: var(--wp--preset--color--contrast);">udo netplan apply</span></code></pre>



<p><strong>Neustart</strong>: Um sicherzustellen, dass alle Änderungen wirksam werden, starte den Server neu:</p>



<pre class="wp-block-code"><code><code>sudo reboot</code></code></pre>



<p>Nach dem Neustart sollte der Server den von dir angegebenen neuen Hostnamen haben. Vergiss nicht, ggf. DNS-Einträge zu aktualisieren, um den neuen Hostnamen für den externen Zugriff oder für Netzwerkdienste, die davon abhängen, widerzuspiegeln.</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">718</post-id>	</item>
	</channel>
</rss>
