sh# pacman -Syu
sh# pacman -Sy hostapd dnsmasq haveged
sh# vi /etc/systemd/network/wlan0.network
[Match]
Name=wlan0
[Address]
Address=192.168.0.1/24
sh# vi /etc/hostapd/hostapd.conf
interface=wlan0
ssid=Wap
country_code=CA
hw_mode=g
channel=2
max_num_sta=10
macaddr_acl=0
auth_algs=3
wpa=2
wpa_passphrase=My_S3cr3t
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
Generate wpa_psk (32 bytes in hex)
sh# dd if=/dev/random bs=1 count=32 status=none | od -xw -An | sed 's/ //g'
sh# cd /usr/lib/systemd/system/
sh# vi haveged.service
[Unit]
Description=Entropy Daemon based on the HAVEGE algorithm
Documentation=man:haveged(8) http://www.issihosts.com/haveged/
DefaultDependencies=no
# ConditionVirtualization=!container
Before=sysinit.target shutdown.target systemd-journald.service
[Service]
# ExecStart=/usr/sbin/haveged -w 1024 -v 1 --Foreground
ExecStart=/usr/sbin/haveged -v1 --Foreground
Restart=always
SuccessExitStatus=137 143
CapabilityBoundingSet=CAP_SYS_ADMIN
NoNewPrivileges=on
PrivateDevices=on
PrivateNetwork=on
ProtectSystem=full
[Install]
WantedBy=sysinit.target
sh# systemctl daemon-reload
sh# systemctl restart haveged