zeldor.biz

Linux, programming and more

Copyright © 2025
Log in

Catch KeyboardInterrupt

December 2, 2019 by Igor Drobot 2 Comments

CONTROL + C is the magic key combination to stop any execution at the command line. The execution stops immediately and in worst case you see something like ^C as the output of your running command.

If you stop the execution of any Python-Program, the output will be a bit unordinary and in the most cases, annoying. Because your Terminal gets flooded and you will get an Exception:

[Read more…]

Filed Under: Programming, Python Tagged With: KeyboardInterrupt, Python, Python Exception

Change Munin Hostname

December 26, 2013 by Igor Drobot Leave a Comment

Munin

If you need to change the hostname of an existing munin node with a lot of data, and you want to retain all this existing historical data, follow this procedure:
[Read more…]

Filed Under: Bash, Linux, Monitoring Tagged With: bash, mass rename, Munin

Fedora update-grub

February 12, 2013 by Igor Drobot 1 Comment

Fedora Logo

After some days of my vacation, my Fedora workstation was not able to boot. I stuck in the grub rescue shell, something was wrong with my MBR-recoord. There was a wrong UUID.

As I tried to update grub (command update-grub) – I stuck again – command not found! This is a Debian/Ubuntu specific command and is not available here.

This is a update-grub in Fedora way:

1
grub2-mkconfig -o /boot/grub2/grub.cfg

grub2-mkconfig -o /boot/grub2/grub.cfg

And finally the MBR installation:

1
grub2-install --recheck --no-floppy /dev/sda

grub2-install --recheck --no-floppy /dev/sda

Filed Under: Bash, Linux Tagged With: Fedora

Internet Super Server

February 12, 2013 by Igor Drobot Leave a Comment

super-server

Inetd listens for connections on certain sockets. When a connection is found on one of its sockets, it decides what service the socket corresponds to, and invokes a program to service the request. The server program is invoked with the service socket as its standard input, output and error descriptors.

Essentially, inetd allows running one daemon to invoke several others [Read more…]

Filed Under: Bash, Debian, FTP, HTTP, Linux, Networking, Ubuntu Tagged With: Debian, FTP, inetd, ssh

Verifying Private Key matches a Certificate

January 29, 2013 by Igor Drobot 2 Comments

Certificate

If you get a certificate from a customer and you should implement it in some piece of software (for example nginx). The first step is to compare the received files.
After this check the displayed hash should [Read more…]

Filed Under: Bash, Debian, HTTP, Linux, Networking Tagged With: OpenSSL, Private Key, security, SSL

  • « Previous Page
  • 1
  • 2
  • 3
  • 4
  • …
  • 11
  • Next Page »
Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok