Skip to content

Instantly share code, notes, and snippets.

@Suzhou65
Created September 16, 2020 08:14
Show Gist options
  • Select an option

  • Save Suzhou65/e2ac4f74e17e0f8a69f82eabf9d8b1b9 to your computer and use it in GitHub Desktop.

Select an option

Save Suzhou65/e2ac4f74e17e0f8a69f82eabf9d8b1b9 to your computer and use it in GitHub Desktop.
Raspbian install PiVPN prepare

Raspbian install PiVPN

Environment prepare

sudo apt-get update
sudo apt-get install vim -y
sudo apt-get install nmon -y
sudo apt-get install vnstat -y
sudo apt-get install watchdog -y

Setting Watchdog

sudo vim /etc/modules

Add following text at the bottom of the configuration

bcm2708_wdog

Enabled immediately

sudo modprobe bcm2708_wdog

Setting Watchdog configuration

sudo cd /etc/
sudo vim watchdog.conf

Change following setting at the configuration

watchdog-device = /dev/watchdog

max-load-1 = 24
max-load-5 = 18
max-load-15 = 12

temperature-device = /sys/class/thermal/thermal_zone0/temp
max-temperature = 80000

interface = eth0

realtime = yes

Srart Watchdog service

sudo service watchdog start

Enabled Watchdog when Boot

sudo update-rc.d watchdog defaults
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment