Thursday, March 5, 2020

Swapping CapsLock to Esc key in openSUSE 15.+

Being a vim user I have adopted my keyboard to swap the caps key from the esc key. In openSUSE the file /etc/vconsole.conf needs to be edited in order to make the changes permanent.

1.  First thing we need to do is create a new directory somewhere in /usr

  mkdir -p /usr/local/share/kbd/keymaps/ 

Sunday, July 22, 2018

Keeping the Bash shell history

There are a lot howto's and instructions about keeping the shell's history but my favorite is my own fork of which is sdb. Now you're probably asking as to why would anyone wants to keep the history of all the commands you have written during the interactive shell? Well for starters you can check which commands did you executed during the last week on which directory or the exit status of that command. or you want to check for the commands that has a word  foo  somewhere in there or you remember a very cool command that has a lot of combinations of pipes, subshell, redirections and so on, that you have had executed but forgot the exact syntax.

Friday, June 3, 2016

How to Install packages from my hard drive.

Most if not all packages (files ending in *.rpm) are on the online repositories. In some cases you have the rpm from your pc or you have downloaded it from some site/server etc.  Question is how would one install it?

Thursday, June 2, 2016

How to revert packages from the previous repo

 The most common usecase doing a vendor change of packages

You did a dup to a specific repository but you want to revert back the packages to the previous repository.

Thursday, December 11, 2014

Curl and download error of packages

Most of the time i am behind a NAT router either at work or at home and those error are pretty common on my openSUSE system.

The old school trick i always do is ping those hosts.



now edit the file /etc/hosts  and add



eg. something like this. 

That trick always saves me from choosing a local mirror manually. It works for me and I'm not saying it will work for everyone, just try it and see.

Monday, April 7, 2014

Saturday, March 8, 2014

Disable autorefresh

Disabling auto refresh of your repositories has some benefits. If you are on a limited internet connection or you just do not want to refresh every time you invoke zypper or yast sw_single then this post might be of interest for you.