Netflix Broken on Chrome

In the past, Netflix would not work in Linux without jumping through hoops. About a year ago or so, Netflix added support for Chrome under Linux. This worked fine with no extra steps required.

Today, however, I loaded up Netflix for the first time in a while and the web page was broken. Missing links, text that should have been links, missing graphics–totally unusable. A little Googling turned up that some extensions can break Netflix. AdBlock is one of them. The solution is to whitelist netflix.com in the extension. Unfortunately, I had already done that. The next step is to disable extensions one at a time to find the guilty party. This time it was Privacy Badger. Luckily, it has a domain whitelist setting also. Adding www.netflix.com fixed the problem.

Uncategorized

Comments (0)

Permalink

SSH X Forwarding when using Sudo

When you ssh -X to a host, SSH handles X forwarding for you. However, if you run a sudo command in that session, the process breaks down. Here’s how you can make it work:

you@local$ ssh -XC server
you@server$ xauth list
 [output]
you@server$ sudo su - otheruser
otheruser@server$ xauth add [paste output from "xauth list"]
otheruser@server$ xterm (or other X application)

Source: http://backdrift.org/x-forwarding-sudo-ssh-session

Uncategorized

Comments (0)

Permalink

Video in Piwigo

To play video in a Piwigo photo gallery, you need the VideoJS plugin.  Set-up information is here.

Videos need to be in MP4 format.  To convert from MOV, use winff (available in the Ubuntu repository).

Uncategorized

Comments (0)

Permalink

Upgrading Nexus 5 from CyanogenMod 11 to 12.1

  1. On the phone, perform a Nandroid backup from ROM Manager
  2. Under Settings > Developer options, enable Android debugging
  3. Connect the phone via USB to your computer
  4. On your computer, run adb pull /mnt/shell/emulated/clockworkmod/backup
  5. On the phone, turn off Android debugging
  6. Under settings > About Phone > CyanogenMod Updates, download the update and install it

Uncategorized

Comments (0)

Permalink

Installing OTF Fonts in Ubuntu 14

Copy the .otf files to /usr/share/fonts/opentype. (No need to run fc-cache.)

Uncategorized

Comments (0)

Permalink

Back Up Trello to Synology NAS

I’ve been using a paper-based planner for years. From time to time, I’ve tried to convert to an electronic system found them all lacking. My most recent attempt is with Trello and it might just work.

Before fully commiting to anything in the cloud, I wanted to have a backup strategy in place. Trello will let you export your data in JSON format. All I needed to do is automate that. I found a script called trello-backup that will do the job. I set it up in my home directory according to its instructions and verified it saved my data.

Now to automate it… The Synology DS 411+II seems like a logical choice since it runs 24/7 and is itself backed up every night. This wasn’t as easy as I would have expected. Synology has their own cron and from what I Googled, it’s rather picky. They also have an interface to it in the Control Panel. This was also picky, but here’s how I got it to work:

  1. Log in to the NAS Web interface as root
  2. From the Control Panel, select Task Scheduler
  3. Create a task of type “user-defined script”
  4. Name the task “Trello Backup” and have it run as root.  You can try to run as your user name, but it won’t work.
  5. For the run command, enter “php /volume1/homes/<you>/trello-backup/trello-backup.php 2>&1 > /var/log/trello-backup.log”
  6. Select the Schedule tab and set it to run daily
  7. Upload the contents of the working trello-backup directory to a directory of the same name in your home on the NAS
  8. Make sure everything’s working by highlighting the Trello Backup task and selecting run

Uncategorized

Comments (0)

Permalink

Ubuntu 14.04 Hangs After Log In

After logging in to Ubuntu 14.04 with the Unity desktop, Jennings, a Lenovo K450E with an NVidia GTX 750 graphics card, would sometimes hang. The computer wasn’t locked up, just the desktop: the mouse would move and the TTYs were still fully functional, but the desktop would be blank. This has happened twice. Once it happens, it won’t work again.

The first time this happened, I reinstalled Ubuntu. I’ve since found a less expensive fix, which is outlined below (see Installing Ubuntu 14.04 on Jennings for the NVidia driver in the penultimate step):

sudo apt-get update
sudo apt-get install --reinstall ubuntu-desktop
sudo apt-get install --reinstall unity
sudo apt-get remove --purge 'nvidia*'
sudo service lightdm stop
sudo sh ./NVIDIA-Linux-x86_64-340.24.run
sudo reboot

Uncategorized

Comments (0)

Permalink

Changing the Action of the Power Button in Ubuntu 14

To alter the setting of the computer’s power button in Ubuntu 14, you’ll need the gnome-tweak-tool package. Once installed, it’ll be in the Launcher as “Tweak Tool”.
Under “Tweaks” on the left, select “Power”. From there you can change the Power Button Action.

Uncategorized

Comments (0)

Permalink

Canon RAW .CR2 Thumbnails

By default, “Files” will not show thumbnails for Canon RAW .CR2 files. There are two things that need to be changed to do this:

  • Install the package gnome-raw-thumbnailer.
  • Change the settings in “Files” to enable the thumbnails for larger files. From the “Files” menu, choose Edit > Preferences. Select the Preview tab. Change “Show thumbnails” to Always and “Only for files smaller than” to 100 MB.

Uncategorized

Comments (0)

Permalink

Blank TTY on Ubuntu 14.04

Jennings, the new Lenovo PC has presented a few challenges. The most recent one is no display on the TTYs. Although the default interface is graphical, pressing CTL+ALT+F1 (or F2 through F6) will get you a text console. This is useful for quick operations or when something wonky happens with X. But doing so on Jennings presented a black screen with no video. I was curious to see if this was a display-only issue since Jennings has an NVidia card in it. I pressed CTL+ALT+F1 and entered my log-in, then top. I jumped back to the X session with CTL+ALT+F7 and entered ps aux. Sure enough, top was running. I went back to the TTY, killed top and logged out. Googling for “ubuntu 14.04 blank tty” turned up some advice that Grub may be using a graphical log in that’s incompatible with my video card. The cure is to edit /etc/default/grub as root, uncomment out the line GRUB_TERMINAL=console, then sudo update-grub and reboot.

Uncategorized

Comments (1)

Permalink