Uncategorized

Boon Upgrade to Ubuntu 14.04

I tried to upgrade Boon (an Ubuntu 13.10 installation) to 14.04. During the upgrade, the / file system ran dangerously low on space. I was removing stuff from the file system to give it enough breathing room and got no errors, but when I rebooted, Grub failed to load:
Error: symbol 'grub_term_highlight_color' not found
Entering rescue mode...

I found a reference to a bug causing Grub to break which had a fix.

I booted my live USB drive of 32-bit Ubuntu 13.10 (it took a few times–see my notes about the hard lock-ups). Once I got it running, I did the following:

sudo mkdir /mnt/u13boot
sudo mount /dev/sda6 /mnt/u13boot
sudo grub-install --boot-directory=/mnt/u13boot /dev/sda

(/dev/sda6 is the location of the /boot directory of the installed Ubuntu and /dev/sda is where Grub is installed.)

Uncategorized

Comments (0)

Permalink

Can’t Log In to Gallery2

I could not log in to Gallery2 from either my account or the admin account. This is the error (only shown when logging in to admin):

Error (ERROR_COLLISION)
in modules/core/classes/GallerySession.class at line 712 (GalleryCoreApi::error)
in modules/core/classes/GallerySession.class at line 322 (GallerySession::_acquireNewPersistentSession)
in modules/core/classes/GallerySession.class at line 513 (GallerySession::start)
in modules/core/classes/helpers/GalleryUserHelper_medium.class at line 362 (GallerySession::regenerate)
in modules/core/classes/helpers/GalleryEventHelper_simple.class at line 59 (GalleryUserHelper_medium::handleEvent)
in modules/core/classes/GalleryCoreApi.class at line 2238 (GalleryEventHelper_simple::postEvent)
in modules/core/UserLogin.inc at line 143 (GalleryCoreApi::postEvent)
in main.php at line 250 (UserLoginController::handleRequest)
in main.php at line 104
in main.php at line 88

A little Googling turned up this error message with the cause being two user accounts with the same email address. To check, I logged in to the MySql server from the command line:
mysql -u {admin} -p -h mysql.{mysite}.com gallery2

show tables;
select * from g2_user;

No two users had the same email address. Another post mentioned a corrupt session map table. So:

select * from g2_SessionMap;

Sure enough, MySql complained the table had been marked “crashed”. Next:

check table g2_SessionMap;
repair table g2_SessionMap;

And that was it!

Uncategorized

Comments (0)

Permalink

Enable Tethering on Nexus 5 with TMo

Instructions are here:
http://forum.xda-developers.com/google-nexus-5/help/nexus-5-tethering-block-t2512674/page7#70

Uncategorized

Comments (0)

Permalink

Transfer Tasker to a New Phone

On the old phone, start Tasker and select Tasker menu > Data > Backup. This will create backup files in /sdcard/Tasker.
Copy /sdcard/Tasker/userbackup.xml and /sdcard/Tasker/profiles/* to the same locations on the new phone.
On the new phone, start Tasker and select Tasker menu > Data > Restore.

Uncategorized

Comments (0)

Permalink

Custom ROM for Nexus 5

The Nexus 5 comes with a locked boot loader, but there are no tricks required to unlock it and either root the OS or install your own OS.

Follow these steps to unlock the boot loader, install a custom recovery and either root or install a custom ROM:
http://forum.xda-developers.com/google-nexus-5/general/guide-nexus-5-how-to-unlock-bootloader-t2507905

Before performing step 3 “Rooting”, option B:
After Restarting Android, go to Settings > About Phone and tap Build number 7 times to activate developer mode. Then go to Settings > Developer Options and enable USB Debugging so you can push files to the device.
To get CyanogenMod 11: http://download.cyanogenmod.org/?device=hammerhead&type=snapshot
To get Google Apps (GApps): http://wiki.cyanogenmod.org/w/Gapps
(Put CM11 and GApps in /sdcard/0 on the phone with

sudo adb push file /sdcard/.

(Yes, this will put them in /sdcard/0.)

Uncategorized

Comments (0)

Permalink

Gimp Disabled Menu Options

With Ubuntu 13.10, menu options in Gimp (and other programs) will sometimes be disabled when they shouldn’t be. To prevent this, start Gimp with this command:

UBUNTU_MENUPROXY=0 gimp

Uncategorized

Comments (0)

Permalink

Starting Services on Synology DSM 5

Since updating my Synology DS411+II to DSM 5, pyTivo doesn’t run when the NAS starts. (This may have been broken in an earlier DSM release, because I was quite a few versions out of date when I upgraded.) The software is still on the NAS as I installed it. If I go to /usr/local/etc/rc.d and run

pyTivo.sh start

it runs fine, so the software is OK, but the startup script isn’t getting run by init. I found a post in the Synlogoy Forums about the locations of start-up scripts. The solution is to put the pyTivo service script in /usr/syno/etc/rc.d. With the software installed as above, I did this on the NAS:

mv /usr/local/etc/rc.d/pyTivo.sh /usr/local/pyTivo/.
ln -s /usr/local/pyTivo/pyTivo.sh /usr/syno/etc/rc.d/S99pyTivo.sh

Then I rebooted the NAS and confirmed pyTivo was running at http://<NAS>:9032/

Uncategorized

Comments (0)

Permalink

Downloading Video from TiVo Premiere

The instructions for downloading video for the Premiere Elite are nearly the same as for the Series 2 TiVo. The only difference is the Now Playing web page for the Premiere will list two formats, MPEG-PS and MPEG-TS. Tivodecode crashed trying to decode the MPEG-TS format, so use MPEG-PS.

Uncategorized

Comments (0)

Permalink

Viewing Canon RAW .CR2 files in Ubuntu 13.10

Install gnome-raw-thumbnailer.

Uncategorized

Comments (0)

Permalink

Boon Installation of Ubuntu 13.10

Boon is a 64-bit AMD machine with 2 GB RAM. It has Ubuntu 10.04 LTS on it which, while still supported, is a little long in the tooth. For instance, it doesn’t support my Canon 60D RAW files very well and a few applications are no longer supported, including Chrome and the newest upgrade of BeerSmith 2.
Since the OS on this computer is so old, I decided to perform a new install and migrate the user accounts.

The installation is going to replace an Ubuntu 9 installation. I renamed the Ubuntu 9 partitions for Ubuntu 13. Here’s what will be used:

/ on LVM volume ubuntu13-root, 10GB ext4
/home on LVM volume ubuntu13-home, 32 GB ext4
/boot on /dev/sda6, 9GB ext4 (yes this is unnecessarily large, but there was one chunk left at the end of the disk)
swap on /dev/sdb9, 3GB swap
Boot loader installed on /dev/sda

Both Ubuntu 13.10 64 and 32-bit and 12.04 LTS experienced hard lock-ups running from the USB drive and after logging in when installed to the hard disk. It seems the problem is a conflict with the NVidia graphics card and the Nouveau drivers.  Because of this it took a few tries, but eventually the installer was successful.  The first step when booting up the new OS is to Ctrl-Alt-F1 to a text terminal, log in and replace the Nouveau driver:

sudo apt-get install nvidia-current

From there, it was a mostly normal set up.

Settings > Appearance > Auto hide launcher on

Open a terminal and install Synaptic, which is much faster than the Ubuntu Software Center:

sudo apt-get install synaptic

In synaptic, install gkrellm, nautilus-dropbox, keepassx, and emacs.  From Firefox, install Chrome.  After starting each of these except GKrellm and Emacs, right click on the respective application icon on the Launcher and lock it to the launcher.  GKrellm should start at log in.  To do that, run Startup Applications and add GKrellm.  The executable is /usr/bin/gkrellm.

To keep the rest of the family happy, I want the old 10.04 LTS version to boot by default.  So before going further, that should be done with Grub Customizer.  Start Grub Customizer from the Dash.  Under List Configuration, move the entry and Advanced Options group for Ubuntu 10 to the top.  Under the General Settings tab, change the default entry to Ubuntu 10.  Under “advanced settings”, uncheck GRUB_HIDDEN_TIMEOUT_QUIET.  Save and reboot to test it. The Grub configuration wasn’t working. To find out why, I installed Boot-Repair and ran the report generator. Grub was updating the boot loader on /dev/sda, but BIOS was booting /dev/sdb. Telling Grub Customizer to install the the MBR on /dev/sdb fixed the problem.

Google Maps in Chrome is pinging the CPU at 100% and taking a long time to update. It’s running just fine in Firefox. I read while diagnosing the Nouveau driver problem that new versions of Chrome disable hardware acceleration on older NVidia cards. It looks like that’s what’s happening, as shown in chrome://gpu. There’s an article on correcting this. I enabled these to (mostly) fix it (Chrome version 33.0.1750.146) in chrome://flags:

  • Override software rendering list
  • GPU Accelerated SVG Filters

Install the Logical Volume Manager GUI, which is in package system-config-lvm. There’s currently a bug starting it, so rather than running it from the Dash, run it from the command line with

sudo /usr/share/system-config-lvm/system-config-lvm.py

Set up links to the Ubuntu 10 file systems for reference by adding these lines to /etc/fstab:

/dev/VolGroup00/ubuntu-10.04-root /mnt/ubuntu10-root ext4 ro,user,noauto 0 0
/dev/VolGroup00/ubuntu-10.04-home /mnt/ubuntu10-home ext4 ro,user,noauto 0 0

Create the mount directories with

sudo mkdir /mnt/ubuntu10-root
sudo mkdir /mnt/ubuntu10-home

Mount the file systems:

sudo mount /mnt/ubuntu10-root
sudo mount /mnt/ubuntu10-home

Next, mount the NAS.

Install Oracle Java 8:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

Install Minecraft for the kids:

sudo cp -a /mnt/ubuntu10-root/usr/local/games/minecraft* /usr/local/games/.

Install GnuCash and soft link the ~/gnucash directory to the NAS. Under Edit > Preferences, select the Register Defaults tab and change Default Style to Transaction Journal.

Migrate users and home directories

sudo cp -a /mnt/ubuntu10-home/{user1,user2,user3} /home/.

Edit /etc/passwd and copy the entries for the migrated users from the file of the same name on the old file system. This is actually the list of users, not passwords. To copy the passwords, do the same for /etc/shadow. Since all users in Ubuntu have their own group, also repeat for /etc/group.

Uncategorized

Comments (0)

Permalink