Tuesday, November 14, 2017

Tensorflow ImportError When Using Screen

When trying to use Tensorflow in a remote setting using screen, I ran into the following error:

ImportError: libcublas.so.8.0: cannot open shared object file: No such file or directory

I forget where I found the fix, but the issue had to do with how screen preserves the environment variables of the system (It doesn't). Here's the fix:

screen env LD_LIBRARY_PATH=$LD_LIBRARY_PATH bash

This opens a new screen instance running bash with the appropriate shared libraries.

Wednesday, April 26, 2017

Tweaking Keyboard from the Command Line

I love swapping my CAPS and CTRL keys, and I never found the tweak tool solution to be very elegant. I found this quick solution, which didn't require me to install anything. I've included it below for reference. Great fix!

Open the following for editing:
sudo nano /etc/default/keyboard

And edit
XKBOPTIONS="ctrl:swapcaps"

Then, reconfigure:
sudo dpkg-reconfigure keyboard-configuration

And just go through the prompts as they are.

For more options you can change, check here.

Monday, April 3, 2017

General Installation Failure Fix AMD GPU R9 3XX

Symptoms:
R9 390 drivers would not install via auto-detect software. Failed at 99% with SUCCESS everywhere except at the "Final" step (in log). 

OS:
Windows 8.1

Solution:
1. In Device Manager, disable (not uninstall) Display adapters > Microsoft Display Adapter
2. In Device Manager, disable (not uninstall) Monitors > Generic PnP Monitor
3. Make sure all partial installations of AMD drivers are uninstalled
4. During installation, keep device manager open and disable any drivers that revert to a normal state (i.e., no longer disabled)