| | |
| | |
|
| | | option
|
| | | -> SSH enable
|
| | | -> wifi country GB
|
| | | -> wifi country KR
|
| | | -> locale Asia/Seoul
|
| | |
|
| | | ### get gw install script from git server ##
|
| | |
| | |
|
| | | ```
|
| | |
|
| | | ### Change sshd_config ###
|
| | |
|
| | | ```
|
| | | sudo vi /etc/ssh/sshd_config
|
| | |
|
| | | ```
|
| | |
|
| | | ```
|
| | | AllowTcpForwarding yes
|
| | | GatewayPorts yes
|
| | | ```
|
| | |
|
| | | ```
|
| | | sudo service ssh restart
|
| | | ```
|
| | |
|
| | | ### Check server side RPi4 SSH tunnel port ###
|
| | |
|
| | |
| | | vcgencmd measure_temp
|
| | | ```
|
| | |
|
| | | ### RPi 4 SD Card wifi setting ###
|
| | |
|
| | | Put the wpa_supplicant.conf file with the following contents in /boot folder of the sd card.
|
| | | When the setting is completed, the x file will be deleted from the /boot folder of the sd card.
|
| | |
|
| | | ```
|
| | | country=KR # Your 2-digit country code
|
| | | ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
|
| | |
|
| | | network={
|
| | | ssid="wifi ssid"
|
| | | psk="widi passwd"
|
| | | }
|
| | |
|
| | | ```
|
| | |
|
| | |
|
| | | ### WireGuard ###
|
| | |
|
| | | ```
|
| | | sudo apt install wireguard
|
| | | sudo vi /etc/wireguard/wg0.conf
|
| | | sudo vi /etc/network/interfaces.d/wg0
|
| | | sudo ifup wg0
|
| | | ip route get 10.8.0.1
|
| | | ping -c 3 10.8.0.1
|
| | | sudo wg show wg0
|
| | | ```
|
| | |
|
| | |
|
| | | ### TODO ###
|
| | |
|