My desktop computer has a wired connection to the internet and so the built-in wifi card is normally not used. I decided to enable and use it as a wireless access point.
Unfortunately NetworkManager will only create an ad-hoc wifi network, and Android devices will only connect to infrastructure access points. Don’t ask why… A rooted Android phone or tablet can be configured to connect to an ad-hoc network, and if a separate program can configure a Linux box to act as an access point, NetworkManager should be able to do the same. As far as I can see, there are no good technical reasons for either of these deficiencies.
The solution is hostapd:
Continue reading Turn your desktop computer into a wireless access point
After having installed Netbeans 7.0.1+dfsg1-5ubuntu2 I found that I cannot open old projects. Netbeans will find list the project directories, but will not open the projects. The solution is quite simple.
Continue reading Netbeans cannot open old / existing project
Have you grown tired of typing in all those HTML special characters? Use a perl script instead:
Continue reading Script to encode HTML special characters
If you are missing the split view or dual pane functionality in Thunar, at least you can implement a workaround by adding the following custom action definitions to your Thunar config file:
Continue reading Add “Copy To” and “Move To” custom actions in Thunar file manager
This is a summary of the steps involved in setting up development tools under Linux for Microchip PIC microcontrollers.
I have created Ubuntu Trusry packages for the most recent versions of gputils, psim and sdcc, and also updated the MPLAB X toolchain plugin for sdcc.
Continue reading Install or update mplabx, gputils, gpsim and sdcc
A system component crashing will activate the apport reporting system. What is really annoying about this is that the warning pop-up windows will keep appearing long after the problem is solved.
Continue reading System Program Problem Detected – disable apport
There are many excellent tutorials on using git (see below). This page is just a list of git commands for my reference.
Continue reading Get started with git
Following the default installation of wireshark it is only possible
to capture packets as root, which is clearly less than ideal. It is
much better to run wireshark as a non-root user:
Continue reading Wireshark installation and use as non root
pyUSB is an excellent Python package that can significantly simplify USB programming.
For most Linux distributions there are packages only for older versions of pyUSB, but since it is actively developed you probably want to have the latest version on your system.
Continue reading Install pyUSB 1.x latest version
After having installed Ubuntu Linux 14.04 on an Apple Mac I found that the
keyboard layout was not quite correct, e.g. function keys were not easily accesible
and some characters were missing. The changes below will turn the keyboard
into a keyboard with standard PC layout.
Continue reading Apple keyboard with Linux
The Microchip MPLabX IDE, IPE and XC8 packages need additional 32-bit libraries and so their installation
is slightly more involved than just running the installer scripts.
Continue reading Microchip MPLabX installation on 64-bit Ubuntu system
After a recent kernel update I found that the stock CentOS kernel was less than optimal for the CPU I am using, and so I decided to create a kernel optimised for my VIA C7 CPU.
Continue reading CentOS 6.5 kernel compile for VIA C7 CPU
Update 12/1/2015: It appears that the Nexus 7 is now automatically recognised and made available in xubuntu 14.04.1 Trusty; however, if you are still having trouble, read on.
Continue reading Linux and Nexus 7 USB connection
Following an upgrade to Ubuntu 12.04 I wanted to install gpsim again. I was pleased to see that it was included in the standard repositories and so I duly installed the stock packages. However, as soon as tried to use it the problems started. After a bit of fiddling around it became obvious that gpsim was compiled for the stock package with the GUI disabled and so a recompile was in order.
Continue reading gpsim, Ubuntu and the case of the missing GUI
I have recently had to make a backup of the ‘My Documents’ directory of a Windows XP user to a CentOS server.
Continue reading Temporary rsync server installation
If you ever get an ssh session that seems to be stuck,
try closing the connection using one of the ssh built-in
Continue reading Escape from ssh
If you are getting an error message similar to
/usr/bin/xauth: timeout in locking authority file /home/username/.Xauthority
you are probably facing one of the following scenarios.
Continue reading xauth and .Xauthority
I like to display keyboard entries, code examples and sample outputs with distinctive formatting using the <pre>, <kbd>, <code>, and <samp> tags. I also like this formatting to appear uniform across the whole web site
Continue reading Don’t like your WordPress theme? Modify it.
I really hate it when an application automatically rewrites the code I provide without asking me first.
Continue reading WordPress html code rewriting and the frustration it causes