Zum Inhalt springen

Fonera: Unterschied zwischen den Versionen

MariusKintel (Diskussion | Beiträge)
Keine Bearbeitungszusammenfassung
MariusKintel (Diskussion | Beiträge)
Zeile 126: Zeile 126:


How to clone (or backup) a Fonera:
How to clone (or backup) a Fonera:
Get this expect script (written by  [[Benutzer:MariusKintel|Marius]]):
 
1. Get this expect script (written by  [[Benutzer:MariusKintel|Marius]]):
[https://whatever.metalab.at/user/kintel/fonera/clone.expect https://whatever.metalab.at/user/kintel/fonera/clone.expect]
[https://whatever.metalab.at/user/kintel/fonera/clone.expect https://whatever.metalab.at/user/kintel/fonera/clone.expect]
2. Set up your fonera so you can ssh in without a password:
* Copy your computer's ~/.ssh/id_dsa.pub (or equivalent) to the Fonera
* On the Fonera:
  # cp id_dsa.pub /etc/dropbear/authorized_keys
  # chmod og-r /etc/dropbear/authorized_keys
3. Run the script on your computer
4. The backup is now made to the files clone.lzma and clone.squashfs. These can be used to reflash another fonera to become an identical copy.
Assumptions: The fonera lives at 192.168.1.1,  the root prompt contains a "#", a normal openwrt is flashed on it.




<b>NB! This has not been tested very well, so use with caution until it's been more quality assured.</b>
Bugreports are welcome :)


==SOFTWARE==
==SOFTWARE==
Abgerufen von „https://metalab.at/wiki/Fonera