User Tools

Site Tools


admin:procedures

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
admin:procedures [2019/10/04 14:49]
peppe [Μαζική δημιουργία]
admin:procedures [2023/05/18 13:28] (current)
peppe
Line 10: Line 10:
 === uranus === === uranus ===
   # accmake.sh <user>   # accmake.sh <user>
 +Δημιουργία e-mail .forward για προπτυχιακούς 2019-20 και μετά.
  
 === gaia === === gaia ===
Line 15: Line 16:
   # newaliases   # newaliases
   # setstats_student.sh <user>   # setstats_student.sh <user>
 +  # webmail_welcome.sh <user> (για gcloud redirection)
  
 === titan-new (10.7.4.44) === === titan-new (10.7.4.44) ===
Line 24: Line 26:
  
 === uranus === === uranus ===
 +  # acctar.sh <user>
   # accdel.sh <user>   # accdel.sh <user>
  
Line 29: Line 32:
   # vi /etc/aliases (διαγραφή χρήστη)   # vi /etc/aliases (διαγραφή χρήστη)
   # newaliases   # newaliases
-  # rm /var/mail/<user>+  # cd /var/mail 
 +  # gzip <user> 
 +  # mv <user>.gz /mnt/accounts/mail
  
 === titan-new (10.7.4.44) === === titan-new (10.7.4.44) ===
Line 42: Line 47:
  
 ==== Τροποποίηση ==== ==== Τροποποίηση ====
 +
 +=== script ===
 +  # ~/bin/rename-accts.sh on uranus
  
 === uranus === === uranus ===
   # user home rename   # user home rename
 +  # emailforward-single.sh <newuser>
  
 === gaia === === gaia ===
Line 50: Line 59:
   # newaliases   # newaliases
   # mv /var/mail/<olduser> /var/mail/<newuser>   # mv /var/mail/<olduser> /var/mail/<newuser>
 +  # forward_mbox.sh <newuser>
  
 === titan-new (10.7.4.44) === === titan-new (10.7.4.44) ===
Line 81: Line 91:
  
  
 +----
 ==== Πρόβλημα "error in service module" κατά την αλλαγή password (scylla) ==== ==== Πρόβλημα "error in service module" κατά την αλλαγή password (scylla) ====
  
   # sh /etc/rc.d/yppasswdd restart   # sh /etc/rc.d/yppasswdd restart
  
 +
 +----
 +
 +==== Λογαριασμοί μεταπτυχιακών ====
 +
 +Για μεταγραφή σε λατινικούς χαρακτήρες:\\
 +[[http://www.passport.gov.gr/passports/GrElotConverter/GrElotConverter.html]]\\
 +
 +Αποθήκευση της λίστας σε αρχείο names.txt\\
 +Για παραγωγή usernames:
 +  $ awk '{print tolower(substr($2,1,1)) tolower($1) "\t" $0}' names.txt > grads.txt
 +
 +Παραγωγή αποκόμματος master.passwd.\\
 +uid = πρώτο User ID που θα χρησιμοποιηθεί\\
 +20210922 = ημερομηνία\\
 +21 = ακαδημαϊκό έτος εισαγωγής (π.χ. 21 σημαίνει 2021-22)\\
 +  $ awk -F'\t' 'BEGIN{uid=16368}{printf("%s:*LK-UNUSED-%d*:%d:51::0:0:%s:/usr/home/grads/grads%d/%s:/usr/local/bin/tcsh\n", $1, 20210922, uid, $2, 21, $1); uid++}' grads.txt
 +
 +Εισαγωγή σε scylla:/var/yp/master.passwd (& make)\\
 +\\
 +Δημιουργία homedirs, uranus:
 +  # awk '{print "accmake-grads.sh "$1}' grads.txt
 +Δημιουργία λίστας για gaia:/etc/aliases (& newaliases)
 +  $ awk '{printf("%s, ", $1)}' grads.txt
 +Δημιουργία εντολής για e-mail quotas (copy & paste σε gaia):
 +  $ awk '{print "setstats_grads.sh "$1}' grads.txt
 +Δημιουργία εντολής για print quotas (copy & paste σε titan-new):
 +  $ awk '{print "create_grads_quotas.sh "$1}' grads.txt
  
  
Line 161: Line 199:
  
  
 +===== DRBL - clonezilla server =====
 +
 +Προσθήκη νέου μηχανήματος
 +
 +==== drbl ====
 +
 +Add details in /etc/dhcp/dhcpd.conf
 +  # service isc-dhcp-server restart
 +
 +run /root/bin/clonezilla-config*.sh
 +
 +boot pass: pxelinux
 +
 +==== dcs ====
 +
 +Change system functionality. Examples in ~/bin
 +
 +unicast:
 +  drbl-ocs -b -g auto -e1 auto -e2 -x -r -icds -j2 -p reboot -l en_US.UTF-8 startdisk restore ubuntu22.04-hp705ws01-2022-09-28-07-img sda
 +
 +multicast:
 +  drbl-ocs -b -g auto -e1 auto -e2 -x -r -icds -j2 -p reboot --clients-to-wait 13 --max-time-to-wait 300 -l en_US.UTF-8 startdisk multicast_restore ubuntu1804LTS-golden-2020-02-11-08-img sda
 +
 +==== New machines ====
 +
 +=== drbl ===
 +- Add IP to dhcpd.conf
 +- Add hostname to /etc/hosts
 +- Add permissions to /etc/exports
 +
 +=== scylla ===
 +/etc/csnis/hosts and netgroup add
 +make
 +
 +=== uranus ===
 +- add/replace /etc/exports permissions
 +  exportfs -ra
 +
 +===== Labs installation =====
 +
 +==== Convert boot from UEFI to legacy (Για ubuntu 18.04 LTS μόνο) ====
 +
 +- Boot ubuntu live USB\\
 +- Change flag of EFI partition to bios_grub (gparted -> /dev/sda1 -> manage flags -> bios_grub)\\
 +  # mount /dev/sda2 /mnt
 +remove EFI entry:
 +  # vi /mnt/etc/fstab
 +
 +  # mount -o bind /proc /mnt/proc
 +  # mount -o bind /dev /mnt/dev
 +  # mount -o bind /sys /mnt/sys
 +  # chroot /mnt
 +  # grub-install /dev/sda
 +
 +
 +==== Install zstd compressed archives in debian < 12 ====
 +If you are running Debian < 12 and need to install a .deb package that uses zstd, you can repack it:
 +
 +  # Extract files from the archive
 +  ar x some-package.deb
 +  # Uncompress zstd files an re-compress them using xz
 +  zstd -d < control.tar.zst | xz > control.tar.xz
 +  zstd -d < data.tar.zst | xz > data.tar.xz
 +  # Re-create the Debian package in /tmp/
 +  ar -m -c -a sdsd /tmp/some-package.deb debian-binary control.tar.xz data.tar.xz
 +  # Clean up
 +  rm debian-binary control.tar.xz data.tar.xz control.tar.zst data.tar.zst
  
admin/procedures.1570189747.txt.gz · Last modified: 2019/10/04 14:49 by peppe