installing wine on ubuntu 14.04 after upgrade from ubuntu 12.04

I had the issue a few others had where trying to install WINE on an Ubuntu 14.04 x64 system that had previously been upgraded from Ubuntu x64 wouldn’t work with a message about liblcms2-2 conflicting with liblcms2-2:i386. Even the Wine PPA wouldn’t help.

Then I ran across a fix where you type
sudo apt-get install liblcms2-2=2.5-0ubuntu4
and then you can install wine!

802.1x wireless WPA2-Enterprise without certificate: Ubuntu 14.04

NetworkManager in Ubuntu 14.04 has an issue with 802.1x networks that don’t require the laptop to have a .cert file. A bug report has been launched in regards to this.

Note: the following discussion can subject your laptop to “man-in-the-middle” attacks by disregarding the need for a .cert file. However, if your network IT dept. doesn’t provide you a .cert file and their policy is not to, you might discuss with them if the following is an appropriate solution.

1) find the name of the wireless network you want to connect to by typing in Terminal:
ls /etc/NetworkManager/system-connections
let’s assume your network SSID is “sortOfSecureWifi”.
Then type
sudo nano /etc/NetworkManager/system-connections/softOfSecureWifi
and it will look like (note the ?yourdata? is specific to your PC, don’t change it)

Note: In particular, if there is a line system-ca-certs=true, change it to


WARNING: This configuration can impact network security. Discuss this with the responsible network admins for your network FIRST! However, many networks don’t currently use certificates, yet Ubuntu 13.04/13.10/14.04 keep trying to look for a certificate via NetworkManager







then reboot and see if you can connect. A sign that system-ca-certs=true is happening is by:

grep "TLS: Certificate verification failed, error 19 (self signed certificate in certificate chain)" /var/log/syslog

Matlab R2013b C++ MEX on Ubuntu 14.04

Ubuntu 14.04 comes with GCC 4.8, but Matlab R2013b wants GCC 4.8.
The error you will get includes.
Warning: You are using gcc version ‘4.8.2’. The version of gcc is not supported.

Note that Matlab R2014a uses a new system for MEX configuration. You should not use this process for R2014a and newer. For Matlab R2014a I don’t have a solution for specifying gcc-4.7 besides taking the output of mex -v and editing the commands to use gcc-4.7 manually. Yikes!

This example is for R2013b and OLDER

sudo apt-get install gcc-4.7 g++-4.7

cp /usr/local/MATLAB/R2013b/bin/ ~/.matlab/R2013b/

chmod 644 ~/.matlab/R2013b/

nano ~/.matlab/R2013b/
there will be one instance each of:
CC=’gcc’ change to –> CC=’gcc-4.7′
CCX=’g++’ change to –> CCX=’g++-4.7′
5) restart Matlab

Notes on in-place upgrade to Ubuntu 14.04 LTS

I have upgraded a couple systems so far to Ubuntu 14.04. Here are a few scattered notes and observations.

Very old computers like Pentium 4 are still fine with the Xubuntu or Lubuntu desktops. On “modern” computers like Core 2 Duo and newer, the Unity desktop is splendid and “feels” faster than before.

One computer wouldn’t show the update, even after apt-get update, dist-upgrade, etc. Even Alt+F2 do-release-upgrade didn’t work. So I opened a terminal and typed

do-release-upgrade -d

and it worked. Note it uses Screen so Shift+PageUp doesn’t let you scroll back. I didn’t try scrolling back within Screen.

python3 went from 3.3.2 (ubuntu 13.10) to 3.4.0 (ubuntu 14.04)
python went from 2.7.5 (ubuntu 13.10) to 2.7.6 (ubuntu 14.04)

I had installed python and python3 toolboxes with pip and pip3, I had to reinstall those. e.g.
sudo pip3 install matplotlib

Setting up program

Note: if you have Ubuntu 14.04, you can simply type: sudo apt-get install
Otherwise, or if you want the latest version, follow the steps below.

If you want a nice wrapper program I wrote that plots right ascension / declination and azimuth /elevation for your image, check out: the is what you want.

setup the prereqs:
sudo apt-get install libcairo2-dev libnetpbm10-dev netpbm \
libpng12-dev libjpeg-dev python-numpy \
python-pyfits python-dev zlib1g-dev \
swig cfitsio-dev

then download newest .bz2 file from:
extract it to your ~ directory, then go in and type in Terminal
make py
make extra
sudo make install

edit your .bashrc file, adding the line
export PATH="$PATH:/usr/local/astrometry/bin"

to increase performance, edit
sudo nano /usr/local/astrometry/etc/astrometry.cfg
(sometimes it’s in /etc/astrometry.cfg)
and uncomment the
and modify
add_path /opt/astrometry/data
note: TILDE won’t work! actually use /home/username
where username is your Linux login.

sudo mkdir -p /opt/astrometry/data
for i in {08..19}; do
wget -nc -nd -P /opt/astrometry/data"$i".fits