Setting Up A New Raspberry Pi

Steps I do when I am setting up a new Raspberry Pi. If using the official LCD screen, for some unknown reason, it still defaults to an upside-down orientation when hooked up. This is simple to fix. Edit /boot/config.txt and add the following line: lcd_display=2 The 2 rotates it 180ยบ (the most likely choice for … Read more

Site-to-Site VPN Firewall Rules

When adjusting settings for a site-to-site VPN, don’t forget to update the firewall rules. Make sure the appropriate subnets for your networks are covered. In /etc/ufw/before.rules: # OpenVPN Rules *nat :POSTROUTING ACCEPT [0:0] # Allow traffic from OpenVPN client to ens32 -A POSTROUTING -s 192.168.52.0/24 -o ens32 -j MASQUERADE -A POSTROUTING -s 172.22.1.0/24 -o ens32 … Read more

To Set the Console Text to Green with a Blinking Block Cursor

For Ubuntu: Update /etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT=”consoleblank=0 vt.cur_default=6 vt.color=2″ This will also set it so the console never blanks; adjust “consoleblank” to your own tastes (in seconds). For Raspberry Pi/Raspbian: Update /boot/cmdline.txt and add the following to whatever is already there: vt.cur_default=6 vt.color=2 consoleblank=0 This will also set it so the console never blanks; adjust “consoleblank” to … Read more