Menu
  • Uncategorized

random things

Menu
  • Uncategorized

openssl ca: failed to update database, TXT_DB error number 2

Uncategorized certificate, debian, https, linux, openssl, ssl2013-02-21gheja 0 Comments

I wanted to renew an SSL certificate with openssl signed by our internal CA but got the TXT_DB error number 2. Fortunately I found the solution on a micro how-to at pyro.eu.org (found by Google). $ openssl ca … failed to update database TXT_DB error number 2 You may see this when trying to generate

Read More

IPSEC VPN gateway/NAT using Racoon and Setkey

Uncategorized debian, dev, ipsec, linux, vpn2013-01-30gheja 0 Comments

Keep an eye on mode… spdadd 10.0.2.0/24 10.0.1.0/24 any -P out ipsec esp/tunnel/172.16.0.2-172.16.0.1/require; spdadd 10.0.1.0/24 10.0.2.0/24 any -P in ipsec esp/tunnel/172.16.0.1-172.16.0.2/require; … use tunnel not transport. sigh…

How to sort lines in a file randomly on Linux?

Uncategorized debian, dev, linux2012-12-27gheja 0 Comments

sort –random-sort cat a.txt | sort –random-sort > b.txt How can I randomize the lines in a file using a standard tools on Redhat Linux on StackOverflow

How to install CyanogenMod 9 on Motorola Milestone 2 / Droid 2 / A935

Uncategorized android, cm9, cyanogen, cyanogenmod, milestone, milestone2, motorola2012-08-28gheja 0 Comments

EVERYTHING WILL BE DELETED FROM YOUR PHONE as we are doing a factory reset. Also, your warranty will be gone, do this at your own risk, etc. I have written this howto step-by-step as I was doing this for the 5-6th time (hacking the boot partition too much without fastboot, huh?!), I’d consider this a

Read More

Ubuntu boot options – copy Live CD into RAM

Uncategorized boot, casper, dev, linux, ubuntu2012-07-25gheja 0 Comments

Just a quick short post. Even shorter: use the toram boot parameter. I was looking for an option to copy the contents of the live CD into RAM during boot and was looking throught the source of the casper script (the one that mounts the stuffs to have a working root or /cdrom for Ubuntu),

Read More

Ubuntu 12.04 live NFS+PXE boot (diskless, casper kept)

Uncategorized 2012-05-15gheja 1 Comment

Today I was trying with Ubuntu live boot over NFS. My goal was to set up an Ubuntu that can boot from network, map its root filesystem (or “/cdrom” mount point) from NFS, and run just as the CD would. I have seen tutorials of Ubuntu Diskless boot and NFS setup on Ubuntu. All these

Read More

Disabling logout window in Gnome on ctrl-alt-delete (on Ubunu and Debian Linux for example)

Uncategorized 2011-12-12gheja 0 Comments

It was quite annoying every time I hit ctrl-alt-del in Gnome, the Logout window appeared – instead giving the combination to the active window (virtual machines, VNC, Remote Desktop connections, etc.). Gladly this is just another global shortcut like any other ones (alt-F1 for menu, for example), therefore it can be disabled the same way:

Read More

Getting file age in a simple way

Uncategorized 2011-12-09gheja 0 Comments

I just needed a way to detect regularly if a file has been changed recently. The solution I came up with was this: now=`date +%s` mtime=`stat -c %Z /some/file` if [ $((now – mtime)) -gt 3600 ]; then     echo “xy seems to be out-of-date.” fi This checks the current time and the modification time of

Read More

Lunar date() function for PHP

Uncategorized 2011-03-01gheja 0 Comments

What is the time on the Moon? A few guys leading a project called LunarClock.org designed a Lunar date and time system, the Lunar Standard Time (LST). It is a really simple method of the time tracking on the Moon (theoretically of course, as no one lives there – yet 😉). It based on the

Read More

SSH connection timeout, frozen terminal

Uncategorized 2010-11-14gheja 1 Comment

I’ve just found accidentally a solution for a very rare (at least I’ve seen it only a few times), but rather annoying SSH client issue (bug?). Sometimes when the SSH connection times out OR after a clean exit from the remote shell, the SSH connection hangs and the terminal remains virtually between the remote and

Read More

  • « Previous Page
  • 1
  • 2
  • 3
  • 4
  • Next Page »

Recent Posts

  • Swap the Subject and description line in Roundcube Webmail mail list
  • Using ssh-rsa public key on Ubuntu 22.04 – no mutual signature algorithm
  • “Operation not supported” – extended attributes, getfattr, setfattr
  • Repairing a broken mp4 video using untrunc – “moov atom not found”
  • systemd-tty-ask hangs

Recent Comments

  • Chris on How to repair an SQLite database
  • Mark dc on How to repair an SQLite database
  • Kimberly on How to repair an SQLite database
  • John Walker on How to repair an SQLite database
  • Jimmy McCrillis on How to repair an SQLite database

Archives

  • April 2025
  • November 2023
  • January 2023
  • April 2022
  • February 2018
  • August 2015
  • July 2015
  • May 2015
  • December 2014
  • July 2013
  • February 2013
  • January 2013
  • December 2012
  • August 2012
  • July 2012
  • May 2012
  • December 2011
  • March 2011
  • November 2010
  • August 2010
  • April 2010
  • February 2010
  • January 2010
  • December 2009
  • October 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009

Categories

  • Uncategorized

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
Simple East Blog Theme By NavThemes.com
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.Accept Read More
Privacy & Cookies Policy

Necessary Always Enabled