Archive for Linux

Allow ssh access to a Fedora 10 machine (VM)

I have been setting up several Virtual Machine’s lately , to test deployment in various linux environments. I must say I have been frustrated with the way linux handles shared libraries. The DLL hell that many people complain about on Windows machines is nothing compared to the interdependencies of shared libraries! (Statically linking everything was not an option, as I was unable to successfully statically compile Python + wxWidgets + wxPython + Numpy)

Once a Fedora 10 VM has been set up, I need to do the following:

  • system-config-firewall   Turn off the firewall
  • chkconfig –list sshd   Confirm whether sshd is running or not
  • Assuming it isnt running in modes 3 & 5,
    • chkconfig sshd on
    • service sshd start

Comments off

Statically Linking Python 2.5, wxPython, Numpy

  • These instructions still do not work (I get a seg fault) so this will be updated until I get a working setup.
  • Follow these instructions, but note the following caveats
    • Instead of –enable-static, use –disable-shared
    • Copy distrib/make_static_setup.py to the top level wxPython directory and save its output to Setup.local
    • Copy Setup.local to the Python src/Modules directory
    • On my setup, I had to edit Setup.local and delete all -pthread instances
    • After configuring Python, edit the Makefile so thatlib stdc++ is linked in.
    • If you get a libinstall error when you run make install, use make -i install
    • Copy the wx and wx_addons directories from the wxPython source directory
    • If you have trouble with import wx, edit the Setup file in the Python src/Modules directory and add _random operator, and other modules.

    Comments off

    QN: Linux: Shell Scripting

    I tried to run a few of my scripts on a linux machine, and kept getting weird errors like

    “: No such file or directory”

    I finally figured out that the files were in DOS formatted line separation (\n\r) which was confusing the shell. A quick

    dos2unix *.py

    fixed things.

    Comments off