zeldor.biz

Linux, programming and more

Copyright © 2025
Log in

Your own weatherstation

April 12, 2011 by Igor Drobot 4 Comments


Create a own weather station or temperature monitoring using a tiny digital temperature sensor.

I use this setup to monitor a server room, and outdoor temperature and as a weather station.

This project consists of interface between RS-232F and the Dallas one Wire system.

You need: [Read more…]

Filed Under: Bash, Debian, DIY, Fun, Linux Tagged With: 1.5 kOhm resistor, 3.9V Zener diode, 6.2V Zener diode, digitemp, DS1820, DS18s20, RS-232

Usermod command

March 22, 2011 by Igor Drobot Leave a Comment

Manpages are great!
Disable ssh login:

1
usermod -s /bin/false username

usermod -s /bin/false username

Change home directory:

1
usermod -d /home/users/newpath/ username

usermod -d /home/users/newpath/ username

Filed Under: Bash, Debian, Linux Tagged With: usermod change home, usermod change shell

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

  • « Previous Page
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • …
  • 10
  • 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