new recovery string

A new stripped down recovery string, just the basics:

sudo apt-get install ne ssh sshfs smbfs filezilla openbox obmenu obconf tint2 wmii nitrogen agave ubuntu-restricted-extras jedit exuberant-ctags gnome-schedule nautilus-open-terminal nautilus-script-manager grsync preload network-manager-pptp network-manager-openvpn

The older string:

sudo apt-get install ne ssh sshfs smbfs filezilla php5-cli php-net-socket php5-imap phpmyadmin paman paprefs pavucontrol mysql-server-5.1 mysql-client-5.1 ubuntu-restricted-extras jedit exuberant-ctags gnome-schedule tangerine-icon-theme human-theme nautilus-open-terminal nautilus-script-manager easystroke grsync gnome-alsamixer preload gimp python-gtk2 python-gtk2-doc python-gtk2-tutorial python-setuptools devhelp glade winpdb network-manager-pptp network-manager-openvpn compizconfig-settings-manager && sudo add-apt-repository ppa:chromium-daily/ppa && sudo apt-get update && sudo apt-get install chromium chromium-browser && sudo pear install Net_POP3 Auth_SASL  && chmod go-w ~/ && chmod 700 ~/.ssh & chmod 600 ~/.ssh/authorized_keys

finally…kindle on maverick

I was able get this working on Ubuntu Maverick 10.10, thanks to the links below. Here is the skinny. Run this on the command line:

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.3

