hunting to Zombie processes

Not so rarely we can see zombie processes, let’s try to solve this issue

~$ ps -elf | grep Z
F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME CMD
0 Z lab4 11359 11051 0 80 0 - 0 - May07 ? 00:00:00 [bash]
0 Z lab4 11595 11051 0 80 0 - 0 - May07 ? 00:00:00 [bash]
0 S lab4 21612 15556 0 80 0 - 3284 pipe_w 08:45 pts/7 00:00:00 grep --color=auto Z

Now we can try to kill these process:

~$ kill -9 11359

~$ kill -9 11595

if we get the not successful result and still seeing the same zombie process, then we have to try kill parent process by these zombie process

in our case it is PPID 11051:

~$ kill -9 11051

The result is like as we have expected:

~$ ps -elf | grep Z
F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME CMD
0 S lab4 23468 15556 0 80 0 - 3284 pipe_w 09:12 pts/7 00:00:00 grep --color=auto Z

Have You More questions? Please be free to ask us your questions in the
Dzhumaiev.Slack.com channel 🙂

Proxmox error “Hyper-V paravirtualized …”

If you are have gotten Proxmox error when trying to launch VM just installed or coped\moved to the new Proxmox server like this one:
"Hyper-V paravirtualized IPI (hv-ipi) is not supported by kernel kvm: kvm_init_vcpu failed: Function not implemented TASK ERROR: start failed: QEMU exited with code 1"

Continue reading “Proxmox error “Hyper-V paravirtualized …””

Local time settings in Linux

To check the current date and time settings:

~# timedatectl

                      Local time: Thu 2020-04-23 16:38:10 EEST

                  Universal time: Thu 2020-04-23 13:38:10 UTC

                        RTC time: Thu 2020-04-23 13:38:11

                       Time zone: Europe/Kiev (EEST, +0300)

       System clock synchronized: yes

systemd-timesyncd.service active: yes

                 RTC in local TZ: no

or 

~# cat /etc/timezone

Europe/Kiev

So, if we should select a needed time zone and we don’t know what is it. Let’s find New York zone:

~# timedatectl list-timezones | grep New

America/New_York

America/North_Dakota/New_Salem

Then we going to set a new time zone:

~# timedatectl set-timezone America/New_York && timedatectl && cat /etc/timezone

                      Local time: Thu 2020-04-23 09:45:27 EDT

                  Universal time: Thu 2020-04-23 13:45:27 UTC

                        RTC time: Thu 2020-04-23 13:45:28

                       Time zone: America/New_York (EDT, -0400)

       System clock synchronized: yes

systemd-timesyncd.service active: yes

                 RTC in local TZ: no

America/New_York

Do not forget to run these command under root or side mode.

Than it.

Have You More questions? Please be free to ask us your questions in the
Dzhumaiev.Slack.com channel 🙂

CLI or Terminal goes to be colour

How to switch on a colored terminal by CLI?


Edit user’s shell config file


~$ nano ~/.bashrc

Find out the string with the commented parameter ” force_color_prompt ” and uncomment them with value yes

# uncomment for a colored prompt, if the terminal has the capability; turned # off by default to not distract the user: the focus in a terminal window # should be on the output of commands, not on the prompt force_color_prompt=yes if [ -n “$force_color_prompt” ]; then if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then # We have color support;

Save and close .bashrc

Log off and log in again to see changes

This image has an empty alt attribute; its file name is Screenshot_9.png

Have You More questions? Please be free to ask us your questions in the
Dzhumaiev.Slack.com channel 🙂