Skip to content

Instantly share code, notes, and snippets.

@sfloess
Last active April 26, 2023 13:49
Show Gist options
  • Save sfloess/c1c7a5a8da96dc15ed6acb7f6a63e088 to your computer and use it in GitHub Desktop.
Save sfloess/c1c7a5a8da96dc15ed6acb7f6a63e088 to your computer and use it in GitHub Desktop.

DragonFlyBSD

How To's

  • Register hostname with DHCP

    • /etc/dhclienf.conf: send host-name "hostname";
      • send host-name "server-01";
  • Network Time Protocl: dntpd

    • /etc/dntpd.conf: server [server/ip address]
    • /etc/rc.conf: dntpd="YES"
    • service dntpd restart
  • Enable nic

    • ifconfig
      • Use nic denoted. For example, em0
    • /etc/rc.conf: ifconfig_[nic]="DHCP"
      • Example: ifconfig_em0="DHCP"
  • Kernel params

    • /etc/sysctl.conf: kern.maxprocperuid=65000
  • Change MTA

    • Postfix
      • mv /etc/mail/mailer.conf /etc/mail/mailer.conf.old
      • install -m 0644 /usr/local/share/postfix/mailer.conf.postfix /etc/mail/mailer.conf
      • /etc/periodic.conf
        • daily_clean_hoststat_enable="NO"
        • daily_status_mail_rejects_enable="NO"
        • daily_status_include_submit_mailq="NO"
        • daily_submit_queuerun="NO"
      • /etc/rc.conf
        • postfix_enable="YES"
        • sendmail_enable="NONE"
  • Load module (/etc/rc.conf): [module]_load="YES". Exmaple: nvm_load="YES"

  • Bridge (/etc/rc.conf):

ifconfig_re0="DHCP"
ifconfig_bridge0="addm bridge0 re0"
ifconfig_tap666="addm bridge0 tap666"

cloned_interfaces="bridge0"
gateway_enable="YES"
  • Install Desktops
    • pkg install -y xorg x11/sddm
    • LXDE: pkg install -y lxde-meta
    • KDE: pkg install -y x11/plasma5-plasma-workspace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment