This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:raspberry [2022/12/10 10:43] – jotasandoku | linux:raspberry [2025/01/19 12:01] (current) – jotasandoku | ||
|---|---|---|---|
| Line 50: | Line 50: | ||
| [[https:// | [[https:// | ||
| curl -L https:// | curl -L https:// | ||
| - | # set it as static, you should have configured the dhcp reservation and port forwarding in the gw before this! | + | # set it as static, you should have configured the dhcp reservation and port forwarding in the gw before this!. Nornally not required but this is the server config file / |
| - | pivpn add nopass # to create profiles. IMPORTANT: in the .ovpn you have the static pub ip, Replece | + | pivpn add nopass # to create profiles. IMPORTANT: in the .ovpn you have the static pub ip, Replace |
| + | # ^ .ovpn is generated and stored in / | ||
| # | # | ||
| / | / | ||
| Line 88: | Line 89: | ||
| Requires private and private key in both ends: | Requires private and private key in both ends: | ||
| - | * Server rpi2 | + | * Server rpi2 (don't forget ip forwarding enabled) |
| - | * root@rpi2:/ | + | * root@rpi2:/ |
| - | * Client openwrt | + | |
| - | * /root/wireguard | + | [Interface] |
| + | SaveConfig = false | ||
| + | PostUp = iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE | ||
| + | PreDown = iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE | ||
| + | ListenPort = 1094 | ||
| + | PrivateKey = bbbbbbbbbbbbbbbbb | ||
| + | |||
| + | [Peer] | ||
| + | PublicKey = panda-pub | ||
| + | AllowedIPs = 192.168.0.0/ | ||
| + | |||
| + | |||
| + | |||
| + | * Client openwrt | ||
| + | |||
| + | |||
| + | config interface ' | ||
| + | option proto 'wireguard' | ||
| + | option private_key ' | ||
| + | option mtu ' | ||
| + | list addresses ' | ||
| + | list dns ' | ||
| + | |||
| + | config wireguard_wg0 | ||
| + | option public_key ' | ||
| + | option route_allowed_ips ' | ||
| + | option endpoint_host ' | ||
| + | option endpoint_port ' | ||
| + | option persistent_keepalive ' | ||
| + | list allowed_ips ' | ||
| + | list allowed_ips ' | ||
| * Setup: server and client : [[https:// | * Setup: server and client : [[https:// | ||
| * Client luci: [[https:// | * Client luci: [[https:// | ||
| + | |||
| + | |||
| + | |||
| + | |||
| Line 146: | Line 182: | ||
| * [[https:// | * [[https:// | ||
| * [[https:// | * [[https:// | ||
| + | |||
| + | |||
| + | |||
| + | ---- | ||
| + | SD CARD READY: | ||
| + | sudo apt update | ||
| + | sudo apt upgrade | ||
| + | sudo apt install code | ||
| + | ! Now teams for linux | ||
| + | sudo apt update | ||
| + | sudo apt install snapd | ||
| + | sudo reboot | ||
| + | sudo snap install core | ||
| + | sudo snap install teams-for-linux | ||
| + | sudo apt install terminator | ||
| + | ! zoom via web, camera, keyboard via bluetooth all work | ||
| + | ! reinstall chromuim and stick to it | ||
| + | |||
| + | |||
| + | ---- | ||
| + | === DISPLAY CONFIGURATION (AND DUAL MONITORS) === | ||
| + | |||
| + | Monitor issues fixes by tuning the config.txt file : [[https:// | ||
| + | |||
| + | Issues with dual monitor in raspberry pi 4. config.txt samples: | ||
| + | |||
| + | hdmi_force_hotplug: | ||
| + | hdmi_group: | ||
| + | hdmi_mode: | ||
| + | hdmi_ignore_edid: | ||
| + | config_hdmi_boost: | ||
| + | hdmi_force_hotplug: | ||
| + | hdmi_group: | ||
| + | hdmi_mode: | ||
| + | hdmi_ignore_edid: | ||
| + | config_hdmi_boost: | ||
| + | | ||
| + | # or with sections | ||
| + | # monitor 0 | ||
| + | [HDMI:0] | ||
| + | hdmi_force_hotplug=1 | ||
| + | hdmi_group=2 | ||
| + | hdmi_mode=1 | ||
| + | hdmi_ignore_edid: | ||
| + | config_hdmi_boost=7 | ||
| + | | ||
| + | # monitor 1 | ||
| + | [HDMI:1] | ||
| + | hdmi_force_hotplug=1 | ||
| + | hdmi_group=2 | ||
| + | hdmi_group=1 | ||
| + | hdmi_ignore_edid: | ||
| + | config_hdmi_boost=7 | ||
| + | | ||
| + | xrandr --output HDMI-2 --on | ||
| + | |||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | |||