small edits
This commit is contained in:
		| @@ -18,8 +18,8 @@ pdftoppm -png *file*.pdf test | |||||||
| ``` | ``` | ||||||
|  |  | ||||||
| ```bash | ```bash | ||||||
| for x in \*png; do | for x in *png; do | ||||||
|     tesseract -l eng  "$x" - >> *out*.txt |     tesseract -l eng  "$x" - >> out.txt | ||||||
| done | done | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
|   | |||||||
| @@ -43,20 +43,20 @@ wg genkey | tee client_private_key | wg pubkey > client_public_key | |||||||
|     " > /etc/wireguard/wg0.conf |     " > /etc/wireguard/wg0.conf | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
| ```bash | ```sh | ||||||
| echo 'net.ipv4.ip_forward=1' > /etc/sysctl.d/wg.conf | echo 'net.ipv4.ip_forward=1' > /etc/sysctl.d/wg.conf | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
| ```bash | ```sh | ||||||
| systemctl enable --now wg-quiqck@wg0 | systemctl enable --now wg-quiqck@wg0 | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
| ```bash | ```sh | ||||||
| chown -R root:root /etc/wireguard/ | chown -R root:root /etc/wireguard/ | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
| ```bash | ```sh | ||||||
| chmod -R og-rwx /etc/wireguard/\* | chmod -R og-rwx /etc/wireguard/* | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
| Forward traffic from port 51900 to the server. | Forward traffic from port 51900 to the server. | ||||||
| @@ -69,7 +69,9 @@ Install `wireguard-tools` on the client. | |||||||
|  |  | ||||||
| Copy the client private key and server public key to the server (or just fill in the variables). | Copy the client private key and server public key to the server (or just fill in the variables). | ||||||
|  |  | ||||||
| > server_ip=*your server's public ip* |  | ||||||
|  | ```sh | ||||||
|  | server_ip=$PUBLIC_IP | ||||||
|  |  | ||||||
| echo " | echo " | ||||||
| [Interface] | [Interface] | ||||||
| @@ -83,7 +85,9 @@ Copy the client private key and server public key to the server (or just fill in | |||||||
| AllowedIPs = 0.0.0.0/0, ::/0 | AllowedIPs = 0.0.0.0/0, ::/0 | ||||||
| " > /etc/wireguard/wg0-client.conf | " > /etc/wireguard/wg0-client.conf | ||||||
|  |  | ||||||
| > wg-quick up wg0-client | wg-quick up wg0-client | ||||||
|  |  | ||||||
|  | ``` | ||||||
|  |  | ||||||
| ## Extras | ## Extras | ||||||
|  |  | ||||||
|   | |||||||
| @@ -95,8 +95,11 @@ If you encounter problems, you will probably need to delete the old device pid i | |||||||
|  |  | ||||||
| Next up, start wpa_supplicant: | Next up, start wpa_supplicant: | ||||||
|  |  | ||||||
| ```bash | ```sh | ||||||
| wpa_supplicant -B -iwlan0 -c /etc/wpa_supplicant/wpa_supplicant-wlan0 | wpa_supplicant -B -iwlan0 -c /etc/wpa_supplicant/wpa_supplicant-wlan0 | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
| The -B flag runs this as a background process.  Remove this to see real-time output in order to solve problems.  The -i flag denotes the physical device used for the wifi.  The -c flag points to the configuration file for use. | The `-B` flag runs this as a background process. | ||||||
|  | Remove this to see real-time output in order to solve problems. | ||||||
|  | The `-i` flag denotes the physical device used for the wifi. | ||||||
|  | The `-c` flag points to the configuration file for use. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user