Strumenti Utente

Strumenti Sito


asl:luglio2017

Differenze

Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.

Link a questa pagina di confronto

asl:luglio2017 [01/02/2018 10:23] – creata roberto.alfieriasl:luglio2017 [05/02/2018 14:51] (versione attuale) – eliminata roberto.alfieri
Linea 1: Linea 1:
-===== ASL - Luglio 2017 ===== 
- 
-==== 10 Luglio ==== 
- 
-R. Alfieri:   
-  *  [[ http://www.fis.unipr.it/lca/ | I servizi informatici del LCA ]] 
-  * [[ http://www.fis.unipr.it/dokuwiki/doku.php?id=roberto.alfieri:pub:risorse | Servizi informatici di Ateneo ]] 
-  * INFN Nazionale [[ http://home.infn.it/it/ | Web ]]  [[ https://wiki.infn.it/| wiki ]] 
-  * INFN Parma [[ http://www.pr.infn.it/ | Web ]]  [[ http://www.fis.unipr.it/dokuwiki/doku.php?id=infn:start | Wiki ]] 
- 
-== L'ambiente Linux ==  
- 
-Host disponibili:  infn100.hpc.unipr.it (template) , infn101.hpc.unipr.it ,  infn102.hpc.unipr.it , infn103.hpc.unipr.it (clone di ws01.hpc.unipr.it)  
- 
- 
-Approfondmenti: 
- [[ http://www.fis.unipr.it/dokuwiki/doku.php?id=roberto.alfieri:pub:ubuntu | Linux GUI ]] - 
- [[ http://www.fis.unipr.it/dokuwiki/doku.php?id=roberto.alfieri:user:shell | linux Shell]] - 
- [[ http://www.fis.unipr.it/dokuwiki/doku.php?id=roberto.alfieri:user:awk_sed | Riceche e filtri ]] - 
- [[ http://www.fis.unipr.it/dokuwiki/doku.php?id=roberto.alfieri:user:shell_prog | Shell programming]] 
- 
- 
-=== LDAP === 
- 
-http://www.ldapadmin.org/download/ldapadmin.html  
-- 
-[[ https://univpr-my.sharepoint.com/personal/roberto_alfieri_unipr_it/_layouts/15/guestaccess.aspx?docid=1863cd3d800454d129ba94d97f6b0308f&authkey=Ab990iJlEJ1W_Sec6k2pn-M 
- | ldap-profile ]] 
- 
- 
-Confgurazione LDAP: 
-<code> 
-ldap01.hpc.unipr.it  
-base: ou=infn,dc=hpc,dc=unipr,dc=it 
-base: ou=hpc,dc=hpc,dc=unipr,dc=it 
- 
-</code> 
- 
-==Configurazione infn103 come server WWW dell'INFN== 
- 
-  * Attivata l'autenticazione LDAP con script   sssd-dc_hpc-ou_infn.sh ( baseDN= ou=infn,dc=hpc,dc=unipr,dc=it ) 
-  * Sincronizzati i dati dal server web attuale (www.fis.unipr.it): 
-<code bash> 
-rsync -av  web.fis.unipr.it:/var/www/html/infn/                     /var/www/html/infn/ 
-rsync -av  web.fis.unipr.it:/var/www/html/dokuwiki/data/pages/infn/ /var/www/html/dokuwiki/data/pages/infn/ 
-rsync -av  web.fis.unipr.it:/var/www/html/dokuwiki/data/media/infn/ /var/www/html/dokuwiki/data/media/infn/ 
-</code> 
- 
-Nuovo server: http://infn103.hpc.unipr.it/ 
- 
-Abilitazione di userdir:  
-  * modificato il file /etc/httpd/conf.d/userdir.conf  
-<code> 
- #   UserDir disabled 
- UserDir html 
- 
-<Directory "/hpc/home/*/html"  > 
-    AllowOverride FileInfo AuthConfig Limit Indexes 
-    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec 
-    Require method GET POST OPTIONS 
-</Directory> 
- 
-<Directory "/hpc/home/staff/*/html"  > 
-    AllowOverride FileInfo AuthConfig Limit Indexes 
-    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec 
-    Require method GET POST OPTIONS 
-</Directory> 
- 
-</code> 
- 
-==== 11 Luglio ==== 
- 
-=== Configurazione infn101 come server SMTP dell'INFN === 
- 
-Riferimenti: https://tecadmin.net/install-sendmail-server-on-centos-rhel-server/  
- 
-Installati i seguenti pacchetti:  
- 
-  yum install sendmail sendmail-cf sendmail-doc cyrus-sasl-{lib,plain} 
- 
-Copiato i seguenti file di configurazione dal vecchio server posta.fis.unipr.it: 
-<code> 
-scp posta.fis.unipr.it:/etc/mail/access            /etc/mail/ 
-scp posta.fis.unipr.it:/etc/mail/local-host-names  /etc/mail/ 
-</code> 
- 
- 
-Configurato il file /etc/mail/sendmail.mc:  
-<code> 
- 
-echo "define('SMART_HOST', 'relay.fis.unipr.it')dnl"               >> /etc/mail/sendmail.mc 
-echo "dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl" >> /etc/mail/sendmail.mc 
-</code> 
- 
- 
-m4 sendmail.mc > sendmail.cf 
- 
-systemctl restart sendmail.service 
- 
- 
-Modificato /etc/aliases: 
- 
-  echo "asl:           roberto.alfieri, cristian.ghiorzi,tommaso.arpiosi" >> /etc/aliases 
-  newaliases 
- 
-=== Configurazione DOVECOT === 
- 
-Da fare 
- 
-=== Configurazione infn102 come server DNS dell'INFN === 
- 
-Creazione server DNS su macchina infn102 con installazione bind 
- 
-  ./sssd-dc_hpc-ou_infn.sh # connessione di infn102 al LDAP INFN. 
- 
-  yum install bind 
-   
-modifica di /etc/named.conf 
-<code> 
- 
- cat << EOF >> /etc/named.conf 
- listen-on port 53 { 127.0.0.1; 160.78.32.102; }; 
- allow-query       { localhost; 160.78.0.0/16; 192.135.11.0/24;}; 
- zone "pr.infn.it" { type master; file "infn/pr_infn.soa";     }; 
- EOF 
-</code> 
- 
- 
-  cd /var/named/infn 
-  scp server:/var/named/fis/pr_infn.soa . 
-  scp server.fis.unipr.it:/var/named/fis/pr_infn.db . 
-  scp server.fis.unipr.it:/var/named/fis/pr_infn.cname . 
- 
- 
-  dig @infn102 www.pr.infn.it 
- 
- 
-==== 12 Luglio ==== 
- 
-Visita al Data Center di Ateneo  
- 
- 
- 
- 
-=== Samba === 
- 
-Installazione Samba 
- 
-<code> 
-yum install samba 
-yum install system-config-samba 
-yum install samba-common 
-</code> 
- 
-Configurazione Samba 
-<code> 
-[global] 
-        workgroup = INFN 
-        hosts allow = 127. 160.78. 192.135.11. 
-        printing = cups 
-        printcap name = cups 
-        load printers = yes 
-        cups options = raw 
-[homes] 
-        comment = Home Directories 
-        valid users = %S, %D%w%S 
-        browseable = No 
-        read only = No 
-        inherit acls = Yes 
- 
-[printers] 
-        comment = All Printers 
-        path = /var/tmp 
-        printable = Yes 
-        create mask = 0600 
-        browseable = No 
-         
-[print$] 
-        comment = Printer Drivers 
-        path = /var/lib/samba/drivers 
-        write list = root 
-        create mask = 0664 
-        directory mask = 0775 
-</code> 
- 
-creazione share pubblica  
-<code> 
-[global] 
-       . 
-       . 
-       . 
-       map to guest = Bad User 
-        
-[Anonymous] 
-       path = /etc/samba/anonymous 
-       browsable =yes 
-       writable = yes 
-       guest ok = yes 
-       read only = no 
-</code> 
- 
-Creazione di una share con autenticazione  
-<code> 
-goupadd smbgrp 
-useradd <nomeutente> -G smbrgrp 
-smbpasswd -a <nomeutente> 
-mkdir -p secured 
-cd /samba 
-chmod -R 777 secured 
-</code> 
- 
-Configurazione per autenticazione 
-<code> 
-[secured] 
- path = /etc/samba/secured 
-# valid users = @smbgrp 
- valid users = @G_ASL , @smbgrp, roberto.alfieri 
- guest ok = no 
- writable = yes 
- browsable = yes 
-</code> 
- 
- 
-== Autenticazione SAMBA == 
- 
- 
-Da configurare smb-ldaptoools 
- 
-Point-and-print per windows10 
- 
-==== 13 Luglio ==== 
- 
- 
-=== Configurazione DHCP su infn102 === 
- 
-installazione DHCP 
- 
-<code> 
-yum install dhcp 
-</code> 
- 
-configurazione DHCP 
- 
-<code> 
-# 
-# DHCP Server Configuration file. 
-#   see /usr/share/doc/dhcp*/dhcpd.conf.example 
-#   see dhcpd.conf(5) man page 
-# 
- 
- 
-option domain-name              "pr.infn.it"; 
-option domain-name-servers      192.135.11.20, 160.78.48.10; 
-option subnet-mask              255.255.255.0; 
-option ntp-servers              192.135.11.20; 
-not authoritative; 
-default-lease-time              3600; 
-max-lease-time                  86400; # 24 ore 
-ignore                          unknown-clients; 
-ddns-update-style               none; 
- 
-shared-network INFN 
-{ 
-option ntp-servers              192.135.11.20; 
-not authoritative; 
-default-lease-time              3600; 
-max-lease-time                  86400; # 24 ore 
-ignore                          unknown-clients; 
-ddns-update-style               none; 
- 
-shared-network INFN 
-{ 
-  subnet 192.135.11.0 netmask 255.255.255.128 
-  { 
-    authoritative; 
-    range                      192.135.11.195 192.135.11.239; 
-    option routers              192.135.11.254; 
-    option subnet-mask         255.255.255.128; 
- 
-  } 
-   
-  subnet 160.78.34.0 netmask 255.255.255.0 
-  { 
-    authoritative; 
-    range                       160.78.34.211 160.78.34.252; 
-    option routers              160.78.34.254; 
-  } 
- 
- 
- subnet 160.78.32.0 netmask 255.255.255.0 
-  { 
-    authoritative; 
-    option routers              160.78.34.254; 
-  } 
-} 
-</code> 
- 
  
asl/luglio2017.1517477029.txt.gz · Ultima modifica: 01/02/2018 10:23 da roberto.alfieri

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki