söndag 14 mars 2021

Get full path for a file.

Time for another oneliner. I often need to get the full path of a file.
This can be done using the following command:

readlink -f myfile

Via stackoverflow.com

onsdag 3 mars 2021

Text disappearing from context menus in Gnome

I'm having an issue where most text in Gnome disappears or gets corrupted. I'm yet to find the root cause.
In the meantime the best quickfix is to restart Gnome.

To do so, press alt + F2, type r and press enter.

Via linuxconfig.org

lördag 27 februari 2021

måndag 15 februari 2021

Can't init device hci0: Connection timed out (110)

Bluetooth stopped working on my raspberry pi running raspbian. The first I tried was to reset the interface by running hciconfig hci0 down/up, but that gave me "Can't init device hci0: Connection timed out (110)".

I found that by removing the btusb module and then adding it back, I was able to get bluetooth working again. Next time bluetooth gives up, I will run this:
sudo hciconfig hci0 down
sudo rmmod btusb
sudo modprobe btusb
sudo hciconfig hci0 up
Via unix.stackexchange.com