Five uses for a soon to expire RSA Token
Posted: November 20th, 2008 | Author: Jay | Filed under: Geek Stuff | No Comments »- Lottery ticket number generator
- Toddler toy
- Hammer testing device
- Wobbly table leg shim
- Blog post fodder
In order to silence Ben’s nagging, here are my thoughts on the G1 after about 2 days.
I’m really liking what I’ve seen of Android, and I’m pretty sure I’m going to have one by November. Everyone seems to have a list of the announced apps they want to use but I’d like to find replacements for the following apps I’m pretty happy with in the Windows Mobile world.
So, since the majority of the geeks reading this already have iPhones, what useful apps are guys using that I should hope to find ports for an Android version? (that last sentence is horrible, but you get the gist.)
No one seems to have written a log rotation script for the Proliant Support Pack logs that are stored in /var/spool/compaq/cma.log, so I thought I’d throw mine up here in case someone else needs one. put this in a file called “cma” in /etc/logrotate.d/
/var/spool/compaq/cma.log {
compress
missingok
size=100M
postrotate
/sbin/service hpasm restart 2> /dev/null > /dev/null || true
endscript
}
That’s it. this will be picked up by the daily cronjobs and keep things from getting messy. if you want to test your config without doing any changes, run logrotate -d /etc/logrotate.conf which will output the work it plans on doing. If your big log hasn’t rotated in that example, run logrotate -f /etc/logrotate.conf which force the job to run. those 6 gigs of logs are now a tidy 39 megs.
I just solved a problem at work that google was no help with. I’m posting this in hopes some other poor soul who has the same problem finds this post. After an OS re-install (Red Hat Enterprise Linux AS 4) we were changing the default location of data used for application into a different filesystem mounted to /obscure/location/work/uses/ in that directory, each application has it’s own folder, and then automounts to /apps/appname. We setup /apps/mysql and edited /etc/my.cnf to point everything but /var/run/mysqld/mysqld.pid to this new location. Makes sense, right? But now, mysql won’t start. statur reports:
#service mysqld status
mysqld dead but subsys locked
in course of investigation, I check /var/log/messages and see something like:
Jan 6 01:23:27 localhost kernel: audit(1105003407.183:0): avc: denied { append } for pid=12380 exe=/usr/sbin/mysqld path=/var/lib/mysql/localhost.localdomain.err dev=sda1 ino=3450322 scontext=root:system_r:mysqld_t tcontext=root:object_r:var_lib_t tclass=file
this error message will lead you down a trail of dispair. If you’re having the same problem I did, ignore this error message.
The reason the startup scripts are failing is that something is hardcoded to look for the mysql files in /var/lib/mysql. A symlink to /apps/mysql:
ln -s /apps/mysql/ /var/lib/
and mysql starts up without problem.
Now, if someone could explain why mysql client or startup scripts fails to read /etc/my.cnf correctly, I’d love to hear it.
As mentioned earlier, Meg’s new computer is a Dell with Ubuntu Linux pre-installed. Overall, we’re still happy with the system, but I wanted to mention a few “gotchas” i’ve found since being able to poke around the system a bit more.
First, Meg’s system came with a widescreen monitor. X windows was only configured with one 16:9 resolution choice, so if Meg want’s to reduce the resolution, everything is stretched out. I know if this is a fairly simple xorg.conf fix, and Meg’s gotten used to the 1680×1050 resolution, so it hasn’t been a big deal.
Secondly, in an effort to conserve power, I enabled power management so the system would suspend after after an hour of activity. Most of the time, this works. Every few times, it doesn’t recover correctly and needs to be shutdown before coming back up. Other times, the network connection is unable to get a DHCP lease. I’ve turned this off to stop irritating Meg until I can get it to work more consistently.
Meg is busy taking grad classes and her only complaint about OpenOffice.org is the lack “WordArt” as seen in Microsoft Word. I’ll have to see if the Format > FontWork option does the trick for her.
Overall, I’m still very impressed. The screen resolution is a minor nit-pick, and I’m not even sure if that level of polish exists on the windows side of the world. Suspend or hibernate don’t work correctly on my own (older) system, so that fact that it works most of the time is still a good sign.
The portable DVD player we’ve been using on the upstairs TV hasn’t been dealing with the heat lately, it kept locking up and it has been having trouble reading discs with my other player reads without problems. We decided to replace it with some of our remaining Target gift cards. I found a small (but not portable, next time I want a portable DVD player, I’m getting a new laptop.) cheap (right around $30) player at Target from Trutech. Model number T-600D ( I can’t find a link on target.com…) One neat little “feature” was a hack to make the player region free. There are a number of possible hacks for this model on that page, but the one that works for me was this:
1. Press SETUP
2. Press 8, 8, 8, 8
3. Press NEXT CHAPTER (4 times)
4. Current RC should be displayed , upper right
5. Select RC with LEFT/RIGHT (255= codefree)
6. Press SETUP
7. Turn the player off
I order a new computer for Meg as her IDE controller appears to be flaking out. I decided to order one of the new Dells with Ubuntu pre-installed. On first boot up, I was asked to agree to the Terms and Conditions. This was before even the OS loaded, must be a BIOS thing. Once though this screen, Ubuntu 7.04 booted up, I created a user account for Meg and myself and we were up and running. I did an synaptic update and started to explore the system. Everything but my printer just worked. USB drives, Sound, flash installed right into firefox, no extra fiddling needed.
Extra work with the printer was to be expected and I was able to easily get it running with the lexmark driver and the directions from ubuntu forums. Dell did a good job on their blog explaining that they are only going to recommend certain printers. One odd thing was that the sales page for the linux systems didn’t let me select a printer at all. I guess they are still ramping up the system and determining which printers would be best to offer.
It was pretty neat to unpack a new Dell PC and only have this one CD in the box:
I’m going to let Meg play with Ubuntu a bit, but I think we may end up switching back to Kubuntu, as that’s what she’s more familiar with. I do have an XP CD sitting here as a backup in case she decides Open Office can’t handle her powerpoint needs or something else. I might try the Qemu > rdesktop trick if she decides this is needed.
memecats begat i can has cheezburger, who begat lolkottke and loltrek. After the president announced, most eloquently, that he is “The Commander Guy,” I had an idea, which I am presenting now: LOL President. What do you think?
I’ve been using twitter for a few weeks now along with Ben and Lon. Twitter is one of those tools that is so deceptively simple, it’s value isn’t easily seen. At least by me1
Following the lead of the Battlestar Galactica commentary podcast or the idea for a “Clerks 2″ commentary podcast that was rejected by theater owners, the producers of the new TV show “Drive” have hit on a very clever idea. If you text “add foxdrive” to “40404″ you’ll get text messages of director’s commentary during the premiere episode of Drive.
I think this is brilliant. I tend not to keep too close an eye on TV scheduling, as I figure I’ll watch the good stuff when it comes out on DVD, but Drive commentary via Twitter is at least going to remind me to check out the show when the first text message comes in. Excellent way to convert a mildly interested potential viewer into someone sure to check out the first show.