This shows you the differences between two versions of the page.
cifs [2014/10/14 08:57] |
cifs [2022/04/16 12:22] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | === How to use blackberry 10 device from GNU/Linux : mounting remote filesystem === | ||
+ | |||
+ | URL: http://supportforums.blackberry.com/t5/General-BlackBerry-10-Smartphone/How-to-use-blackberry-10-device-from-GNU-Linux-mounting-remote/td-p/2431411 | ||
+ | |||
+ | http://talk.maemo.org/showthread.php?p=1352508#post1352508 | ||
+ | |||
+ | |||
+ | As you have noticed on USB share only Windows or MacOs are supported, not GNU/Linux (please like++ this article to show RIM that GnuLinux users base exists) .. | ||
+ | |||
+ | |||
+ | === Through USB : === | ||
+ | |||
+ | <code> | ||
+ | |||
+ | Here a short note on how access your device files from your favorite OS | ||
+ | |||
+ | |||
+ | Through USB : | ||
+ | |||
+ | |||
+ | dmesg | ||
+ | |||
+ | [16062.619907] usb 2-1.2: New USB device found, idVendor=0fca, idProduct=8012 | ||
+ | [16062.619927] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 | ||
+ | [16062.619932] usb 2-1.2: Product: RIM Network Device | ||
+ | [16062.619935] usb 2-1.2: Manufacturer: Research In Motion, Ltd. | ||
+ | [16062.619938] usb 2-1.2: SerialNumber: 6E3A2FAF098D7FC8818CC28FFFFFFFFFFFFFFFFF | ||
+ | [16062.647726] usbcore: registered new interface driver cdc_ether | ||
+ | [16062.679388] rndis_host 2-1.2:1.0 usb0: register 'rndis_host' at usb-0000:00:1d.0-1.2, RNDIS device, 42:6f:ff:ff:ff:ff | ||
+ | [16062.679422] usbcore: registered new interface driver rndis_host | ||
+ | [16062.680881] usbcore: registered new interface driver rndis_wlan | ||
+ | |||
+ | |||
+ | |||
+ | ifconfig usb0 ; sudo dhclient usb0 | ||
+ | #| usb0 Link encap:Ethernet HWaddr 42:6f:2a:83:ff:ff | ||
+ | #| inet addr:$host+1 Bcast:169.254.224.51 Mask:255.255.255.252 | ||
+ | |||
+ | |||
+ | host=169.254.160.137 # minus one | ||
+ | |||
+ | user=devuser | ||
+ | smbclient -L //$host/ -U $user%'' | ||
+ | #| Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.37] | ||
+ | Sharename Type Comment | ||
+ | --------- ---- ------- | ||
+ | IPC$ IPC IPC Service (Samba (bbx)) | ||
+ | removable_SDCARD Disk removable_media_SDCARD | ||
+ | media Disk media | ||
+ | certs Disk certificates | ||
+ | Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.37] | ||
+ | |||
+ | Server Comment | ||
+ | --------- ------- | ||
+ | |||
+ | Workgroup Master | ||
+ | --------- ------- | ||
+ | |||
+ | user=devuser | ||
+ | user=blackberry | ||
+ | password=blackberry | ||
+ | |||
+ | time smbget smb://$user:$password@$host/ -R | ||
+ | |||
+ | # Downloading 6-7 MB/s on usb2 or ubs3 | ||
+ | |||
+ | # Can't open directory smb://devuser:blackberry@169.254.0.1//media: Permission denied | ||
+ | |||
+ | </code> | ||
+ | |||
+ | |||
+ | |||
+ | If you need to erase you files : | ||
+ | |||
+ | mkdir -p ~/mnt/media | ||
+ | sudo mount -t cifs //$host/media ~/mnt/media \ | ||
+ | -o username=BlackBerry%password | ||
+ | |||
+ | ==== WIFI ==== | ||
+ | |||
+ | <code> | ||
+ | Easier way it is to use wifi support , and access them using SMB/CIFS protocol | ||
+ | |||
+ | Settings / About : | ||
+ | / Device Name = bbx (my default value was BLACKBERRY-3965) | ||
+ | Settings / Storage and Access : | ||
+ | / Access Using wifi = ON | ||
+ | / Change Wifi Password = password (replace with yours) | ||
+ | Settings / Storage and Access / Identification on Network : | ||
+ | / Identity / WorkGroup = WORKGROUP (no need to change) | ||
+ | / Identity / Username = BlackBerry (no need to change) | ||
+ | |||
+ | |||
+ | You can reboot and reconnect to wifi | ||
+ | |||
+ | On your host setup a few tools | ||
+ | (assuming your running debian or derived ubuntu mint etc) | ||
+ | |||
+ | sudo apt-get install sudo cifs-utils smbclient | ||
+ | |||
+ | Now let see if service is visible from the network : | ||
+ | |||
+ | smbtree -N | ||
+ | \\BBX Samba (bbx) | ||
+ | \\BBX\IPC$ IPC Service (Samba (bbx)) | ||
+ | \\BBX\removable_SDCARD removable_media_SDCARD | ||
+ | \\BBX\media media | ||
+ | \\BBX\certs certificates | ||
+ | |||
+ | mkdir -p ~/mnt/media | ||
+ | sudo mount -t cifs //bbx/media ~/mnt/media -o username=BlackBerry%password | ||
+ | unable to add mount entry to mtab | ||
+ | error 22 detected on close of mtab | ||
+ | unable to add mount entry to mtab | ||
+ | |||
+ | If you git those messages, You can just ignore them, it mounted as we check : | ||
+ | |||
+ | ls ~/mnt/media/ | ||
+ | books camera documents downloads misc music photos print videos voice | ||
+ | |||
+ | There you go, if you want to make this permanent you can also tweak something to get it mounted automagically | ||
+ | but this is not BlackBerry Specific | ||
+ | |||
+ | Note this report has been tested using BlackBerry DevAlphaC (Software Release 10.1.0.138) | ||
+ | |||
+ | On issue you can check : | ||
+ | |||
+ | nmap bbx | ||
+ | Starting Nmap 6.25 ( http://nmap.org ) at 2013-06-14 00:17 CEST | ||
+ | Nmap scan report for bbx (192.168.0.129) | ||
+ | Host is up (0.0046s latency). | ||
+ | Not shown: 996 closed ports | ||
+ | PORT STATE SERVICE | ||
+ | 139/tcp open netbios-ssn | ||
+ | 443/tcp open https | ||
+ | 445/tcp open microsoft-ds | ||
+ | 1111/tcp open lmsocialserver | ||
+ | </code> | ||
+ | |||
+ | Then as a developer you can abuse of logfiles and use your platform tools (grep, watch, inotify etc) | ||
+ | |||
+ | |||
+ | //$host/media /mnt/media cifs noauto,credentials=/home/$USERr/.smbpasswd 0 0 | ||
+ | |||
+ | |||
+ | PS: please like++ this article to show RIM that GnuLinux users base exist .., if it's popular I will write others for GNU/LInux users / developers | ||
+ | |||
+ | LInux users / developers | ||
+ | |||