when done, download this file (http://d1xhj100piaj9u.cloudfront.net/25338/KindleForPC-installer.exe). When doing so, it should give you the option of having Wine open it. If not, make it executable and run it from the command line.

wget http://d1xhj100piaj9u.cloudfront.net/25338/KindleForPC-installer.exe
chmod +x KindleForPC-installer.exe
./KindleForPC-installer.exe

This worked for me without setting Wine to run this app as windows 98 as well. Seems wine1.3 could make it work, while the default wine1.2 did not, at least for me. Kept getting the “fixme:system:SetProcessDPIAware stub!” error. Thanks to the following:

link one – http://ubuntuforums.org/archive/index.php/t-1690235.html
link two – http://harikrish.wordpress.com/2011/04/17/installing-kindle-for-pc-on-ubuntu-10-10-maverick-meerkat/
link three – http://www.winehq.org/download/ubuntu

we’ve been cialis’d

Some moron hacked the site, spraying “buy cialis” links everywhere. I fixed about twenty of them, but there are plenty more. Sorry about that.

Dude, I get like three page views a year. But I’m sure your 8 hours of effort was worth it.

Capturing webcam video on Ubuntu via command line

If you have a webcam and want to capture basic video with sound, first check here and then try cheese, a simple app that seems to work pretty well.

But  if you want to capture video from the command line, I did the following. It may help to enable the medibuntu repositories first!.

sudo apt-get install mencoder

First, you need to know your devices. One way to do this is to run these commands before, and then after you plug in your webcam:

ls /dev/video*

ls /dev/audio*

Then you can use this command (note these are for my devices, video1 and audio1, and the output file is webcam.avi):

mencoder tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video1:forceaudio:adevice=/dev/audio1 -ovc lavc -oac mp3lame -lameopts cbr:br=64:mode=3 -o webcam.avi

Comments back on

Not that it matters all that much, but I’ve finally figured out you’ve got to install a good set of spam filtering plugins for comments to be anything but garbage. I’ve enabled them, and comments have been open for several weeks, with no spam yet. Knock on wood of course. I’ve also turned off a caching plugin, which means comments should appear when entered.

how did I miss pulseaudio-equalizer?

From this post, instructions on how to hook up the ppa for pulseaudio-equalizer, a system-wide audio equalizer. I was looking for something like this, and it works pretty well. The only shortcomings I can see is that you are required to hit “apply” after changing the settings. No real time feedback to what you are doing. But all in all, great work.

pulseaudio-equalizer screenshot

pulseaudio-equalizer...sweet.

amazon mp3 downloader is crap for 10.04? try pymazon

pymazon totally rocks for ubuntu 10.04 x64. I’m just sayin’.

This post I wrote on fixing amazon mp3 downloader for Ubuntu Jaunty doesn’t work for Lucid. I’m sure there’s some hack or other if you aren’t lazy like I am. If you are, pymazon is a pretty amazing little replacement!

http://code.google.com/p/pymazon/

or to save you some time:

sudo apt-get install python-setuptools
sudo easy_install pymazon

pymazon image

I know I w00ted.

picasa upload fix for 10.04

From a smart user over at google-labs-picasa group, a fix for uploading photos in Picasa from 10.04. This broke sometime earlier (9.10?) and I’ve used this fix since.

To locate where your defaults.ini file is run this command:
sudo updatedb && locate defaults.ini | grep picasa

Create a backup of the defaults.ini file:
sudo cp /opt/google/picasa/3.0/wine/drive_c/Program\ Files/Google/
Picasa3/runtime/defaults.ini /opt/google/picasa/3.0/wine/drive_c/
Program\ Files/Google/Picasa3/runtime/defaults.ini.bak

Then edit the defaults.ini file with your editor of choice:
sudo vim /opt/google/picasa/3.0/wine/drive_c/Program\ Files/Google/
Picasa3/runtime/defaults.ini
replace the line -
printerURL=https://uploader.picasa.com/providers/wine/printers.php?
picasaversion=30
with this line -
printerURL=https://client4.google.com/providers/printers.html

Original link here.

Nautilus – Control L is your friend

Hitting Control-L when in Nautilus (the Ubuntu default file manager) will change your location buttons into a string field so you can enter the text manually to jump to a location. This used to be available in earlier versions of Ubuntu, but at some point went away. I never realized you could still access it this way! Good deal.  Gives you a lot more flexibility and speed sometimes.

ubuntu 9.10 (Karmic) on a dell mini 10

dell mini 10

cheap and good

I recently (maybe six months ago) bought a Dell Mini 10. Aside from the mousepad, which sucks because it does not have separate right and left click buttons, this thing rocks for the money ($230 from Dell outlet…they do a nice job with refurbs and scratch/dents).

But as with every device I own, sooner or later I get around to putting some kind of linux on it, usually Ubuntu. So it’s no different here. Here in a nutshell is how I got it working.

First, Ubuntu versions. As of this writing (early June, 2010) the graphic support for 10.04 is experimental. I could not get it working. You might be able to. If you want to try, after you do everything you’re told here, make sure you update your /etc/X11/xorg.conf as shown below then reboot. I did not get to this step before I bailed. Otherwise, if you want an easier time of it, roll with Karmic 9.10 ( i386) as I do here.

First, do your install as usual. I’m assuming you can figure all the partitioning stuff out. I actually had a hard time at first, the installer disk did not recognize my keyboard, but after the install, all was fine. Sound worked, but not wifi. First step, fix wifi. Now, please check first under “System->Administration->Hardware Drivers” because you might see a Broadcom driver. My unit had the Broadcom Corporation BCM4312 802.11b/g. Try this if you want, I did not, not because I am a free software zealot, but because I already had this workaround (1):

sudo apt-get install bcmwl-kernel-source

Reboot, should be working, at least it did for me, without further hassle. After doing it I could see the wireless access points listed when I clicked the networking icon.

Next, graphics. A little tougher.

Enter this at the command line(2):

sudo add-apt-repository ppa:gma500/ppa && sudo apt-get update
sudo apt-get install libdrm-poulsbo1 poulsbo-config poulsbo-driver-2d poulsbo-driver-3d psb-firmware psb-kernel-headers psb-modules xpsb-glx

After you do this, and follow the directions given for 9.10, it will tell you to reboot. Do this. If you end up like me, nothing happened. No difference in graphic performance. Going to System->Preferences->Display it showed an unrecognized monitor and was still at 800×600. Bummer. It also mentions if this does not work you can enter something along the lines of “sudo dpkg-reconfigure psb-kernel-source” which of course told me “psb-kernel-source not installed” or some such thing.

So onward and forward, and google-help-me, I came up with this (3):

Install the following jaunty repositories in your Software Sources:

deb http://ppa.launchpad.net/ubuntu-mobile/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/ubuntu-mobile/ppa/ubuntu jaunty main

then:

sudo apt-get update
apt-get install  dkms fakeroot
sudo apt-get install libdrm-poulsbo1
sudo apt-get install poulsbo-driver-2d poulsbo-driver-3d psb-firmware
sudo apt-get install psb-kernel-source psb-kernel-headers psb-modules

You will get messages saying some of these had already been installed by the previous command. But not all of them! I’m not sure why, since this series of commands very nearly matches the ones given earlier. Not a big deal. I’m not trying to make this perfect, I’m just conveying what I did, exactly, and it worked. But wait! You’re not done yet. Before you reboot, back up your xorg.conf file and edit it:

sudo cp /etc/X11/xorg.conf   /etc/X11/xorg.conf.orig

and add/replace text in the original xorg.conf file as follows:

Section "Device"
Identifier      "GMA500"
Option "AccelMethod" "EXA"
#        Option "DRI" "off"
Option "MigrationHeuristic" "greedy"
Option "IgnoreACPI" "yes"
Driver "psb"
EndSection
Section "DRI"
Mode    0666
EndSection

That is exactly and entirely the contents of my xorg.conf file. I rebooted, and voila! 1366×768 graphics and much, much smoother flash video. Hopefully you get the same results! As a little bonus, here is my “netbook” version of my all-in-one command to get your netbook loaded with goodies without overwhelming it. Edit to taste, for example if you don’t want the chromium browser, dump all of that (but it’s kickass!):

sudo apt-get install ne ssh sshfs smbfs filezilla php5-cli php-net-socket php5-imap paman paprefs pavucontrol  ubuntu-restricted-extras jedit exuberant-ctags gnome-schedule tangerine-icon-theme human-theme nautilus-open-terminal nautilus-script-manager easystroke grsync gnome-alsamixer && sudo add-apt-repository ppa:chromium-daily/ppa && sudo apt-get update && sudo apt-get install chromium chromium-browser

(1) http://jetpackweb.com/blog/2009/10/29/ubuntu-9-10-karmic-koala-and-broadcom-bcm4312/

(2) https://wiki.ubuntu.com/HardwareSupportComponentsVideoCardsPoulsbo#karmic

(3) http://swiss.ubuntuforums.org/showthread.php?t=1253406