October 25th, 2010 |
Published in
UDS
So, as you probably already know, since it is quiet in Orlando, I am not at UDS. Because of that, I am tuning in remotely. Thanks to Harald for the Amarok script that is working amazingly right now. Thus far, here is my little summary of what I have witnessed today:
- Mark announced Unity by default, in turn uniting a bunch of pissed off people on Twitter. Psst! gnome-desktop-environment will still be there
- The live video feed of Mark looked black and white, except Ubuntu was aubergine
- Gobby (gobby-0.5 is the package you want to use by the way, or kobby as it actually works with this UDS) can’t make up its mind on if it wants to be up or down
- Kubuntu is thinking about going with the stable Kontact/KMail, stable being version 3.5.10, until KMail2 is alive and well
- Scott brought up default browsers, in turn causing every Kubuntu developer to bring out some fangs and claws
- Oh and concerning the live video feed, it is true about the camera adding 5 or more pounds, but I also learned it also removes 5 or more hairs on your head at the same time
Working remotely, I also realized something else, and this concerns the plenaries. Remotely, these would be best at the end of the day, as then I would only have to worry about the lunch break as a disruption for remote participation. Instead of 2 hours of disruption, there would only be an hour. Also, I remember the plenaries after lunch while being at UDS physically. At times, they were hard to stay awake for after having a belly full of food. I think having them the last hour of the day as the closer would be good, as it brings everyone to the same location at that time.
Also, playing the UDS live audio streams along with Severed Fifth is quite amusing.
October 18th, 2010 |
Published in
FYI, Tutorial
Just a quick post showing a couple of hacks I have done using OfflineIMAP and Byobu on my server. I use OfflineIMAP to download my email from GMail and then use Mutt to read that email. I use Byobu on my server because I run Irssi, Mutt, and a shell, and of course Byobu makes this easy. So here we go.
OfflineIMAP
First, here is my ~/.offlineimaprc configuration:
[general]
metadata = ~/.offlineimap
accounts = GMAIL
maxsyncaccounts = 1
ui = Noninteractive.Quiet
[Account GMAIL]
localrepository = LocalGmail
remoterepository = RemoteGmail
[Repository LocalGmail]
type = Maildir
localfolders = ~/.maildb/GMAIL
#restoretime = no
[Repository RemoteGmail]
type = Gmail
remotehost = imap.gmail.com
remoteuser = your_gmail_login@gmail.com
remotepass = your_gmail_password
ssl = yes
realdelete = no
To fire off OfflineIMAP, I use a cronjob:
*/5 * * * * $HOME/bin/cron-run-offlineimap.sh
And my ~/bin/cron-run-offlineimap.sh looks like this:
#!/bin/sh
ps aux | grep "\/usr\/bin\/offlineimap"
if [ $? -eq "0" ]; then
logger -i -t offlineimap "Another instance of offlineimap running. Exiting."
exit 0
else
logger -i -t offlineimap "Starting offlineimap..."
chmod +x $HOME/.byobu/bin/1234_OFFLINEIMAP
offlineimap
logger -i -t offlineimap "Done offlineimap..."
chmod -x $HOME/.byobu/bin/1234_OFFLINEIMAP
exit 0
fi
You can see that this script changes the file mode bits to executable when it runs, and removes the executable bit when it finishes, on the ~/.byobu/bibn/1234_OFFLINEIMAP file which is a Byobu script.
Byobu
Here is what ~/.byobu/bin/1234_OFFLINEIMAP looks like:
#!/bin/sh
printf "\005{= rw}IMAP\005{-}"
So now every time my OfflineIMAP cronjob runs, I will get IMAP in my Byobu bar.
A super simple hack that lets me know when OfflineIMAP is running. Another reason I use this is because sometimes OfflineIMAP hangs, and when it does, I will know this if IMAP stays displayed in Byobu after a minute or so. Then I can check /var/log/syslog to see exactly when OfflineIMAP started. Normally OfflineIMAP runs for about a minute on my server every check. This could all be streamlined into one script as well with Byobu, but I know you don’t want to fire off processes or other things that may cause resource hogging.