Skip to content

Installation, Configuration & First test

Johannes edited this page Dec 24, 2023 · 5 revisions

Installation

Following packages need to be installed on your machine:

sudo apt-get install curl

sudo apt-get install wget

sudo apt-get install jq

Download the latest release (https://github.com/jhubig/FritzBoxShell/releases/latest). Unpack it in your desired location (in my personal use case, I put it on a Raspberry Pi). Apply the following permissions for the files:

chmod 755 fritzBoxShell.sh

chmod 755 fritzBoxShellTest.sh

Configuration of Fritz!Box / Fritz!Repeater for TR-064 interface

To be able to use the the TR-064 interface, it has to be activated on the Fritz!Box:

FritzBox_Activation_TR064.png

In addition, a user needs to be available or created. This user needs to have access to Fritz!Box settings:


INFO FOR PASSWORDS: According to https://service.avm.de/help/de/FRITZ-Box-Fon-WLAN-7490/012/hilfe_zeichen_fuer_kennwoerter#:~:text=Kennw%C3%B6rter%20d%C3%BCrfen%20maximal%2032%20Zeichen,und%2063%20Zeichen%20lang%20sein passwords for FritzBox have a maximum of 32 chars. If you exceed that, TR064 commands will fail.


FritzBox_CreateUser_TR064.png

Configuration Script

The file fritzBoxShellConfig.sh contains all Information pertaining to endpoints (ip address of your Fritz!Box and/or Fritz!Repeater) and credentials (usernames and passwords). You can choose to adjust it or you can choose to give this information as environment variables at the start of the script.

If you choose to use environment variables, you do not need to comment or delete anything in fritzBoxShellConfig.sh - environment variables alway take precedence over the contents of fritzBoxShellConfig.sh.

Calling fritzBoxShell.sh using environment variables could look like this:

BoxUSER=YourUser BoxPW=YourPassword ./fritzBoxShell.sh <ACTION> <PARAMETER>

Usage

Just start the script and add the action and parameters:

./fritzBoxShell.sh <ACTION> <PARAMETER>

Example (Deactivates the 5Ghz on your FritzBox):

./fritzBoxShell.sh WLAN_5G 0