Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 20
everytime i want to connect to the net i have to type rfcomm connect /dev/rfcomm0 00:12:EE:C2:86:C7 then start kppp is there any way i can write a script that whren ...
  1. #1
    Linux Engineer scrarfussi's Avatar
    Join Date
    Aug 2006
    Posts
    1,029

    bluetooth script

    everytime i want to connect to the net i have to
    type rfcomm connect /dev/rfcomm0 00:12:EE:C2:86:C7
    then start kppp is there any way i can write a script that whren i launch kppp
    it automatically connects to my phone

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Code:
    mkdir ~/.kde/env
    vi ~/.kde/env/blueth.sh
    type 'rfcomm connect....' code and save file. logoff and login again.




    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Linux Engineer scrarfussi's Avatar
    Join Date
    Aug 2006
    Posts
    1,029
    Quote Originally Posted by devils_casper
    Code:
    mkdir ~/.kde/env
    vi ~/.kde/env/blueth.sh
    type 'rfcomm connect....' code and save file. logoff and login again.




    casper
    sorry but its not making any sense

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Quote Originally Posted by scrarfussi
    sorry but its not making any sense
    hmmm...... do you know how login scripts work in KDE? where system looks?

    i am also using Bluetooth GPRS ( AirTel ). i had to connect/bind rfcomm0 to my cell on every boot-up. i wrote 'rfocmm connect' command in a file and saved it in 'env' folder. its working perfectly. i saved all other scripts, keyboard shortcut script, Environment settings etc in that folder.

    if it still doesn't make any sense to you... ignore my suggestion....





    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Linux Engineer scrarfussi's Avatar
    Join Date
    Aug 2006
    Posts
    1,029
    Quote Originally Posted by devils_casper
    hmmm...... do you know how login scripts work in KDE? where system looks?

    i am also using Bluetooth GPRS ( AirTel ). i had to connect/bind rfcomm0 to my cell on every boot-up. i wrote 'rfocmm connect' command in a file and saved it in 'env' folder. its working perfectly. i saved all other scripts, keyboard shortcut script, Environment settings etc in that folder.

    if it still doesn't make any sense to you... ignore my suggestion....





    casper
    i'm still very new to linux and still got a lot to learn any way i tried wat u sed vi is not very user friendly
    i dont know how to use it so i used kate instead and what i wrote was rfcomm connect /dev/rfcomm0 00:12:EE:C2:86:C7 and saved it is this correct if so nothin is happenen when i re login

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    save script file on Desktop and execute it in konsole/gnome-terminal.

    Code:
    sh ~/Desktop/blueth.sh
    does it connect rfcomm device?





    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #7
    Linux Engineer scrarfussi's Avatar
    Join Date
    Aug 2006
    Posts
    1,029
    Quote Originally Posted by devils_casper
    save script file on Desktop and execute it in konsole/gnome-terminal.

    Code:
    sh ~/Desktop/blueth.sh
    does it connect rfcomm device?





    casper
    Yes from desktop it connects and works well Thanx hav you been able to update your system using gprs modem

  8. #8
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    hav you been able to update your system using gprs modem
    hmmm... i am using Kubuntu as main OS and i updated it. speed is very very slow and it took around 5 hrs to upgrade everything. Kubuntu is a light and robost distro. i like it.

    well ! everything depends on taste, likes/dislikes........





    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  9. #9
    Linux Engineer scrarfussi's Avatar
    Join Date
    Aug 2006
    Posts
    1,029
    Cool Thanx i'll see if i can get updates to work in suse now about that script where do i find this env folder how do i set it so it connects automatically coz on desktop i still hav to type sh /Desktop Thanx

  10. #10
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Hi !

    create a folder 'env' in .kde folder and copy blueth.sh file in it.
    Code:
    mkdir .kde/env
    cp Desktop/blueth.sh .kde/env
    its working fine in Kubuntu and i am in Kubuntu box right now. i will check it in SuSe. it should work in SuSe too.

    for time being, in case, it doesn't work, execute this code ( i assume script file 'blueth.sh' is on Desktop )

    Code:
    cp Desktop/blueth.sh Desktop/bt
    chmod +x Desktop/bt
    su -
    mv Desktop/bt /usr/bin
    after executing this code, press Alt+F2, type 'bt' and press Enter. check if rfcomm connected or not.



    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Page 1 of 2 1 2 LastLast

Posting Permissions

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