#language en #refresh 999999 ## nearly two weeks until an update occurs [[TableOfContents(2)]] = Overview = == Basic data == || Hostname || `gs1.fluid.tuwien.ac.at` || || Model || [https://www.supermicro.com/en/products/motherboard/X10SRW-F Supermicro X10SRW-F] || || Purpose || graphics server || || Operating system || debian || || Management interface || http://mgs1.fluid.tuwien.ac.at || || Authentication options || TU password || == Hardware == || CPU || [https://ark.intel.com/content/www/us/en/ark/products/82763/intel-xeon-processor-e51620-v3-10m-cache-3-50-ghz.html Intel(R) Xeon(R) CPU E5-1620 v3 @ 3.50GHz (4 cores)]; Socket: FCLGA2011-3 || || RAM || 32 GiB; up to 256 GB DDR4-2400MHz || || Storage || 500 GB (/) Samsung SSD 850 EVO 500GB || || || 2 x 2 TB (/home) btrfs-raid1 || || Graphics card || !GeForce GTX 960 || || Battery type || CR2032 || User's manuals for [attachment:MNL-1570.pdf motherboard/BIOS] and [attachment:IPMI_Users_Guide.pdf BMC/IPMI]. == Configuration == All customized configuration files are marked by owner or group `oswat`,[[BR]] `find /etc -user oswat -o -group oswat` == BIOS == press DEL to enter BIOS, F11 for boot menu == Admins == * Thomas Loimer * Rudolf Ladner (ZID) * Sebastian Boehm (ZID) = Installation of the base system = Debian bookworm (12.0) was installed on the 500 GB SSD, one partition (≈100 MB) for the efi (/boot/efi), the reminder of the disk for root (/), ext4 filesystem. The file systems were labelled, `root_fs` and `home_fs`.[[BR]] While in the debian installer, ssh-server was chosen, no localications, only C and C.utf8.[[BR]] Install grub2 as bootloader; The kernel efi-stub needs a commandline (root=/dev/sda2 initrd=\EFI\debian\initrd.img), no way to set that from the BIOS.[[BR]] Had to create an administrative user: oswat, the home directory is `/opt/oswat`! == Partitioning == || /dev/sda || 500 GB || || || || /dev/sda1 || 94 MB || /boot/efi || vfat || || /dev/sda2 || 500 GB || / || ext4 || || /dev/sdb+c || 2 TB || /home || btrfs-raid1 || == Network == {{{ echo gs1 >/etc/hostname }}} Note, the resolver (Domains=) and NTP-server is set per interface, see below. This keeps the configuration in one file. {{{ cat >/etc/systemd/network/10-gs1.network <>/etc/fstab </etc/apt/sources.list </etc/apt/apt.conf.d/90recommended_false }}} == User access == === sshd customization === Do not forward the client's locale, since there is only C/POSIX on gs1. Also, there is no sudo, allow root to login. {{{ echo "PermitRootLogin yes" >/etc/ssh/sshd_config.d/permitrootlogin.conf apt install patch patch </etc/nslcd.conf <** # The DN used for password modifications by root. #rootpwmoddn cn=admin,dc=example,dc=com # SSL options #ssl off tls_reqcert never tls_cacertfile /etc/ssl/certs/ca-certificates.crt # The search scope. #scope sub # Here ends the shipped configuration file, customisation starts ... base passwd ou=people,ou=TU,dc=intern,dc=tuwien,dc=ac,dc=at base shadow ou=people,ou=TU,dc=intern,dc=tuwien,dc=ac,dc=at base group ou=groups,ou=TU,dc=intern,dc=tuwien,dc=ac,dc=at # Mappings filter passwd (memberOf:1.2.840.113556.1.4.1941:=cn=E322_ALL,ou=groups,ou=TU,dc=intern,dc=tuwien,dc=ac,dc=at) map passwd uid sAMAccountName map passwd uidNumber employeeID map passwd gecos cn map passwd homeDirectory "/home/${sAMAccountName}" map passwd loginShell "/bin/bash" map passwd gidNumber "2153" filter shadow (memberOf:1.2.840.113556.1.4.1941:=cn=E322_ALL,ou=groups,ou=TU,dc=intern,dc=tuwien,dc=ac,dc=at) map shadow uid sAMAccountName filter group (cn=E322*) map group userPassword "" map group gidNumber objectSid:S-1-5-21-527783839-1561677997-9029855232 EOF }}} Do not forget to have users have a home directory, {{{ pam-auth-update mkhomedir # Installation of libpam-ldapd most probably runs # pam-auth-update ldap }}} == Enable hibernation == Create a swap file (not a swap partition), enable swap and modify the kernel command line to search for a RAM image.[[BR]] Use `filefrag` to get the offset of the swap file.[[BR]] It is not necessary to modify `etc/initramfs-tools/conf.d/resume`. {{{ touch /swap chmod 600 /swap dd if=/dev/zero of=/swap bs=1M count=32768 filefrag -v /swap | head # Use the number in the first row, first column of the "physical offset:" columns. # This number has two dots appended (here: 202752..). echo GRUB_CMDLINE_LINUX_DEFAULT=\"resume=PARTLABEL=root_partition resume_offset=202752\" \ >/etc/default/grub.d/resume.cfg echo "/swap swap swap defaults 0 0" >>/etc/fstab }}} == Mark customized files == {{{ cd etc chgrp oswat hostname fstab apt/sources.list apt/apt.conf.d/90recommended_false \ systemd/network/10-gs1.network sshd_config sshd_config.d/permitrootlogin.conf \ default/grub.d/resume.cfg chown oswat nslcd.conf }}}