MikeTeo.net

A Software Technologist's Blog (Wanna Email Me?)

Archive for the ‘Linux’ Category

pysmb 1.0.0 Released!

Dec-25-2011 By miketeo

About 10 years ago, I have released the first version of pysmb. Since then, Microsoft Windows has made significant changes to the NTLM authentication protocol which causes pysmb to become incompatible with Windows Vista and Windows 7 machines.

Now, with the release of pysmb 1.0.0, you can write Python applications to transfer files on shared folders on Windows XP, Windows Vista and Windows 7, as well as on Unix machines running Samba. pysmb 1.0.0 remains faithful to its clause that it will remain a pure Python SMB/CIFS module without any need for binary compilation. For this to be possible, it has utilized other pure Python modules such as pyDES, MD4 and pyasn1.

In addition to its new compatibilities with the recent Windows OS, pysmb has also been rewritten to support other frameworks. At the moment, a Twisted NetBIOS and SMB/CIFS protocol implementation has been included with pysmb 1.0.0 sources. Please refer to the documentation in the sources for more details.

For more details on pysmb 1.0.0, please go to the pysmb project page to download it, or you can also run: “easy_install pysmb” to install it on your machine.

TrueType Font RPM for Fedora Core

Dec-21-2009 By miketeo

I have rpmbuild the msttcorefonts RPM from msttcorefonts-2.0-1.spec.
For FC12, you will encounter a chkfontpath dependency error when trying to install this rpm. Just rpm -i –nodeps msttcorefonts-2.0-1.noarch.rpm and re-login your X session.

Download the msttcorefonts-2.0-1.noarch.rpm.

Compiling runit on Fedora Core 11

Sep-8-2009 By miketeo

If you encounter the following error while trying to compile runit on a FC11 machine

[root@norma runit-2.0.0]# package/install
Linking ./src/* into ./compile…
Compiling everything in ./compile…
+ cd compile
+ exec make
./load runit unix.a byte.a -static
/usr/bin/ld: cannot find -lc

Try yum install glibc-static

Arduino IDE : USB Ports Not Found

Jun-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

Jun-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.