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 [2022/11/09 09:45]
peppe
admin:procedures [2023/05/18 13:28] (current)
peppe
Line 26: Line 26:
  
 === uranus === === uranus ===
 +  # acctar.sh <user>
   # accdel.sh <user>   # accdel.sh <user>
  
Line 31: 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 44: Line 47:
  
 ==== Τροποποίηση ==== ==== Τροποποίηση ====
 +
 +=== script ===
 +  # ~/bin/rename-accts.sh on uranus
  
 === uranus === === uranus ===
Line 215: Line 221:
 multicast: 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   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 ===== ===== Labs installation =====
  
Line 231: Line 252:
   # chroot /mnt   # chroot /mnt
   # grub-install /dev/sda   # 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.1667979947.txt.gz · Last modified: 2022/11/09 09:45 by peppe