Archive for the 'Uncategorized' Category

Cacti on Fedora 12

Tuesday, August 24th, 2010

Boy this was painful.

  • Starting uneventfully, “yum install mysql mysql-server cacti net-snmp net-snmp-utils phpmyadmin”, no big deal.
  • Start up httpd (wasn’t started previously), start mysql
  • mysql setup — phpMyAdmin may look like a nice gui but I could not for the life of me get it to do what I wanted: this ended up doing the trick “GRANT USAGE ON *.* TO cactiuser IDENTIFIED BY ‘cactiuser’”
  • Now it got really fun: blank page at http://localhost/cacti. Apache’s error_log showed php running out of memory(?!). Turns out I hadn’t initialized the cacti database, which you do like so: “mysql cacti -u cactiuser -p < /usr/share/doc/cacti-0.8.7f/cacti.sql"
  • Oh so close! I got a login prompt! What’s the default login? Didn’t find it. After some googling: admin/admin. Ahhhhh.
  • My takeway is that the packaging and/or documentation of cacti could really be improved. This all took me several hours, mostly headbanging through forums. Everything I needed to do was *somewhere*. But it wasn’t easy to find. Sigh.

    Linux: Thunderbird won’t launch chrome

    Monday, March 1st, 2010

    So running Thunderbird 3.0 under Fedora 11, I couldn’t get it to launch chrome correctly. It would just start a new chrome window (not a new tab) with the default start page (blank page for me). This was the behavior despite:

      setting chrome as my default browser
      going into Edit/Preferences/Advanced/Config Editor (or alternately ~/.thunderbird/ /prefs.js) and overriding the protocol-handler entries for http and https. I tried both specifying /usr/bin/google-chrome and specify xdg-open. No dice.

    Grrr. The missing magic:
    gconftool-2 -s /desktop/gnome/url-handlers/http/command -t string "/usr/bin/google-chrome %s"

    My .pythonrc.py

    Friday, May 16th, 2008

    #!/usr/bin/env python

    print "hellooooooooooo"

    import rlcompleter, readline
    readline.parse_and_bind('tab: complete')
    del rlcompleter, readline