Skip to content

Instantly share code, notes, and snippets.

@Fordi
Last active October 25, 2015 20:19
Show Gist options
  • Save Fordi/0c1c643fe17edd21d1d2 to your computer and use it in GitHub Desktop.
Save Fordi/0c1c643fe17edd21d1d2 to your computer and use it in GitHub Desktop.
@echo off
:: If you have Xming installed, this will get you connected to your Raspberry Pi, and will start blueman-manager,
:: thereby enabling you to pair bluetooth like a civilized human being
:: Remember to close the X Server from the system tray when you're done.
set XMING_HOME=C:\Program Files (x86)\Xming
set PI_HOST=raspberry
set PI_USER=pi
set PI_PASS=raspberry
cd %XMING_HOME%
start "Xming" /B "%XMING_HOME%\xming.exe" -from localhost -multiwindow
"%XMING_HOME%\plink.exe" -batch -ssh -2 -t -X -C %PI_USER%@%PI_HOST% -pw %PI_PASS% gksudo blueman-manager
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment