User Tools

Site Tools


linux:raspberry

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:raspberry [2023/10/17 18:23] jotasandokulinux:raspberry [2025/01/19 12:01] (current) jotasandoku
Line 89: 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:/etc/wireguard +    * root@rpi2:/etc/wireguard/wg0.conf 
-  * 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/24, 10.100.100.0/24 
 + 
 + 
 + 
 +  * Client openwrt ( less /etc/config/network ): 
 + 
 + 
 +  config interface 'wg0' 
 +   option proto 'wireguard
 +    option private_key '...' 
 +   option mtu '1412' 
 +   list addresses '10.100.100.2/24' 
 +   list dns '8.8.8.8' 
 + 
 +  config wireguard_wg0 
 +   option public_key 'cama-pi-pub' 
 +   option route_allowed_ips '1' 
 +   option endpoint_host 'camarreal.duckdns.org' 
 +   option endpoint_port '1094' 
 +   option persistent_keepalive '25' 
 +   list allowed_ips '0.0.0.0/0' 
 +   list allowed_ips '192.168.1.0/24' 
  
   * Setup: server and client : [[https://www.linode.com/docs/guides/set-up-wireguard-vpn-on-ubuntu/|External Link]]   * Setup: server and client : [[https://www.linode.com/docs/guides/set-up-wireguard-vpn-on-ubuntu/|External Link]]
   * Client luci: [[https://www.vpnunlimitedapp.com/help/manuals/open-wrt-wireguard-setup|External Link]]   * Client luci: [[https://www.vpnunlimitedapp.com/help/manuals/open-wrt-wireguard-setup|External Link]]
 +
 +
 +
 +
  
  
Line 164: Line 199:
   ! zoom via web, camera, keyboard via bluetooth all work   ! zoom via web, camera, keyboard via bluetooth all work
   ! reinstall chromuim and stick to it   ! reinstall chromuim and stick to it
 +
 +
 +----
 +=== DISPLAY CONFIGURATION (AND DUAL MONITORS) ===
 +
 +Monitor issues fixes by tuning the config.txt file : [[https://forums.raspberrypi.com/viewtopic.php?t=34061]]
 +
 +Issues with dual monitor in raspberry pi 4. config.txt samples:
 +
 +  hdmi_force_hotplug:0=1
 +  hdmi_group:0=2
 +  hdmi_mode:0=1
 +  hdmi_ignore_edid:0=0xa5000080
 +  config_hdmi_boost:0=7
 +  hdmi_force_hotplug:1=1
 +  hdmi_group:1=2
 +  hdmi_mode:1=1
 +  hdmi_ignore_edid:1=0xa5000080
 +  config_hdmi_boost:1=7
      
 +  # or with sections
 +  # monitor 0
 +  [HDMI:0]
 +  hdmi_force_hotplug=1
 +  hdmi_group=2
 +  hdmi_mode=1
 +  hdmi_ignore_edid:0=0xa5000080
 +  config_hdmi_boost=7
 +  
 +  # monitor 1
 +  [HDMI:1]
 +  hdmi_force_hotplug=1
 +  hdmi_group=2
 +  hdmi_group=1
 +  hdmi_ignore_edid:=0xa5000080
 +  config_hdmi_boost=7
 +  
 +  xrandr --output HDMI-2 --on
 +
 +  * [[https://forums.raspberrypi.com/viewtopic.php?t=299193]]
 +  * [[https://github.com/raspberrypi/firmware/issues/1159#issuecomment-528273080]]
 +  * [[https://www.elecrow.com/download/product/SER54080A/Raspberry_Pi_4B_Single_and_Dual_Screen_Settings.pdf]]
 +  * [[https://learning.oreilly.com/library/view/raspberry-pi-user/9781119264361/11_9781119264361-ch07.xhtml#h2-3]]
 +
 +
linux/raspberry.1697567013.txt.gz · Last modified: (external edit)