Installing wireless USB modem driver on Ubuntu 15.10

It really was this simple:

How to install D-Link DWA-182 Wireless AC1200 Dual Band USB Adapter on Linux Ubuntu

Download zip from here:

rtl8812AU_8821AU_linux on GitHub

Unzip folder e.g. as “/home/mythbuntu/rtl8812AU_8821AU_linux-master”

cd "/home/mythbuntu/rtl8812AU_8821AU_linux-master"
make clean
make
sudo make uninstall
sudo make install

Restart and enable wireless and enter password when prompted (after selecting your own ssid).

Trouble copying audio file – until rdd-copy

I had trouble copying a audio file (wav) from a CD to my computer – the copy process was always getting stuck at exactly the same point 153MB in. And it didn’t matter whether I was using sound-juicer or nautilus. The answer was to install rdd (sudo apt-get install rdd). rdd copes with errors by supplying blanks (assuming multiple careful attempts to read the data have all failed) rather than halting.

The required command was rdd-copy src dest. But what to supply as src? I tried /media and similar but no luck. The final answer was ‘/run/user/1000/gvfs/cdda:host=sr0/Track 3.wav’. But how to find it? http://askubuntu.com/questions/222622/cdrom-is-mounted-but-where. Just drag the file from nautilus to the terminal and see what is displayed there. The following worked even though it took a long time to get the file:

rdd-copy '/run/user/1000/gvfs/cdda:host=sr0/Track 3.wav' /home/g/Desktop/track3.wav

F-spot vanished in Ubuntu 15.04 (Vivid)

F-spot has been removed from Ubuntu Vivid (15.04).

http://www.ubuntuupdates.org/package/core/utopic/universe/base/f-spot

Dependency is not satisfiable: liblcms1 (>= 1.15-1)

None of the data for f-spot was gone, just the ability to run the application – probably something to do with mono library deprecation.

~$ find / -name f-spot 2>/dev/null
/home/g/.gconf/apps/f-spot
/home/g/.config/f-spot

1.3MB in /home/g/.config/f-spot/photos.db

Anyway, opened Shotwell, “Import from Application”, “Import media from: F-Spot”, moving on.

Printer driver for Canon MG-7100 on Ubuntu

Once again I was solving a computer problem for my parents-in-law ;-). This time, it was yet another new printer they had bought – a Canon MG7100. Usually, I have had a really good experience with modern Ubuntu and popular printers. They Just Work. And this time it seemed things had gone well again. And they almost had. Except the colours were a bit off. On the Ubuntu printer test page Magenta was brown, bright green was instead a darker green, and yellow was very muddy – more like taupe. I wasted a lot of time cleaning ink nozzles etc etc but the actual solution was to choose a slightly different driver manually from the Canon list. There were two v4.0 options and it was the second that worked.

Category Good setting Bad setting
Job ID Canon-MG7100-2-671 Canon-MG7100-665
Driver CNMG7100.PPD STP00541.PPD
Driver Version 1.0 5.2.10-pre2
Description Canon MG7100 Canon MG7100
Driver Version Canon MG7100 Canon MG7100
Make and Model Canon MG7100 series Ver.4.00 Canon MG7100 series – CUPS+Gutenprint v5.2.10
Printer Canon-MG7100-2 Canon-MG7100

Hope this helps someone else.

Eclipse and PyDev on Utopic

I upgraded to Utopic (Utopic Unicorn a.k.a 14.10) and eclipse wouldn’t complete loading anymore. Solution:

Download latest plain vanilla Eclipse from the standard downloads page. And feel free to donate something too.

sudo su

chown -R root:root /home/username/eclipse && mv /home/username/Downloads/eclipse /opt

ln -s /opt/eclipse/eclipse /usr/local/bin/eclipse && exit

Start by running:

eclipse

It didn’t even break PyDev so my luck’s finally turning ;-).

https://www.tumblr.com/search/install+eclipse+ubuntu

Testing new Ubuntu versions

Newer Ubuntu versions are less dramatically new these days, which is probably a good thing, but I like to take them for a spin anyway – old habits and all that. One nice change since the days of Dapper Drake is the ability to boot off a usb stick – much easier than having to burn CDs. On my laptop, I get to the boot menu by pressing the Esc key soon after booting and then selecting the USB stick to boot off. But there can still be problems. In particular, I was receiving the error message:

gfxboot.c32: not a COM32R image

Turns out you need to press the tab key and then type in “live”. Obvious really (not) Ubuntu 14.04 LTS live USB boot error (gfxboot.c32:not a valid COM32R imag).

Another good thing about modern Ubuntus is that they generally work out of the box just how I like them. I remove items from the launcher, shrink the icon size and add the Show Desktop icon to the launcher (under System Settings > Appearance), and I’m almost good to go. There is still one thing that takes a bit of fiddling – adding the ability to minimise on click (Ubuntu 14.04 Adds ‘Click to Minimize App’ Option to Unity Launcher).

Step 1: Open Ubuntu Software Centre
Step 2: Install CompizConfig Settings Manager
Step 3: Open Ubuntu Unity plugin
Step 4: Launcher > Minimize Single Window Applications (Unsupported)

On the one hand the version changes aren’t as exciting as they used to be, but on the other, it’s never been easier to check them out.

IDLE3 as default for py files on Ubuntu

Yes – I know, there are better alternatives to IDLE out there, but I am used to it for quick and dirty changes to python files (I use eclipse + pydev for more serious work). And I am increasingly making the switch to Python 3. So when I double click on a py file, odds are I want to open it with IDLE for Python 3 not Python 2.

Start by making sure you have a desktop file like the following:

gksudo gedit /usr/share/applications/idle-python3.4.desktop

[Desktop Entry]
Name=IDLE (using Python-3.4)
Comment=Integrated Development Environment for Python (using Python-3.4)
Exec=/usr/bin/idle-python3.4
Icon=/usr/share/pixmaps/python3.4.xpm
Terminal=false
Type=Application
Categories=Application;Development;
StartupNotify=true

Then make the desktop entry the default for python files:

gedit ~/.local/share/application/mimeapps.list

[Default Applications]
text/w-python=idle-python3.4.desktop

Note – no trailing semi-colon.

And in Linux Mint:

Linux Mint:

ls /usr/share/applications/

identify appropriate .desktop file

gedit /usr/share/applications/defaults.list

add the appropriate .desktop file reference at the front of the python line as appropriate.

Installing iNZight on Ubuntu (13.10)

Existing documentation for installing iNZight on Ubuntu covers a wide range of possible scenarios in Step 1. For my own specific case, however, I needed to translate it into a series of precise step-by-step instructions.

So here are the instructions that worked for me for Step 1. Once that is done, just follow steps 2 onwards in the official docs.

STEP 1 STEP-BY-STEP

It is probably best you don’t already have R already installed. And if you’re using iNZight, you probably won’t. But if you do, purge it! Installation may or may not work depending on the version of R you install so remove one source of difference from what the support people will have tested.

  1. ctrl-alt-t to open terminal window
  2. sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
  3. sudo gedit /etc/apt/sources.list

    and then append
    deb-src http://cran.stat.auckland.ac.nz/bin/linux/ubuntu saucy/
    Note: must have trailing slash (/) at end
  4. Click on “Save” button on toolbar or enter ctrl s on keyboard to save
  5. sudo apt-get update
  6. sudo apt-get install r-base
  7. Open R by typing R into terminal
  8. From R prompt:
    update.packages(ask = FALSE)

    y to everything

  9. q("no")

    to quit the R prompt.

  10. Then follow steps 2 onwards in the official instructions …

Dual boot Samsung 700 Ubuntu / Win8

My Mother found Windows 8 very bewildering (actually, so did I) and asked me to install Ubuntu (13.10) instead on her Samsung 700 tablet/notebook. I thought I’d set it up dual boot so I could occasionally use Windows 8 for testing purposes and in case there was any sofware that we needed in the future that was Windows only.

  1. Power off
  2. Put bootable Ubuntu USB in
  3. Boot but hold down F2
  4. In the BIOS config (it was touchscreen which was quite nice):
    • Advanced:
      • Fast BIOS Mode: Off
    • Boot:
      • Secure Boot: Off
      • OS Mode Selection: CSM and UEFI OS
      • PXE boot: On
  5. Save>Yes
  6. Reboot but hold down F2
  7. Boot to Device now showed: UEFI: DSE MicroDrive 2GB 1.00 (or however your USB identifies itself)
  8. Boot into Ubuntu installer
  9. Shrink Windows partition (the NTFS one)
  10. Add a large Ext4 partition for Ubuntu and a smaller swap partition
  11. Install Ubuntu onto the new Ext4 partition with / as mount point
  12. Reboot and set everything up. Success :-).