13 und CI
This commit is contained in:
		
							
								
								
									
										195
									
								
								13.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										195
									
								
								13.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,195 @@
 | 
			
		||||
<!doctype html>
 | 
			
		||||
<html lang="de">
 | 
			
		||||
		<meta charset="utf-8">
 | 
			
		||||
 | 
			
		||||
		<title>Einführung in Linux</title>
 | 
			
		||||
 | 
			
		||||
		<meta name="description" content="YALC - Yet Another Linux Course ">
 | 
			
		||||
		<meta name="author" content="Daniel Schubert">
 | 
			
		||||
 | 
			
		||||
		<meta name="apple-mobile-web-app-capable" content="yes">
 | 
			
		||||
		<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
 | 
			
		||||
 | 
			
		||||
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
 | 
			
		||||
 | 
			
		||||
		<link rel="stylesheet" href="css/reveal.css">
 | 
			
		||||
		<link rel="stylesheet" href="css/theme/league.css" id="theme">
 | 
			
		||||
		
 | 
			
		||||
		<link rel="icon" href="img/openlogo-nd-25.png" type="img/png">
 | 
			
		||||
 | 
			
		||||
		<!-- Theme used for syntax highlighting of code -->
 | 
			
		||||
		<link rel="stylesheet" href="lib/css/zenburn.css">
 | 
			
		||||
 | 
			
		||||
		<!-- Printing and PDF exports -->
 | 
			
		||||
		<script>
 | 
			
		||||
			var link = document.createElement( 'link' );
 | 
			
		||||
			link.rel = 'stylesheet';
 | 
			
		||||
			link.type = 'text/css';
 | 
			
		||||
			link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
 | 
			
		||||
			document.getElementsByTagName( 'head' )[0].appendChild( link );
 | 
			
		||||
		</script>
 | 
			
		||||
		<style type="text/css">
 | 
			
		||||
			.reveal img{ max-height: 60vh}
 | 
			
		||||
		</style>
 | 
			
		||||
 | 
			
		||||
	</head>
 | 
			
		||||
 | 
			
		||||
	<body>
 | 
			
		||||
		<div class="reveal">
 | 
			
		||||
			<!-- Any section element inside of this container is displayed as a slide -->
 | 
			
		||||
			<div class="slides">
 | 
			
		||||
 | 
			
		||||
				<section data-transition="slide" data-background="#4d7e65" data-background-transition="zoom">
 | 
			
		||||
					<h1>LINUX</h1>
 | 
			
		||||
					<h3>Das universelle Betriebssystem</h3>
 | 
			
		||||
					<p>Eine Einführung - Teil 13
 | 
			
		||||
					<p> <small>Deutsche Angestellten Akademie</small> </p>
 | 
			
		||||
					<aside class="notes">
 | 
			
		||||
						Frage: Fragen zur letzten Stunde?
 | 
			
		||||
					</aside>
 | 
			
		||||
				</section>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
				<section  data-transition="slide" data-background="#b5533c" data-background-transition="convex">
 | 
			
		||||
					<h3>Samba</h3>
 | 
			
		||||
					<h4>Filesharing / Netzwerk-Freigaben</h4>
 | 
			
		||||
				</section>
 | 
			
		||||
 | 
			
		||||
				<section>
 | 
			
		||||
					Samba ist ein Datei-, Druck- und auch Domänen-Anmelde-Server unter Linux für die Anbindung von Windows- und OSX-Clients. Samba steht unter der GPL, ist also frei verfügbar.<br> Es gibt keine strikte Trennung zw. Client u. Server. Jeder beteiligte Host kann beides sein.
 | 
			
		||||
				</section>
 | 
			
		||||
 | 
			
		||||
				<section>
 | 
			
		||||
					<h4>Nutzung zum Hausgebrauch</h4>
 | 
			
		||||
 | 
			
		||||
					<pre><code class="bash"># Nutzung von samba mit Nautilus möglich per
 | 
			
		||||
~$ sudo apt install samba nautilus-share
 | 
			
		||||
~$ sudo usermod -aG sambashare BENUTZERNAME
 | 
			
		||||
					</code></pre>
 | 
			
		||||
 | 
			
		||||
					<ul>
 | 
			
		||||
						<li >Dann ab- und wieder an-melden</li>
 | 
			
		||||
						<li >prüfen ob Nutzer in Gruppe „sambashare”</li>
 | 
			
		||||
						<li >nun Freigaben in Nautilus per Rechtsklick möglich</li>
 | 
			
		||||
						<li >Freigaben sind auch für Windoes und OSX sichtbar</li>
 | 
			
		||||
						<li class="fragment highlight-red">und für ALLE ANDEREN !!</li>
 | 
			
		||||
					</ul>
 | 
			
		||||
				</section>
 | 
			
		||||
				<section>
 | 
			
		||||
					<h5>Natürlich auch im Terminal ;-)</h5>
 | 
			
		||||
 | 
			
		||||
					<ul><li><p>Freigaben erstellen oder verändern: </p><div class="bash"><div class="contents"><pre class="bash">~$ net usershare add SHARENAME PFAD [comment [acl] [guest_ok=[y|n]]] </pre></div></div></li><li><p>Freigaben aufheben: </p><div class="bash"><div class="contents"><pre class="bash">~$ net usershare delete SHARENAME </pre></div></div></li><li><p>Vorhandene Freigaben auflisten: </p><div class="bash"><div class="contents"><pre class="bash">~$ net usershare list [-l|--long] [SHARENAME] </pre></div></div></li><li><p>Informationen über eine oder mehrere Freigaben ausgeben: </p><div class="bash"><div class="contents"><pre class="bash">~$ net usershare info [-l|--long] [SHARENAME] </pre></div></div></li></ul>
 | 
			
		||||
					
 | 
			
		||||
				</section>
 | 
			
		||||
 | 
			
		||||
				<section>
 | 
			
		||||
					<h5>Beispiel</h5>
 | 
			
		||||
					<pre style="font-size: .5em"><code class="bash">~$ net usershare add Urlaubsbilder /home/otto/Bilder/Urlaub \ 
 | 
			
		||||
	Urlaubsbilder-2012 Everyone:R,otto:F guest_ok=y </code></pre>
 | 
			
		||||
 | 
			
		||||
					<pre><code class="bash">~$ net usershare info *bilder </code></pre>
 | 
			
		||||
 | 
			
		||||
					<pre><code class="bash">~$ cat /var/lib/samba/usershares/Urlaubsbilder</code></pre>
 | 
			
		||||
 | 
			
		||||
					<a style="font-size: .5em" href="https://wiki.ubuntuusers.de/Samba_Server/net_usershare/">https://wiki.ubuntuusers.de/Samba_Server/net_usershare/</a>
 | 
			
		||||
				</section>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
				<section>
 | 
			
		||||
					<h4>Nutzung im grösseren Rahmen</h4>
 | 
			
		||||
					<p>zb als NAS oder Fileserver
 | 
			
		||||
					<ul>
 | 
			
		||||
						<li class="fragment ">Freigaben definiert in <code>/etc/samba/smb.conf</code></li>
 | 
			
		||||
						<li class="fragment ">Nutzung der Nutzerrechte des Systems</li>
 | 
			
		||||
						<li class="fragment ">User müssen zusätzlich innerhalb v. samba angelegt werden</li>
 | 
			
		||||
					</ul>
 | 
			
		||||
 | 
			
		||||
					
 | 
			
		||||
				</section>
 | 
			
		||||
 | 
			
		||||
				
 | 
			
		||||
 | 
			
		||||
				<section>
 | 
			
		||||
					<code>/etc/samba/smb.conf</code>
 | 
			
		||||
					<pre style="font-size: .4em"><code class="bash">[global]
 | 
			
		||||
	workgroup = AWESOME
 | 
			
		||||
        map to guest = Bad User
 | 
			
		||||
        log file = /var/log/samba/%m
 | 
			
		||||
        log level = 1
 | 
			
		||||
 | 
			
		||||
[homes]
 | 
			
		||||
	# macht alle lokalen home Verzeichnisse zugänglich
 | 
			
		||||
	comment = Home Directories
 | 
			
		||||
	browseable = yes
 | 
			
		||||
 | 
			
		||||
