1. vader42's Avatar
    Apologies if this has been said before, I couldn't find it, so here goes.

    As has been said before, bb10 has a complete python install built in. You can load bgshell and run python from the command line. Now this probably isn't overly exciting to most people, however one thing you can do is run a Web server which is part of python.

    Run bgshell, change to the directory you want as your root, then type:

    python3.2 -m http.server

    That's is. You have a webserver listening on port 8000!

    Quit bgshell to close the server.

    It's a really simple way to copy files from your phone (if you can't mount directories). You can even transfer to another phone.

    Posted via CB10
    ami.one and ATV_Hightower like this.
    11-08-13 05:42 AM
  2. ami.one's Avatar
    Great !
    I am able to see it from the z10 browser using localhost:8000 or my IP, but can't see from laptop even though I can ping the z10
    Could you tell me where to copy the html files I want to host? /var/www?

    Posted via CB10
    EDIT:
    OK, i can see it from my laptop by giving the external IP now.
    I don't seem to be able to have write permissions anywhere with BGShell. Any idea which folders we are allowed to write to ?

    And, any idea if it's possible to enable SSH ? (server)
    Last edited by ami.one; 11-08-13 at 07:18 AM.
    11-08-13 06:57 AM
  3. vader42's Avatar
    bgshell has rights to /mnt/sdcard and /mnt/sdcard2 (your micro sd card). I've been playing around with bgshell and have found lots of great stuff. You can indeed run the sshd process (/base/usr/sbin/sshd), but it isn't properly configured. I have to find out if you can supply configuration files.

    So, copy your html files, images etc to say /mnt/sdcard/ (or make a directory under there, eg. /mnt/sdcard/documents/www). Change to that directory, and run the python command.
    11-08-13 07:44 AM
  4. EdY's Avatar
    I found that in some browsers like on an old Curve or PC you need to specify the port, for example, http://192.168.1.74:8000/.

    Also in my Z10 I have to go into /mnt then /external_sd to get to my SD card.

    I also found this works on my PlayBook so I can have it sitting in my charging stand at home and serving me files in my local network.
    ATV_Hightower likes this.
    07-01-14 09:48 PM

Similar Threads

  1. Unable to connect to Blackberry ID Server. HELP
    By JOLTNG in forum BlackBerry Z10
    Replies: 16
    Last Post: 09-18-19, 06:59 PM
  2. Installing BB Link on Windows Server 2003
    By ssbtech in forum Desktop Software
    Replies: 3
    Last Post: 08-03-14, 11:05 PM
  3. Any way to sync web calendar with BB calendar without desktop software?
    By lemongrassdog in forum BlackBerry Bold Series
    Replies: 5
    Last Post: 11-07-13, 06:02 PM
  4. facebook login server
    By piper975 in forum BlackBerry Z10
    Replies: 1
    Last Post: 11-06-13, 06:07 PM
  5. Server adress active sync account
    By icehouse0683 in forum BlackBerry 10 OS
    Replies: 4
    Last Post: 11-05-13, 06:54 AM
LINK TO POST COPIED TO CLIPBOARD