From 8a5d2a75a287068b16a6ef8f9dc8f323466fbd4a Mon Sep 17 00:00:00 2001
From: Phuc Tran Truong <truongph@informatik.hu-berlin.de>
Date: Thu, 22 Mar 2018 16:25:03 +0100
Subject: [PATCH] adding adhoc setup instructions

---
 doc/softwareSetup/adhocSetup.txt | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 doc/softwareSetup/adhocSetup.txt

diff --git a/doc/softwareSetup/adhocSetup.txt b/doc/softwareSetup/adhocSetup.txt
new file mode 100644
index 00000000..1ef7a799
--- /dev/null
+++ b/doc/softwareSetup/adhocSetup.txt
@@ -0,0 +1,30 @@
+Siehe: https://gitlab.informatik.hu-berlin.de/adapt/ws17-HF/Gruppe-B/wikis/Einrichten-Ad-Hoc-Netzwerke
+Auf dem ODROID:
+
+$ ifconfig wlan0 down
+$ iw wlan0 set type ibss
+$ ifconfig wlan0 up
+$ iw wlan0 ibss join test 2432
+$ ifconfig wlan0 10.42.43.1
+
+Oder die Befehle in ein Skript adhoc.sh schreiben und ausführen.
+Man muss das Adhoc Netzwerk ja jedes Mal neu erstellen.
+
+Damit ist das Adhoc Netzwerk test erstellt.
+Mit einem anderem Computer kann man sich nun verbinden.
+
+MacOS:
+WLAN bzw Wifi ID herausfinden:
+$ networksetup -listallhardwareports
+Als nächstes IP Adresse setzen:
+$ sudo ifconfig en0 10.42.43.2
+Test:
+$ ping 10.42.43.1
+Nun kann man versuchen, sich per ssh mit dem ODROID zu verbinden:
+$ ssh root@10.42.43.1
+Das Passwort lautet: autonom1718a
+
+Copy the file "foobar.txt" from a remote host to the local host
+$ scp root@10.42.43.1:foobar.txt /some/local/directory
+Copy the file "foobar.txt" from the local host to a remote host
+$ scp foobar.txt root@10.42.43.1:/some/remote/directory
-- 
GitLab