root@station01:/usr/home/util01 # freebsd-update fetch
Ouvrir :
/etc/rc.conf
Chercher :
ifconfig_re0="DHCP"
Remplacer par :
ifconfig_em0="DHCP"
# /etc/netstart
# ifconfig
...
ether 192.168.1.46
...
util01@station66:~$ ssh util01@192.168.1.46
Password for util01@station01:
Last login: Wed Feb 9 21:57:36 2022 from pc64.home
FreeBSD 13.0-RELEASE (GENERIC) #0 releng/13.0-n244733-ea31abc261f: Fri Apr 9 04:24:09 UTC 2021
Welcome to FreeBSD!
...
util01@station01:~ $
root@statin01 # pkg install sudo
# visudo
Chercher :
root ALL=(ALL) ALL
Ajouter après :
util01 ALL=(ALL) ALL
util01@station01:~ $ sudo su
Password:
root@station01:/usr/home/util01 #
root@station01:/usr/home/util01 # portsnap fetch extract update
root@station01:/usr/home/util01 # pkg install vim
root@station01:/usr/home/util01 # pkg install mc
root@station01:/usr/home/util01 # pkg install screen
root@station01:/usr/home/util01 # pkg install htop
root@station01:/usr/home/util01 # cd /usr/ports/ports-mgmt/fastest_pkg/
root@station01:/usr/ports/ports-mgmt/fastest_pkg #
root@station01:/usr/ports/ports-mgmt/fastest_pkg # make install clean
root@station01:/usr/ports/ports-mgmt/fastest_pkg # time /usr/local/bin/fastest_pkg
root@station01:/usr/ports/ports-mgmt/fastest_pkg # mkdir -p /usr/local/etc/pkg/repos/
root@station01:/usr/ports/ports-mgmt/fastest_pkg # echo 'FreeBSD: { url: "http://pkg0.bme.freebsd.org/${ABI}/quarterly" }' \
> /usr/local/etc/pkg/repos/FreeBSD.conf
root@station01:/usr/home/util01 # pkg clean
root@station01:/usr/home/util01 # rm -rf /var/cache/pkg/*
root@station01:/usr/home/util01 # pkg update -f
pkg install -y xorg
pkg install -y xfce
pkg install -y slim
pkg install -y slim-themes
Créer :
/usr/local/etc/polkit-1/rules.d/shutdown.rules
Ajouter :
# Shutdown
polkit.addRule(function (action, subject) {
if ((action.id == "org.freedesktop.consolekit.system.restart" ||
action.id == "org.freedesktop.consolekit.system.stop")
&& subject.isInGroup("wheel")) {
return polkit.Result.YES;
}
});
# Suspend
polkit.addRule(function (action, subject) {
if (action.id == "org.freedesktop.consolekit.system.suspend"
&& subject.isInGroup("wheel")) {
return polkit.Result.YES;
}
});
sysrc dbus_enable=yes
sysrc hald_enable=yes
sysrc slim_enable=yes
sysrc sound_load=yes
sysrc snd_hda_load=yes
Créer :
/home/util01/.xinitrc
Ajouter
exec startxfce4
# reboot
root@station01:/usr/home/util01 # pkg install -y xfce4-goodies
root@station01:/usr/home/util01 # pkg install -y xfce4-pulseaudio-plugin