Skip to main content

Posts

Fedora 18 Compile Moxa Beta Device Driver

Down below is a guide for Ubuntu Linux.  Here is the same thing for Fedora Linux. The serial interface device drivers on the Moxa web site may not work with the latest Linux kernels. Send an email message to " support at moxa dot com " and ask for a Beta device driver for Linux for your Moxa device model number.  You should get an answer within a few hours. First update the system # yum update or use yum extender GUI. The above will typically install about 50 to 100 Megabytes of updates and will take a while. Install the software development tools # yum install kernel-headers # yum groupinstall "Development Tools" "Development Libraries" Make a directory to work in $ cd $ mkdir Moxa-Beta $ cd Moxa-Beta Save the tar ball there and untar it: $ tar -zxvf driv_linux_uport_v1.2.5_build_13040314.tgz $ cd mxuport Make the driver $ make driver_make ...and you should see this scary m...

Security Paranoia

The hullabaloo around the world-wide, blanket NSA phone, chat and email logging of the last few weeks has been a boon for computer security, since it made everyone think about it.  OK, not quite everyone, but hopefully every computer geek thought at least a little bit about security! http://www.guardian.co.uk/world/the-nsa-files The whole sorry mess is turning into a modern day enactment of Franz Kafka's Der Prozess (The Trial), where a man is tried by a secret court with a secret charge and eventually executed, without him or anybody else being any the wiser about what it was that he supposedly did wrong. Of course, all serious computer security professionals knew about all the spy-vs-spy stuff all along, but convincing Joe Public, or just a normal middle manager, that you are not a crazy paranoid deluded fool, is very difficult.  The current spate of news articles and government fancy footwork, denials, retractions and debate, now makes it a lot easier to talk about co...

4WD Rover

Flying a model plane in the desert is difficult.  There is sand laden wind during the day, so one can only fly at night and then one cannot see the plane properly.  So I decided to make a little runabout. A runabout robot uses much the same parts as a plane.  An aircraft RC system is used for backup and test and the autopilot is the same, just with a different ArduRover software load. Details here  http://rover.ardupilot.com/ Where to get the parts Pololu.com sells a range of motor speed controllers with various control inputs.  The Easy series has linear, digital and RC control inputs.  It can also blend two RC channels for differential control.  This way, one can make a 4WD robot chassis, using the Throttle channel for speed control and the Rudder channel for direction.  The blending will add or subtract the two channels such that the left/right will speed up or slow down the one side slightly, to make the model turn. I picked the 18V 15...

Debugging on Linux

"Where can I look in my file system that shows errors and problems?" Watch the log files! On Ubuntu:  $ sudo tail -f /var/log/syslog or on Fedora: $ sudo tail -f /var/log/messages or $ sudo tail -f /var/log/dmesg The nice thing about Linux is that you can always see what is going on.  You need not poke around in the dark when looking for the cause of a problem.

UAE Vehicle Test

As an expat in the UAE, it doesn't make economic sense to buy a fancy new car if you have no idea how long you are going to be here.  My own vehicle is a young and sprightly 2004 Dodge Durango 5.7 litre V8, which does 0 to 100km/h in about 7s,  uses only 14 litres per 100km in fuel and cruises at 120km/h at slightly more than idle speed. The Al Ain Traffic Department has a large test centre, driving school and registry, which is always overcrowded and getting a vehicle processed there can take half a day if all the Dust Devils are smiling kindly upon you.  This year, I went to a small test centre in Al Foah, a village on the outskirts of the city instead. They open at 8am and I was first in line.  I had my car serviced at the dealer the week before, so I left the service papers on the front seat.  The test then took only a few minutes. For the exhaust test, the vehicle is put on a dynamometer, but since the big Dodge is all wheel drive it always just clim...

Scanner SMB Access

The company has a networked scanner which is configured to save scanned PDF documents on a MS Windows SMB share. Hooking up from a Linux machine requires a domain name, user name, password and mount operation.   I need to scan things maybe once a month, so I don't want to bother with a permanent connection. Here is a simple little script to handle this share on Fedora.  The script uses Zenity and Beesu to make it a little more user friendly.  You should replace the IP address of the scanner,  YOURDOMAIN and myusername with your credentials.  You should also create the mount point /mnt/scan . #! /bin/bash pass=$(zenity --entry --title="Add an Entry" --text="WindowsPassword:" --entry-text "password" --hide-text) beesu - mount -t cifs -o domain=YOURDOMAIN,username=myusername,password=$pass,rw,file_mode=0777,dir_mode=0777 //172.22.213.17/Scanfile /mnt/scan nautilus /mnt/scan beesu - umount /mnt/scan The rw, file_mode and dir_mode para...

Virtualbox with Ubuntu and Xubuntu

It has been a few years since I last used Ubuntu Linux and since some of my students are using it, I decided to install it on Virtualbox and see what the fuss is all about.  Ubuntu used to be quite a nice system, but it seems to have regressed terribly and is now almost unusably slow and clunky due to the Unity/Gnome desktop. My favourite desktop system is KDE.  I like my rotating desktop cube and wobbly windows, but on slower systems, I use the simpler XFCE or LXDE.  Gnome/Unity however, is the Win8 of Linux at this stage of its development and is much unloved. Security Problems The Ubuntu desktop also presents a serious security risk in its default configuration, since the Lens sends all your local and remote search activities to various third parties.   Ubuntu now is really a spyware system just like that other legacy system when it is infected with viruses and junkware . The only difference is that in Ubuntu, the spyware is deliberately installed , though ...