diff --git a/ld10-samba.pdf b/ld10-samba.pdf index 732611e..d16950b 100644 Binary files a/ld10-samba.pdf and b/ld10-samba.pdf differ diff --git a/ld10-samba.tex b/ld10-samba.tex index 3c6d3b1..20cf935 100644 --- a/ld10-samba.tex +++ b/ld10-samba.tex @@ -16,8 +16,17 @@ \savebox{\qbox}{{\fontspec{Hillock (BRK)}\fontsize{24}{24}\selectfont ?}} \newlength{\myqboxlen} \settowidth{\myqboxlen}{\usebox{\qbox}} -\newcommand{\question}{\parbox{\myqboxlen}{\color{red!75!black}\usebox{\qbox}}} +\newenvironment{question}[1]{\parbox{\myqboxlen}{\color{red!75!black}\usebox{\qbox}}\hfill\begin{minipage}{.92\textwidth}\alert{\bfseries #1}\\}{\end{minipage}} +% Definisco shell +\setbeamercolor{shell snippet}{fg=lightgray,bg=black} +\newenvironment{shell}{\begin{beamercolorbox}[sep=.5em]{shell snippet}\ttfamily {\color{blue}\$}}{\end{beamercolorbox}} +\newenvironment{rootshell}{\begin{beamercolorbox}[sep=.5em]{shell snippet}\ttfamily {\color{red}\#}}{\end{beamercolorbox}} + +% Definisco filesnippet +\newenvironment{filesnippet}[1]{\begin{block}{Snippet: \texttt{#1}}\ttfamily}{\end{block}} + +%%% Global structure %%% \title[Linux, Samba e AD]{Fileserver con SAMBA e Windows} \subtitle{Integrazione con \textit{Microsoft Active Directory}} @@ -42,6 +51,23 @@ \titlepage \end{frame} +\begin{frame} + \frametitle{\textit{Lightning Talk}?} + \begin{itemize}[<+->] + \item Richiesta «passiva» sul sito del BGlug + \item Limitazione nell'obiettivo + \item Livello tecnico abbastanza alto + \item Procedura di setup di meno di mezz'ora (compresi test) + \item Poco tempo per la preparazione del talk \texttt{O:-)} + \end{itemize} + + \bigskip + \begin{block}{Un piccolo dubbio mi assale\ldots \textbf{Esaustivo}?} + Con \textit{Active Directory} è impossibile pensare di essere esaustivi. + Ci vorrebbe una giornata intera. + \end{block} +\end{frame} + \begin{frame} \frametitle{Obiettivo} @@ -52,18 +78,10 @@ \bigskip \onslide+<2-> - \question\hfill - \begin{minipage}{.92\textwidth} - \alert{\bfseries Integrato in \emph{Active Directory}:}\\ - Gli utenti saranno in grado di accedere ai documenti - condivisi senza ulteriori autenticazioni - \end{minipage} - - \bigskip - \onslide<3-> - Ovviamente non sarà possibile essere \emph{esaustivi}: di un argomento vasto - come \textit{Active Directory} si potrebbe parlare in un intero «Windows - Day» + \begin{question}{Integrato con \emph{Active Directory}:} + Gli utenti saranno in grado di accedere ai documenti condivisi senza + ulteriori autenticazioni da macchine di dominio con utenze di dominio. + \end{question} \end{frame} @@ -73,7 +91,7 @@ \begin{block}{} \begin{itemize}[<+->] \item Un \emph{domain controller} Microsoft Windows - \item Un fileserver GNU/Linux (Debian) + \item Un fileserver GNU/Linux (Debian 5.0 «Lenny») \item Avere sufficienti conoscenze di \textit{Active Directory} \item Non avere paura di «sporcarsi le mani» \end{itemize} @@ -81,6 +99,84 @@ \end{frame} +\begin{frame} + \frametitle{0.0 --- Verifica parametri di rete} + + \begin{block}{Parametri di rete} + \begin{itemize}[<+->] + \item Domain Controller: testdc.domain.local, 10.0.0.1 + \item File Server: linuxfs.domain.local, 10.0.0.100 + \end{itemize} + \end{block} +\end{frame} + +\begin{frame} + \frametitle{0.1 --- Verifica parametri di rete} + + \begin{itemize} + \item<1-> Verificare il FQDN:\\[-.5em] + \onslide<1->{ + \begin{filesnippet}{/etc/hosts} + 10.0.0.100 linuxfs.domain.local linuxfs \textbackslash\\ + \hspace{2em}localhost.localdomain localhost + \end{filesnippet}} + \item<2-> Verificare DNS primario e dominio:\\[-.5em] + \onslide<2->{% + \begin{filesnippet}{/etc/resolv.conf} + nameserver 10.0.0.1\\ + search domain.local\\ + domain domain.local + \end{filesnippet}} + \item<3-> Verificare comunicazione e risoluzione nomi:\\[.3em] + \onslide<3->{% + \begin{shell} + ping 10.0.0.1 + \end{shell} + \begin{shell} + ping testdc.domain.local + \end{shell} + \begin{shell} + ping testdc + \end{shell}} + \end{itemize} + +\end{frame} + +\begin{frame} + \frametitle{1 --- Installazione} + + \begin{rootshell} + aptitude install openntpd ntpdate krb5-user samba winbind smbclient + \end{rootshell} + + \bigskip\onslide<2-> + Opzionalmente: + \begin{rootshell} + aptitude install smbfs + \end{rootshell} + +\end{frame} + +\begin{frame} + \frametitle{2 --- Configurazione NTP} + \begin{rootshell} + /etc/init.d/openntpd stop + \end{rootshell} + \onslide<2-> + \smallskip + \begin{filesnippet}{/etc/openntpd/ntpd.conf} + server testdc.domain.local + \end{filesnippet} + \onslide<3-> + \medskip + \begin{rootshell} + ntpdate testdc.domain.local + \end{rootshell} + \begin{rootshell} + /etc/init.d/openntpd start + \end{rootshell} +\end{frame} + % End slide \begin{frame}\centering