Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

Reply
Highlighted
New Developer
New Developer
Posts: 151
Registered: ‎01-05-2010
My Device: dev alpha c (bb10)
My Carrier: www.rzr.online.fr

How to use blackberry 10 device from GNU/Linux : mounting remote filesystem

[ Edited ]

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 :

 

smbtree -N
\\BBX Samba (bbx)
\\BBX\IPC$ IPC Service (Samba (bbx))
\\BBX\removable_SDCARD removable_media_SDCARD
\\BBX\media media
\\BBX\certs certificates

 

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 :

 

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 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 :

 

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

 

 

 

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

 

Visitor
Posts: 1
Registered: ‎06-16-2013
My Device: BlackBerry Z10, BlackBerry DevAlpha B
My Carrier: AT&T

Re: How to use blackberry 10 device from GNU/Linux : mounting remote filesystem

[ Edited ]

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 ...

 

 

Developer
Posts: 62
Registered: ‎11-30-2012
My Device: BlackBerry Z10
My Carrier: Telus

Re: How to use blackberry 10 device from GNU/Linux : mounting remote filesystem

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.

__________________________________________________________

If my post helped, click the like button!

Developer of Reader|YC , an open source Hackernews client
New Developer
Posts: 11
Registered: ‎10-27-2011
My Device: Q10
My Carrier: Rogers

Re: How to use blackberry 10 device from GNU/Linux : mounting remote filesystem

This is a great tip. Now I can setup a mobile git repository!!!
Forums Advisor III
Posts: 1,477
Registered: ‎04-19-2011
My Device: BlackBerry Z10 + Z30 + Playbook 64
My Carrier: Rogers

Re: How to use blackberry 10 device from GNU/Linux : mounting remote filesystem

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 :-(

---------------------------------------------
Using the Playbook and the Z10 and the Z30 and loving them

Martin
Developer
Posts: 62
Registered: ‎11-30-2012
My Device: BlackBerry Z10
My Carrier: Telus

Re: How to use blackberry 10 device from GNU/Linux : mounting remote filesystem

No this isn't true Martin. You can mount BB10 following the above steps.
__________________________________________________________

If my post helped, click the like button!

Developer of Reader|YC , an open source Hackernews client
New Developer
Posts: 11
Registered: ‎10-27-2011
My Device: Q10
My Carrier: Rogers

Re: How to use blackberry 10 device from GNU/Linux : mounting remote filesystem

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_mount  your_local_mount_point -o username=BlackBerry%your_password,user,uid=1000,gid=1000,exec,rw

 

3) navigate to your device directory where you want to setup your repository and type:

git init

 

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"

Regular Contributor
Posts: 76
Registered: ‎06-14-2013
My Device: Z10
My Carrier: PosteMobile

Re: How to use blackberry 10 device from GNU/Linux : mounting remote filesystem

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:

smb://169.254.0.5/media
smb://169.254.0.5/removable_SDCARD

 

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 ?

Regular Contributor
Posts: 76
Registered: ‎06-14-2013
My Device: Z10
My Carrier: PosteMobile

Re: How to use blackberry 10 device from GNU/Linux : mounting remote filesystem

[ Edited ]

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.

Contributor
Posts: 28
Registered: ‎05-01-2014
My Device: z10
My Carrier: telus

Re: How to use blackberry 10 device from GNU/Linux : mounting remote filesystem

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.