Archive

Archive for the ‘manjaro’ Category

[manjaro] Make C# debugger work in Visual Studio Code

Problem
Under Manjaro / Arch you use Visual Studio Code with the C# extension. Everything works fine except the C# debugger.

Solution
I found the solution here: https://github.com/OmniSharp/omnisharp-vscode/issues/1323 . The debugger on Manjaro / Arch is not supported officially, so we need to do some tricks. In VS Code open the user settings and add this line:

"csharp.fallbackDebuggerLinuxRuntimeId": "ubuntu.16.04-x64"

Uninstall the C# extension, restart VS Code, and re-install the C# extension. Open a .cs file and the extension will download some packages, including the debugger for Ubuntu 16.04 (as we specified it in the settings).

However, the *.so files of the Ubuntu debugger rely on a specific version of the package “icu”.

$ cd ~/.vscode/extensions/ms-vscode.csharp-1.11.0/.debugger
$ find *.so -type f | xargs ldd 2> /dev/null | grep not\ found
        liblldb-3.6.so => not found
        libvsdebugeng.so => not found
        libvsbaseservices.so => not found
        libvsbaseservices.so => not found
        libicuuc.so.55 => not found
        libicui18n.so.55 => not found

The last 2 lines are interesting: we need version 55 of the package “icu“. “yaourt icu” revealed that I had version 59 installed, but version 55 can be installed too with “yaourt icu55“. The two versions can co-exist. When installed, restart VS Code and debugging should work now.

Credits
The solution was found at https://github.com/OmniSharp/omnisharp-vscode/issues/1323 . A big thanks for starquake.

Advertisements
Categories: csharp, manjaro Tags:

Record audio in good quality

April 13, 2017 Leave a comment

Problem
I wanted to create some simple tutorial videos using a screen recording software (with gtk-recordMyDesktop to be precise), but the audio quality was terrible. There was a constant white noise in the background. I could reduce the noise with Audacity but 1) I couldn’t eliminate the noise, 2) it distorted my voice, and 3) the audio became weaker.

Solution
I had a cheap headphone / microphone that was connected with a jack plug. I think there was also some inference that caused the noise. So I bought a USB headset (Logitech H390) and the damn noise is gone! It works very well for me.

I tried it under Manjaro and here is how to make it work. Plug it and start Audacity. Next to the microphone icon there is a dropdown list. Select your headset and try to record some audio.

Try “pavucontrol” too. Under the Recording tab I had to select “Headset H390 Analog Mono”. Talk in the microphone and the sound feedback line should be moving.

How to record audio with gtk-recordMyDesktop? Start “pavucontrol” and “gtk-recordMyDesktop” too. In gtk-recordMyDesktop, go to Advanced -> Sound tab. Next to the device name I had “DEFAULT”. Change it to “pulse” (without quotes). Start recording with gtk-recordMyDesktop. Now switch to pavucontrol and go the Recording tab. At the bottom select “Show: Applications”. Now recordmydesktop should appear. Next to it there is a dropdown menu where select “Headset H390 Analog Mono”. It should do the trick.

[manjaro] let “Super + d” show the desktop

February 9, 2017 Leave a comment

Problem
The “Windows key + d” (aka “Super + d”) minimizes all windows, i.e. it shows you the desktop. It works under Windows, it works under Ubuntu, but for some mysterious reason, under Manjaro (XFCE), it’s “Ctrl + Alt + d” that I’ll never get used to.

How to use the well-known “Super + d” shortcut?

Solution
There must a keyboard shortcut editor for this, but I never find it. So I created a new shortcut that calls a command-line application that minimizes all windows. This way you get the same result. The command-line command for showing the desktop is “wmctrl -k on“. You may have to install the package wmctrl.

Go to the Start menu, start typing “keyboard”, and open the Keyboard application. Go to the “Application Shortcuts” tab and add the “Super + d” shortcut to the command “wmctrl -k on“.

Categories: manjaro Tags: ,

a new range of shortcuts with the Hyper key

February 9, 2017 Leave a comment

On the YouTube channel of gotbletu I found a very nice trick (video). It explains how to replace the Caps Lock with the so-called Hyper key. And why? Because Caps Lock is pretty useless and you cannot use it for shortcuts. But if you tell the system that at the place of Caps Lock there is another key, namely the Hyper key, then you can use a new range of shortcuts.

You can find my .Xmodmap file here. Just put it in your HOME folder and upon the next reboot it’ll be activated automatically. To activate it without a reboot, use the command “xmodmap ~/.Xmodmap“.

Then, under Manjaro (XFCE), go to the Start menu, start typing “keyboard”, and open the Keyboard application. Go to the “Application Shortcuts” tab and add some new shortcuts. This time, when you press Caps Lock, it’ll be recognized as the Hyper key. I added these:

Hyper + g    gedit
Hyper + k    konsole
Hyper + f    file browser (thunar)

Update (20170416)
Under Manjaro I had to create the .Xmodmap file and it is read automatically at each boot. However, under Ubuntu it’s not the case. I tried several methods and here is what worked for me: add “xmodmap ~/.Xmodmap” to the end of your ~/.bashrc file. Now, when you open a terminal, it’ll be activated for sure.

Music video

And if Hyper Hyper, then Scooter, of course:

[manjaro] Python was updated to 3.6

January 19, 2017 Leave a comment

Under Manjaro, Python 3.5 was updated to version 3.6. This is a big change, so check out the release notes, you might have to do some manual changes.

Categories: manjaro Tags: ,

[manjaro] install new fonts

January 2, 2017 Leave a comment

Problem
Under Manjaro I wanted to install new fonts. I needed a font pack; I didn’t want to bother with individual fonts.

Solution
At https://wiki.archlinux.org/index.php/fonts#TrueType I found some packages:

  • ttf-ms-fonts
  • ttf-google-fonts-git
  • ttf-bitstream-vera
  • ttf-vista-fonts
  • ttf-hack

The Google font kit contains hundreds of fonts.

Gimp
If you type a text in Gimp and you want to see the text with different fonts, i.e. you want to browse the fonts, here is how to do it.

Move the mouse above the font selector button (between “Font:” and “Sans” on the screenshot) and use the mouse wheel. That’s the trick.

Categories: manjaro Tags: ,

[manjaro] no sound

November 3, 2016 Leave a comment

Problem
After a reboot sound stopped working.

Solution
After a few hours of trying everything, the following solution worked for me:

  1. delete the folder ~/.config/pulse
  2. pulseaudio -k
  3. pulseaudio --start
Categories: manjaro Tags: ,