Archive for August, 2017

ADB-Befehle / apk

Freitag, August 18th, 2017

adb shell – shell starten
adb install – apk-Datei installieren (-r = force install)
adb kill-server – Server stoppen
adb start-server – Server starten
adb devices – Angeschlossene Geräte anzeigen
adb shell screenrecord /sdcard/filename.mp4 – Film von Handy-App machen

Possible solutions if „adb devices“ shows a device as „unauthorized“:

C:\Users\JohnDoo>adb devices
List of devices attached
17310D821D unauthorized

Disconnect USB between PC and device
Stop adb server by entering „adb kill-server“ in command window
On device use „Revoke USB debugging authorizations“ in „Developer Options“
On PC delete „adbkey“ file in user directory, for example "C:\Users\JohnDoo\.android"
Reconnect the device to the PC
Open a command window and enter „adb devices“. Watch the device’s screen for any Authorization message and allow the connection.

The device should now show as „device“:

C:\Users\JohnDoo>adb devices
List of devices attached
17310D821D device

If the above does not help, re-installing adb and or USB drivers may help.

https://support.honeywellaidc.com/s/article/How-to-fix-adb-devices-shows-unauthorized-device


Handy für Entwickler aktivieren:

  • mehrmals für Build-Nummer tippen, bis Entwickler-Status angezeigt wird
  • Zum Einstellungen -> System -> Erweitert -> Entwickleroptionen gegen und USB-Debugging aktivieren

Ubuntu: FPT-Server einrichten (proftpd)

Freitag, August 4th, 2017

https://www.liquidweb.com/kb/how-to-install-and-configure-proftpd-on-ubuntu-14-04-lts/

proftpd für sichere TLS übertragung konfigurieren:

Einrichten von ProFTPd + TLS auf Debian Etch



In FileZilla muss dann als Protokoll „SFTP“ eingestellt werden.

OpenVPN Client einrichten

Dienstag, August 1st, 2017

Lubuntu OPENVPN installieren:
sudo apt-get install network-manager network-manager-gnome openvpn
reboot

Ubuntu

  • Netzwerk Symbol (zwei kleine Pfeile links unten)
    ODER
    Einstellungen->Netzwerkverbindungen
  • VPN-Verbindungen
  • VPN konfigurieren
  • Hinzufügen
  • Verbindungstyp: Gespeicherte VPN-Verbindung importieren
  • .ovpn-Datei auswählen
  • erzeugen
  • fertig.

    Damit DNS funktioniert müssen der .ovpn folgende Textzeilen hinzugefügt werden:
    script-security 2
    up /etc/openvpn/update-resolv-conf.sh
    down /etc/openvpn/update-resolv-conf.sh