unix

IMAP Webmail solution - Hastymail2

We've probably all used Squirrelmail at some point. A good, serviceable IMAP capable webmail program.

I've long been searching for something better... Roundcube is the normal suggestion, but the database requirement and general performance (or lack thereof) on my hardware kept me unhappy with it.

Enter Hastymail2 - I love it. Looks good, performs well, has all the features I want. I'm not quite sure why it took me so long to find it.

Kill unresponsive ssh session

With telnet, every time you connected it told you the escape sequence (^] usually) that would let you shell out to the telnet command prompt to disconnect or whatever. With ssh, I've never known how to do this.

Apparently I'm not the only one... but if you bother to read the man page, the function does exist:

$ ~?
Supported escape sequences:
~. - terminate connection (and any multiplexed sessions)
~B - send a BREAK to the remote system
~C - open a command line
~R - Request rekey (SSH protocol 2 only)
~^Z - suspend ssh
~# - list forwarded connections

NFS problem debugging

A friend (thanks Monte!) passes over the tips to improve the ability to debug NFS problems:

- cat 1024 >/proc/sys/sunrpc/nfs_debug

and/or

- nfsd_debug

Both helps improve the verbosity of log messages that appear in syslog.

Clone a web site

To make a total clone of a web site, use httrack... a couple of methods I've seen:

httrack "http://www.all.net/" -O "/tmp/www.all.net" "+*.all.net/*" -v

And to clone a drupal site, I found this worked for me:

httrack http://localhost/ -W -O "~/static_cache" -%v --robots=0

You might want to add "-/reply/" on that last one.

Mount iso file in unix

To mount an iso file (filename.iso) to a mount point (/mnt/iso):

mount -o loop -t iso9660 filename.iso /mnt/iso

Data recovery from a ext2/3 drive

Use the debugfs command (maybe with "dump") to get files back...

You can use debugfs /dev/hdf1 to access the drive. Then you can use "ls" or "cd" to move around and see the files it finds. Use "dump" to move them to a "good" drive.

Syndicate content