Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save novaDev315/1a807b2b874235efff94fccb5b612d95 to your computer and use it in GitHub Desktop.

Select an option

Save novaDev315/1a807b2b874235efff94fccb5b612d95 to your computer and use it in GitHub Desktop.

Revisions

  1. madKoding revised this gist Jun 28, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion pair-dual-boot-bluetooth.md
    Original file line number Diff line number Diff line change
    @@ -55,7 +55,7 @@ We will use this `pairing key` to make Linux pair our keyboard, without re-pairi

    `sudo nano /var/lib/bluetooth/[Unique ID]/[Mac Address]/info`
    ```
    sudo nano edit /var/lib/bluetooth/00\:F4\:8D\:9E\:41\:AA/34\:88\:5d\:d8\:24\:80/info
    sudo nano /var/lib/bluetooth/00\:F4\:8D\:9E\:41\:AA/34\:88\:5d\:d8\:24\:80/info
    ```

    *11)* In the `info` file go to the `[LinkKey]` section and replace the `Key` value with the `pairing key`
  2. madKoding revised this gist Jun 13, 2021. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions pair-dual-boot-bluetooth.md
    Original file line number Diff line number Diff line change
    @@ -33,9 +33,9 @@ Node has 1 subkeys and 0 values
    ```
    Like this one equivalent to `00:F4:8D:9E:41:AA`

    *8)* Enter in each folder to search for your MAC address from your Bluetooth keyboard in each value
    *8)* Enter in each `Unique id` folder to search for your MAC address of your bluetooth device in each `value name`
    ```
    cd 00f48d9e41aa
    (...)\Services\BTHPORT\Parameters\Keys> cd 00f48d9e41aa
    (...)\BTHPORT\Parameters\Keys\00f48d9e41aa> ls
    Node has 0 subkeys and 3 values
    size type value name [value if type DWORD]
    @@ -58,12 +58,12 @@ We will use this `pairing key` to make Linux pair our keyboard, without re-pairi
    sudo nano edit /var/lib/bluetooth/00\:F4\:8D\:9E\:41\:AA/34\:88\:5d\:d8\:24\:80/info
    ```

    *11)* In the `[LinkKey]` section, replace the `Key` value with the `pairing key`
    *11)* In the `info` file go to the `[LinkKey]` section and replace the `Key` value with the `pairing key`
    ```
    Key=BE7FB1992329D5B26AE2F6962EFD168A
    ```

    *12)* Restart the bluetooth service in Linux and you are ready to go
    *12)* Save and restart the bluetooth service in Linux and you are ready to go
    ```
    sudo service bluetooth restart
    ```
  3. madKoding revised this gist Jun 13, 2021. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions pair-dual-boot-bluetooth.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    *1)* Pair ALL bluetooth devices in linux
    *1)* Pair ALL bluetooth devices in linux (it is to have the files you will need to edit later)

    *2)* Pair ALL bluetooth devices in Windows 10, if you know how, get the MAC device id from your bluethooth keyboard, we will need it later
    *2)* Pair ALL bluetooth devices in Windows 10. If you know how, get the `MAC address` id from your bluethooth keyboard, we will need it later

    *3)* Reboot and go back to Linux

    @@ -24,7 +24,7 @@ chntpw -e SYSTEM
    cd \ControlSet001\Services\BTHPORT\Parameters\Keys
    ```

    *7)* run `ls` command to show you a `unique id` lists
    *7)* run `ls` command to show you a `Unique id` lists
    ```
    (...)\Services\BTHPORT\Parameters\Keys> ls
    Node has 1 subkeys and 0 values
    @@ -43,14 +43,14 @@ Node has 0 subkeys and 3 values
    16 3 REG_BINARY <34885db5f481>
    ```

    *9)* Get the hex code (that we will call friendly: `the pairing key`) from the MAC address value
    *9)* Get the hex code (that we will call friendly: the `pairing key`) from the keyboard `MAC address` value
    ```
    (...)\BTHPORT\Parameters\Keys\00f48d9e41aa> hex 34885dd82480
    Value <34885dd82480> of type REG_BINARY (3), data length 16 [0x10]
    :00000 BE 7F B1 99 23 29 D5 B2 6A E2 F6 96 2E FD 16 8A ....#)..j.......
    ```

    *10)* So... we will copy "the code", `BE7FB1992329D5B26AE2F6962EFD168A`, that is the `pairing key` in Wintendo for your device.
    *10)* So... we will copy the `pairing key` that use Wintendo to pair your device: `BE7FB1992329D5B26AE2F6962EFD168A`
    We will use this `pairing key` to make Linux pair our keyboard, without re-pairing again. We will use now de `Unique Id`, the `MAC Address` and edit this file in your Linux drive:

    `sudo nano /var/lib/bluetooth/[Unique ID]/[Mac Address]/info`
  4. madKoding revised this gist Jun 13, 2021. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions pair-dual-boot-bluetooth.md
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@

    *3)* Reboot and go back to Linux

    *4)* Install chntpw package, this is needed to read the registry keys from Wintendo
    *4)* Install `chntpw` package, this is needed to read the registry keys from Wintendo
    ```
    sudo apt-get install chntpw
    ```
    @@ -51,7 +51,7 @@ Value <34885dd82480> of type REG_BINARY (3), data length 16 [0x10]
    ```

    *10)* So... we will copy "the code", `BE7FB1992329D5B26AE2F6962EFD168A`, that is the `pairing key` in Wintendo for your device.
    We will use this `pairing key` to make Linux pair our keaboard, without re-pairing again. We will use now de `Unique Id`, the `MAC Address` and edit this file in your Linux drive:
    We will use this `pairing key` to make Linux pair our keyboard, without re-pairing again. We will use now de `Unique Id`, the `MAC Address` and edit this file in your Linux drive:

    `sudo nano /var/lib/bluetooth/[Unique ID]/[Mac Address]/info`
    ```
    @@ -63,7 +63,7 @@ sudo nano edit /var/lib/bluetooth/00\:F4\:8D\:9E\:41\:AA/34\:88\:5d\:d8\:24\:80/
    Key=BE7FB1992329D5B26AE2F6962EFD168A
    ```

    *12)* Restart the service bluetooth service in Linux and you are ready to go
    *12)* Restart the bluetooth service in Linux and you are ready to go
    ```
    sudo service bluetooth restart
    ```
  5. madKoding revised this gist Jun 13, 2021. 1 changed file with 17 additions and 18 deletions.
    35 changes: 17 additions & 18 deletions pair-dual-boot-bluetooth.md
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,15 @@
    *1)* Pair ALL bluetooth devices that you will need in Windows 10 and then reboot
    *1)* Pair ALL bluetooth devices in linux

    *2)* Pair ALL bluetooth devices in linux
    *2)* Pair ALL bluetooth devices in Windows 10, if you know how, get the MAC device id from your bluethooth keyboard, we will need it later

    *3)* Install chntpw package
    *3)* Reboot and go back to Linux

    *4)* Install chntpw package, this is needed to read the registry keys from Wintendo
    ```
    sudo apt-get install chntpw
    ```

    *4)* Mount your Windows system drive and enter to this folder
    *5)* Mount your Wintendo system drive in Linux and enter to this folder
    ```
    cd /[MountedDrive]/Windows/System32/config
    ```
    @@ -17,54 +19,51 @@ cd /[MountedDrive]/Windows/System32/config
    chntpw -e SYSTEM
    ```

    *6)* In the `chntpw` console, run this command that will have the bluetooth device in windows
    *6)* In the `chntpw` raised console, enter in the bluetooth registry keys list like this:
    ```
    cd \ControlSet001\Services\BTHPORT\Parameters\Keys
    ```

    *7)* run `ls` command, this will shows you the bluetooth port folder
    *7)* run `ls` command to show you a `unique id` lists
    ```
    (...)\Services\BTHPORT\Parameters\Keys> ls
    Node has 1 subkeys and 0 values
    key name
    <00f48d9e41aa>
    ```
    Like this one equivalent to `00:F4:8D:9E:41:AA`

    *8)* Enter to the key retrieved, this is de MAC bluetooth device folder
    *8)* Enter in each folder to search for your MAC address from your Bluetooth keyboard in each value
    ```
    cd 00f48d9e41aa
    ```

    *9)* List the existing devices paired in windows
    ```
    (...)\BTHPORT\Parameters\Keys\00f48d9e41aa> ls
    Node has 0 subkeys and 3 values
    size type value name [value if type DWORD]
    16 3 REG_BINARY <34885dd82480>
    16 3 REG_BINARY <34885dd82480> <- This is our keyboard
    16 3 REG_BINARY <34885db5f481>
    ```

    *10)* Get the hex MAC values for each bluetooth device
    *9)* Get the hex code (that we will call friendly: `the pairing key`) from the MAC address value
    ```
    (...)\BTHPORT\Parameters\Keys\00f48d9e41aa> hex 34885dd82480
    Value <34885dd82480> of type REG_BINARY (3), data length 16 [0x10]
    :00000 BE 7F B1 99 23 29 D5 B2 6A E2 F6 96 2E FD 16 8A ....#)..j.......
    ```

    *11)* So... we copy the `BE7FB1992329D5B26AE2F6962EFD168A` that will be the pairing key
    and edit it the linux bluetooth info as this
    *10)* So... we will copy "the code", `BE7FB1992329D5B26AE2F6962EFD168A`, that is the `pairing key` in Wintendo for your device.
    We will use this `pairing key` to make Linux pair our keaboard, without re-pairing again. We will use now de `Unique Id`, the `MAC Address` and edit this file in your Linux drive:

    `sudo nano /var/lib/bluetooth/[bluetooth folder as MAC]/[device as MAC]/info`
    `sudo nano /var/lib/bluetooth/[Unique ID]/[Mac Address]/info`
    ```
    sudo nano edit /var/lib/bluetooth/00\:F4\:8D\:9E\:41\:AA/34\:88\:5d\:d8\:24\:80/info
    ```

    *12)* In the `[LinkKey]` section replace the Key value with the pairing key you copy
    *11)* In the `[LinkKey]` section, replace the `Key` value with the `pairing key`
    ```
    Key=BE7FB1992329D5B26AE2F6962EFD168A
    ```

    *13)* Restart the service and you are ready to go
    *12)* Restart the service bluetooth service in Linux and you are ready to go
    ```
    sudo service bluetooth restart
    ```
  6. Jose Luis Gonzalez revised this gist Apr 18, 2020. 1 changed file with 19 additions and 17 deletions.
    36 changes: 19 additions & 17 deletions pair-dual-boot-bluetooth.md
    Original file line number Diff line number Diff line change
    @@ -1,40 +1,41 @@
    First... pair ALL bluetooth devices that you will need in Windows 10 and then reboot
    Second... pair ALL bluetooth devices in linux
    *1)* Pair ALL bluetooth devices that you will need in Windows 10 and then reboot

    then install chntpw package
    *2)* Pair ALL bluetooth devices in linux

    *3)* Install chntpw package
    ```
    sudo apt-get install chntpw
    ```

    Mount your Windows system drive and enter to this folder
    *4)* Mount your Windows system drive and enter to this folder
    ```
    cd /[MountedDrive]/Windows/System32/config
    ```

    Execute this command
    *5)* Execute this command inside that folder
    ```
    chntpw -e SYSTEM
    ```

    in the chntpw terminal, go to this folder
    *6)* In the `chntpw` console, run this command that will have the bluetooth device in windows
    ```
    cd \ControlSet001\Services\BTHPORT\Parameters\Keys
    ```

    run 'ls' command, this will shows you the bluetooth port folder
    *7)* run `ls` command, this will shows you the bluetooth port folder
    ```
    (...)\Services\BTHPORT\Parameters\Keys> ls
    Node has 1 subkeys and 0 values
    key name
    <00f48d9e41aa>
    ```

    Enter to the bluetooth port folder
    *8)* Enter to the key retrieved, this is de MAC bluetooth device folder
    ```
    cd 00f48d9e41aa
    ```

    List the existing devices paired in windows
    *9)* List the existing devices paired in windows
    ```
    (...)\BTHPORT\Parameters\Keys\00f48d9e41aa> ls
    Node has 0 subkeys and 3 values
    @@ -43,26 +44,27 @@ Node has 0 subkeys and 3 values
    16 3 REG_BINARY <34885db5f481>
    ```

    Get the hex values for each bluetooth device
    *10)* Get the hex MAC values for each bluetooth device
    ```
    (...)\BTHPORT\Parameters\Keys\00f48d9e41aa> hex 98b6e9b42f24
    Value <98b6e9b42f24> of type REG_BINARY (3), data length 16 [0x10]
    (...)\BTHPORT\Parameters\Keys\00f48d9e41aa> hex 34885dd82480
    Value <34885dd82480> of type REG_BINARY (3), data length 16 [0x10]
    :00000 BE 7F B1 99 23 29 D5 B2 6A E2 F6 96 2E FD 16 8A ....#)..j.......
    ```

    So... we copy the BE7FB1992329D5B26AE2F6962EFD168A that will be the pairing key
    and edit it the linux bluetooth info
    sudo nano /var/lib/bluetooth/[bluetooth folder as MAC]/[device as MAC]/info
    *11)* So... we copy the `BE7FB1992329D5B26AE2F6962EFD168A` that will be the pairing key
    and edit it the linux bluetooth info as this

    `sudo nano /var/lib/bluetooth/[bluetooth folder as MAC]/[device as MAC]/info`
    ```
    sudo nano edit /var/lib/bluetooth/00\:F4\:8D\:9E\:41\:AA/34\:88\:5d\:d8\:24\:80/info
    ```

    In the [LinkKey] section replace the Key value with the pairing key you copy
    *12)* In the `[LinkKey]` section replace the Key value with the pairing key you copy
    ```
    Key=BE7FB1992329D5B26AE2F6962EFD168A
    ```

    Restart the service and you are ready
    *13)* Restart the service and you are ready to go
    ```
    sudo service bluetooth restart
    ```
  7. Jose Luis Gonzalez renamed this gist Apr 18, 2020. 1 changed file with 37 additions and 15 deletions.
    52 changes: 37 additions & 15 deletions pair-dual-boot-bluetooth.sh → pair-dual-boot-bluetooth.md
    Original file line number Diff line number Diff line change
    @@ -1,46 +1,68 @@
    # First... pair ALL bluetooth devices that you will need in Windows 10 and then reboot
    # Second... pair ALL bluetooth devices in linux
    First... pair ALL bluetooth devices that you will need in Windows 10 and then reboot
    Second... pair ALL bluetooth devices in linux

    # then install chntpw package
    then install chntpw package
    ```
    sudo apt-get install chntpw
    ```

    # Mount your Windows system drive and enter to this folder
    Mount your Windows system drive and enter to this folder
    ```
    cd /[MountedDrive]/Windows/System32/config
    ```

    # Execute this command
    Execute this command
    ```
    chntpw -e SYSTEM
    ```

    # in the chntpw terminal, go to this folder
    in the chntpw terminal, go to this folder
    ```
    cd \ControlSet001\Services\BTHPORT\Parameters\Keys
    ```

    # run 'ls' command, this will shows you the bluetooth port folder
    run 'ls' command, this will shows you the bluetooth port folder
    ```
    (...)\Services\BTHPORT\Parameters\Keys> ls
    Node has 1 subkeys and 0 values
    key name
    <00f48d9e41aa>
    ```

    # Enter to the bluetooth port folder
    Enter to the bluetooth port folder
    ```
    cd 00f48d9e41aa
    ```

    # List the existing devices paired in windows
    List the existing devices paired in windows
    ```
    (...)\BTHPORT\Parameters\Keys\00f48d9e41aa> ls
    Node has 0 subkeys and 3 values
    size type value name [value if type DWORD]
    16 3 REG_BINARY <34885dd82480>
    16 3 REG_BINARY <34885db5f481>
    ```

    # Get the hex values for each bluetooth device
    Get the hex values for each bluetooth device
    ```
    (...)\BTHPORT\Parameters\Keys\00f48d9e41aa> hex 98b6e9b42f24
    Value <98b6e9b42f24> of type REG_BINARY (3), data length 16 [0x10]
    :00000 BE 7F B1 99 23 29 D5 B2 6A E2 F6 96 2E FD 16 8A ....#)..j.......
    ```

    # So... we copy the BE7FB1992329D5B26AE2F6962EFD168A that will be the pairing key
    # and edit it the linux bluetooth info
    # sudo nano /var/lib/bluetooth/[bluetooth folder as MAC]/[device as MAC]/info
    So... we copy the BE7FB1992329D5B26AE2F6962EFD168A that will be the pairing key
    and edit it the linux bluetooth info
    sudo nano /var/lib/bluetooth/[bluetooth folder as MAC]/[device as MAC]/info
    ```
    sudo nano edit /var/lib/bluetooth/00\:F4\:8D\:9E\:41\:AA/34\:88\:5d\:d8\:24\:80/info
    ```

    # In the [LinkKey] section replace the Key value with the pairing key you copy
    In the [LinkKey] section replace the Key value with the pairing key you copy
    ```
    Key=BE7FB1992329D5B26AE2F6962EFD168A
    ```

    # Restart the service and you are ready
    Restart the service and you are ready
    ```
    sudo service bluetooth restart
    ```
  8. Jose Luis Gonzalez renamed this gist Apr 18, 2020. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  9. Jose Luis Gonzalez created this gist Apr 18, 2020.
    46 changes: 46 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,46 @@
    # First... pair ALL bluetooth devices that you will need in Windows 10 and then reboot
    # Second... pair ALL bluetooth devices in linux

    # then install chntpw package
    sudo apt-get install chntpw

    # Mount your Windows system drive and enter to this folder
    cd /[MountedDrive]/Windows/System32/config

    # Execute this command
    chntpw -e SYSTEM

    # in the chntpw terminal, go to this folder
    cd \ControlSet001\Services\BTHPORT\Parameters\Keys

    # run 'ls' command, this will shows you the bluetooth port folder
    (...)\Services\BTHPORT\Parameters\Keys> ls
    Node has 1 subkeys and 0 values
    key name
    <00f48d9e41aa>

    # Enter to the bluetooth port folder
    cd 00f48d9e41aa

    # List the existing devices paired in windows
    (...)\BTHPORT\Parameters\Keys\00f48d9e41aa> ls
    Node has 0 subkeys and 3 values
    size type value name [value if type DWORD]
    16 3 REG_BINARY <34885dd82480>
    16 3 REG_BINARY <34885db5f481>

    # Get the hex values for each bluetooth device
    (...)\BTHPORT\Parameters\Keys\00f48d9e41aa> hex 98b6e9b42f24
    Value <98b6e9b42f24> of type REG_BINARY (3), data length 16 [0x10]
    :00000 BE 7F B1 99 23 29 D5 B2 6A E2 F6 96 2E FD 16 8A ....#)..j.......

    # So... we copy the BE7FB1992329D5B26AE2F6962EFD168A that will be the pairing key
    # and edit it the linux bluetooth info
    # sudo nano /var/lib/bluetooth/[bluetooth folder as MAC]/[device as MAC]/info
    sudo nano edit /var/lib/bluetooth/00\:F4\:8D\:9E\:41\:AA/34\:88\:5d\:d8\:24\:80/info

    # In the [LinkKey] section replace the Key value with the pairing key you copy
    Key=BE7FB1992329D5B26AE2F6962EFD168A

    # Restart the service and you are ready
    sudo service bluetooth restart