ping 192.168.0.
ssh root@192.168.0.
###
# Desactivació del repositori de MEDIBUNTU
###
nano /etc/apt/sources.list.d/medibuntu.list
-> Comentar la línia del repositori de medibuntu
###
# Actualización del programari i utilitats
###
apt-get update
aptitude safe-upgrade
apt-get autoremove
apt-get install smbfs samba samba-common smbclient auth-client-config ldap-utils libnss-ldapd linux-headers-generic
auth-client-config -t nss -p lac_ldap
pam-auth-update
###
# Desactivació de l'accès a LDAP
###
ssh-keygen -R argo1
ssh-keygen -R 192.168.0.100
rsync root@192.168.0.100:/srv/exports/S/.ConfiguracioXarxaEstacions/Adaptacio_a_LINKAT_11.4/no_ldap/nsswitch.conf /etc
cd /etc
chown root:root nsswitch.conf
chmod 644 nsswitch.conf
cat /etc/nsswitch.conf
reboot
###
# Assignació dels grups d'usuaris
###
ssh root@192.168.0.
groupmod -g 999 activflash
addgroup --force-badname -gid 1000 Professorat
addgroup --force-badname -gid 1001 Administradors
addgroup --force-badname -gid 1002 Editors
addgroup --force-badname -gid 1003 Alumnat
addgroup --force-badname -gid 1004 Gestio
adduser -uid 5000 direct
adduser -uid 5500 super
usermod -u 5001 prof
usermod -u 5002 argo
usermod -u 5003 superubuntu
usermod -g Professorat prof
usermod -g Alumnat argo
usermod -g Administradors superubuntu
usermod -g Gestio direct
usermod -g Administradors super
usermod -a -G Professorat super
usermod -a -G Gestio super
usermod -a -G Professorat direct
adduser -uid 5004 aula1
adduser -uid 5005 aula2
adduser -uid 5006 aula3
adduser -uid 5007 aula4
adduser -uid 5008 aula5
adduser -uid 5009 aula6
adduser -uid 5010 aula7
adduser -uid 5011 aula8
adduser -uid 5012 aula9
adduser -uid 5013 aula10
adduser -uid 5014 aula11
adduser -uid 5015 aula12
adduser -uid 5016 aula13
adduser -uid 35017 aula14
usermod -g Alumnat aula1
usermod -g Alumnat aula2
usermod -g Alumnat aula3
usermod -g Alumnat aula4
usermod -g Alumnat aula5
usermod -g Alumnat aula6
usermod -g Alumnat aula7
usermod -g Alumnat aula8
usermod -g Alumnat aula9
usermod -g Alumnat aula10
usermod -g Alumnat aula11
usermod -g Alumnat aula12
usermod -g Alumnat aula13
usermod -g Alumnat aula14
groupdel prof
cd /home-local
chown -R prof:Professorat prof
chown -R argo:Alumnat argo
chown -R direct:Gestio direct
chown -R superubuntu:Administradors superubuntu
chown -R aula1:Alumnat aula1
chown -R aula2:Alumnat aula2
chown -R aula3:Alumnat aula3
chown -R aula4:Alumnat aula4
chown -R aula5:Alumnat aula5
chown -R aula6:Alumnat aula6
chown -R aula7:Alumnat aula7
chown -R aula8:Alumnat aula8
chown -R aula9:Alumnat aula9
chown -R aula10:Alumnat aula10
chown -R aula11:Alumnat aula11
chown -R aula12:Alumnat aula12
chown -R aula13:Alumnat aula13
chown -R aula14:Alumnat aula14
###
# Preparació dels punts de muntatge
###
mkdir -p /media/P
mkdir -p /media/T
mkdir -p /media/S
mkdir -p /media/prn_color
mkdir -p /mnt/G
mkdir -p /mnt/M
mkdir -p /mnt/super
mkdir -p /mnt/direct
mkdir -p /mnt/MIC
mkdir -p /mnt/imatges.cd
mkdir -p /mnt/clonezilla
mkdir -p /mnt/S2
cp /etc/fstab /etc/fstab.bak
nano /etc/fstab
-> Afegir les línies
//192.168.0.100/P /media/P cifs _netdev,credentials=/etc/samba/credentials_prof,uid=prof,gid=Professorat,iocharset=utf8,file_mode=0666,dir_mode=0777 0 0
//192.168.0.100/S /media/S cifs _netdev,credentials=/etc/samba/credentials_super,uid=super,gid=Administradors,file_mode=0664,dir_mode=0775 0 0
//192.168.0.100/T /media/T cifs _netdev,credentials=/etc/samba/credentials_argo,uid=argo,gid=Alumnat,file_mode=0666,dir_mode=0777 0 0
//192.168.0.100/prn_color /media/prn_color cifs _netdev,credentials=/etc/samba/credentials_argo,uid=argo,gid=Alumnat,file_mode=0666,dir_mode=0777 0 0
//192.168.0.100/imatges.cd /mnt/imatges.cd cifs _netdev,credentials=/etc/samba/credentials_super,uid=super,gid=Administradors,file_mode=0664,dir_mode=0775 0 0
//192.168.0.100/M /mnt/M cifs _netdev,credentials=/etc/samba/credentials_prof,uid=prof,gid=Professorat,iocharset=utf8,file_mode=0660,dir_mode=0770 0 0
//192.168.0.100/G /mnt/G cifs _netdev,credentials=/etc/samba/credentials_gestio,uid=direct,gid=Gestio,file_mode=0660,dir_mode=0770 0 0
//192.168.0.100/direct /mnt/direct cifs _netdev,credentials=/etc/samba/credentials_gestio,uid=direct,gid=Gestio,file_mode=0660,dir_mode=0770 0 0
//192.168.0.100/MIC /mnt/MIC cifs _netdev,credentials=/etc/samba/credentials_gestio,uid=direct,gid=Gestio,file_mode=0660,dir_mode=0770 0 0
//192.168.0.100/super /mnt/super cifs _netdev,credentials=/etc/samba/credentials_super,uid=super,gid=Administradors,file_mode=0660,dir_mode=0770 0 0
//192.168.0.100/clonezilla /mnt/clonezilla cifs _netdev,credentials=/etc/samba/credentials_argo,uid=argo,gid=Alumnat,file_mode=0666,dir_mode=0777 0 0
//192.168.0.100/S2 /mnt/S2 cifs _netdev,credentials=/etc/samba/credentials_super,uid=super,gid=Administradors,file_mode=0664,dir_mode=0775 0 0
rsync -av root@192.168.0.100:/srv/exports/S/.ConfiguracioXarxaEstacions/Adaptacio_a_LINKAT_11.4/credencials/ /etc/samba
cd /etc/samba
chmod 640 credentials*
chown root:root credentials*
umount -a
mount -a
mount
rsync root@192.168.0.100:/srv/exports/S/.ConfiguracioXarxaEstacions/Adaptacio_a_LINKAT_11.4/si_ldap/nsswitch.conf /etc
cd /etc
chown root:root nsswitch.conf
chmod 644 nsswitch.conf
cat /etc/nsswitch.conf
###
# Ajusts per a la recuperació dels usuaris genèrics
###
scp root@192.168.0.100:/srv/exports/S/.UsuarisGenerics/procedimentsSH/ActualitzaHomeGeneric.sh /root/procedimentsSH
scp root@192.168.0.100:/srv/exports/S/.UsuarisGenerics/procedimentsSH/CopiaHomeGeneric.sh /root/procedimentsSH
cat /etc/rc.local
scp root@192.168.0.100:/srv/exports/S/.UsuarisGenerics/procedimentsSH/rc.local /etc
nano /etc/rc.local
###
# Canviar el grup alumnat per Alumnat a RestauraHome.sh
# Canviar el grup de professorat per Professorat
###
nano /root/procedimentsSH/RestauraHome.sh
# nano /etc/rc.local
# afegir la línia
# sudo sh /root/procedimentsSH/ActualitzaHomeGeneric.sh
sh /root/procedimentsSH/ActualitzaHomeGeneric.sh
sh /root/procedimentsSH/RestauraHome.sh
ln -s /root/procedimentsSH/RestauraHome.sh /etc/rc0.d/S10RestauraHome
ln -s /root/procedimentsSH/RestauraHome.sh /etc/rc6.d/S10RestauraHome
ls -lh /etc/rc0.d
ls -lh /etc/rc6.d
reboot
groups chema
ls -lh /home-local/argo/Escriptori
poweroff
exit
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.0.115
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
dns-nameservers 192.168.0.1
dns-search intracentre
/etc/init.d/networking restart
nslookup google.com
nslookup argo1
route -n
ping google.com
service cron stop
mkdir Argo1
ln -s /mnt/clonezilla /home-local/superubuntu/Escriptori/Escriptori/Argo1/clonezilla
ln -s /mnt/direct /home-local/superubuntu/Escriptori/Argo1/direct
ln -s /mnt/G /home-local/superubuntu/Escriptori/Argo1/G
ln -s /mnt/imatges.cd /home-local/superubuntu/Escriptori/Argo1/imatges.cd
ln -s /mnt/M /home-local/superubuntu/Escriptori/Argo1/M
ln -s /mnt/S2 /home-local/superubuntu/Escriptori/Argo1/S2
ln -s /mnt/super /home-local/superubuntu/Escriptori/Argo1/super
ln -s /media/T /home-local/superubuntu/Escriptori/Argo1/Alumnat
ln -s /media/P /home-local/superubuntu/Escriptori/Argo1/Professorat
ln -s /media/S /home-local/superubuntu/Escriptori/Argo1/Programari
ln -s /media/prn_color /home-local/superubuntu/Escriptori/Argo1/Impressora_Color