zeldor.biz

Linux, programming and more

Copyright © 2026
Log in

Archives for February 2011

MySQL Error Codes

February 5, 2011 by Igor Drobot 1 Comment

Sometimes you need a good reference, and this is one of those times. MySQL’s perror command returns many error codes, and I’ve provided a listing here. To find errors individually, just run:

1
2
# perror 28
OS error code  28:  No space left on device

# perror 28 OS error code 28: No space left on device

[Read more…]

Filed Under: Linux, MySQL Tagged With: MySQL

Generate self-signed certificate

February 4, 2011 by Igor Drobot Leave a Comment

Quick and easy – generate self-signed certificate in one line:

1
openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 -keyout ipv6.mysql.idrobot.net.key -out ipv6.mysql.idrobot.net.crt

openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 -keyout ipv6.mysql.idrobot.net.key -out ipv6.mysql.idrobot.net.crt

Country Name (2 letter code) [AU]:DE
State or Province Name (full name) [Some-State]:Niedersachsen
Locality Name (eg, city) []:Hannover
[Internet Widgits Pty Ltd]:ipv6.mysql.idrobot.net
Organizational Unit Name (eg, section) []:
Common Name (eg, YOUR name) []:Igor Drobot
Email Address []:id@drobot.de

Filed Under: Bash, HTTP, Linux Tagged With: generate cert, OpenSSL

Parse kernel.org changelogs

February 4, 2011 by Igor Drobot Leave a Comment

Parsing kernel orgs changelogs can be a pain.

Here’s a handy one-liner to make it easier to read:

1
wget --quiet -O - http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.37 | grep -A 4 ^commit | grep -B 1 "^--" | grep -v "^--"

wget --quiet -O - http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.37 | grep -A 4 ^commit | grep -B 1 "^--" | grep -v "^--"

You should become human readable output like this one:

1
2
3
4
5
6
7
    perf: Remove unused variable
    x86, bios: By default, reserve the low 64K for all BIOSes
    mlx4_en: Fix build warning in mlx4_en_create_rx_ring.
    mlx4_en: updated driver version
    mlx4_en: Moving to work with GRO
    mlx4_en: UDP RSS support
    mlx4_en: reconfiguring mac address.

perf: Remove unused variable x86, bios: By default, reserve the low 64K for all BIOSes mlx4_en: Fix build warning in mlx4_en_create_rx_ring. mlx4_en: updated driver version mlx4_en: Moving to work with GRO mlx4_en: UDP RSS support mlx4_en: reconfiguring mac address.

Filed Under: Bash, Debian, Kernel, Linux Tagged With: kernel.org, parsing

Two great signals

February 4, 2011 by Igor Drobot Leave a Comment

The best uses I’ve found for the SIGSTOP and SIGCONT signals are times when a process goes haywire, or when a script spawns too many processes at once.

Usage Examples for both signals:

1
2
kill -SIGSTOP [pid]
kill -SIGCONT [pid]

kill -SIGSTOP [pid] kill -SIGCONT [pid]

[Read more…]

Filed Under: Bash, Debian, Linux Tagged With: kill, sigcon, sogstop

Courier time outs

February 4, 2011 by Igor Drobot 1 Comment

Your client (Thunderbird or Outlook) get time outs while you send mails or change between directories.

The first what you should do, check your logs:

This can be your possible error:
[Read more…]

Filed Under: Linux Tagged With: courier IMAP, IMAP, logrotate courier, time out, user limit

  • « Previous Page
  • 1
  • 2
  • 3
  • 4
  • 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.