kersing / multitech-installer

Installer for TheThingsNetwork on MultiTech Conduit
MIT License
21 stars 17 forks source link

installer.sh errors #25

Closed carwyn closed 4 years ago

carwyn commented 4 years ago

I just encountered this series of errors while following the instructions here:

https://www.thethingsnetwork.org/docs/gateways/multitech/aep.html

admin@mtcdt:~$ sh installer.sh 
touch: /var/config/.installer: Permission denied
installer.sh: line 110: /var/config/.installer: Permission denied
AEP Model detected, have time zone and network been setup?
1) Yes
2) No
#? 1
installer.sh: line 118: /var/config/.installer: Permission denied
installer.sh: line 119: /var/config/.installer: Permission denied
Securing access to the device, enter the same password twice and
make sure to save this password as the device requires factory
reset when the password is lost!!
passwd: You may not view or modify password information for root.
installer.sh: line 129: /var/config/.installer: Permission denied
Please identify a location so that time zone rules can be set correctly.
Please select a continent, ocean, "coord", or "TZ".
 1) Africa
 2) Americas
 3) Antarctica
 4) Arctic Ocean
 5) Asia
 6) Atlantic Ocean
 7) Australia
 8) Europe
 9) Indian Ocean
10) Pacific Ocean
11) coord - I want to use geographical coordinates.
12) TZ - I want to specify the time zone using the Posix TZ format.
#? 8
Please select a country whose clocks agree with yours.
 1) Albania       18) Guernsey          35) Poland
 2) Andorra       19) Hungary           36) Portugal
 3) Austria       20) Ireland           37) Romania
 4) Belarus       21) Isle of Man       38) Russia
 5) Belgium       22) Italy         39) San Marino
 6) Bosnia & Herzegovina  23) Jersey            40) Serbia
 7) Britain (UK)      24) Latvia            41) Slovakia
 8) Bulgaria          25) Liechtenstein     42) Slovenia
 9) Croatia       26) Lithuania         43) Spain
10) Czech Republic    27) Luxembourg        44) Sweden
11) Denmark       28) Macedonia         45) Switzerland
12) Estonia       29) Malta         46) Turkey
13) Finland       30) Moldova           47) Ukraine
14) France        31) Monaco            48) Vatican City
15) Germany       32) Montenegro        49) Åland Islands
16) Gibraltar         33) Netherlands
17) Greece        34) Norway
#? 7

The following information has been given:

    Britain (UK)

Therefore TZ='Europe/London' will be used.
Is the above information OK?
1) Yes
2) No
#? 1
ln: /etc/localtime: File exists
installer.sh: line 499: /var/config/.installer: Permission denied

NETWORK SETUP

Do you want to use DHCP
1) Yes
2) No
#? 1
mv: can't rename '/var/config/network/interfaces': No such file or directory
installer.sh: line 516: /var/config/network/interfaces: No such file or directory
installer.sh: line 604: /var/config/.installer: Permission denied
Network configuration written

The gateway will now shutdown. Remove power once the status led
stopped blinking, connect the gateway to the new network and reapply
power.

Press enter to continue
kersing commented 4 years ago

Use sudo to run the installer: sudo sh installer.sh

carwyn commented 4 years ago

Have created a pull request on the docs page for this:

https://github.com/TheThingsNetwork/docs/pull/372