User Tools

Site Tools


unix:freebsd:system_builds:basic_freebsd_installation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
unix:freebsd:system_builds:basic_freebsd_installation [2019/11/08 17:21]
rodolico [Install some basic packages]
unix:freebsd:system_builds:basic_freebsd_installation [2019/11/08 17:25]
rodolico
Line 97: Line 97:
 mv /​etc/​mail/​mailer.conf /​etc/​mail/​mailer.conf.old mv /​etc/​mail/​mailer.conf /​etc/​mail/​mailer.conf.old
 install -m 0644 /​usr/​local/​share/​postfix/​mailer.conf.postfix /​etc/​mail/​mailer.conf install -m 0644 /​usr/​local/​share/​postfix/​mailer.conf.postfix /​etc/​mail/​mailer.conf
-# clean up some leftover sendmail stuff 
 echo '​daily_clean_hoststat_enable="​NO"'​ >> /​etc/​periodic.conf echo '​daily_clean_hoststat_enable="​NO"'​ >> /​etc/​periodic.conf
 echo '​daily_status_mail_rejects_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_status_include_submit_mailq="​NO"'​ >> /​etc/​periodic.conf
 echo '​daily_submit_queuerun="​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 pw group mod mail -m postfix
-# start postfix mail server 
 service postfix start service postfix start
 </​code>​ </​code>​
Line 111: Line 108:
 echo '# enable bash' >> /etc/fstab echo '# enable bash' >> /etc/fstab
 echo '​fdesc ​ /​dev/​fd ​ fdescfs ​ rw   ​0 ​  ​0'​ >> /etc/fstab echo '​fdesc ​ /​dev/​fd ​ fdescfs ​ rw   ​0 ​  ​0'​ >> /etc/fstab
-# you an now set the shell for any user with 
 chsh -s bash username chsh -s bash username
 </​code>​ </​code>​
Line 121: Line 117:
   - Set up smartmontools to monitor your drives<​code bash># edit the next file for your system after you copy it   - Set up smartmontools to monitor your drives<​code bash># edit the next file for your system after you copy it
 cp /​usr/​local/​etc/​smartd.conf.sample ​ /​usr/​local/​etc/​smartd.conf cp /​usr/​local/​etc/​smartd.conf.sample ​ /​usr/​local/​etc/​smartd.conf
-# change the following line to include the drives you want to be monitored 
 echo '​daily_status_smart_devices="/​dev/​ad0 /​dev/​da0"'​ >>/​etc/​periodic echo '​daily_status_smart_devices="/​dev/​ad0 /​dev/​da0"'​ >>/​etc/​periodic
-# enable the service 
 echo '​smartd_enable="​YES"'​ >> /​etc/​rc.conf echo '​smartd_enable="​YES"'​ >> /​etc/​rc.conf
-# and start it 
 service smartd start service smartd start
 </​code>​ </​code>​
unix/freebsd/system_builds/basic_freebsd_installation.txt ยท Last modified: 2019/12/03 15:35 by rodolico