Published at: 05:05 pm - Tuesday May 15 2012
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 were really [...]
Published at: 02:12 pm - Monday December 12 2011
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: System [...]
Published at: 11:12 am - Friday December 09 2011
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 the file, calculates the difference and [...]
Published at: 12:03 am - Tuesday March 01 2011
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 good old [...]
Published at: 12:11 am - Sunday November 14 2010
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 [...]
Published at: 07:08 pm - Wednesday August 04 2010
Once I had a project where I needed to swap two SATA disks every week. Shutting down, swapping, and booting up again took a lot of time, and – to be honest – was a bit uncomfortable, so I thought I will try to make the change a little bit hot.
My disks and motherboard AFAIK [...]
Published at: 10:04 am - Friday April 16 2010
I have just bought an Asus Eee 1101HA and (after compiling a custom kernel with the correct drivers) it is working almost perfectly. Sometimes the whole system just hung and after a keypress the hung had gone and it was OK for a while until the next hang…
This had been happening in console and under [...]
Published at: 09:02 am - Thursday February 11 2010
Although the format /dev/[vg_name]/[lv_name] format is easier to read when you got plenty of VGs (compared to /dev/mapper/[vg_name]-[lv_name]), it won’t work at boot.
This is the few lines of default initramfs script which is responsible for the behaviour described above:
/usr/share/initramfs-tools/scripts/local-top, from line 40:
# Make sure that we have a d-m path
vg=${vg#/dev/mapper/}
if [ "$vg" = "$1" ]; [...]
Published at: 09:01 am - Friday January 22 2010
5853:0001 is a XEN HVM virtual SCSI adapter.
Source: https://code.ticketmaster.com/trac/browser/spine/trunk/lib/Spine/Plugin/SystemInfo.pm?rev=123#L225
Published at: 10:01 pm - Tuesday January 12 2010
I was trying to load database from an RMAN backup (duplicate database until …), and the restore process died after some time, and gave me the following error messages (I have tried it several times, with different backups, these repeated randomly):
ORA-19502: write error on file “/path/to/datafile.dbf”, blockno 1669073 (blocksize=8192)
ORA-27072: File I/O error
Linux Error: 2: No [...]