↓ Twitter is updated more often, so read it! ↓

HOWTO: Astronomy Picture of the Day for GNOME

Astronomy Picture of the Day is a really neat page which is generated daily by NASA. It shows a single picture captured by some NASA-affiliated person and some text to describe it.

These pictures are perfect for desktop backgrounds. There’s a program to automatically set it as the background for Windows, but we Linux, or more specifically, GNOME, users can do it in a simple script.

Drop this script somewhere on your system and create a cron schedule with crontab -e for it. The cron lines are in the script. I’d recommend the four hour intervals if you don’t keep your computer on all the time, or the twelve or once-a-day intervals if you do.

Oh, and you might need to install cron. Gutsy doesn’t have it by default, so you can do it through Synaptic or using sudo apt-get install cron at a command line.


#!/bin/bash
#Filename: apodwallpaper
#Location: ${HOME}/.bin
#Purposes: Downloads NASA Astronomy Picture of the Day and displays it as the
#          GNOME background 
#Author(s): acvwJosh of Ubuntu Forums, modified by Colin Dean <http://cad.cx>

#add the following line to your crontab if you want to run this hourly
#10   *  *   *   *     apodwallpaper

#add this line if you want to run it every four hours
#10 0,4,8,12,16,20 * * * apodwallpaper

#add this line if you want to run it every twelve hours
#10 0,12 * * * apodwallpaper

#add this line if you want to run it daily 
#10 0 * * * apodwallpaper

#don't forget to put this script in your $PATH.
#I usually add ${HOME}/.bin to my path in .bash_profile and put my scripts there

#change this if you want the image to be in a different directory
FILENAME=apodwallpaper
APODWALLPAPER=${HOME}/.${FILENAME}

mkdir -p ${APODWALLPAPER} && cd ${APODWALLPAPER}

# download image from apod site
wget -A.jpg -R.txt -r -l1 --no-parent -nH http://antwrp.gsfc.nasa.gov/apod/astropix.html

# move image from obscure folder to main folder, rename image
find ./apod -name "*.jpg" | while read line ; do
mv "$line" "${FILENAME}.jpg"
done

# set image to wallpaper
gconftool-2 -t string -s /desktop/gnome/background/picture_filename "blank.jpg"
gconftool-2 -t string -s /desktop/gnome/background/picture_filename \
                         "${APODWALLPAPER}/${FILENAME}.jpg"
gconftool-2 -t string -s /desktop/gnome/background/picture_options "zoom"

#get rid of cruft
rm -rf apod robots.txt

There’s a thread about this functionality at Ubuntu Forums entitled, APOD? anyone.

HOWTO: Creative X-Fi sound card on Ubuntu Gutsy

I know Hardy is due out in less than a month’s time, but I got a Creative Sound Blaster X-fi XtremeGamer on super rebate a few weeks ago and, dammit, I want sound on Linux!

Unfortunately, Creative only recently released specifications to OSS and ALSA. OSS has a driver already in its newest release, but OSS and Ubuntu have never played well together. Most of Ubuntu’s applications prefer ALSA or ESD. Creative did release an ALSA driver a while ago, but only for 64-bit distros.

Fortunately, I’m running Ubuntu Gutsy amd64, so I can use the driver. Fear not, though, one user on Ubuntu Forums has tried it on 32-bit and reported success. He’s refining the process, though, and figuring out how exactly he did it.

NullHead, wolfc, and some others on Ubuntu Forums refined a process by which folks can install the Creative X-fi driver. Unfortunately for Gutsy-using folks, the process requires a kernel recompile because the Gutsy kernel uses SLUB instead of SLAB.

However, the process does work. After compiling the kernel, there’s a a few simple steps and a single patch which customizes the source for Ubuntu users.

Read the thread at Ubuntu Forums entitled [HOW-TO] X-fi beta driver.

It’s really nice to have sound in Ubuntu after not having it for approximately two weeks. I’ve been hopping onto another computer when I need it and using that other computer as my jukebox.

PulseAudio is the new default sound server in Ubuntu Hardy (8.04 for those readers who are out-of-the-loop), but it retains its compatibility with ALSA, OSS, ESD, and various other sound servers in Linux. Hopefully, ALSA will have a driver out soon.

