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

And now, a week or two later, this refuses to work. No amount of rebooting, resetting, re-everythinging has made a connection possible.

 

One day it worked, the next it steadfastly refuses to connect.

 

As much as I like the BlackBerry, not being able to move files on and off of the device is a BIG hassle.  This should be easy.

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

1) Have you tried with a different PC ?


Maybe you saved the wrong password in your file manager and it doesn't ask you for credentials but just use those you provided at first when you saved them.

2) Have you enabled the development mode ?

It's mandatory otherwise you cannot reach your BB by network

3) Have you enabled the Wifi Access and set the password ?


If you reset your device you need to set them again.

4) Have you tried to run this command: ?

ping 169.x.x.x (your development mode IP)

Sometimes when you enable the development mode with a different IP you need to turn it on and off many times before it's set the right IP address.

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

1) Have you tried with a different PC ? Nope.

Maybe you saved the wrong password in your file manager and it doesn't ask you for credentials but just use those you provided at first when you saved them.

No, all passwords were changed on both ends. And double checked.

2) Have you enabled the development mode ?

You know, I'm 100% certain that I never changed that - it worked fine without going into Developer mode. Will check it out though.

3) Have you enabled the Wifi Access and set the password ?

Yes, and the phone has been reset multiple times.

4) Have you tried to run this command: ?

ping 169.x.x.x (your development mode IP)

Will try that and report back.
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

I forgot one thing.

 

Are you connecting the device by USB cable or WiFi network ?

If you want to use the cable you need to enable development mode and use the 169.x.x.x like ip.
Otherwise you need to use the WiFi IP which is in general 192.x.x.x but it depends on the network you are connecting on.

Highlighted
Regular Contributor
Posts: 79
Registered: ‎07-25-2014
My Device: Q10
My Carrier: EMT

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

Thank you. Awesome post. BTW, you can add something like this to your /etc/fstab (edit it to suit your serup)

 

//IP_oR_Name/media /mnt/something cifs noauto,credentials=/home/your_username/.smbpasswd  0 0

 

 

Now, edit /home/your_username/.smbpasswd and make sure it has the following:

 

  username=BlackBerry

  password=PassYouUsed

 

You can mount that by entering: sudo mount /mnt/something

New Contributor
Posts: 8
Registered: ‎07-20-2010
My Device: Blackberry 9700
My Carrier: Singtel

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

[ Edited ]

Bro!

 

BRILLIANT!

 

I'm on this:

jserinki7 jserink # uname -a
Linux jserinki7 3.16.5-gentoo #3 SMP PREEMPT Sat Nov 8 21:19:52 SGT 2014 x86_64 Intel(R) Core(TM) i7-2720QM CPU @ 2.20GHz GenuineIntel GNU/Linux

 

The only thing that didn't work for me was the smbtree -N but I use the smblist -L \\mydevicename and it worked perfectly.

I could mount and do whatever. I even tried smb://JohnSerinkBB/media from Thunar and it worked a dream.

 

This is really great!

 

Here is my smbclient -L //JohnSerinkBB output:

Domain=[BBGROUP] OS=[Unix] Server=[Samba 3.0.37]

Sharename Type Comment
--------- ---- -------
IPC$ IPC IPC Service (Samba (JohnSerinkBB))
removable_sdcard Disk removable_media_SDCARD
media Disk media
Domain=[BBGROUP] OS=[Unix] Server=[Samba 3.0.37]

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

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

 

After mounting is was clear to me that "media" was my personal profil and "removable_sdcard" was the work space. I confirmed this as saved an attachment from a work email to the device and it was in //JohnSerinkBB/removable_sdcard/downloads while and bunch of pdfs I saved off the internet were in //JohnSerinkBB/media/downloads.

 

This is completely brilliant!

 

Cheers,

John

 

New Contributor
Posts: 8
Registered: ‎07-20-2010
My Device: Blackberry 9700
My Carrier: Singtel

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

If anyone is, I just did a relatively deep nmap scan of my BBpp over the wif and here are the results:

