Page 22 of 22 FirstFirst ... 12202122
Results 211 to 216 of 216

Thread: HowTo: Use your mobile phone as a remote control for your Ubuntu system

  1. #211
    Join Date
    Oct 2005
    Location
    Adelaide, South Australia
    Beans
    746
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: HowTo: Use your mobile phone as a remote control for your Ubuntu system

    anyremote wont work with my cheap'o mobile phone (samsung c3050) since both variants of the client don't launch.

    After much searching and experimenting, i managed to get Linux Bluetooth Remote Control (LBRC) to work.

    First few times the client would find the server, and connect ... however the server would not show any recognition of this and reported that there were no connected clients.


    But I eventually got it working, not exactly sure how but currently my setup looks like this :

    1. bluetooth properties >
    always visible : true
    phone found and trusted : true

    2. launch LBRCdbus :
    Code:
    $ sudo LBRCdbus
    3. launch LBRC-config >
    Code:
    [Configuration]
      save profile for next start : ticked
      show bluetooth controls : ticked
      require pairing : unticked
      one time pairing : unticked
     [Profile] 
      XInput
    4. run LBRC-applet
    Code:
    $ LBRC-applet &
    5. right click the LBRC notification icon and select : Profiles > XInput

    6. send client to your phone :
    a.
    Code:
    $ bluetooth-sendto
    b. file browser shows up >>> press ctrl-l
    c. replace the text in the locaton field with :
    /usr/share/lbrc/j2me/
    d. hightlight both files there, one jad file and one jar file
    e. click "Open"
    f. Select your phone
    g. ???
    h. profit

    7. run the client on your phone and search for your comptuer
    ( I assume you can already pair with your computer from your phone and vice versa).

    8. If connection is successful, you should see two things :
    a. on your computer you will see a notification bubble saying that such and such mac address has connected to so and so mac address.
    (these are mac addresses of your phone and computers bluetooth devices)
    b. on the phones screen, two lines of text :
    Code:
    Keypress : blah blah blah:
    keycode : somethingsomethingsomething
    9. using the directional pad on your phone ought to move your mouse cursor around and depending on the profile settings the numpad on your phone will send keyboard codes to the computer.
    Last edited by airtonix; April 7th, 2010 at 02:50 PM.
    Fear is the mindkiller....
    The little death that obliterates...

  2. #212
    Join Date
    Apr 2006
    Location
    Mexico City
    Beans
    55
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HowTo: Use your mobile phone as a remote control for your Ubuntu system

    Quote Originally Posted by mike_mike View Post
    Fab,
    1. have You tested AT mode ?
    2. have You tried JamSE ?
    Hi, I've just send you an e-mail with some info.

    Would you take care to see it?

    Thanks in Advance.

    The subject say: Anyremote karmic (PPA) with nokia n97

  3. #213
    Join Date
    Feb 2008
    Beans
    821

    Re: HowTo: Use your mobile phone as a remote control for your Ubuntu system

    hello i get missing packages =S
    Code:
    l@l-laptop:~$ sudo aptitude install gcc build-essential bluetooth bluez-cups bluez-hcidump bluez-passkey-gnome bluez-pin bluez-utils gnome-bluetooth libbluetooth2 libbluetooth2-dev
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Reading extended state information      
    Initializing package states... Done
    No candidate version found for bluez-passkey-gnome
    Couldn't find any package whose name or description matched "bluez-pin"
    Couldn't find any package whose name or description matched "libbluetooth2"
    Couldn't find any package whose name or description matched "libbluetooth2-dev"
    No candidate version found for bluez-passkey-gnome
    Couldn't find any package whose name or description matched "bluez-pin"
    Couldn't find any package whose name or description matched "libbluetooth2"
    Couldn't find any package whose name or description matched "libbluetooth2-dev"
    The following NEW packages will be installed:
      bluez-hcidump 
    0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 86.9kB of archives. After unpacking 291kB will be used.
    Writing extended state information... Done
    Get:1 http://ubuntu.mirror.iweb.ca karmic/universe bluez-hcidump 1.42-1build1 [86.9kB]
    Fetched 86.9kB in 1s (60.2kB/s)         
    Selecting previously deselected package bluez-hcidump.
    (Reading database ... 232075 files and directories currently installed.)
    Unpacking bluez-hcidump (from .../bluez-hcidump_1.42-1build1_i386.deb) ...
    Processing triggers for man-db ...
    Setting up bluez-hcidump (1.42-1build1) ...
    Reading package lists... Done             
    Building dependency tree       
    Reading state information... Done
    Reading extended state information      
    Initializing package states... Done
    Writing extended state information... Done
    
    l@l-laptop:~$

  4. #214
    Join Date
    Oct 2009
    Location
    Ukraine
    Beans
    11
    Distro
    Ubuntu

    Exclamation Re: HowTo: Use your mobile phone as a remote control for your Ubuntu system

    maybe this will be useful , just like some replacement to ganyremote. server edition .
    scans media for yours BT devices;
    run application if found some available devices.
    set password for anyremote. This is useful to protect server


    put this file to run every 1 minute in cron.

    cat bluetooth.pl
    PHP Code:
    #!/usr/bin/perl 
    ########################################
    # By Aleksander Mischenko aka Mealstrom #
    # mail: mischenko.mm[doggy]gmail[dot]com#
    # Licence: GPL v3 :D            #
    # Version: 0.9 beta            #
    #########################################
    #

    #
    # hcitool scan -- timeout 30 sec. Run it in console to get BT MAC

    # list of processes to be runned or shutdown when BT device is in range
    # %processes=(process1,parameters for proc1 , proc2...)
    # allowed macs:
    # @mac = ("mac1","mac2");
    # TODO:
    # remake match pattern for BT macs.

    #Globals

    #delete -password to access without it
    %processes=("anyremote","-fe 5050 -f /usr/share/anyremote/cfg-data/Server-mode/all-in-one2.cfg -password -s bluetooth:19 > /dev/null &");

    #change this for yours real BT macs
    @mac =("00:XX:XX:XX:XX:XX","00:AA:A1:A2:A3:A4");
    #change yours home directory
    $password_file="/home/xxxxxxxxx/.anyRemote/password";
    #change password for access
    $password="XXX";
    #check if there any allowed mac-address
    sub bt_mac_check
     
    {
      
    my @btscan = `hcitool scan`; 
        
    #remake match pattern for multiline input
        
    foreach $i(@btscan){
                if (
    $i =~ m/\t(.*)\t/){
    #        if ($i =~ m/([0-9A-F]{2}:){5}[0-9A-F]{2}/i){
            #mach mac address format
                
    foreach (@_){if ($_ eq $1){return 1;}}        
            }    
        }
     return 
    0;
     } 

    #check if password is ne
    sub passcheck
    {
    open (PASSWD"< $password_file") || die("Could not open file!");
        while (<
    PASSWD>) {
                if (
    $_ ne $password){
            return 
    1;
                }
        }
        return 
    0;
    close(PASSWD);
    }

    #set password for anyremote
    sub passset
    {
        
    open (PASSWD"> $password_file") || die("Could not open file!");
        print 
    PASSWD $password;
        
    close (PASSWD);
    }

    if (
    passcheck){passset;}
    $mac_check=bt_mac_check @mac;
    #$mac_check=0;
    print "maccheck = $mac_check\n";

    while ((
    $key$value) = each (%processes)) {
        if (
    $mac_check){
             if (!`
    pgrep $key`) {                               
                     
    #print "Starting process $key ... \n";
              
    `$key $value`;
                     }

        }
        else {
            if (`
    pgrep $key`) {
            
    #print "Process $key is running. So lets kill it ...\n";
            
    `pkill $key`;
            }
        }


  5. #215
    Join Date
    Nov 2008
    Beans
    23

    Re: HowTo: Use your mobile phone as a remote control for your Ubuntu system

    Great work by Mike!!

    I am trying to use on Ubuntu 11.04 with Samsung Galaxy S2 Android phone, there are connected, filemanager on phone could list files, but nothing further can be done presently..
    Let me try to update through ppa instead of old version from ububuntu software centre..
    any recommendation / comments are welcome

  6. #216
    Join Date
    Sep 2011
    Beans
    39

    Re: HowTo: Use your mobile phone as a remote control for your Ubuntu system

    nice tutorial.. thank u

Page 22 of 22 FirstFirst ... 12202122

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •