hildr, goendul . db.tokushima-u.ac.jp
作業時の設定
○ IP等
- proxima: 150.59.17.117, 10.0.1.117
- GW: 150.59.17.1
- NM: 255.255.255.0
- DNS: 150.59.230.67
- DNS: 150.59.230.66
proxima . db.tokushima-u.ac.jp
- FreeBSD 14.3 をインストール.
- /etc/fstab: SWAPをコメントアウト
- /etc/rc.conf
- /etc/resolv.conf
- autofs
- # mkdir /home
- /etc/rc.conf: autofs_enable="YES"
- /etc/auto_master
- /etc/fstab: Add nfs mount configuration with noauto. (+ noatime for local storage)
- /etc/make.conf
- ports collecton
- update to newest /usr/src, /usr/ports
- /usr/src# rm -rf .[a-z]* *
- /usr/src# git clone -o freebsd -b releng/14.3 https://git.FreeBSD.org/src.git /usr/src
- /usr/ports# rm -rf .[a-z]* *
- /usr/ports# git clone -o freebsd https://git.FreeBSD.org/ports.git /usr/ports
- # /home/private/root/sbin/ports.sh retrieve
- ports collecton
- ports-mgmt/portupgrade
- # portupgrade -afc
- /etc/aliases
- /etc/mail/mailer.conf (use /usr/libexec/sendmail/sendmail)
- /etc/mail# make install
- /etc/mail# newaliases
- usr.staff.tar
- /etc/ssh/sshd_config
- /etc/resolv.conf
- /etc/rc.conf
- /etc/ipf.rules
- /etc/hosts.allow
- touch /etc/exports
- /etc/ttys
- /etc/periodic.conf
- /etc/daily.local
- /etc/sysctl.conf
- /etc/passwd (+utlf)
- /etc/group (+utlf)
- mkdir /UTLF/home (utlf:utlf)
- usr.local.edb.tar
- root.tar
- var.cron.tabs.tar
Configuration: mfid{1,2,3} (EFI)
- # gpart create -s gpt mfid?
- # gpart add -s 260m -t efi -l efiboot? mfid?
- # gpart add -s 512k -t freebsd-boot -l gptboot? mfid?
- # gpart add -s 16g -a 1024 -t freebsd-swap -l swap? mfid?
- # gpart add -s 3798266m -a 1024 -t freebsd-zfs -l zfs? mfid?
- # newfs_msdos -F 32 -c 4 -L EFISYS /dev/mfid?p1
- # mount -t msdosfs /dev/mfid?p1 /mnt
- /mnt# cp -r /boot/efi/efi .
- # umount /mnt
- # gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 2 mfid?
Zpool ztank1, ztank2
- # zpool create ztank raidz /dev/mfid1p4 /dev/mfid2p4 /dev/mfid3p4
- # zfs set mountpoint=none ztank
- # zfs set compression=lz4 ztank
- # zfs set atime=off ztank
- # zfs create -o utf8only=on -o mountpoint=/home1 zroot/home1
- # zfs create -o mountpoint=/UTLF -o utf8only=on ztank/UTLF
- # zfs create -o exec=off -o setuid=off -o compression=zstd ztank/UTLF/extdb
- # zfs create -o exec=off -o setuid=off -o compression=zstd ztank/UTLF/cache
- # zfs create -o mountpoint=/home/shed -o exec=off -o setuid=off -o compression=zstd-19 -o canmount=noauto zyard/shed
ZFS
- #
Ports Collecton
- x11/xauth
- java/openjdk8
- devel/tradcpp
- devel/imake
- japanese/nkf
- converters/base64
- archivers/unzip
- graphics/netpbm
- net-mgmt/net-snmp
- x11-toolkits/libXaw
- databases/postgresql18-server
- x11-fonts/urw-base35-fonts
- x11-fonts/xorg-font-truetype
- x11-fonts/font-util
- x11-fonts/bdftopcf
- x11-fonts/font-bh-ttf
- x11-fonts/font-misc-ethiopic
- x11-fonts/font-misc-meltho
- textproc/utf8proc
- print/texlive-full
- print/ghostscript10
- math/gnuplot (wx30-gtk3 - WEBKIT)
misc files
- /usr/local/share/fonts/OTF# cp /home/private/fonts/* .
- /usr/local/share/fonts/OTF# mkfontdir
- /usr/local/share/texmf-dist/fonts/opentype/macosx# cp /home/private/fonts/* .
- /usr/local/share/texmf-dist/fonts/opentype/macosx# mktexlsr
PostgreSQL:
- # zfs create -o setuid=off -o recordsize=8k -o compression=lz4 ztank/UTLF/repository
- # mkdir /UTLF/repository/data
- # chown postgres:postgres /UTLF/repository/data
- # /usr/local/etc/rc.d/postgresql initdb
- /UTLF/repository/data/*.conf