I generally like some things that are not installed by default for FreeBSD (or Debian Linux, or Microsoft Windows, or Apple OSX, for that matter). For instance, I accept the larger size of bash for the extra functionality, and I'm lost without the joe editor
Because of that, I tend to write sets of scripts and/or instructions.
#! /usr/bin/env sh #NOTE: this is an sh script, the default for FreeBSD #sh requires the # for a comment be a part of a word, #thus the commenting style here. #we install bash which is a more powerful shell that I #like a lot. #install some basic tools. screen is a very useful tool. #I use sudo to give users access to root without knowing the password pkg install joe postfix bash perl5 pv pbzip2 sudo screen #Expect the question, and answer "Y" for yes #Would you like to activate Postfix in /etc/mail/mailer.conf [n]? y #now that they are installed, start configuring them. #Add IPMI if desired. Note that IPMI is only useful #for physical machines that have the IPMI interface #enable ipmi module pkg install ipmitool kldload ipmi echo 'ipmi_load="YES"' >> /boot/loader.conf #set up bash mount -t fdescfs fdesc /dev/fd cp /etc/fstab /etc/fstab.bak echo '# enable bash' >> /etc/fstab echo 'fdesc /dev/fd fdescfs rw 0 0' >> /etc/fstab chsh -s bash rodolico #shut down sendmail, disable it, and enable postfix service sendmail stop sysrc postfix_enable="YES" sysrc sendmail_enable="NONE" #sets up postfix configuration as only mail server mv /etc/mail/mailer.conf /etc/mail/mailer.conf.old install -m 0644 /usr/local/share/postfix/mailer.conf.postfix /etc/mail/mailer.conf #clean up some stuff left over by sendmail echo 'daily_clean_hoststat_enable="NO"' >> /etc/periodic.conf echo 'daily_status_mail_rejects_enable="NO"' >> /etc/periodic.conf echo 'Daily_status_include_submit_mailq="NO"' >> /etc/periodic.conf echo 'daily_submit_queuerun="NO"' >> /etc/periodic.conf #add postfix user to mail group so it has access to sasl pw group mod mail -m postfix #start postfix service postfix start #configuration stored in /usr/local/etc/postfix
Note: when you created a new user, if you did not add them to the wheel group, you will need to do that after the fact (or they can not issue the su command to become root). Add a user to the wheel group with the following:
pw user mod username -G wheel
where username is the username you want to add.