M5 Ibus Info

December 1st, 2009

M5 Audio

December 1st, 2009

SecureCRT terminal settings

August 27th, 2009

With UTF-8 encoding becoming the default, I've been noticing strange characters appearing when connected to newer linux distros via SecureCRT.  Turns out this is due to a combination of settings.  This site details a solution.

http://www.andremiller.net/content/getting-midnight-commander-line-drawing-work-putty

Basically, change the character set translation to UTF-8 and the line drawing to UTF-8 and the font to one that supports UTF-8 line characters (Lucida Console, Courier new work - others may as well).

 Here's a link for improvements to putty/SecureCRT:

http://dag.wieers.com/blog/improving-putty-settings-on-windows

How to reinstall grub on an existing partition

June 12th, 2009

Here's how I reinstalled grub on my Ubuntu installs:

grub> find /grub/stage1
 (hd0,0)
 
grub> root (hd0,0)

grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... no
 Checking if "/grub/stage1" exists... yes
 Checking if "/grub/stage2" exists... yes
 Checking if "/grub/e2fs_stage1_5" exists... yes
 Running "embed /grub/e2fs_stage1_5 (hd0)"...  17 sectors are embedded.
succeeded
 Running "install /grub/stage1 (hd0) (hd0)1+17 p (hd0,0)/grub/stage2 /grub/menu.lst"... succeeded
Done..

Additional Information

"error 15: file not found" on startup
Ubuntu how to re-install grub using chroot

cpio

June 12th, 2009

I've been using cpio to do file backups for a while now but only recently had to restore from them. Here's the command I use for duplicating a filesystem to another filesystem:

find . -print -xdev | cpio -pdm /media/sdb3

Here is is with gzip to a file

find . -print -xdev | cpio -ocv | gzip -c > filename.cpio.gz

Here is the extract

cpio -idmv --no-absolute-filenames < filename.cpio

Here is extract with gzip

gunzip -c < filename.cpio.gz | cpio -idmv --no-absolute-filenames

And here is how to ssh to a remote machine and copy a filesystem from the remote to the current directory on the local

ssh root@minimyth2 "find / -depth -print -xdev | cpio -oaV" | cpio -imVd --no-absolute-filenames