This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
admin:procedures [2019/11/04 11:09] peppe |
admin:procedures [2024/10/01 11:38] (current) peppe |
||
---|---|---|---|
Line 19: | Line 19: | ||
=== titan-new (10.7.4.44) === | === titan-new (10.7.4.44) === | ||
+ | Για προπτυχιακούς φοιτητές | ||
# create_student_quotas.sh < | # create_student_quotas.sh < | ||
+ | |||
+ | Για μεταπτυχιακούς φοιτητές | ||
+ | # create_grads_quotas.sh < | ||
+ | | ||
+ | Για διδακτορικούς φοιτητές | ||
+ | # create_phd_quotas.sh < | ||
+ | | ||
+ | Για προσωπικό | ||
+ | # create_staff_quotas.sh < | ||
+ | και προσθήκη στο / | ||
---- | ---- | ||
Line 26: | Line 37: | ||
=== uranus === | === uranus === | ||
+ | # acctar.sh < | ||
# accdel.sh < | # accdel.sh < | ||
Line 31: | Line 43: | ||
# vi / | # vi / | ||
# newaliases | # newaliases | ||
- | # rm /var/mail/< | + | # cd /var/mail |
+ | # gzip < | ||
+ | # mv < | ||
=== titan-new (10.7.4.44) === | === titan-new (10.7.4.44) === | ||
Line 44: | Line 58: | ||
==== Τροποποίηση ==== | ==== Τροποποίηση ==== | ||
+ | |||
+ | === script === | ||
+ | # ~/ | ||
=== uranus === | === uranus === | ||
# user home rename | # user home rename | ||
+ | # emailforward-single.sh < | ||
=== gaia === | === gaia === | ||
Line 52: | Line 70: | ||
# newaliases | # newaliases | ||
# mv / | # mv / | ||
+ | # forward_mbox.sh < | ||
=== titan-new (10.7.4.44) === | === titan-new (10.7.4.44) === | ||
Line 83: | Line 102: | ||
+ | ---- | ||
==== Πρόβλημα "error in service module" | ==== Πρόβλημα "error in service module" | ||
# sh / | # sh / | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Λογαριασμοί μεταπτυχιακών ==== | ||
+ | |||
+ | Για μεταγραφή σε λατινικούς χαρακτήρες: | ||
+ | [[http:// | ||
+ | |||
+ | Αποθήκευση της λίστας σε αρχείο names.txt\\ | ||
+ | Για παραγωγή usernames: | ||
+ | $ awk ' | ||
+ | |||
+ | Παραγωγή αποκόμματος master.passwd.\\ | ||
+ | uid = πρώτο User ID που θα χρησιμοποιηθεί\\ | ||
+ | 20210922 = ημερομηνία\\ | ||
+ | 21 = ακαδημαϊκό έτος εισαγωγής (π.χ. 21 σημαίνει 2021-22)\\ | ||
+ | $ awk -F' | ||
+ | |||
+ | Εισαγωγή σε scylla:/ | ||
+ | \\ | ||
+ | Δημιουργία homedirs, uranus: | ||
+ | # awk ' | ||
+ | Δημιουργία λίστας για gaia:/ | ||
+ | $ awk ' | ||
+ | Δημιουργία εντολής για e-mail quotas (copy & paste σε gaia): | ||
+ | $ awk ' | ||
+ | Δημιουργία εντολής για print quotas (copy & paste σε titan-new): | ||
+ | $ awk ' | ||
Line 169: | Line 216: | ||
==== drbl ==== | ==== drbl ==== | ||
- | add details in / | + | Add details in / |
# service isc-dhcp-server restart | # service isc-dhcp-server restart | ||
run / | run / | ||
+ | |||
+ | 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 / | ||
+ | |||
+ | === scylla === | ||
+ | / | ||
+ | make | ||
+ | |||
+ | === uranus === | ||
+ | - add/replace / | ||
+ | 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 / | ||
+ | |||
+ | # 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 / | ||
+ | # Clean up | ||
+ | rm debian-binary control.tar.xz data.tar.xz control.tar.zst data.tar.zst | ||