nmap -p 1-65535 -T4 -A -v 192.168.0.33


Starting Nmap 6.47 ( http://nmap.org ) at 2014-12-27 23:15 SGT
NSE: Loaded 118 scripts for scanning.
NSE: Script Pre-scanning.
Initiating ARP Ping Scan at 23:15
Scanning 192.168.0.33 [1 port]
Completed ARP Ping Scan at 23:15, 0.41s elapsed (1 total hosts)
Initiating Parallel DNS resolution of 1 host. at 23:15
Completed Parallel DNS resolution of 1 host. at 23:15, 0.21s elapsed
Initiating SYN Stealth Scan at 23:15
Scanning 192.168.0.33 [65535 ports]
Discovered open port 445/tcp on 192.168.0.33
Discovered open port 443/tcp on 192.168.0.33
Discovered open port 139/tcp on 192.168.0.33
Increasing send delay for 192.168.0.33 from 0 to 5 due to 115 out of 286 dropped probes since last increase.
Increasing send delay for 192.168.0.33 from 5 to 10 due to max_successful_tryno increase to 5
SYN Stealth Scan Timing: About 2.56% done; ETC: 23:36 (0:19:38 remaining)
Warning: 192.168.0.33 giving up on port because retransmission cap hit (6).
SYN Stealth Scan Timing: About 19.55% done; ETC: 23:39 (0:18:35 remaining)
SYN Stealth Scan Timing: About 25.35% done; ETC: 23:39 (0:17:25 remaining)
SYN Stealth Scan Timing: About 31.39% done; ETC: 23:39 (0:16:12 remaining)
SYN Stealth Scan Timing: About 38.69% done; ETC: 23:40 (0:15:00 remaining)
SYN Stealth Scan Timing: About 48.80% done; ETC: 23:42 (0:13:46 remaining)
SYN Stealth Scan Timing: About 55.10% done; ETC: 23:43 (0:12:24 remaining)
SYN Stealth Scan Timing: About 60.03% done; ETC: 23:43 (0:10:58 remaining)
SYN Stealth Scan Timing: About 65.10% done; ETC: 23:43 (0:09:33 remaining)
SYN Stealth Scan Timing: About 70.02% done; ETC: 23:43 (0:08:10 remaining)
Discovered open port 9000/tcp on 192.168.0.33
SYN Stealth Scan Timing: About 75.09% done; ETC: 23:43 (0:06:46 remaining)
Discovered open port 2709/tcp on 192.168.0.33
Discovered open port 4455/tcp on 192.168.0.33
SYN Stealth Scan Timing: About 80.27% done; ETC: 23:43 (0:05:22 remaining)
SYN Stealth Scan Timing: About 85.39% done; ETC: 23:43 (0:03:58 remaining)
SYN Stealth Scan Timing: About 90.51% done; ETC: 23:43 (0:02:35 remaining)
Discovered open port 1111/tcp on 192.168.0.33
SYN Stealth Scan Timing: About 95.56% done; ETC: 23:43 (0:01:12 remaining)
Discovered open port 2708/tcp on 192.168.0.33
Discovered open port 61234/tcp on 192.168.0.33
Completed SYN Stealth Scan at 23:47, 1873.41s elapsed (65535 total ports)
Initiating Service scan at 23:47
Scanning 9 services on 192.168.0.33
Completed Service scan at 23:49, 111.71s elapsed (9 services on 1 host)
Initiating OS detection (try #1) against 192.168.0.33
NSE: Script scanning 192.168.0.33.
Initiating NSE at 23:49
Completed NSE at 23:49, 30.73s elapsed
Nmap scan report for 192.168.0.33
Host is up (0.013s latency).
Not shown: 65526 closed ports
PORT STATE SERVICE VERSION
139/tcp open netbios-ssn Samba smbd 3.X (workgroup: BBGROUP)
443/tcp open ssl/https <html><head><title>404 Not Found</title></head>
|_http-methods: GET HEAD POST
| http-server-header: Software version grabbed from Server header.
| Consider submitting a service fingerprint.
|_Run with --script-args http-server-header.skip
|_http-title: 404 Not Found
| ssl-cert: Subject: commonName=PlayBook: a4:e4:b8:0e:cb:62/organizationName=Research In Motion Limited
| Issuer: commonName=PlayBook: a4:e4:b8:0e:cb:62/organizationName=Research In Motion Limited
| Public Key type: rsa
| Public Key bits: 3072
| Not valid before: 2011-03-01T00:00:00+00:00
| Not valid after: 2021-03-01T00:00:00+00:00
| MD5: 843a 9d43 0829 06e7 99aa 1961 67bd 428a
|_SHA-1: 813d 953f d468 96eb ae6c 090b dd39 77a1 f654 cf2c
|_ssl-date: 1987-02-25T04:27:48+00:00; -27y305d11h21m17s from local time.
| sslv2:
| SSLv2 supported
|_ ciphers: none
445/tcp open netbios-ssn Samba smbd 3.X (workgroup: BBGROUP)
1111/tcp open ssl/lmsocialserver?
2708/tcp open http nginx 1.6.0
|_http-methods: No Allow or Public header in OPTIONS response (status code 400)
|_http-title: 400 The plain HTTP request was sent to HTTPS port
2709/tcp open http nginx 1.6.0
|_http-methods: No Allow or Public header in OPTIONS response (status code 400)
|_http-title: 400 The plain HTTP request was sent to HTTPS port
4455/tcp open unknown
9000/tcp open cslistener?
61234/tcp open unknown
2 services unrecognized despite returning data. If you know the service/version, please submit the following fingerprints at http://www.insecure.org/cgi-bin/servicefp-submit.cgi :
==============NEXT SERVICE FINGERPRINT (SUBMIT INDIVIDUALLY)==============
SF-Port9000-TCP:V=6.47%I=7%D=12/27%Time=549ED48A%P=x86_64-pc-linux-gnu%r(G
SF:etRequest,10B,"HTTP/1\.1\x20400\x20Bad\x20Request\r\nContent-Type:\x20t
SF:ext/html;\x20charset=utf-8\r\nContent-Length:\x2021\r\nDate:\x20Sat,\x2
SF:027\x20Dec\x202014\x2015:47:22\x20GMT\r\nAccept-Ranges:\x20bytes\r\nCon
SF:nection:\x20close\r\nEXT:\r\nServer:\x20QNX/8\.0\.0,\x20UPnP/1\.0,\x20p
SF:vConnect\x20UPnP\x20SDK/1\.0,\x20Twonky\x20UPnP\x20SDK/1\.1\r\n\r\nServ
SF:ice\x20not\x20available")%r(HTTPOptions,F6,"HTTP/1\.1\x20400\x20Bad\x20
SF:Request\r\nContent-Type:\x20text/html;\x20charset=utf-8\r\nContent-Leng
SF:th:\x2021\r\nDate:\x20Sat,\x2027\x20Dec\x202014\x2015:47:22\x20GMT\r\nA
SF:ccept-Ranges:\x20bytes\r\nConnection:\x20close\r\nEXT:\r\nServer:\x20QN
SF:X/8\.0\.0,\x20UPnP/1\.0,\x20pvConnect\x20UPnP\x20SDK/1\.0,\x20Twonky\x2
SF:0UPnP\x20SDK/1\.1\r\n\r\n")%r(RTSPRequest,F6,"HTTP/1\.1\x20400\x20Bad\x
SF:20Request\r\nContent-Type:\x20text/html;\x20charset=utf-8\r\nContent-Le
SF:ngth:\x2021\r\nDate:\x20Sat,\x2027\x20Dec\x202014\x2015:47:22\x20GMT\r\
SF:nAccept-Ranges:\x20bytes\r\nConnection:\x20close\r\nEXT:\r\nServer:\x20
SF:QNX/8\.0\.0,\x20UPnP/1\.0,\x20pvConnect\x20UPnP\x20SDK/1\.0,\x20Twonky\
SF:x20UPnP\x20SDK/1\.1\r\n\r\n")%r(FourOhFourRequest,179,"HTTP/1\.1\x20404
SF:\x20Not\x20Found\r\nContent-Type:\x20text/html;\x20charset=utf-8\r\nCon
SF:tent-Length:\x20132\r\nDate:\x20Sat,\x2027\x20Dec\x202014\x2015:47:35\x
SF:20GMT\r\nAccept-Ranges:\x20bytes\r\nConnection:\x20close\r\nEXT:\r\nSer
SF:ver:\x20QNX/8\.0\.0,\x20UPnP/1\.0,\x20pvConnect\x20UPnP\x20SDK/1\.0,\x2
SF:0Twonky\x20UPnP\x20SDK/1\.1\r\n\r\n<HTML><HEAD><TITLE>404\x20Not\x20Fou
SF:nd</TITLE></HEAD><BODY><H1>Not\x20Found</H1>The\x20requested\x20URL\x20
SF:was\x20not\x20found\x20on\x20this\x20server\.</BODY></HTML>")%r(SIPOpti
SFSmiley Surprisedns,F3,"HTTP/1\.1\x20404\x20Not\x20Found\r\nContent-Type:\x20text/html;
SF:\x20charset=utf-8\r\nContent-Length:\x200\r\nDate:\x20Sat,\x2027\x20Dec
SF:\x202014\x2015:47:40\x20GMT\r\nAccept-Ranges:\x20bytes\r\nConnection:\x
SF:20close\r\nEXT:\r\nServer:\x20QNX/8\.0\.0,\x20UPnP/1\.0,\x20pvConnect\x
SF:20UPnP\x20SDK/1\.0,\x20Twonky\x20UPnP\x20SDK/1\.1\r\n\r\n");
==============NEXT SERVICE FINGERPRINT (SUBMIT INDIVIDUALLY)==============
SF-Port61234-TCP:V=6.47%I=7%D=12/27%Time=549ED485%P=x86_64-pc-linux-gnu%r(
SF:GenericLines,C0,"HTTP/1\.1\x20400\x20Bad\x20Request\x20\r\nContent-Type
SF::\x20text/plain\r\nDate:\x20Sat,\x2027\x20Dec\x202014\x2015:47:17\x20GM
SF:T\r\nConnection:\x20keep-alive\r\nContent-Length:\x2056\r\n\r\nBAD\x20R
SF:EQUEST:\x20Syntax\x20error\.\x20Usage:\x20GET\x20/example/file\.html")%
SF:r(GetRequest,8A,"HTTP/1\.1\x20200\x20OK\x20\r\nContent-Type:\x20text/ht
SF:ml\r\nDate:\x20Sat,\x2027\x20Dec\x202014\x2015:47:17\x20GMT\r\nConnecti
SFSmiley Surprisedn:\x20keep-alive\r\nContent-Length:\x2012\r\n\r\n{\"status\":0}")%r(HT
SF:TPOptions,A2,"HTTP/1\.1\x20400\x20Bad\x20Request\x20\r\nContent-Type:\x
SF:20text/plain\r\nDate:\x20Sat,\x2027\x20Dec\x202014\x2015:47:22\x20GMT\r
SF:\nConnection:\x20keep-alive\r\nContent-Length:\x2026\r\n\r\nBAD\x20REQU
SF:EST:\x20Syntax\x20error\.")%r(RTSPRequest,A2,"HTTP/1\.1\x20400\x20Bad\x
SF:20Request\x20\r\nContent-Type:\x20text/plain\r\nDate:\x20Sat,\x2027\x20
SFSmiley Very Happyec\x202014\x2015:47:22\x20GMT\r\nConnection:\x20keep-alive\r\nContent-
SF:Length:\x2026\r\n\r\nBAD\x20REQUEST:\x20Syntax\x20error\.")%r(FourOhFou
SF:rRequest,8A,"HTTP/1\.1\x20200\x20OK\x20\r\nContent-Type:\x20text/html\r
SF:\nDate:\x20Sat,\x2027\x20Dec\x202014\x2015:48:06\x20GMT\r\nConnection:\
SF:x20keep-alive\r\nContent-Length:\x2012\r\n\r\n{\"status\":0}")%r(SIPOpt
SF:ions,A2,"HTTP/1\.1\x20400\x20Bad\x20Request\x20\r\nContent-Type:\x20tex
SF:t/plain\r\nDate:\x20Sat,\x2027\x20Dec\x202014\x2015:48:21\x20GMT\r\nCon
SF:nection:\x20keep-alive\r\nContent-Length:\x2026\r\n\r\nBAD\x20REQUEST:\
SF:x20Syntax\x20error\.");
MAC Address: A4:E4:B8:0E:CB:62 (BlackBerry Limited)
Device type: phone
Running: RIM BlackBerry 10.X
OS CPE: cpe:/o:blackberry:blackberry_os:10.0
OS details: BlackBerry 10
Network Distance: 1 hop
TCP Sequence Prediction: Difficulty=262 (Good luck!)
IP ID Sequence Generation: Incremental

Host script results:
| nbstat: NetBIOS name: JOHNSERINKBB, NetBIOS user: <unknown>, NetBIOS MAC: <unknown> (unknown)
| Names:
| JOHNSERINKBB<00> Flags: <unique><active>
| JOHNSERINKBB<03> Flags: <unique><active>
| JOHNSERINKBB<20> Flags: <unique><active>
| \x01\x02__MSBROWSE__\x02<01> Flags: <group><active>
| BBGROUP<1d> Flags: <unique><active>
| BBGROUP<1e> Flags: <group><active>
|_ BBGROUP<00> Flags: <group><active>
| smb-os-discovery:
| OS: Unix (Samba 3.0.37)
| Computer name: JohnSerinkBB
| NetBIOS computer name:
| Domain name:
| FQDN: JohnSerinkBB
|_ System time: 2014-12-27T23:49:05+08:00
| smb-security-mode:
| Account that was used for smb scripts: guest
| User-level authentication
| SMB Security: Challenge/response passwords supported
|_ Message signing supported
|_smbv2-enabled: Server doesn't support SMBv2 protocol

TRACEROUTE
HOP RTT ADDRESS
1 12.69 ms 192.168.0.33

NSE: Script Post-scanning.
Read data files from: /usr/bin/../share/nmap
OS and Service detection performed. Please report any incorrect results at http://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 2020.97 seconds
Raw packets sent: 136523 (6.008MB) | Rcvd: 135246 (5.416MB)

 

Interesting that sshd is not running in 22.

 

Cheers,

John

 

 

Contributor
Posts: 15
Registered: ‎01-05-2016
My Device: Z 10
My Carrier: Vodafone

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

[ Edited ]

Hello,

 

I made all as described in the first post but I cannot see my BlackBerry. If I make a smbtree -N I can see only the following:

WORKGROUP
PETERS-NETZWERK
	\\PETERS-NETZWERK		Peters-Netzwerk
		\\PETERS-NETZWERK\IPC$           	IPC Service (Peters-Netzwerk)
		\\PETERS-NETZWERK\Peters-Netzwerk	

Peters-Netzwerk is my WLAN network. I don't can ping my device.

Where is my mistake?

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

1) Have you enabled the development mode ?


2) Have you enabled Wifi Access and set a password for the access ?

If you use the WLAN connection instead of the USB one maybe the router might be blocking both echo requests (ping ) and samba connecions.

3) Have you tried using the USB cable ? 

Contributor
Posts: 15
Registered: ‎01-05-2016
My Device: Z 10
My Carrier: Vodafone

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

1) yes

2) yes

3) If I connect the device with USB cable and enable the USB storage access I can see only the extern SD-Card.

 

Now I can ping my device via WLAN-IP (former I used a wrong IP)