When creating your main user account, make sure to add him to the wheel
group so he can use su -
to become root.
If you have not added your user to the wheel
group, you can do so with the following command:
pw usermod <username> -G wheel
To install sudo
, run the following command:
pkg install sudo
To configure it run:
visudo
Uncomment the following line and quit:
%wheel ALL=(ALL) ALL
bash
:First instal bash
:
pkg install bash
Then change the default shell for your user:
chsh -s /usr/local/bin/bash <username>
First install the avahi
and related packages:
pkg install avahi avahi-libdns avahi-autoipd nss_mdns
Add these lines to /etc/rc.conf
:
dbus_enable="YES"
avahi_daemon_enable="YES"
Change the hosts
line in /etc/nsswitch.conf
to:
hosts: files mdns dns
Reboot the system.
If you prefer to use the ports, you can install Avahi like this:
cd /usr/ports/net/avahi-app
sudo make config-recursive
sudo make install clean
cd /usr/ports/dns/nss_mdns
sudo make config-recursive
sudo make install clean
The main conf files are in:
/usr/local/etc/avahi/
Services are defined in:
/usr/local/etc/avahi/services/
Use fastfetch
instead:
pkg install fastfetch