Tuesday, 17 May 2022

Longer sudo

Debian based:
$ sudo update-alternatives --config editor
Fedora based: 
$ export EDITOR=vim 

$ sudo visudo /etc/sudoers

Add timestamp_timeout after env_reset:

Defaults        env_reset,timestamp_timeout=40
Now bash will remember for 40 minutes.
0 means always ask passwd, disable passwd forever set to -1.
 

Saturday, 15 January 2022

DualBoot headphone bluetooth connection issue

So my XM3 unable to connect when I change OS at boot (Win10 vs Debian11).

Short version (all in superuser, su or sudo):

$ bluetoothctl
$ devices (this will print macaddresses)
$ remove xx:11:22....
$ service bluetooth restart
 
Description:
Some bluetooth device don't like pairing associated by same MAC address. Remove and repair bluetooth.


Debian Sony XM3 bluetooth connection issue

I installed Debian 11 but sometimes got connection error. Now I provide a simple solution to fix it in case the following:

sap-server: Operation not permitted (1)


At first the SAP stands for SIM Access Profile.


With vim edit "/etc/systemd/system/bluetooth.target.wants/bluetooth.service"

At line ExecStart=/usr/lib/bluetooth/bluetoothd add the following:
--noplugin=sap


Like this:
ExecStart=/usr/lib/bluetooth/bluetoothd --noplugin=sap


Now restart:

$ sudo systemctl daemon-reload
$ sudo service bluetooth restart
$ sudo service bluetooth status



You're becoming a happy user who able to connect to your Sony headphone.


Just a minor update:

For fresh Linux installment you can grab deb or rpm broadcom drivers:

https://github.com/winterheart/broadcom-bt-firmware


Friday, 22 October 2021

Garmin Connect Driver and Sht Windows 10 in VirtualBox

I have a Garmin ForeRunner 945 sport watch. I like it worked everything fine until I had an idea to leave Windows for Linux. I become a happy Linux Mint Cinnamon 20.2 User.

Of course Garmin has no official Express for Linux but I installed a VirtualBox with Windows. I think this should work I would like to sync a weekly in OS, maybe software update etc..., not just phone.

But as other guys on the Internet I met the followings "Garmin Express not working in Windows 10/VirtualBox" :(

I spent two weeks to find a solution in a random forum:

"

To install the Media Feature Pack, navigate to Settings > Apps > Apps and Features > Optional Features > Add a Feature and find the Media Feature Pack in the list of available Optional Features

"

grrrrr, I was angry and happy...

Thursday, 5 November 2020

add user to sudoers

Add new user to sudoers:

 $ vi /etc/sudoers

username  ALL=(ALL) NOPASSWD:ALL
 
To request password remove NOPASSWD:
username  ALL=(ALL) ALL 

Friday, 14 August 2020

GarminExpress on Linux Mint 20

Little bit late tonight, but I promise to you I'm going to explain the details:


Quick steps:

$ WINEARCH=win32 WINEPREFIX=/home/$USER/GarminExpress winetricks d3dcompiler_47 dotnet472 vcrun2010 corefonts


$ WINEARCH=win32 WINEPREFIX=/home/$USER/GarminExpress winetricks win7

 

$ WINEPREFIX=/home/$USER/GarminExpress wine-stable explorer /desktop=garmin,1366x768 /home/$USER/Downloads/GarminExpress.exe

This works with the latest version Garmin Express 7.1.0.0.

Have a nice day.


Wednesday, 15 April 2020

Useful VS hotkeys

Keys:

quick info = Ctrl + k + i
format code = Ctrl + k + f
output window = Ctrl + Alt + o