Linux

I had a user come to me saying they couldn't forward X11 from their home institution to us. I watched them logged in and noticed that xauth was complaining it couldn't lock files. I looked a little deeper and it was that xauth creates a temporary file, then hardlinks to .Xauthority. The problem is that this remote system uses CIFS for home directories (weird huh?). I did some looking and found that ssh has a mechanism to take care of this. The man page has an example script that almost worked for me. I changed it a small amount
XAUTHORITY=/tmp/…



I have a system with megaraid and I needed to add a new logical drive. I wanted to do it without rebooting, so I started looking around. I got the MegaCLI from LSI's website and was dismayed by it's apparent lack of documentation.

I found this page on le-vert.net that explained how to do everything. Phew.

List the drives

[root@server ~]# MegaCli64 -PDlist -a0 |grep -A1 "Enclosure Device" Enclosure Device ID: 32 Slot Number: 0 -- Enclosure Device ID: 32 Slot Number: 1 --…



After installing certificates on the directory server and enabling ssl, the admin server wouldn't allow us to access certificates. After clicking on "Manage Certificates" on the Tasks tab, we'd get this error: An error has occured - Could not open file (null)

And this error would appear in the logs

[Wed Feb 16 10:41:04 2011] [notice] [client 192.168.0.1] admserv_host_ip_check: ap_get_remote_host could not resolve 192.168.0.1
I found this…



We have a server exporting a filesystem with nfs version 3. rhel5 clients cannot unmount the filesystem and have this error:
[root@client /]# umount /var/spool/mail umount.nfs: server.example.com:/export: not found / mounted or server not reachable
Running the umount with -v shows the problem.
[root@client /]# umount -v /var/mail mount: trying 192.168.0.1 prog 100005 vers 1 prot tcp port 4002 umount.nfs: server.example.com:/export: not found / mounted or server not reachable mount: trying 192.168.0.1 prog 100005 vers 1…



I preface this by saying that I know it's all my fault. I am really impressed by how well Barnes and Noble have built the nookcolor. It's unbrickable, and I've tried (not on purpose) many times now.

I received the nookcolor in early December. I rooted it almost immediately. I found it was a great device. I was on 1.0.0. The update came for 1.0.1 after I bought it (by 2 days I think). I didn't bother with the update, cause I knew I'd have to revert to stock to get that. Then the overclock kernel showed up so I tried it, using clockworkmod rommanager. I didn't realize…



After upgrading from ie6 to ie7 for our crossover pro users, we found that they were all getting the runonce page (http://runonce.msn.com/runonce3.aspx) and couldn't get rid of it. Searching the codeweaver support site didn't help, the only advice given there was to ignore the issue. After looking around a bit I found that the way to remove it is to fool ie into thinking it's already displayed it, using regedit as listed in the comments in this…



I wanted to run a script against my netapp to delete some snapshots pragmatically, I used to use rsh for that sort of thing, but rsh is considered evil these days... I found this post, the guy in the post says it doesn't work, but it worked perfectly for me... Put the authorized_keys in the appropriate directory for the user...
/vol/vol0/etc/sshd/root/.ssh/authorized_keys or /vol/vol0/etc/sshd//.ssh/authorized_keys
After that, I was able to delete my…



I was trying to update some information in my filer using options and running into a wall, so I thought I'd try filerview. On Mac,Linux, Windows it wouldn't work. I kept getting the same error: Exception: java.lang.ClassNotFoundException: com.netapp.admin.FilerAutosupportConfigUIApplet.class I found this article on the now site that spoke of the issue. The problem is with tls 1.0 being turned on and ssl being enabled on the filer. I…



I had a few requests to get this working on our workstations. I managed to get a working version hacked together. I'm still working on making a proper package, at the moment it's just a binary rpm. I managed to get a working rpm that builds itself properly using a vlc hack. The problem is that the import of gtk in a few python scripts causes rpmbuild to go looking for a DISPLAY, using vlc, I circumvented that obstacle. I also manually resize the png's since our version of nautilus doesn't seem to handle it itself...

I've…



To list the package groups available in yum, you would use yum grouplist. When you are adding groups to your kickstart file, you use the id of the group not the name, so this *very* simple script lists the groups with their ids.
#!/usr/bin/python import yum yb = yum.YumBase() yb.doConfigSetup() yb.doTsSetup() for grp in yb.comps.groups: print "%s (%s)" % (grp.name,grp.groupid)
This is posted in my howto also