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

Recovering Deleted Files from an SD Card

In Linux, use PhotoRec, part of the testdisk package in Ubuntu.

Uncategorized

Comments (0)

Permalink

Upgrading to CyanogenMod 11 from 10.2

This was an easy upgrade:

  1. Perform a ROM backup with ROM Manager
  2. Copy the backup somewhere off the phone
  3. Download the SNAPSHOT-M3 zip file and the Google Apps zip
  4. Put both zip files on the phone in /sdcard/0
  5. Boot into recovery mode
  6. Wipe cache
  7. Install CM and Gapps from SDCard
  8. Reboot
  9. No issues at at all!

Uncategorized

Comments (0)

Permalink

Dropbox Icon Missing in Ubuntu 13.10

Dropbox works fine under Ubuntu 13.10 except that the Dropbox icon does not appear on the notification bar at the top of the screen. The answer is to install libappindicator1.

Uncategorized

Comments (0)

Permalink

Lexmark Pinnacle Pro901 on Ubuntu 13.10

From Lexmark’s site, on the Downloads tab, under Drivers, select Linux, Ubuntu 12.04 and download “32-bit Postscript Printer Description (PPD) for CUPS-based and OpenOffice Printing with Debian-based packaging” and “Printer Utility for 32-bit Linux distributions with Debian-based packaging”.  Clicking on each file brings up Ubuntu Software Center.  Click the Install button.  There’s a complaint that the “package is of bad quality” because of file ownership.  Choose “Ignore and Install”.  Remember to install both packages. After installation, fix the problem:

$ cd /usr/local/lexmark/v3/bin
$ sudo chgrp bin printfilter
$ sudo chmod 755 printfilter lxusb

To set up Cups, run the Lexmark Print Utility. It will find the printer for you.

Uncategorized

Comments Off

Permalink

Cyanogenmod 10.2 Galaxy Nexus (Verizon) Installation

  1. Create a back up with Titanium Backup
  2. Perform a Nandroid backup
  3. Download Cyanogenmod to /sdcard/0 on the phone
  4. Download Google Apps to /sdcard/0 on the phone
  5. Boot into Recovery, perform a factory reset, then load Cyanogen and GApps from Zip
  6. Reboot
  7. Sign in to Google, then Cyanogenmod
  8. Restore data as needed from Titanium Backup

Uncategorized

Comments Off

Permalink

Ubuntu 13.10 Session Dialogs

The commands to bring up the log out and shut down dialogs have changed in Ubuntu 13. What used to be gnome-session-save is now gnome-session-quit. LinuxG.net has a summary of the commands. To attach these to a hot key, run System Settings, select Keyboard, and go to the Shortcuts tab. The log out and lock screen hot keys are under System. I set Lock Screen to Ctrl-Alt-L and Log Out to Ctrl-Alt-U. Under Custom Shortcuts, I add Shut Down, and set it to run gnome-session-quit --power-off when Ctrl-Alt-Del is pressed.

Uncategorized

Comments (0)

Permalink