[guest]
 | 
			
		||||
        # This share allows anonymous (guest) access
 | 
			
		||||
        # without authentication!
 | 
			
		||||
        path = /srv/samba/guest/
 | 
			
		||||
        read only = no
 | 
			
		||||
        guest ok = yes
 | 
			
		||||
 | 
			
		||||
[demo]
 | 
			
		||||
        # This share requires authentication to access
 | 
			
		||||
        path = /mnt/huge-1TB-sata-drive/moviez/
 | 
			
		||||
        read only = no
 | 
			
		||||
        guest ok = no</code></pre>
 | 
			
		||||
				</section>
 | 
			
		||||
 | 
			
		||||
				<section>gadmin-samba</section>
 | 
			
		||||
 | 
			
		||||
				<section>
 | 
			
		||||
					<ul>
 | 
			
		||||
						<li class="fragment ">samba</li>
 | 
			
		||||
						<li class="fragment ">mysql</li>
 | 
			
		||||
						<li class="fragment ">apache</li>
 | 
			
		||||
						<li class="fragment ">kernelmodule</li>
 | 
			
		||||
						<li class="fragment ">kernel kompilieren</li>
 | 
			
		||||
					</ul>
 | 
			
		||||
				</section>
 | 
			
		||||
 | 
			
		||||
				<section>
 | 
			
		||||
					Übungen
 | 
			
		||||
C 11.11 [3] Besorgen Sie sich eine geeignete Datei (etwa ein größeres tar -Ar-
 | 
			
		||||
chiv mit Quellcode, vielleicht für den Linux-Kernel) und komprimieren Sie
 | 
			
		||||
sie jeweils mit gzip , bzip2 und xz . Messen Sie dabei die Ausführungszeit
 | 
			
		||||
durch ein vorgesetztes time . Wie verhalten die Laufzeiten und die Kompri-
 | 
			
		||||
mierungsraten sich zueinander?
 | 
			
		||||
C 11.12 [2] Experimentieren Sie mit der Datei aus der vorigen Aufgabe und
 | 
			
		||||
vergleichen Sie die Laufzeit und die Größe des Resultats für xz mit verschie-
 | 
			
		||||
denen Effizienz-Optionen. Was ist der Unterschied zwischen -1 und -6 und
 | 
			
		||||
zwischen -6 und -9 ?
 | 
			
		||||
				</section>
 | 
			
		||||
			</div>
 | 
			
		||||
		</div>
 | 
			
		||||
 | 
			
		||||
		<script src="lib/js/head.min.js"></script>
 | 
			
		||||
		<script src="js/reveal.js"></script>
 | 
			
		||||
 | 
			
		||||
		<script>
 | 
			
		||||
 | 
			
		||||
			// More info https://github.com/hakimel/reveal.js#configuration
 | 
			
		||||
			Reveal.initialize({
 | 
			
		||||
				controls: true,
 | 
			
		||||
				progress: true,
 | 
			
		||||
				history: true,
 | 
			
		||||
				center: true,
 | 
			
		||||
 | 
			
		||||
				transition: 'slide', // none/fade/slide/convex/concave/zoom
 | 
			
		||||
 | 
			
		||||
				// More info https://github.com/hakimel/reveal.js#dependencies
 | 
			
		||||
				dependencies: [
 | 
			
		||||
					{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
 | 
			
		||||
					{ src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
 | 
			
		||||
					{ src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
 | 
			
		||||
					{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
 | 
			
		||||
					{ src: 'plugin/search/search.js', async: true },
 | 
			
		||||
					{ src: 'plugin/zoom-js/zoom.js', async: true },
 | 
			
		||||
					{ src: 'plugin/notes/notes.js', async: true }
 | 
			
		||||
				]
 | 
			
		||||
			});
 | 
			
		||||
 | 
			
		||||
		</script>
 | 
			
		||||
 | 
			
		||||
	</body>
 | 
			
		||||
</html>
 | 
			
		||||
		Reference in New Issue
	
	Block a user