Setup Mac mini 8,1 for Pleiades
macOS
- Setup macOS (user registration)
- System Preferences:
- Hostname
- Remote Login
- Remote Management
- Never Sleep
- Recovery Mode
- Secure Boot: No Security
- External Boot: Allow booting from external media
- root password
- System Preferences: Don't Sleep
- user environment:
- change shell : dscl . change /users/user UserShell /bin/zsh /bin/csh (on Terminal.app)
- change uid : dscl . change /users/user UniqueID 501 1001 (on Terminal.app)
- find / -uid 501 -exec chown -h 1001 {} \; -print
- ~/.login
- ~/.cshrc
- SSH:
- ~/.ssh/authorized_keys
- /etc/ssh/sshd_config:
- X11Forwarding yes
- XAuthLocation /opt/X11/bin/xauth
- NFS:
- nfs://nakedsun.db.tokushima-u.ac.jp/Volumes/Pleiades/share/macOS
- snmpd:
- /etc/snmp/snmpd.conf
- launchctl load -w /System/Library/LaunchDaemons/org.net-snmp.snmpd.plist
- VirtualBox:
- Memory: 32768 MB
- HDD: VDI, Fixed size, 96 GB, SAS
- Network: Bridge
- Processor: 6 CPU
Operating System
- Install FreeBSD 12.2
- root password
- User(alex)
- /etc/fstab
- Comment unneccesary swap
- Add noatime option
- mkdir /home
- mkdir /home1
- /etc/amd.map
- rc.conf
- /etc/resolv.conf
- usr.staff.alex.tar
- home1.edb.tar
- /usr/local/share/fonts/OTF
- /etc/ssh/sshd_config: +ChallengeResponseAuthentication no
- /etc/hosts.allow
- /etc/ipf.rules
- /etc/make.conf
- /etc/aliases
- /etc/snmpd.conf
- /etc/daily.local
- /etc/periodic.conf
- touch /etc/exports
- /etc/ttys
- rm -rf /usr/src ; mkdir /usr/src
- cd /usr/src
- svnlite co svn://svn.db.tokushima-u.ac.jp/base/releng/12.2/ .
- Configure /usr/src/sys/arch/conf/$KERNCONF
- rm -rf /usr/obj
- make buildworld
- make buildkernel
- make installkernel
- reboot
- mergemaster -p
- make installworld
- mergemaster -iFU
- yes | make delete-old
- reboot
Mail System
- cd /etc/mail
- make install
- newaliases
Ports Collection / User Application
- rm -rf /usr/ports ; mkdir /usr/ports
- cd /usr/ports
- svnlite co svn://svn.db.tokushima-u.ac.jp/ports/head/ .
- Reinstall /usr/ports/ports-mgmt/pkg
- Install Ports
- /usr/ports/ports-mgmt/portupgrade
- portupgrade -afc
- Install Ports
- devel/subversion
- net-mgmt/net-snmp
- x11/xauth
- x11-toolkits/libXaw
- japanese/nkf
- japanese/less
- converters/base64
- devel/imake
- net/rsync
- java/openjdk8
Operating System
- cd /usr/src
- yes | make delete-old-libs
EDB/Java RMI
- Add user edb: group edb
- cd /usr/local/etc/rc.d/
- cp /home/private/edbjavarmi/rc.d/edbjavarmi .
MDMFS
- dd if=/dev/zero of=edb bs=1k count=512k
- mdconfig -f edb -u 0
- newfs -n md0
- /etc/fstab: md /home1/edb mfs rw,async,noatime,-nP,-F/home1/mfs/edb 2 0