MikeTeo.net

A Software Developer’s Blog (Wanna Email Me?)

Arduino IDE : USB Ports Not Found

June 27, 2009 By miketeo

If you have upgraded or installed Fedora Core 11, you might find that your USB ports are not listed or the Serial Port menu is greyed out on the Arduino IDE. This is due to a change of group ownership for the /dev/ttyUSBx ports in FC11.

To resolve this, simply add your user (eg. myuser) to the dialout group in /etc/group like this:

dialout:x:18:myuser

Then logout from your desktop and re-login back again.

Upgrading from FC9/FC10 to FC11

June 23, 2009 By miketeo

I have recently upgraded some of my Linux boxes from Fedora Core 9 and Core 10 to Fedora Core 11. Recent Fedora distros come with a preupgrade application which simplifies the upgrade process. It works well for some of my FC10 boxes, but I find that the preupgrade application has issues with RAIDs for the FC9 box.

I have upgraded 3 boxes using the DVD media (both 32-bits and 64-bits distros). After upgrading, it seems that I need to perform some additional steps in order to upgrade the entire application base to FC11.

The first few problems that you will see is that some of the softwares refuse to start, or hang. For example, the gnome terminal will start but refuse to accept any keystrokes in its window. My gnubiff won’t even start. And the worst: yum refuses to run! (No module named yum… Please go to this wiki FAQ…)

My solution as follows:

  1. Go to console. You can press <Ctrl> + <Alt> + <F2>. You should see a prompt for your ID. Sign in as root user with your root password.
  2. Download and install the FC11 yum rpm. If rpm reports that yum has already been installed, uninstall the existing yum: rpm -e –nodeps yum. Then install the new yum: rpm -i yum-3.2.22-4.fc11.noarch.rpm
  3. Rebuild the rpm database: rpm –rebuilddb
  4. Flush yum cache: yum clean all
  5. Then perform the upgrade: yum upgrade
  6. Reboot the machine when upgrade completes, and the whole machine is in FC11 “mode” now.

pysmb 0.4.5 released!

June 22, 2009 By miketeo

After laying this library to waste for 6 years, I have finally resurrected pysmb and fixed a crucial issue that has been plaguing pysmb for the past few years.

pysmb 0.4.5 will resolve the problem of retrieving large number of file information from remote SMB server. Previous versions will experience crashes in such situations as the remote SMB server is not able to return all the file information in a single request/response call. pysmb will “resume” the retrieval when necessary.

For more information, please visit: http://miketeo.net/wp/index.php/projects/pysmb

The protocol is inferred by reading the source code of egd version 0.9. It is a simple binary protocol which contains 4 commands. When the client connects to EGD via unix sockets or TCP sockets, the client will initiate the communication by sending the request. The format of the request is dependent upon the nature of request; the first byte of the request will be the command code (0×01 to 0×04) that will tell the service the nature of the request.

Read the rest of this entry »

pysmb is back online!

June 9, 2009 By miketeo

pysmb is now back online at http://miketeo.net/wp/index.php/projects/pysmb.

pysmb is a client-side SMB/CIFS module which I have written in Python during my university days back in 2000. During that time, there are a couple of SMB/CIFS modules that wrap around native C libraries. I needed a cross-platform solution to support common file operations with Windows and Samba shared folders and wrote pysmb.

After graduation, I had stopped actively maintaining pysmb due to work. Eventually, I migrated miketeo.net to a new web framework/layout and dropped pysmb. Now pysmb is back online. Hopefully, it can help those Python programmers who need a SMB/CIFS solution for their projects.

Enjoy!