Posts by: mhirsch

Disabling middle mouse paste Linux

A perhaps annoying X11 feature is the “middle mouse button paste” behavior that can lead to posting unwanted text in a document when you’re simply trying to scroll through it. Note: the method below has not been extensively tested by me, but seems to “just work”. Keep a backup of your original .Xmodmap file if [...]

MATLAB: allow integer, non-exponential ylabel or xlabel

MATLAB’s default behavior, which Mathworks says is currently not changeable, is to put exponential format into xlabel and ylabel for large numbers–even integers. To allow the xlabel and ylabel to be integers (e.g. 362093), put the following line after you set xlabel or ylabel: set(gca,’YTickLabel’,sprintf(‘%7d|’,get(gca,’YTick’))) In this case, the ‘%7d’ means I want up to [...]

GUFW can’t start: Ubuntu 13.04

On a fresh install of GUFW on Ubuntu 13.04, I was unable to get GUFW to start by clicking the icon. Going to Terminal and typing gufw, I saw a string of errors, culminating in: IOError: [Errno 13] Permission denied: ‘/tmp/gufw.pid’ I saw that root had r/w permissions for this file, and everyone else had [...]

Copying WINE to a new PC

Migrating to a new PC or new install of Linux can be accomplished by first copying your entire home directory to an external HDD, then copying back to your new (install) PC with a tool like grsync. (I don’t necessarily recommend this method, but it can work). This can cause two issues for WINE. if [...]

“Permission denied” when installing Matlab R2013a 64-bit on Ubuntu 13.04

When installing Matlab on Linux, especially from an external/network drive, when you type sudo ./install you might get an error like: /tmp/mathworks_xxxx/sys/java/jre/glnxa64/jre/bin/java: Permission denied To fix this problem, try the following (steps for R2013a) 1) copy the whole matlab installation directory to your local home drive ~ e.g. to ~/mathworks_downloads 2) type chmod +x ~/mathworks_downloads/R2013a/sys/java/jre/glnxa64/jre/bin/java [...]

2013 Apple Superdrive works ONLY with Macs!

FYI, if you were thinking of purchasing the A1379 Superdrive CD/DVD drive for general use with Macs and PCs, be aware that this Superdrive works ONLY with the current generation of Macs–it will not work with any PCs, and has been said to not work with older Macs, either!

MATLAB R2013a on Ubuntu 12.10: libstdc++ issues when running 64-bit

In some systems (here, it was 64-bit Matlab on 64-bit Ubuntu 12.10) you may find an error about the version of libstdc++ being wrong. E.g. when using the system() or unix() commands. Here’s what worked for me. 1) cd /usr/local/MATLAB/R2013a/sys/os/glnxa64 2) sudo mkdir obsolete 3) sudo mv libstdc* obsolete/ 4) sudo ln -s /usr/lib/x86_64-linux-gnu/libstdc* ./ [...]

xfreerdp: correcting “remote host identification has changed” error

To access a Windows PC from Linux, some use port forwarding from an OpenSSH or other SSH server running as a service on the Windows PC, with RDP on port 3389 blocked by the Windows Firewall. SSH is used with port forwarding to get to RDP. Trouble is, when connecting to multiple Windows PCs this [...]

cygwin imagematick missing /usr/share/fonts/TTF/Arial.ttf

This annoying error may be fixed in Cygwin by typing: mkdir /usr/share/fonts/TTF ln -s /cygdrive/c/Windows/Fonts/Arial.ttf /usr/share/fonts/TTF/Arial.ttf

Intel AMT / vPro KVM: Port forwarding necessary

For those installations behind a firewall, here are the ports you need to forward (say, via SSH) to use Intel AMT KVM: 5900 16992 16994 Tested with Intel AMT version 8 If you use TLS, you may need to forward additional ports. In any case, before making a major system decision, do your homework. Reference: [...]