OpenVPN on Raspberry Pi 3

Written by pmd - - no comments

Know your IP address:

curl ifconfig.me/ip

Install OpenVPN:

sudo apt-get install openvpn

Know your route before OpenVPN is connected:

route

Copy all necessary conf files in:

/etc/openvpn

Interesting settings:

script-security 2
route-noexec
block-outside-dns
up /etc/openvpn/up.sh
down /etc/openvpn/down.sh

Start openvpn from command line to test if tun0 mounts:

sudo openvpn --config /etc/openvpn/openvpn.conf
ifconfig

To connect to VPN at startup, put conf file in /etc/openvpn. Example: openvpn will connect at startup to VPN1 and VPN2:

/etc/openvpn/vpn1.conf
/etc/openvpn/vpn2.conf

To begin with Raspberry Pi 3

Written by pmd - - no comments
  • Virtual Keyboard:
    • sudo apt-get install matchbox-keyboard
    • sudo apt-get install florence at-spi2-core [link]
  • Configure remote access for SSH and VNC: sudo raspi-config
  • Change pi password: sudo raspi-config
  • "Install" SFTP server: actually already done when activating SSH

Display basic stuff :

$ while true; do uptime; vcgencmd get_throttled; vcgencmd measure_temp; vcgencmd measure_clock arm; free -h; echo '-----'; sleep 10; done
throttled=0x0
temp=72.0'C
frequency(45)=1200000000
              total        used        free      shared  buff/cache   available
Mem:          731Mi       297Mi       118Mi        27Mi       316Mi       345Mi
Swap:         2.0Gi       346Mi       1.6Gi
-----
 
Rss feed of the articles