Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: [DE] [gelöst] BlackBerry OS 10 an Linux  (Read 6819 times)

Offline harley-peter

  • User
  • Posts: 1.022
[DE] [gelöst] BlackBerry OS 10 an Linux
« on: 2016/01/14, 13:39:01 »
Hallo,
hat jemand Erfahrung wie man von Siduction aus auf ein BlackBerry zugreifen kann? Lt. Beschreibung verhält sich das Gerät wie ein SMB-Server aber ich bekomme das nicht gemountet. Es hängt via WLAN an einer Fritzbox Cable und ich kann die IP auch anpingen aber das war's dann auch schon. Ein smbtree -N zeigt mir nichts was nach BlackBerry aussieht. Ich weiß nicht ob die Fritzbox das Ding abblockt oder woran es liegt. Ein mount-Befehl liefert folgendes:
Code: [Select]
mount.cifs //BlackBerry /mnt/black
Password for root@//BlackBerry:  **********
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Dasselbe auch bei mount -t cifs .... Auch wenn ich die IP anstatt des Namens eingebe ändert das nichts. Ich habe die Manpage schon mehrmals durchgelesen weiß aber nicht was ich falsch mache. Vielleicht kann mir ja jemand weiterhelfen oder hat sonst noch eine Idee was ich noch ausprobieren kann.
« Last Edit: 2016/01/18, 08:57:11 by harley-peter »


Offline harley-peter

  • User
  • Posts: 1.022
Re: BlackBerry OS 10 an Linux
« Reply #2 on: 2016/01/15, 07:19:08 »
Ja habe ich. Aber wie im Anfangspost schon erwähnt bekomme ich mit smbtree mein Gerät nicht mal aufgelistet warum auch immer.

Offline pit

  • User
  • Posts: 237
Re: BlackBerry OS 10 an Linux
« Reply #3 on: 2016/01/15, 11:47:31 »
Bei meinem Z30 (OS=10.3.2.2836) muss ich in den Einstellungen unter Verbindungsdienste => USB die Option "USB-Massenspeichermodus" aktivieren, um anschließend via USB auf's Blackberry zugreifen zu können. Vorher muss auf diesem Screen noch die Option "Auf SD-Karte zugr." gewählt werden:



Klappt sowohl via Linux/Siduction, als auch (z.B.) mit Win7. Aber vielleicht geht's dir gar nicht um USB?
« Last Edit: 2016/01/15, 13:22:38 by pit »

egal

  • Guest
Re: BlackBerry OS 10 an Linux
« Reply #4 on: 2016/01/15, 11:54:02 »
Hi,

smbtree funkt hier auch nicht, aber

Code: [Select]
smbclient -L 10.10.11.235 -N
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.37]

    Sharename       Type      Comment
    ---------       ----      -------
    media           Disk      media
    removable_SDCARD Disk      removable_media_SDCARD
    IPC$            IPC       IPC Service (Samba (BB-Classic))
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.37]

    Server               Comment
    ---------            -------

    Workgroup            Master
    ---------            -------

Beim Mounten ist die Option sec=ntlm der Trick:
Code: [Select]
mount --verbose //10.10.11.235/media /mnt/tmp -o sec=ntlm,username=BlackBerry,password=GEHEIM
mount.cifs kernel mount options: ip=10.10.11.235,unc=\\10.10.11.235\media,sec=ntlm,user=BlackBerry,pass=********

Code: [Select]
ls -l /mnt/tmp
insgesamt 0
drwxr-xr-x 2 root root 0 Nov 14  2014 books
drwxr-xr-x 2 root root 0 Dez 21 17:28 camera
drwxr-xr-x 2 root root 0 Aug  5 08:57 documents
drwxr-xr-x 2 root root 0 Aug 25 19:16 downloads
drwxr-xr-x 2 root root 0 Dez 23 09:00 misc
drwxr-xr-x 2 root root 0 Okt 31 16:21 music
drwxr-xr-x 2 root root 0 Jan 12 13:19 photos
drwxr-xr-x 2 root root 0 Nov 14  2014 print
drwxr-xr-x 2 root root 0 Okt 19 09:27 videos
drwxr-xr-x 2 root root 0 Sep 26 16:07 voice

Offline harley-peter

  • User
  • Posts: 1.022
Re: BlackBerry OS 10 an Linux
« Reply #5 on: 2016/01/15, 13:35:40 »
@Pit: mit dem USB-Kabel funktioniert das zwar aber da sehe ich nur die externe SD-Karte

@egal: DANKE! Das hat funktioniert. Weißt du zufällig ob man auch noch irgendwie an das root-Verzeichnis des BlackBerry kommt?

Offline pit

  • User
  • Posts: 237
Re: BlackBerry OS 10 an Linux
« Reply #6 on: 2016/01/15, 13:46:02 »
@harley-peter
Ah - verstehe. Die Lösung von @egal klingt aber auch für mich interessant. Das werden ich heute Abend gleich mal probieren.

egal

  • Guest
Re: BlackBerry OS 10 an Linux
« Reply #7 on: 2016/01/15, 17:04:14 »
Hi,

Code: [Select]
@Pit: mit dem USB-Kabel funktioniert das zwar aber da sehe ich nur die externe SD-Kartejo, als usb-storage nur die externe sd-card
über USB | manuelle IP Adresse wird das USB-Netzwerk aufgebaut (siehe Foto);
damit funkt dann auch wieder der SMB-Zugriff analog zum WLAN wie nätürlich auch der USB-Hotspot (Tethering)


