linux

iotop - IO/disk activity measurment

Looking for a way to see what processes are beating your disk? Always seemed like something 'top' would show, but it doesn't. Here's a little utility that does.

iotop

smbclient to Windows 7 fails

If you are trying to use smbclient from Samba to attach from a Linux box to a Windows machine sharing a directory and get an error that looks like:

session setup failed: SUCCESS - 0

Try removing the Windows Live Sign-In Assistant program (Add/Remove Control Panel).

Worked for me.

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.

XWii and MythTV

I have been using MythTV as an open-source "Tivo" for years. In the last year or so, we've had a Nintendo Wii hooked up to the same TV, and I used the Wii remote to control MythTV.

One way to do this is with Benjie Gillam's MythPyWii. Used that successfully and was happy with it. Check it out if it fits your setup.

rdfind - Linux file duplicate finder

I have searched off and on for years for a good duplicate file finder/cleanup tool for linux. Doesn't look like it would be that obscure need, but there aren't that many out there, at least that I found.

fdupes is the one I have seen referred to most often, and it does work fine, but never quite what I wanted.

I recently found rdfind. I don't know where its been hiding, but check this tool out!

Moving a mysql installation

Friend of mine was needing to move an entire mysql installation over to a new machine. Did the expected 'mysqldump -p --all-databases >all_databases.sql', moved the file over to the new machine and reloaded it.

All the data was there, but user permissions weren't.

Apparently the 'mysql' table where those user accounts and permissions are stored is not included in '--all-databases' by default. Guess I can see that, but...

Anyway, did a 'mysqldump -p mysql >mysql.sql' and moved it over, restarted mysql (doesn't read this table unless you restart) and all was well.

KDE/kdm autologin from command line

If you need set KDE/kdm (the KDE window manager) to allow a default, no-password logon, but need to set it up from the command line, check your kdmrc file.

On Ubuntu/Kubuntu its /etc/kde4/kdm/kdmrc

These fields are important:

NoPassEnable = true
NoPassUsers = username

Obviously, this can be a big security hole. Use with care and know what you are doing.

See also: Allow X to connect to KDE

Linux Citrix Security Warning

The newer versions of the Linux Citrix client do not always work due to a missing security certificate.

Here's the fix:

wget http://www.geotrust.com/resources/root_certificates/certificates/Equifax... && cp Equifax_Secure_Certificate_Authority_DER.cer /usr/lib/ICAClient/keystore/cacerts/Equifax_Secure_Certificate_Authority_DER.crt && exit

From: http://blandname.com/2008/11/10/you-have-not-chosen-to-trust-equifax-sec...

Distributed Version Control

A couple of very good and interesting posts covering Distributed Version Control and version control thoughts in general. Both have some very good discussion and the comments are well worth a read.

The Risks of Distributed Version Control - Discusses a potential "community" problem with distributed version control systems (such as git, mercurial, etc.) where people "go away", work on something by themselves and then return with a huge mass of code. Not a technical/tool problem, but a group dynamics issue.

Git Workflow - with diagrams

Oliver Steele posts a nice blog entry titled "My Git Workflow". You may or may not like how he's using Git, but he includes some diagrams that deal with the Index (a core Git concept) that explain it better than anything else I've seen.

These diagrams need to be in the core documentation!

Syndicate content