06-16-2013 11:10 AM - edited 06-16-2013 12:09 PM
How to use blackberry 10 device from GNU/Linux : mounting remote filesystem
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 exist) ..
Here a short note on how access your device files from your favorite OS
Easier way it is use wifi support , and access them using SMB/CIFS protocol
Open Settings app on device :
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 :
\\BBX Samba (bbx)
\\BBX\IPC$ IPC Service (Samba (bbx))
It is !!! lets mount it :
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 got those messages, You can just ignore them, it is mounted as we check :
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 so just ask.
Note this report has been tested using BlackBerry DevAlphaC (Software Release 10.1.0.138)
Then as a developer you can abuse of logfiles and use your platform tools (grep, watch, inotify etc)
On issue you can check if port is open :
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
Any questions ?
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
06-16-2013 12:14 PM - edited 06-16-2013 12:45 PM
Or you can just put it into developer mode and use module fuse abd sshfs(1) to mount the BB10 device as a filesystem:
(1) run script "bbcon-z10"
#!/bin/bash . /usr/local/src/bb10ndk/bbndk-env.sh exec blackberry-connect -targetHost z10 -devicePassword <password> -sshPublicKey $HOME/.ssh/bb_rsa.pub ##NOTE: this is part of the last line and got line-wrapped by web
(2) run script "mount-z10"
#!/bin/bash sudo modprobe fuse exec sshfs devuser@z10:/accounts/1000/shared /mnt/z10-devuser -o IdentityFile=/home/npm/.ssh/bb_rsa ##NOTE: this is part of the last line and got wrapped
Now the BB10 device's files should be available under directory /mnt/z10-devuser ...
10-26-2013 03:51 PM
Hey, thought I should reply to this with some help with the method OP describes. When you run the smbtree command, sometimes nothing shows up (at least that's what happened to me). But here's the thing, the device is still probably connected. Just run the cifs.utils command anyway, but instead of device name (bbx in his example) with the ipv4 USB address found in settings > about > network. This works every time for me. Hope this helps.
11-19-2013 10:27 AM
You can not load any BlackBerry device under Linux, I tried with the PlayBook, and since the BB10 is basically the same as the PlayBook OS neither can be access on a Linux computer, otherwise many peoples would have just switch to both BlackBerry device and Linux, not many people around me like Windows, but no phones or tablet can be used with Linux :-(
11-19-2013 10:39 AM
11-19-2013 11:13 AM
I just tried and it worked. I setup a git reposistory on my BB10 and performed a push. You have to make sure that normal user has read/write permissions:
1) Follow rzr step to setup your device
2) open up a terminal and type:
sudo mount -t cifs //your_device_ip_or_name/the_path_that_you_want_to
3) navigate to your device directory where you want to setup your repository and type:
4) in my case, I was using Momentics so I went to "Team" > "Remote" > "Push..."
5) go through the steps to get your local repo on your linux box to your BB10 device
I think my BB10 will become my "master git repo"
01-05-2014 10:37 AM
Are you sure that usb samba connection it's not supported under Linux ?
If I try smb://169.254.0.5/ on Dolphin file manager i can see the two folders:
Note that the development mode is enabled with IP 169.254.0.5
The problem is that when I attempt to open one of the two folder the credentials popup appear and I have no idea what username and password are required.
Are They the same for WiFi connection ? How can find Them ?
01-05-2014 10:50 AM - edited 01-05-2014 10:52 AM
I just enabled Wifi Access and setted the password then I entered smb://169.254.0.5 again in Dolphin file manager and then I putted "BlackBerry" as username and the WiFi password as password to access "media" folder. It worked flowlessly !
Note that my phone is in Airplane mode so no other connections are needed.
Now I can browse the phone with USB connection. This is useful for a BlackBerry developer especially when your company use a firewall on the WiFi network or if you don't have a WiFi connection at all.
05-02-2014 10:02 PM
Thought that I'd add what worked for me:
Afteer trying more or less everything (Mint Linux) I:
Opened the Nemo file manager
File | Connect to Server
Choose "Windows Share"
Server: IP address of BB
User Name: BlackBerry
Password: The BB WIFI password that you set on the phone.
Bang! Opened up - files move back forth with ease. Although slowly.