Open duan-li opened 4 years ago
# vi /etc/apk/repositories, remove # apk update apk add python3 docker docker-compose nfs-utils git dhcpcd openssh-server sudo rc-update add docker boot rc-update add sshd boot ssh-keygen
mount -t nfs -o nolock <ip>:/path /mng
In /etc/fstab file
/etc/fstab
<ip>:/path /root nfs nolock,nofail,x-systemd.automount,x-systemd.requires=network-online.target 0 0
and create /etc/network/if-up.d/fstab file
/etc/network/if-up.d/fstab
#!/bin/sh mount -a
chmod +x /etc/network/if-up.d/fstab
`/etc/dhcpcd.conf
interface wlan0 static ip_address=192.168.1.45/24 static routers=192.168.1.1 static domain_name_servers=1.1.1.1 1.0.0.1
/etc/ssh/sshd_config
PermitRootLogin yes
adduser username
file /etc/sudoers
/etc/sudoers
%wheel ALL=(ALL) ALL %sudo ALL=(ALL) ALL ALL ALL=(ALL) ALL
clean up
echo '' > ~/.ash_history
Mount relate
Package
Mount
In
/etc/fstab
fileand create
/etc/network/if-up.d/fstab
fileNetwork
`/etc/dhcpcd.conf
SSHD
/etc/ssh/sshd_config
New user
sudo
file
/etc/sudoers