Root-Verzeichnis im Blackberry nicht über SMB, ansonsten 3 Möglichkeiten
(natürlich nur die Pfade/Dateien mit user Rechten):

1) nur gelegentlich Files kopieren:
mit lokaler FileManager App, z.B. Ghost-/Total-Commander, die Dateien in einen SMB erreichbaren Pfad kopieren

2) im BB Entwicklungsmodus aktivieren, über blackberry-connect ssh aktivieren und vorher generierten publickey übertragen, anschließend mit ssh connecten (siehe link von @absolut)
Code: [Select]
./blackberry-connect 10.10.11.235 -password GEHEIM -sshPublicKey bb.key.pub
Info: Connecting to target 10.10.11.235:4455
Info: Authenticating with target 10.10.11.235:4455
Info: Encryption parameters verified
Info: Authenticating with target credentials.
Info: Successfully authenticated with target credentials.
Info: Sending ssh key to target 10.10.11.235:4455
Info: ssh key successfully transferred.
Info: Successfully connected. This application must remain running in order to use debug tools. Exiting the application will terminate this connection.
Code: [Select]
ssh -i bb.key devuser@10.10.11.235
Warning: Permanently added '10.10.11.235' (RSA) to the list of known hosts.
$ uname -a
QNX BB-Classic 8.0.0 2015/11/30-18:52:59EST MSM8960_V3.2.1.1_F_CLASSICROW_Rev:11 armle
$ ls -al /
ls: Permission denied (/data)
total 2182842
drwxr-xr-x   9 root      nto            4096 Dec 04  2014 .
drwxr-xr-x   9 root      nto            4096 Dec 04  2014 ..
drwx------   2 root      nto            4096 Jan 01  1970 .boot
-rw-rw----   1 root      nto              12 Nov 14  2014 .rootfs
-rw-------   1 root      nto              12 Jan 15 12:37 .rootfs.os.version
-rw-rw----   1 root      nto              12 Nov 14  2014 .rootfs.pps.version
-rw-------   1 root      nto              12 Jan 15 12:37 .rootfs.radio.version
drwxrwx---+  4 root      nto            4096 Nov 14  2014 .seed
drwxr-xr-x   4 apps      nto            4096 Nov 14  2014 accounts
lrwxrwxrwx   1 root      nto               9 Jan 15 17:00 air -> /base/air
drwxr-x--x+ 274 apps      nto           16384 Jan 15 12:43 apps
drwxrwxr-x   2 root      nto             480 Jan 01  1970 base
lrwxrwxrwx   1 root      nto               9 Jan 15 17:00 bin -> /base/bin
lrwxrwxrwx   1 root      nto              17 Jan 15 17:00 db -> /accounts/1000/db
drwxr-xr-x   2 root      nto              10 Jan 01  1970 dev
drwxrwxr-x   3 root      nto            4096 Nov 18  2014 efs
dr-xr-xr-x   2 root      nto               0 Jan 15 17:00 enterprise
drwxr-xr-x   2 root      nto            4096 Nov 14  2014 etc
dr-xr-xr-x   2 root      nto               0 Jan 15 17:00 fs
lrwxrwxrwx   1 root      nto               9 Jan 15 17:00 lib -> /base/lib
dr-xr-xr-x   2 root      nto               0 Jan 15 17:00 mnt
lrwxrwxrwx   1 root      nto               9 Jan 15 17:00 opt -> /base/opt
drwxrwxr-x   5 root      nto               0 Jan 15 12:31 pps
dr-xr-xr-x   2 root      nto       1117548544 Jan 15 17:00 proc
drwxrwxr-x   2 root      nto             416 Jan 01  1970 radio
drwxr-x---   2 root      nto            4096 Jan 15 12:20 root
lrwxrwxrwx   1 root      nto              10 Jan 15 17:00 sbin -> /base/sbin
lrwxrwxrwx   1 root      nto              13 Jan 15 17:00 scripts -> /base/scripts
drwxrws---   9 android_root 1000_shared      4096 Aug 19 18:45 sdcard
lrwxrwxrwx   1 root      nto              14 Jan 15 17:00 services -> /base/services
dr-xr-xr-x   2 root      nto               0 Jan 15 17:00 sys
lrwxrwxrwx   1 root      nto              59 Jan 15 17:00 system -> /apps/sys.android.gYABgKAOw1czN6neiAT72SGO.ns/native/system
lrwxr-xr-x   1 root      nto              10 Jan 01  1970 tmp -> /dev/shmem
lrwxrwxrwx   1 root      nto               9 Jan 15 17:00 usr -> /base/usr
drwxr-xr-x  58 root      radio          4096 Jan 15 16:31 var

3) FTP(S)-Server App installieren und dann mit FTP

edit: link korrigiert

Offline harley-peter

  • User
  • Posts: 1.022
Re: BlackBerry OS 10 an Linux
« Reply #8 on: 2016/01/15, 18:08:24 »
Hi Uwe,

vielen Dank für die vielen Tips das ist hammergut. :D
Im Normalfall wird es einfach nur darum gehen ein paar Dateien hin und her zu schaufeln denn ich habe nicht vor im System rum zu frickeln zumal ich vom BlackBerry noch nicht die große Ahnung habe aber gut zu wissen wie es im Notfall geht.