Apparently, a company called Auzentech is working on higher-quality drivers for Windows for its licensing of Creative’s X-Fi technology. It’s also working on Linux drivers, but the ETA isn’t until Q4 2008. If Auzentech can pull it off, you bet your sweet bippie I’ll trade my XtremeGamer for one of its cards. I like to support those who support Linux :-)

Bibtex and LaTeX2RTF for Winefish

I’ve been using Winefish for my LaTeX needs lately since there’s not a native-for-Linux version of Led, my favorite LaTeX editor for Windows. However, Winefish doesn’t have external commands in it for Bibtex and LaTeX2RTF, two programs I use quite frequently.

So, here are the lines one must add to ~/.winefish/rcfile to have Bibtex and LaTeX2RTF show up in Winefish’s external menu.

outputbox: Latex2RTF:([^\:]+)\:([0-9]+)\:(.*):1:2:3:latex2rtf '%B':1:
outputbox: Bibtex:.*:-1:-1:0:bibtex '%B.aux':0:

Alternatively, one can also add the options from within Winefish in the TeXBox tab of the Preferences panel in the ? menu. The options are pretty easy to surmise from the above lines. LaTeX2RTF mirrors LaTeX, with the command line changed, and Bibtex is pretty simple, too.

Whoa, Vista really does suck

I’ve used Ubuntu 7.10 (Gutsy) nearly exclusively for approximately a month as of today. I’ve used Windows XP here and there, but only for gaming or using a program such as OCCT that doesn’t have a Linux equivalent (if you, dear reader, know of a PSU voltage graphing program for Linux, please let me know in a comment).

Today, I helped my grandfather set up a new computer he’d bought during the summer. It’s a Compaq with a Celeron 365, 512 MB of RAM, a Radeon XPRESS 1100, and Windows Vista. It crawls. It’s my first experience with Windows Vista, and it was horrific.

The computer took more than forty minutes to uninstall Norton Antivirus, a trial of which had expired before my grandfather had even used the computer. Windows Explorer whited-out windows constantly because the computer was so loaded down with bloatware, including Yahoo! Search, HP Advisor, unnecessary, constantly intervening programs asking for Internet service provider contracts (grandfather already has an ISP—NetZero).

I can’t believe that Compaq could conscionably sell a computer like this.

I hooked him up with Firefox and Thunderbird, and attempted to install AVG’s free edition, the best free anti-virus available for Windows. It failed, though, because the version I had on my toolkit flash drive was the version just prior to Grisoft’s addition of Vista support.

Ridding this thing of all of the unnecessary crap was virtually hopeless. I would have liked to outfit the computer with Gutsy, but I didn’t have a CD more current than Edgy with me (700 MB on dial-up = fail). There’s also no one I know around Louisville who has enough Linux experience to help him out regularly, and I live 420 miles away.

Honestly, Vista feels like a beta of an operating system. I turned off the Aero eye candy in order to speed things up a bit, but it didn’t help significantly.

Now, after having used the latest in Linux (Gutsy) and the latest in Windows (Vista), I’m even more convinced that the Linux desktop experience is less intrusive, quicker, more usable, and, well, far superior to its Microsoft-pushed counterpart.

We’ll see in a few months how Mac OS X is—I plan to get one of Apple’s rumored ultraportables, should it materialize.

Update: Two User Access Control dialogs just to rename a shortcut on the desktop, neither of which say anything about what the user is doing? Excessive bullcrap. A single “Are you sure?” dialog would suffice. If this is indicative of the rest of the Vista experience, I think I’ll stick with Windows XP for my Windows needs.

Ontario Linuxfest: The conference

We just got back from the conference. Wow, what a great day!

I took more than 100 pictures.

maddog gave a keynote similar to his talk at Ohio Linuxfest, so I think I’ll have all the slides between the two presentations.

Of particular interest to me was the talk on open formats. The presenter is the guy who implemented all of the import and export formats for Gnumeric, an open-source spreadsheet program that is a part of GNOME. He basically said that the ODF vs OOXML argument is silly, and that open source people should be advocating open office suites such as OpenOffice.org, KOffice, and GNOME’s office programs (Gnumeric, Abiword, Gnome-DB). He said that Microsoft is doing a very good thing in releasing the specs for its format, and that we wishes that ODF was subjected to the kind of scrutiny that OOXML has endured. I’ll write more on this in my write-up; I took pics of all the slides and made a lot of notes because his argument was so well-developed and his experience so deep that he is really quite authoritative.

We’re headed out now to get some sushi at a nearby Japanese bistro, then we’re headed to the after-party at the Toronto Congress Centre, the same location as the conference.

Toronto-bound for Ontario Linuxfest

Keep an eye on BIOS_LEVEL this weekend and early next week: I’m headed to Toronto with Jonathan and Pat for Ontario Linuxfest. I’ll be taking pictures and maybe writing a blog post if I have Internet access.

I covered Ohio Linuxfest a few weekends ago for BIOS_LEVEL. If you missed it, check out the Ohio Linuxfest review at BIOS_LEVEL.

HOWTO: Run mIRC on Ubuntu Linux

mIRC logo

Back in the day, before I saw the light of Linux, I was an mIRC user. I’d grown quite fond of mIRC, and even registered it to support Khaled Mardam-Bey.

However, now that I’m slowly attempting to move the majority of my major activities to Linux, I’ve found that I don’t really like the majority of the graphical IRC clients available for Linux. Xchat is nice, and Konversation is probably my favorite of them, but I yearned for mIRC. Pidgin and Kopete use too much of an IM-style window for it, especially the latter.

Somewhat unsurprisingly, mIRC works out of the box using Wine.

Download the installer from mirc.com to your home directory or Desktop. Fire up a terminal and do wine mircSetup.exe. Be sure to replace mircSetup.exe with the actual name of the executable. For me, it was mirc63.exe. Also, make sure that you have Wine installed (sudo apt-get install wine) and configured (winecfg).

Once it’s installed, you can execute it with wine C:\\Program\ Files\\mIRC\\mirc.exe. I’d recommend creating an application launcher for it on Gnome-panel or KDE Kicker. You can use the post icon as the icon for the launcher.

If the fonts look odd, you can install msttcorefonts with sudo apt-get install msttcorefonts and it should look better. Additionally, find a nice Windows theme somewhere and use it to make the Wine windows look more like the Human theme of Ubuntu. If you find such a theme, comment below so I can get it, too ;-)

Ohio Linuxfest 2007: The Review

Check it out over at BIOS_LEVEL, Obsidian‘s and my hardware review and Linux advocacy site!

Several members from BIOS_LEVEL attended the Ohio LinuxFest on the weekend of October 3rd. The trip in was easy–Columbus traffic didn�t get us down. Morning session was awesome. Keynote was great, Max Spevack of Red Hat/Fedora gave an talk on community and freedom.

Read more!

Ohio Linuxfest 2007: Morning

Morning session was awesome. Keynote was great, Max Spevack of Red Hat/Fedora gave an informational talk on the community.

Afterwards, the chief evangelist of Neuros demonstrated the Neuros OSD. Then, two GNOME guys gave an overview of new features in Gnome 2.20.

The trip in was easy–Columbus traffic didn’t get us down.

More to come later when I’ve got a faster, more reliable connection. The hotel’s wired network was out of IPs, and we’re having problems finding a decent wireless network with a decent pipe.

Ontario Linuxfest, anyone?

I’ve got an interest in attending Ontario Linuxfest in Toronto the weekend of October 13, 2007.

I can get a hotel for a little less than $300 for the weekend, and if we can get four people, that’s $75/person. Add in about $70 for 264 miles worth of gas (25 mi/gal, ~$3.10/gal, leave from my house in 16156) and it’s about $92.50 per person plus food. Unfortunately, there is a cost of registration—$20 for students and $40 for not-students. I have a feeling that will keep quite a few people out.

maddog is one of the keynote speakers. There are a few other talks I want to hear, too:

  • Khalid Baheyeldin – Performance Tuning and Optimization of High-Traffic Web Sites
  • Ian Darwin – OpenMoko: Free your phone and your mind will follow
  • Mike C. Fletcher – One Laptop Per Child
  • Jody Goldberg – ODT vs. OOXML
  • Sarah Pullman – Yoga for Geeks

If you’re interested, leave a comment on hit me up on Skype or AIM.