Linux

Run X11 applications on docker or podman

2024/03/29

Found x11docker project in github. This is a very nice project if you are trying to run GUI applications in dockers. It takes the hassle out and helps you run the GUI applications very easily in …

Show Local IP

2023/12/23

You can see the local IP of the machine with the command - ip a. However if you have to use the address in some variable in a scrit. It becomes little tricky, something like […] and the command …

Openvpn files to nmcli connection

2022/11/12

Many times you get openvpn file and when you want to connect to the VPN server, you have to start the vpn client from the cli. How you wish that this was added to NetworkManager so that you could …

GREP_COLORS – change the colors in the GREP output.

2019/04/22

Today we will look at the variable GREP_COLORS. This variable determines the colour that is used with the grep command. You can look at the man page of the grep command to see what the various options …

copy /proc folder

2019/03/18

Other day, I was trying to copy the proc folder with following command: tar cvzf /tmp/proc.tgz /proc and I found out that all the files in tar were empty. Strange it may seem but lot of people are …

xev – Check the X keyboard events

2018/11/19

xev man page […] xev – print contents of X events […] So other day I was checking why my play key was not working and wanted to check if it maps to one of the X default mappings for the …

Get to your ebooks quickly

2018/11/12

We are using “rofi” here to show the menu. So, lets first install that cat <<EOF >/etc/yum.repos.d/_copr_yaroslav-i3desktop.repo [yaroslav-i3desktop] name=Copr repo for i3desktop owned by …

systemctl enable and start service

2018/09/10

Most of the times when I want to enable the service, I find myself enabling it immediately or it is vice versa. So, the commands I used to use were: systemctl enable sshd.service systemctl start …

Display IP address in console login screen

2018/04/30

Here is one liner that will add the current IP address in the console login screen (if you are not running X as is case for servers): (ip -o -4 a| awk '$2 !="lo" {print "\nIP Address ::"$4}' |tr '\n' …

Linked clone with qemu-img

2018/04/09

As you would have seen in Virtualbox or vmware, there is option to create a linked clone. I wanted to use the same feature as “Snapshot” feature anyway does not look/work so great with virt-manager. …

Battery life on laptops

2018/02/05

To improve your laptop battery life, just do the following:

Fix weird flux menu

2017/05/03

Some distro’s just add all the items under single menu and thus the menu itself becomes unusable because of the number of items in the submenu and this I did not like and hence ceated this simply …


This website uses cookies to ensure you get the best experience on our website. Learn more Got it