Freifunk-Router:Kommandozeilen Administration

Aus Wiki Freifunk-3Ländereck
Wechseln zu: Navigation, Suche

Grundlegende Befehle zur Kommandozeilen Administration unter Gluon

Setting location

  1. uci set gluon-node-info.@location[0].latitude=53.834470
  2. uci set gluon-node-info.@location[0].longitude=10.702518
  3. uci set gluon-node-info.@location[0].share_location=1
  4. uci commit gluon-node-info


Check settings:

  1. uci show gluon-node-info

gluon-node-info.@location[0]=location gluon-node-info.@location[0].share_location=1 gluon-node-info.@location[0].latitude=53.834470 gluon-node-info.@location[0].longitude=10.702518


Setting contact

  1. uci get gluon-node-info.@owner[0] || uci add gluon-node-info owner
  2. uci set gluon-node-info.@owner[0].contact=example@example.com
  3. uci commit gluon-node-info

Check settings:

  1. uci show gluon-node-info

.... gluon-node-info.@owner[0]=owner gluon-node-info.@owner[0].contact=Luftloch


Enabling fastd

  1. uci set fastd.mesh_vpn.enabled=1
  2. uci commit fastd
  3. /etc/init.d/fastd generate_key mesh_vpn

18fa75d1808692f04770bedf30c42dac24585d331560c545d70dd27f22a05648


Limit Bandwidth

  1. uci set gluon-simple-tc.mesh_vpn.limit_egress=800 # upload 0,8Mbit
  2. uci set gluon-simple-tc.mesh_vpn.limit_ingress=5000 # download 5,0Mbit
  3. uci set gluon-simple-tc.mesh_vpn.enabled=1
  4. uci commit gluon-simple-tc


Set existing fastd private key

  1. uci set fastd.mesh_vpn.enabled=1
  2. uci set fastd.mesh_vpn.secret=18fa75d1808692f04770bedf30c42dac24585d331560c545d70dd27f22a05648
  3. uci commit fastd


Show fastd public key

  1. /etc/init.d/fastd show_key mesh_vpn

18fa75d1808692f04770bedf30c42dac24585d331560c545d70dd27f22a05648


Enable mesh on WAN-Port

  1. uci set network.mesh_wan.auto=1
  2. uci commit network


Change AutoUpdater Branch

  1. uci set autoupdater.settings.enabled=1
  2. uci set autoupdater.settings.branch=stable
  3. uci commit autoupdater
  4. autoupdater -f


Reboot to configmode

  1. uci set "gluon-setup-mode.@setup_mode[0].enabled=1"
  2. uci commit
  3. reboot


Quelle: https://github.com/freifunk-gluon/gluon/wiki/Commandline-administration