Stand With Ukraine

Friday, November 5, 2021

Random freezes with AMD Ryzen fix for Manjaro

I was having these random freezes, when only hard reboot could revive the system, in Kubuntu and tried googling a lot reading system logs, updated BIOS... Decided to switch to Manjaro hoping that they will go away by itself, but I started haing freezes again especially when I lock screen...

I found these instructions and applied them: https://archived.forum.manjaro.org/t/amd-ryzen-problems-and-fixes/55533

The instructions are very easy to follow, except I could not find the BIOS option mentioned there...

So far, the system is stable and did not freeze yet. There was a minor hiccup on return from locked state, but this time tty2 (ctrl+alt+f2) worked and I ran reboot from there..

I will keep an eye on it though and will update the post.

Updates
  • Had a freeze today (same day after I posted this) but not in the lock screen, when working with chrome. (05/11/2021)
  • 07/11/2021: Another freeze, I was watching a youtube video.
  • 24/11/2021: I finally found C-states and the idle option in BIOS, and after this I have not had any freezes yet...

Thursday, November 4, 2021

Bootstraping using python: resample package

This is just a note about a Python package for calculating confidence intervals using bias correction accelerated method (BCA). It is very convenient as it directly gives me a method/function to calculate confidence intervals. I have discovered it recently, but any time I want to get a link to send it to a collegue, google is having hard time finding it, therefore I am noting a link to the project in here: https://github.com/resample-project/resample.

Monday, November 1, 2021

Autocomplete ssh destinations in Manjaro/bash and other things I had to adjust to migrate from Kubuntu to Manjaro

Recently I decided to switch my Linux distribution from Kubuntu/KDE to Manjaro/KDE. Before installing Manjaro I resized my disk into 2 partitions: one for the system (ext4) and one for home (btrfs). This way I could reinstall the OS without touching my home folder. And then I replaced Kubuntu with Manjaro in the system partition. It went mostly smoothly, except few things:
  • When I was typing ssh+TAB in Kubuntu I had my servers from .ssh/config autocompleted for me, but not in Manjaro. To activate that feature I had to install bash-completion package from offcial repositories (extra).
  • I had to remove my ~/.kde directory to have the kde from Manjaro work. Using tty by pressing ctrl+alt+F2 from the login window.
  • For some servers I had to add the following option in .ssh/config: HostKeyAlgorithms=+ssh-rsa, this was not necessary in Kubuntu. Otherwize, I was getting the following error message
    Unable to negotiate with $ip port $port: no matching host key type found. Their offer: ssh-dss,ssh-rsa

Notes
  • I used GParted from within a live usb to repartition my disk (followed steps from here). Had to move around some stuff and fix ownership of files, but it worked out great. I am happy I did it as it allowed me to painlessly switch from Kubuntu to Manjaro.