<?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; Haikos Blog</title>
	<atom:link href="https://www.hertes.net/category/linuxunix/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.hertes.net</link>
	<description>Blog von Haiko Hertes zu allen Themen rund um Microsoft, Cloud und Datacenter</description>
	<lastBuildDate>Tue, 14 May 2019 08:19:50 +0000</lastBuildDate>
	<language>de</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>SysAdminDay 2019 &#8211; Call for Speakers</title>
		<link>https://www.hertes.net/2019/05/sysadminday-2019-call-for-speakers/</link>
					<comments>https://www.hertes.net/2019/05/sysadminday-2019-call-for-speakers/#respond</comments>
		
		<dc:creator><![CDATA[Haiko]]></dc:creator>
		<pubDate>Tue, 07 May 2019 20:40:12 +0000</pubDate>
				<category><![CDATA[Community]]></category>
		<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Veranstaltungen]]></category>
		<category><![CDATA[Event]]></category>
		<category><![CDATA[Leipzig]]></category>
		<category><![CDATA[Meetup]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[Sysadminday]]></category>
		<category><![CDATA[Usergroup]]></category>
		<guid isPermaLink="false">https://www.hertes.net/?p=3793</guid>

					<description><![CDATA[Alljährlich findet er statt &#8211; und jedes Jahr wird er bekannter: Der im Jahr 2000 in&#8217;s Leben gerufene &#8222;Systemadministrator Appreciation Day&#8220; &#8211; kurz Sysadminday. Dieser &#8222;internationale Feiertag der Admins&#8220; soll im Rahmen eines kostenlosen Community-Events für Content, Austausch und Networking dienen. Für dieses Event in Leipzig suche ich Speaker: https://sessionize.com/sysadminday2019/ Reicht eure Session-Vorschläge bitte über Sessionize ein. Danke Details zur Veranstaltung findet ihr auf unserer Webseite: https://www.sysadminday.it Das Event wird auch auf Meetup bereitgestellt: https://www.meetup.com/de-DE/wsugle/events/260702141/]]></description>
										<content:encoded><![CDATA[
<p>Alljährlich findet er statt &#8211; und jedes Jahr wird er bekannter: Der im Jahr 2000 in&#8217;s Leben gerufene &#8222;Systemadministrator Appreciation Day&#8220; &#8211; kurz Sysadminday. Dieser &#8222;internationale Feiertag der Admins&#8220; soll im Rahmen eines kostenlosen Community-Events für Content, Austausch und Networking dienen. Für dieses Event in Leipzig suche ich Speaker:</p>



<p><a href="https://sessionize.com/sysadminday2019/">https://sessionize.com/sysadminday2019/</a></p>



<p>Reicht eure Session-Vorschläge bitte über Sessionize ein. Danke</p>



<p>Details zur Veranstaltung findet ihr auf unserer Webseite:  <br><a href="https://www.sysadminday.it">https://www.sysadminday.it </a> </p>



<p>Das Event wird auch auf Meetup bereitgestellt:  <br><a href="https://www.meetup.com/de-DE/wsugle/events/260702141/">https://www.meetup.com/de-DE/wsugle/events/260702141/</a> </p>



<figure class="wp-block-image"><img fetchpriority="high" decoding="async" width="1024" height="320" src="https://www.hertes.net/wp-content/uploads/2019/05/SAD_Header-1024x320.jpg" alt="" class="wp-image-3794" srcset="https://www.hertes.net/wp-content/uploads/2019/05/SAD_Header-1024x320.jpg 1024w, https://www.hertes.net/wp-content/uploads/2019/05/SAD_Header-300x94.jpg 300w, https://www.hertes.net/wp-content/uploads/2019/05/SAD_Header-768x240.jpg 768w, https://www.hertes.net/wp-content/uploads/2019/05/SAD_Header.jpg 1600w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://www.hertes.net/2019/05/sysadminday-2019-call-for-speakers/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>PowerShell &#8211; Windows Client oder Windows Server als NTP Server benutzen</title>
		<link>https://www.hertes.net/2018/06/powershell-windows-client-oder-windows-server-als-ntp-server-benutzen/</link>
					<comments>https://www.hertes.net/2018/06/powershell-windows-client-oder-windows-server-als-ntp-server-benutzen/#comments</comments>
		
		<dc:creator><![CDATA[Haiko]]></dc:creator>
		<pubDate>Thu, 28 Jun 2018 19:41:17 +0000</pubDate>
				<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Windows Client]]></category>
		<category><![CDATA[Windows Server]]></category>
		<category><![CDATA[NTP]]></category>
		<category><![CDATA[Uhrzeit]]></category>
		<category><![CDATA[W32Time]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Zeitserver]]></category>
		<guid isPermaLink="false">https://www.hertes.net/?p=3683</guid>

					<description><![CDATA[Sicherlich ist den Meisten bekannt, dass Windows seit vielen Generationen out-of-the-box als NTP-Client genutzt werden kann &#8211; also die Uhrzeit von einem NTP-Server beziehen kann. Aber dass sowohl Windows Server (seit WS2003) als auch Windows Client (seit Win XP) auch mit Bordmitteln als NTP-Server genutzt werden können, dürfte weitgehend unbekannt sein. Das Ganze lässt sich in einigen wenigen Schritten erreichen: Windows Zeitdienst W32Time auf automatischen Start setzen W32Time als NTP-Server konfigurieren (Registrierungsschlüssel) W32Time Dienst neustarten Firewall auf udp/123 für Verbindungen von außen öffnen Natürlich kann man das sehr effizient mittels PowerShell erledigen. Dazu habe ich ein einfaches Script geschrieben: #&#8230;]]></description>
										<content:encoded><![CDATA[<p>Sicherlich ist den Meisten bekannt, dass Windows seit vielen Generationen out-of-the-box als NTP-Client genutzt werden kann &#8211; also die Uhrzeit von einem NTP-Server beziehen kann. Aber dass sowohl Windows Server (seit WS2003) als auch Windows Client (seit Win XP) auch mit Bordmitteln als NTP-Server genutzt werden können, dürfte weitgehend unbekannt sein. Das Ganze lässt sich in einigen wenigen Schritten erreichen:</p>
<ul>
<li>Windows Zeitdienst W32Time auf automatischen Start setzen</li>
<li>W32Time als NTP-Server konfigurieren (Registrierungsschlüssel)</li>
<li>W32Time Dienst neustarten</li>
<li>Firewall auf udp/123 für Verbindungen von außen öffnen</li>
</ul>
<p>Natürlich kann man das sehr effizient mittels PowerShell erledigen. Dazu habe ich ein einfaches Script geschrieben:</p>
<pre lang="PowerShell">
# This script makes a Windows 10 PC acting as a NTP server 

#Enable autostart for W32Time Service
Set-Service -Name W32Time -StartupType Automatic

# Configure W32Time Service to act as a NTP server
Set-ItemProperty -Path HKLM:\System\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer -Name Enabled -Value 1

# Update W32Time service
w32tm.exe /config /update

# Restart W32Time service
Restart-Service -Name W32Time

# Check configuration - VMICTimeProvider / Enabled should be "1" now
w32tm.exe /query /configuration

# Create an inbound rule for the Windows Firewall
New-NetFirewallRule -DisplayName "Allow NTP UDP/123 Incomming" -Profile Any -Action Allow -Direction Inbound -LocalPort 123 -Protocol udp -Enabled true
</pre>
]]></content:encoded>
					
					<wfw:commentRss>https://www.hertes.net/2018/06/powershell-windows-client-oder-windows-server-als-ntp-server-benutzen/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Windows 10&#8211;Linux Subsystem installieren und &#180;Linux Distributionen aus dem Store nutzen</title>
		<link>https://www.hertes.net/2018/03/windows-10linux-subsystem-installieren-und-linux-distributionen-aus-dem-store-nutzen/</link>
					<comments>https://www.hertes.net/2018/03/windows-10linux-subsystem-installieren-und-linux-distributionen-aus-dem-store-nutzen/#comments</comments>
		
		<dc:creator><![CDATA[Haiko]]></dc:creator>
		<pubDate>Wed, 28 Mar 2018 17:45:40 +0000</pubDate>
				<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Windows 10]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Store]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows Subsystem for Linux]]></category>
		<category><![CDATA[WSL]]></category>
		<guid isPermaLink="false">https://www.hertes.net/?p=3624</guid>

					<description><![CDATA[Seit einer Weile enthält Windows das “Subsystem für Linux” (WSL). Damit kann man Linux-Code nativ unter Windows ausführen, ohne dafür erst eine VM starten zu müssen oder ähnliches. Di Installation ist super einfach: Am besten und einfachsten geht es per PowerShell (womit auch sonst? ) Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux Wenn man nun direkt die WSL startet (wsl.exe), dann bekommt man erstmal eine “Fehlermeldung”: Anschließend kann man im Windows Store nach seiner Lieblings-Distribution suchen: Zur Verfügung stehen: Debian GNU/Linux Ubuntu OpenSUSE SLES Kali Linux Der Start kann dann direkt aus dem Startmenü erfolgen: Die Ersteinrichtung dauert einen Moment: Abschließend muss noch&#8230;]]></description>
										<content:encoded><![CDATA[<p>Seit einer Weile enthält Windows das “Subsystem für Linux” (WSL). Damit kann man Linux-Code nativ unter Windows ausführen, ohne dafür erst eine VM starten zu müssen oder ähnliches. Di Installation ist super einfach: </p>
<p>Am besten und einfachsten geht es per PowerShell (womit auch sonst? <img decoding="async" class="wlEmoticon wlEmoticon-smile" style="border-top-style: none; border-left-style: none; border-bottom-style: none; border-right-style: none" alt="Smiley" src="https://www.hertes.net/wp-content/uploads/2018/03/wlEmoticon-smile.png" />)</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/image-12.png"><img decoding="async" title="image" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; float: none; padding-top: 0px; padding-left: 0px; margin-left: auto; display: block; padding-right: 0px; border-top-width: 0px; margin-right: auto" border="0" alt="image" src="https://www.hertes.net/wp-content/uploads/2018/03/image_thumb-12.png" width="640" height="154" /></a></p>
<blockquote>
<p>Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux</p>
</blockquote>
<p>Wenn man nun direkt die WSL startet (wsl.exe), dann bekommt man erstmal eine “Fehlermeldung”:</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/image-13.png"><img decoding="async" title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; float: none; padding-top: 0px; padding-left: 0px; margin-left: auto; border-left: 0px; display: block; padding-right: 0px; margin-right: auto" border="0" alt="image" src="https://www.hertes.net/wp-content/uploads/2018/03/image_thumb-13.png" width="640" height="187" /></a></p>
<p>Anschließend kann man im Windows Store nach seiner Lieblings-Distribution suchen:</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/image-14.png"><img loading="lazy" decoding="async" title="image" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; float: none; padding-top: 0px; padding-left: 0px; margin-left: auto; display: block; padding-right: 0px; border-top-width: 0px; margin-right: auto" border="0" alt="image" src="https://www.hertes.net/wp-content/uploads/2018/03/image_thumb-14.png" width="640" height="387" /></a></p>
<p>Zur Verfügung stehen:</p>
<ul>
<li>Debian GNU/Linux </li>
<li>Ubuntu </li>
<li>OpenSUSE </li>
<li>SLES </li>
<li>Kali Linux </li>
</ul>
<p>Der Start kann dann direkt aus dem Startmenü erfolgen:</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/image-15.png"><img loading="lazy" decoding="async" title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px" border="0" alt="image" src="https://www.hertes.net/wp-content/uploads/2018/03/image_thumb-15.png" width="240" height="77" /></a></p>
<p>Die Ersteinrichtung dauert einen Moment:</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/image-16.png"><img loading="lazy" decoding="async" title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin-left: 0px; border-left: 0px; display: inline; padding-right: 0px; margin-right: 0px" border="0" alt="image" src="https://www.hertes.net/wp-content/uploads/2018/03/image_thumb-16.png" width="500" height="160" /></a></p>
<p>Abschließend muss noch ein User mit Passwort eingerichtet werden…</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/image-17.png"><img loading="lazy" decoding="async" title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin-left: 0px; border-left: 0px; display: inline; padding-right: 0px; margin-right: 0px" border="0" alt="image" src="https://www.hertes.net/wp-content/uploads/2018/03/image_thumb-17.png" width="500" height="185" /></a></p>
<p>… und dann kann das Linux genutzt werden.</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/image-18.png"><img loading="lazy" decoding="async" title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin-left: 0px; border-left: 0px; display: inline; padding-right: 0px; margin-right: 0px" border="0" alt="image" src="https://www.hertes.net/wp-content/uploads/2018/03/image_thumb-18.png" width="500" height="185" /></a></p>
<p>Viel Spaß beim Ausprobieren und Benutzen!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.hertes.net/2018/03/windows-10linux-subsystem-installieren-und-linux-distributionen-aus-dem-store-nutzen/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>PowerShell Core und Jenkins &#8211; Continuous Integration f&#252;r PowerShell auf Linux</title>
		<link>https://www.hertes.net/2018/03/powershell-core-und-jenkins-continuous-integration-fr-powershell-auf-linux/</link>
					<comments>https://www.hertes.net/2018/03/powershell-core-und-jenkins-continuous-integration-fr-powershell-auf-linux/#respond</comments>
		
		<dc:creator><![CDATA[Haiko]]></dc:creator>
		<pubDate>Mon, 12 Mar 2018 15:02:00 +0000</pubDate>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[DevOps]]></category>
		<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[PowerShell Core]]></category>
		<category><![CDATA[CI]]></category>
		<category><![CDATA[Continuous Integration]]></category>
		<category><![CDATA[Jenkins]]></category>
		<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">https://www.hertes.net/?p=3590</guid>

					<description><![CDATA[In letzter Zeit beschäftige ich mich immer mal wieder mit DevOps-Themen. Eines davon ist Continuous Integration und das dafür gemachte Jenkins. Einige meiner Erfahrungen hierzu möchte ich gerne teilen. Dieser Artikel beschäftigt sich mit PowerShell Core und Jenkins. In einem vorherigen Artikel habe ich in Kurzform erläutert, wie man Jenkins unter Debian Linux installiert. Das ist für diesen Artikel eine Art Voraussetzung. Auch ohne PS Core kann Jenkins PowerShell-Code und –Skripte ausführen – allerdings braucht es dazu immer einen sogenannten “Build Slave” (also einen weiteren Jenkins-Knoten) mit Windows als Betriebssystem, Mit der Verfügbarkeit von PowerShell Core für Linux ist es&#8230;]]></description>
										<content:encoded><![CDATA[<p>In letzter Zeit beschäftige ich mich immer mal wieder mit DevOps-Themen. Eines davon ist Continuous Integration und das dafür gemachte Jenkins. Einige meiner Erfahrungen hierzu möchte ich gerne teilen.</p>
<p>Dieser Artikel beschäftigt sich mit PowerShell Core und Jenkins. In einem <a href="/?p=3600">vorherigen Artikel</a> habe ich in Kurzform erläutert, wie man Jenkins unter Debian Linux installiert. Das ist für diesen Artikel eine Art Voraussetzung.</p>
<p>Auch ohne PS Core kann Jenkins PowerShell-Code und –Skripte ausführen – allerdings braucht es dazu immer einen sogenannten “Build Slave” (also einen weiteren Jenkins-Knoten) mit Windows als Betriebssystem,</p>
<p>Mit der Verfügbarkeit von PowerShell Core für Linux ist es künftig nicht mehr zwingend nötig, einen Windows Buildslave zu verwenden, wenn man PowerShell benutzen möchte. Was leider NICHT funktioniert (zumindest mit Stand Heute), ist das PowerShell-Plugin für Jenkins. Dieses ruft den Code in einer Art und Weise auf, wie es nur unter Windows funktioniert. Selbst wenn man den dort verwendeten Aufruf “powershell.exe” mittels symbolic Link oder Alias auf pwsh mappt, wird es nicht funktionieren.</p>
<p>Ein möglicher Weg führt aber über den Einsatz eines Batch-Skriptes. Und das könnte so aussehen:</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/jenkins9.jpg"><img loading="lazy" decoding="async" style="margin: 0px auto; border: 0px currentcolor; float: none; display: block; background-image: none;" title="jenkins9" src="https://www.hertes.net/wp-content/uploads/2018/03/jenkins9_thumb.jpg" alt="jenkins9" width="640" height="359" border="0" /></a><br />
<a href="https://www.hertes.net/wp-content/uploads/2018/03/jenkins10.jpg"><img loading="lazy" decoding="async" style="margin: 0px auto; border: 0px currentcolor; float: none; display: block; background-image: none;" title="jenkins10" src="https://www.hertes.net/wp-content/uploads/2018/03/jenkins10_thumb.jpg" alt="jenkins10" width="640" height="359" border="0" /></a></p>
<p>Mit Hilfe von Parametern kann später flexibler mit dem Build Job umgegangen werden (siehe weiter unten):</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/jenkins11.jpg"><img loading="lazy" decoding="async" style="margin: 0px auto; border: 0px currentcolor; float: none; display: block; background-image: none;" title="jenkins11" src="https://www.hertes.net/wp-content/uploads/2018/03/jenkins11_thumb.jpg" alt="jenkins11" width="640" height="359" border="0" /></a></p>
<p>Der Einfachheit halber sollte der Parametername keine Leer- oder Sonderzeichen enthalten.</p>
<p>Für den eigentlichen Build (also die Aktionen, die durch den Job auszuführen sind), muss man hier nun auf “Shell ausführen” zurückgreifen. Der Menüpunkt “Windows PowerShell” wird nicht funktionieren (er steht auch nur zur Verfügung, wenn das Plugin bereits installiert ist).</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/jenkins12.jpg"><img loading="lazy" decoding="async" style="margin: 0px auto; border: 0px currentcolor; float: none; display: block; background-image: none;" title="jenkins12" src="https://www.hertes.net/wp-content/uploads/2018/03/jenkins12_thumb.jpg" alt="jenkins12" width="640" height="359" border="0" /></a></p>
<p>Mein Aufruf für die Shell lautet hier beispielhaft:</p>
<blockquote><p>pwsh -command &#8222;(Get-Variable -Name ${VariableName}).Value&#8220;</p></blockquote>
<p>Mit ${PARAMETER} kann man auf den oben definierten Parameter zurückgreifen.</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/jenkins17.jpg"><img loading="lazy" decoding="async" style="margin: 0px auto; border: 0px currentcolor; float: none; display: block; background-image: none;" title="jenkins17" src="https://www.hertes.net/wp-content/uploads/2018/03/jenkins17_thumb.jpg" alt="jenkins17" width="640" height="359" border="0" /></a></p>
<p>Anschließend kann man den Buildjob über “Bauen mit Parametern” aufrufen. Dabei kann man dann den Wert des/der Parameter definieren (oder, falls man Defaultwerte definiert hat, diese einfach beibehalten):</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/jenkins18.jpg"><img loading="lazy" decoding="async" style="margin: 0px auto; border: 0px currentcolor; float: none; display: block; background-image: none;" title="jenkins18" src="https://www.hertes.net/wp-content/uploads/2018/03/jenkins18_thumb.jpg" alt="jenkins18" width="640" height="359" border="0" /></a></p>
<p>Anschließend kann man mit einem Klick auf den kleinen Pfeil neben dem Buildjob unten bei “Build-Verlauf” die “Konsolenausgabe” aufrufen:</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/jenkins19.jpg"><img loading="lazy" decoding="async" style="margin: 0px auto; border: 0px currentcolor; float: none; display: block; background-image: none;" title="jenkins19" src="https://www.hertes.net/wp-content/uploads/2018/03/jenkins19_thumb.jpg" alt="jenkins19" width="640" height="359" border="0" /></a></p>
<p>Dort sieht man dann entweder den/die Fehler, falls welche aufgetreten sind, oder eben die Ausgabe des Jobs:</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/jenkins20.jpg"><img loading="lazy" decoding="async" style="margin: 0px auto; border: 0px currentcolor; float: none; display: block; background-image: none;" title="jenkins20" src="https://www.hertes.net/wp-content/uploads/2018/03/jenkins20_thumb.jpg" alt="jenkins20" width="640" height="359" border="0" /></a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.hertes.net/2018/03/powershell-core-und-jenkins-continuous-integration-fr-powershell-auf-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Jenkins auf Linux für Continuous Integration</title>
		<link>https://www.hertes.net/2018/03/jenkins-auf-linux-fr-continuous-integration/</link>
					<comments>https://www.hertes.net/2018/03/jenkins-auf-linux-fr-continuous-integration/#respond</comments>
		
		<dc:creator><![CDATA[Haiko]]></dc:creator>
		<pubDate>Fri, 09 Mar 2018 22:30:00 +0000</pubDate>
				<category><![CDATA[Continuous Integration]]></category>
		<category><![CDATA[DevOps]]></category>
		<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Jenkins]]></category>
		<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">https://www.hertes.net/?p=3600</guid>

					<description><![CDATA[In letzter Zeit beschäftige ich mich immer mal wieder mit DevOps-Themen. Eines davon ist Continuous Integration und das dafür gemachte Jenkins. Einige meiner Erfahrungen hierzu möchte ich gerne teilen. In diesem Artikel möchte ich kurz beleuchten, wie man Jenkins auf Debian 9 “Stretch” installieren kann. Es gibt sicherlich einige andere Wege, aber dieser hier funktioniert sehr schnell und zuverlässig. Als erstes braucht ihr natürlich eine Debian Maschine. Ich nutze dafür gerne Hyper-V oder Azure, aber jede andere Plattform wird ebenso funktionieren. Wichtig ist am Ende eigentlich nur, dass die Maschine Internetzugriff hat. Als nächstes braucht man die passenden Keys und&#8230;]]></description>
										<content:encoded><![CDATA[<p>In letzter Zeit beschäftige ich mich immer mal wieder mit DevOps-Themen. Eines davon ist Continuous Integration und das dafür gemachte Jenkins. Einige meiner Erfahrungen hierzu möchte ich gerne teilen.</p>
<p>In diesem Artikel möchte ich kurz beleuchten, wie man Jenkins auf Debian 9 “Stretch” installieren kann. Es gibt sicherlich einige andere Wege, aber dieser hier funktioniert sehr schnell und zuverlässig.</p>
<p>Als erstes braucht ihr natürlich eine Debian Maschine. Ich nutze dafür gerne Hyper-V oder Azure, aber jede andere Plattform wird ebenso funktionieren. Wichtig ist am Ende eigentlich nur, dass die Maschine Internetzugriff hat.</p>
<p>Als nächstes braucht man die passenden Keys und eine Quelle für APT:</p>
<pre lang="bash" line="1">wget -q -O - http://pkg.jenkins-ci.org/debian-stable/jenkins-ci.org.key | sudo apt-key add
echo "deb http://pkg.jenkins-ci.org/debian-stable binary/" | sudo tee /etc/apt/sources.list.d/jenkins.list</pre>
<p>Nach einem anschließenden “apt-get update” kann man nun Jenkins installieren:</p>
<pre lang="bash" line="1">sudo apt-get update
sudo apt-get install jenkins -y
sudo cat /var/lib/jenkins/secrets/initialAdminPassword</pre>
<p>Der letzte Aufruf gibt das Initialpasswort aus, welches man anschließend für die Einrichtung benötigt.</p>
<p>Nun kann man unter</p>
<p>http://HOSTNAME:8080</p>
<p>den frisch installierten Jenkins aufrufen und einrichten:</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/jenkins1.jpg"><img loading="lazy" decoding="async" style="margin: 0px auto; border: 0px currentcolor; float: none; display: block; background-image: none;" title="jenkins1" src="https://www.hertes.net/wp-content/uploads/2018/03/jenkins1_thumb.jpg" alt="jenkins1" width="640" height="359" border="0" /></a></p>
<p>Hier wird nun also der vorhin ausgelesene Key benötigt.</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/jenkins2.jpg"><img loading="lazy" decoding="async" style="margin: 0px auto; border: 0px currentcolor; float: none; display: block; background-image: none;" title="jenkins2" src="https://www.hertes.net/wp-content/uploads/2018/03/jenkins2_thumb.jpg" alt="jenkins2" width="640" height="359" border="0" /></a></p>
<p>Bei den Plugins kann man im Zweifel erstmal mit den “suggested plugins” beginnen, aber ich bevorzuge es, einige nicht benötigte Plugins gar nicht erst zu installieren und wähle daher “Select plugins to install”. Meine konkrete Auswahl kann man in Teilen unten sehen:</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/jenkins3.jpg"><img loading="lazy" decoding="async" style="margin: 0px auto; border: 0px currentcolor; float: none; display: block; background-image: none;" title="jenkins3" src="https://www.hertes.net/wp-content/uploads/2018/03/jenkins3_thumb.jpg" alt="jenkins3" width="640" height="359" border="0" /></a></p>
<p>Nun muss man noch ein Admin-Konto anlegen und dann kann es auch schon losgehen…</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/jenkins4.jpg"><img loading="lazy" decoding="async" style="margin: 0px auto; border: 0px currentcolor; float: none; display: block; background-image: none;" title="jenkins4" src="https://www.hertes.net/wp-content/uploads/2018/03/jenkins4_thumb.jpg" alt="jenkins4" width="640" height="359" border="0" /></a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.hertes.net/2018/03/jenkins-auf-linux-fr-continuous-integration/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Azure Cloud Shell &#8211; PowerShell für Azure</title>
		<link>https://www.hertes.net/2018/03/azure-cloud-shell-powershell-fr-azure/</link>
					<comments>https://www.hertes.net/2018/03/azure-cloud-shell-powershell-fr-azure/#respond</comments>
		
		<dc:creator><![CDATA[Haiko]]></dc:creator>
		<pubDate>Wed, 07 Mar 2018 13:22:00 +0000</pubDate>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Azure Cloud Shell]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Cloudshell]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>
		<guid isPermaLink="false">https://www.hertes.net/?p=3572</guid>

					<description><![CDATA[Auch wenn es nicht erst seit gestern verfügbar ist, wollte ich gern auf ein cooles Feature in Azure hinweisen: Azure Cloud Shell. Kurz gesagt handelt es sich hier um ein Zugang zu Azure und seine Funktionen über PowerShell oder Linux Bash. Diese Shell läuft in einem Container auf Azure und kann ganz einfach über den Browser verwendet werden. Dazu ruft man einfach https://shell.azure.com auf. Nach der Anmeldung muss einmalig ein Storageaccount eingerichtet werden, der dann in die Shell gemountet wird und dort als Speicher zur Verfügung steht: Nach der Anmeldung bei Azure muss die gewünschte Subscription ausgewählt werden: Dann erfolgt&#8230;]]></description>
										<content:encoded><![CDATA[<p>Auch wenn es nicht erst seit gestern verfügbar ist, wollte ich gern auf ein cooles Feature in Azure hinweisen: Azure Cloud Shell.</p>
<p>Kurz gesagt handelt es sich hier um ein Zugang zu Azure und seine Funktionen über PowerShell oder Linux Bash. Diese Shell läuft in einem Container auf Azure und kann ganz einfach über den Browser verwendet werden. Dazu ruft man einfach</p>
<p><a href="https://shell.azure.com">https://shell.azure.com</a></p>
<p>auf. Nach der Anmeldung muss einmalig ein Storageaccount eingerichtet werden, der dann in die Shell gemountet wird </p>
<p>und dort als Speicher zur Verfügung steht:</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/image-4.png"><img loading="lazy" decoding="async" title="image" style="border: 0px currentcolor; border-image: none; margin-right: auto; margin-left: auto; float: none; display: block; background-image: none;" border="0" alt="image" src="https://www.hertes.net/wp-content/uploads/2018/03/image_thumb-4.png" width="640" height="332" /></a></p>
<p>Nach der Anmeldung bei Azure muss die gewünschte Subscription ausgewählt werden: </p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/image-5.png"><img loading="lazy" decoding="async" title="image" style="border: 0px currentcolor; border-image: none; margin-right: auto; margin-left: auto; float: none; display: block; background-image: none;" border="0" alt="image" src="https://www.hertes.net/wp-content/uploads/2018/03/image_thumb-5.png" width="640" height="332" /></a></p>
<p>Dann erfolgt die Auswahl der gewünschten Shell – Bash auf Linux oder PwerShell auf Windows:</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/image-6.png"><img loading="lazy" decoding="async" title="image" style="border: 0px currentcolor; border-image: none; margin-right: auto; margin-left: auto; float: none; display: block; background-image: none;" border="0" alt="image" src="https://www.hertes.net/wp-content/uploads/2018/03/image_thumb-6.png" width="640" height="332" /></a></p>
<p>Außerdem muss ein Storageaccount ausgewählt oder angelegt werden, wozu die Auswahl des gewünschten Abonnements erfolgen muss:</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/image-7.png"><img loading="lazy" decoding="async" title="image" style="border: 0px currentcolor; border-image: none; margin-right: auto; margin-left: auto; float: none; display: block; background-image: none;" border="0" alt="image" src="https://www.hertes.net/wp-content/uploads/2018/03/image_thumb-7.png" width="640" height="332" /></a></p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/image-8.png"><img loading="lazy" decoding="async" title="image" style="border: 0px currentcolor; border-image: none; margin-right: auto; margin-left: auto; float: none; display: block; background-image: none;" border="0" alt="image" src="https://www.hertes.net/wp-content/uploads/2018/03/image_thumb-8.png" width="640" height="335" /></a></p>
<p>Das Anlegen des Storage Accounts und der erste Start der Shell dauern dann leider etwas…</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/image-9.png"><img loading="lazy" decoding="async" title="image" style="border: 0px currentcolor; border-image: none; margin-right: auto; margin-left: auto; float: none; display: block; background-image: none;" border="0" alt="image" src="https://www.hertes.net/wp-content/uploads/2018/03/image_thumb-9.png" width="640" height="335" /></a></p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/image-10.png"><img loading="lazy" decoding="async" title="image" style="border: 0px currentcolor; border-image: none; margin-right: auto; margin-left: auto; float: none; display: block; background-image: none;" border="0" alt="image" src="https://www.hertes.net/wp-content/uploads/2018/03/image_thumb-10.png" width="640" height="367" /></a></p>
<p>Fortan steht die Shell auch etwas schneller zur Verfügung. Sie kann auch aus dem Azure Portal aufgerufen werden – dazu ist der Button in der oberen Leiste gedacht:</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/image-11.png"><img loading="lazy" decoding="async" title="image" style="border: 0px currentcolor; border-image: none; margin-right: auto; margin-left: auto; float: none; display: block; background-image: none;" border="0" alt="image" src="https://www.hertes.net/wp-content/uploads/2018/03/image_thumb-11.png" width="640" height="70" /></a></p>
<p>Es gilt, ein paar Kleinigkeiten zu beachten:</p>
<ul>
<li>Es gibt einen 20-Minuten-Timeout in der Shell. Nach 20 Minuten Inaktivität wird die Shell recycelt.</li>
<li>Änderungen im Dateisystem sind nur innerhalb von $Home und clouddrive persistent</li>
<li>Man kann jederzeit zwischen Bash und PowerShell umschalten – aber man kann immer nur eine Shell gleichzeitig laufen haben</li>
<li>Der Power-Button oben startet die Shell (bzw. deren Container) neu – dabei gehen dann z.B. die Variablen und deren Werte verloren</li>
<li>Das Starten einer auf PowerShell basierenden Cloudshell kann ca. 60 Sekunden dauern – Bash geht deutlich schneller</li>
</ul>
<p>Weitere Details siehe hier:</p>
<p><a title="https://docs.microsoft.com/en-us/azure/cloud-shell/overview" href="https://docs.microsoft.com/en-us/azure/cloud-shell/overview">https://docs.microsoft.com/en-us/azure/cloud-shell/overview</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.hertes.net/2018/03/azure-cloud-shell-powershell-fr-azure/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Win32 OpenSSH unter Windows 10 1709 aktivieren und nutzen</title>
		<link>https://www.hertes.net/2018/03/win32-openssh-unter-windows-10-1709-aktivieren-und-nutzen/</link>
					<comments>https://www.hertes.net/2018/03/win32-openssh-unter-windows-10-1709-aktivieren-und-nutzen/#comments</comments>
		
		<dc:creator><![CDATA[Haiko]]></dc:creator>
		<pubDate>Tue, 06 Mar 2018 00:24:24 +0000</pubDate>
				<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Windows 10]]></category>
		<category><![CDATA[1709]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[OpenSSH]]></category>
		<category><![CDATA[PowerShell Core]]></category>
		<category><![CDATA[SSH]]></category>
		<guid isPermaLink="false">https://www.hertes.net/?p=3554</guid>

					<description><![CDATA[Im Zuge der Weiterentwicklung von PowerShell Core und der Ausrichtung auf Linux-Systeme hat Microsoft eine neue Strategie für die Remote-Verwaltung von Systemen entwickelt. Diese beinhaltet u.a. die Verwendung von OpenSSH unter Windows. Das an sich ist nicht wirklich neu – zumindest etwas neuer ist aber die Tatsache, dass diese Technologie jetzt seit dem 1709 Build (“Fall Creators Update”) als Beta im System integriert ist. Allerdings müssen die Komponenten bei Bedarf noch aktiviert / installiert werden. Und das geht so: Startmenü / Einstellungen (Zahnrad) / Apps / Optionale Features verwalten / Feature hinzufügen: Dort finden sich dann die beiden OpenSSH Optionen:&#8230;]]></description>
										<content:encoded><![CDATA[<p>Im Zuge der Weiterentwicklung von PowerShell Core und der Ausrichtung auf Linux-Systeme hat Microsoft eine neue Strategie für die Remote-Verwaltung von Systemen entwickelt. Diese beinhaltet u.a. die Verwendung von OpenSSH unter Windows. Das an sich ist nicht wirklich neu – zumindest etwas neuer ist aber die Tatsache, dass diese Technologie jetzt seit dem 1709 Build (“Fall Creators Update”) als Beta im System integriert ist. Allerdings müssen die Komponenten bei Bedarf noch aktiviert / installiert werden. Und das geht so:</p>
<p>Startmenü / Einstellungen (Zahnrad) / Apps / Optionale Features verwalten / Feature hinzufügen:</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/image.png"><img loading="lazy" decoding="async" title="image" style="border: 0px currentcolor; border-image: none; margin-right: auto; margin-left: auto; float: none; display: block; background-image: none;" border="0" alt="image" src="https://www.hertes.net/wp-content/uploads/2018/03/image_thumb.png" width="640" height="354" /></a></p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/image-1.png"><img loading="lazy" decoding="async" title="image" style="border: 0px currentcolor; border-image: none; margin-right: auto; margin-left: auto; float: none; display: block; background-image: none;" border="0" alt="image" src="https://www.hertes.net/wp-content/uploads/2018/03/image_thumb-1.png" width="640" height="354" /></a></p>
<p>Dort finden sich dann die beiden OpenSSH Optionen:</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/image-2.png"><img loading="lazy" decoding="async" title="image" style="border: 0px currentcolor; border-image: none; margin-right: auto; margin-left: auto; float: none; display: block; background-image: none;" border="0" alt="image" src="https://www.hertes.net/wp-content/uploads/2018/03/image_thumb-2.png" width="640" height="354" /></a></p>
<p>Beide Optionen sollten eigentlich selbst-erklärend sein…</p>
<p>Alternativ kann die Installation auch über PowerShell erfolgen:</p>
<blockquote>
<p># Installieren von Server und Client      <br /> Add-WindowsCapability -Online -Name OpenSSH*       <br /> # Nur Server       <br />Add-WindowsCapability -Online -Name OpenSSH.Server*       <br /> # Nur Client       <br />Add-WindowsCapability -Online -Name OpenSSH.Client*</p>
</blockquote>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/image21.png"><img loading="lazy" decoding="async" title="image" style="border: 0px currentcolor; border-image: none; margin-right: auto; margin-left: auto; float: none; display: block; background-image: none;" border="0" alt="image" src="https://www.hertes.net/wp-content/uploads/2018/03/image21_thumb.png" width="640" height="182" /></a></p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/image24.png"><img loading="lazy" decoding="async" title="image" style="border: 0px currentcolor; border-image: none; margin-right: auto; margin-left: auto; float: none; display: block; background-image: none;" border="0" alt="image" src="https://www.hertes.net/wp-content/uploads/2018/03/image24_thumb.png" width="640" height="182" /></a></p>
<p>Der SSH Client läuft jetzt völlig problemlos von der Kommandozeile – wenn man den vollen Pfad benutzt:</p>
<blockquote>
<p>C:\Windows\System32\OpenSSH\ssh.exe</p>
</blockquote>
<p>Spätestens nach dem nächsten Neustart ist dann der Pfad auch in PATH und damit von überall aus aufzurufen.</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/image-3.png"><img loading="lazy" decoding="async" title="image" style="border: 0px currentcolor; border-image: none; margin-right: auto; margin-left: auto; float: none; display: block; background-image: none;" border="0" alt="image" src="https://www.hertes.net/wp-content/uploads/2018/03/image_thumb-3.png" width="640" height="230" /></a></p>
<p>Die Konfiguration des OpenSSH-Servers ist ein kleines bisschen aufwändiger. Diesem Thema werde ich demnächst einen weiteren Blogartikel widmen. Stay tuned!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.hertes.net/2018/03/win32-openssh-unter-windows-10-1709-aktivieren-und-nutzen/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>PowerShell Core 6.0: Generally Available (GA)</title>
		<link>https://www.hertes.net/2018/01/powershell-core-6-0-generally-available-ga/</link>
					<comments>https://www.hertes.net/2018/01/powershell-core-6-0-generally-available-ga/#respond</comments>
		
		<dc:creator><![CDATA[Haiko]]></dc:creator>
		<pubDate>Sat, 13 Jan 2018 17:23:00 +0000</pubDate>
				<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[PowerShell Core]]></category>
		<category><![CDATA[Windows Client]]></category>
		<category><![CDATA[Windows Server]]></category>
		<guid isPermaLink="false">https://www.hertes.net/?p=3495</guid>

					<description><![CDATA[Wie Microsoft vor wenigen Tagen berichtet hat (siehe Blogartikel), ist PowerShell Core 6.0 seit dem 10.01.2018 GA und wird von Microsoft voll supported! Den Download für PowerShell Core 6.0 findet man hier: PowerShell Core für Windows PowerShell Core für Linux / macOS Microsoft empfiehlt das Entfernen alter PS Core Versionen und eine saubere Neuinstallation: sudo apt remove powershell &#38;&#38; sudo apt-get install powershell Die Liste der unterstützen Betriebssysteme ist lang: Windows 7, 8.1, and 10 Windows Server 2008 R2, 2012 R2, 2016 Windows Server Semi-Annual Channel Ubuntu 14.04, 16.04, and 17.04 Debian 8.7+, and 9 CentOS 7 Red Hat Enterprise&#8230;]]></description>
										<content:encoded><![CDATA[<p>Wie Microsoft vor wenigen Tagen berichtet hat (<a href="https://blogs.msdn.microsoft.com/powershell/2018/01/10/powershell-core-6-0-generally-available-ga-and-supported/">siehe Blogartikel</a>), ist PowerShell Core 6.0 seit dem 10.01.2018 GA und wird von Microsoft voll supported!</p>
<p>Den Download für PowerShell Core 6.0 findet man hier:</p>
<p><a href="https://aka.ms/getps6-windows">PowerShell Core für Windows</a> </p>
<p><a href="https://aka.ms/getps6-linux">PowerShell Core für Linux / macOS</a></p>
<p>Microsoft empfiehlt das Entfernen alter PS Core Versionen und eine saubere Neuinstallation:</p>
<blockquote>
<p><code>sudo apt remove powershell &amp;&amp; sudo apt-get install powershell</code></p>
</blockquote>
<p>Die Liste der unterstützen Betriebssysteme ist lang:</p>
<ul>
<li>Windows 7, 8.1, and 10 </li>
<li>Windows Server 2008 R2, 2012 R2, 2016 </li>
<li>Windows Server Semi-Annual Channel</li>
<li>Ubuntu 14.04, 16.04, and 17.04 </li>
<li>Debian 8.7+, and 9 </li>
<li>CentOS 7 </li>
<li>Red Hat Enterprise Linux 7 </li>
<li>OpenSUSE 42.2 </li>
<li>Fedora 25, 26 </li>
<li>macOS 10.12+</li>
</ul>
<p>Wichtig ist ein Hinweise am Ende des Artikels:</p>
<blockquote>
<p>Windows PowerShell 3.0, 4.0, and 5.1 will continue to be supported on <a href="https://support.microsoft.com/en-us/help/13853/windows-lifecycle-fact-sheet">supported versions of Windows and Windows Server</a>.      <br />(Note: While Windows PowerShell 2.0 is still in support, <a href="https://blogs.msdn.microsoft.com/powershell/2017/08/24/windows-powershell-2-0-deprecation/">it has been deprecated</a>, and it’s recommend that workloads be migrated to newer versions of PowerShell.)</p>
</blockquote>
<p>Für Windows PowerShell ab Version 3.0 gibt es also weiterhin Support – aber Neuerungen/Verbesserungen darf man hier wohl nicht mehr erwarten.</p>
<p>Viel Spaß beim Ausprobieren!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.hertes.net/2018/01/powershell-core-6-0-generally-available-ga/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>PowerShell Core&#8211;Installation unter Debian Linux</title>
		<link>https://www.hertes.net/2017/08/powershell-coreinstallation-unter-debian-linux/</link>
					<comments>https://www.hertes.net/2017/08/powershell-coreinstallation-unter-debian-linux/#comments</comments>
		
		<dc:creator><![CDATA[Haiko]]></dc:creator>
		<pubDate>Sun, 06 Aug 2017 08:05:33 +0000</pubDate>
				<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[PowerShell Core]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">https://www.hertes.net/?p=3472</guid>

					<description><![CDATA[In nächster Zeit möchte ich mich mehr mit dem Thema “PowerShell Core” (also PowerShell 6.0, der Version auf Grundlage von .NET Core, die auf Linux, Unix&#160; und MacOS läuft) beschäftigen. Den Einstieg soll die Installation der PowerShell Core unter Debian Linux machen. Zunächst brauch man eine unterstütze Linux-Version. Aktuell sind das: Ubuntu 14.04 Ubuntu 16.04 CentOS 7 OpenSUSE 42.1 Arch Linux RHEL 7.2/7.3 Debian 8 MacOS 10 Konkret für Debian bedeutet das, dass man “old stable” (Jessie) benutzen muss, weil Debian 9 “Stretch” noch nicht unterstützt wird. Nach der frischen Installation von Debian 8 braucht man sinnvollerweise noch folgende Pakete:&#8230;]]></description>
										<content:encoded><![CDATA[<p>In nächster Zeit möchte ich mich mehr mit dem Thema “PowerShell Core” (also PowerShell 6.0, der Version auf Grundlage von .NET Core, die auf Linux, Unix&#160; und MacOS läuft) beschäftigen. Den Einstieg soll die Installation der PowerShell Core unter Debian Linux machen.</p>
<p>Zunächst brauch man eine unterstütze Linux-Version. Aktuell sind das:</p>
<ul>
<li>Ubuntu 14.04 </li>
<li>Ubuntu 16.04 </li>
<li>CentOS 7 </li>
<li>OpenSUSE 42.1 </li>
<li>Arch Linux </li>
<li>RHEL 7.2/7.3 </li>
<li>Debian 8 </li>
<li>MacOS 10 </li>
</ul>
<p>Konkret für Debian bedeutet das, dass man “old stable” (Jessie) benutzen muss, weil Debian 9 “Stretch” noch nicht unterstützt wird.</p>
<p>Nach der frischen Installation von Debian 8 braucht man sinnvollerweise noch folgende Pakete:</p>
<ul>
<li>sudo (Dazu muss man sich ggf. als root einloggen!) </li>
<li>SSH (damit der Zugang und das Übertragen der URLs einfacher wird) </li>
<li>curl </li>
<li>apt-transport-https </li>
</ul>
<p>Diese Pakete installiert man am einfachsten mit</p>
<pre lang="bash">
sudo apt-get update
sudo apt-get install openssh-server curl apt-transport-https –y
</pre>
<p>Nun können die Vorbereitungen und die eigentliche PowerShell-Installation durchgeführt werden:</p>
<pre lang="bash"># Import der GPG Schlüssel für das MS Repository 
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -

# Registrierung des Microsoft Repositories
curl https://packages.microsoft.com/config/debian/8/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list
# Oder alternativ:
# curl https://packages.microsoft.com/config/ubuntu/14.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list

# Update mit apt-get
sudo apt-get update

# Installation von PowerShell
sudo apt-get install -y powershell

# Start der PowerShell Core
powershell</pre>
<p>&#160;</p>
<p>Hierzu noch ein paar Screenshots:</p>
<p>&#160;</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2017/08/2017-08-05-1.png"><img loading="lazy" decoding="async" title="2017-08-05 (1)" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; float: none; padding-top: 0px; padding-left: 0px; margin-left: auto; display: block; padding-right: 0px; border-top-width: 0px; margin-right: auto" border="0" alt="2017-08-05 (1)" src="https://www.hertes.net/wp-content/uploads/2017/08/2017-08-05-1_thumb.png" width="644" height="439" /></a></p>
<p><a href="https://www.hertes.net/wp-content/uploads/2017/08/2017-08-05.png"><img loading="lazy" decoding="async" title="2017-08-05" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; float: none; padding-top: 0px; padding-left: 0px; margin-left: auto; display: block; padding-right: 0px; border-top-width: 0px; margin-right: auto" border="0" alt="2017-08-05" src="https://www.hertes.net/wp-content/uploads/2017/08/2017-08-05_thumb.png" width="644" height="439" /></a></p>
<p><a href="https://www.hertes.net/wp-content/uploads/2017/08/ps_core_3.png"><img loading="lazy" decoding="async" title="ps_core_3" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; float: none; padding-top: 0px; padding-left: 0px; margin-left: auto; display: block; padding-right: 0px; border-top-width: 0px; margin-right: auto" border="0" alt="ps_core_3" src="https://www.hertes.net/wp-content/uploads/2017/08/ps_core_3_thumb.png" width="644" height="408" /></a></p>
<p><a href="https://www.hertes.net/wp-content/uploads/2017/08/ps_core_4.png"><img loading="lazy" decoding="async" title="ps_core_4" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; float: none; padding-top: 0px; padding-left: 0px; margin-left: auto; display: block; padding-right: 0px; border-top-width: 0px; margin-right: auto" border="0" alt="ps_core_4" src="https://www.hertes.net/wp-content/uploads/2017/08/ps_core_4_thumb.png" width="644" height="408" /></a></p>
<p>Viel Spaß beim Nachmachen und Ausprobieren!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.hertes.net/2017/08/powershell-coreinstallation-unter-debian-linux/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>PowerShell ist jetzt OpenSource / PowerShell f&#252;r Linux</title>
		<link>https://www.hertes.net/2016/08/powershell-ist-jetzt-opensource-powershell-fr-linux/</link>
					<comments>https://www.hertes.net/2016/08/powershell-ist-jetzt-opensource-powershell-fr-linux/#respond</comments>
		
		<dc:creator><![CDATA[Haiko]]></dc:creator>
		<pubDate>Thu, 18 Aug 2016 15:55:00 +0000</pubDate>
				<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSource]]></category>
		<guid isPermaLink="false">http://www.hertes.net/?p=3233</guid>

					<description><![CDATA[Was für uns MVPs schon etwas länger bekannt war, wurde heute durch Microsoft offiziell bekannt gegeben (und daher darf ich nun auch darüber schreiben): Die Windows PowerShell ist seit heute OpenSource! Das Projekt ist auf GitHub zu finden: https://github.com/powershell/powershell Außerdem gibt es eine erste Alpha-Version der PowerShell für Linux und MacOS! (Ubuntu 14.04 / 16.04, CentOS 7.1 und MacOS X 10.11) Weitere Infos auf dem offiziellen Microsoft PowerShell Team Blog: https://blogs.msdn.microsoft.com/powershell/2016/08/18/powershell-on-linux-and-open-source-2/]]></description>
										<content:encoded><![CDATA[<p>Was für uns MVPs schon etwas länger bekannt war, wurde heute durch Microsoft offiziell bekannt gegeben (und daher darf ich nun auch darüber schreiben):</p>
<p>Die Windows PowerShell ist seit heute OpenSource! Das Projekt ist auf GitHub zu finden:</p>
<p><a title="https://github.com/powershell/powershell" href="https://github.com/powershell/powershell">https://github.com/powershell/powershell</a></p>
<p>Außerdem gibt es eine erste Alpha-Version der PowerShell für Linux und MacOS!</p>
<p>(Ubuntu 14.04 / 16.04, CentOS 7.1 und MacOS X 10.11)</p>
<p>Weitere Infos auf dem offiziellen Microsoft PowerShell Team Blog:</p>
<p><a href="https://blogs.msdn.microsoft.com/powershell/2016/08/18/powershell-on-linux-and-open-source-2/">https://blogs.msdn.microsoft.com/powershell/2016/08/18/powershell-on-linux-and-open-source-2/</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.hertes.net/2016/08/powershell-ist-jetzt-opensource-powershell-fr-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
