Introduction: Python for Unix and Linux System Administrators is a book written by Noah Gift and Jeremy Jones that comes with a complimentary Virtual Machine. The idea is to be able to run the Virtual Machine with NO EXTRA CONFIGURATION and have everything needed running and working. If you are running VMWare Server 1.0.5 or later you *should* have no problems running the VM once this is decompressed. VMWare Image Specifications:
  • Ubuntu 7.10 Server Version (no X or GUI installed)
  • Compressed in tar.gz format is 548 MB total (4GB decompressed).
  • Created with VMWare version 1.0.5
  • 2 x 2gb hard drives.
  • 512MB of RAM
  • 1st hard drive mounted in "/"
  • 2nd hard drive mounted in "/usr"
  • VMWare tools installed
Main packages and configurations:
  • Trac and Subversion integrated together and served via Apache including all the code.
  • Fully working SAMBA and LDAP configuration as a Primary Domain Controller.
  • Apache authenticates user(s) to LDAP.
Instructions:
  1. Download the latest version of the VM by doing: wget http://examples.oreilly.com/9780596515829/vm/
  2. Untar the file: tar xzvf py4sa.tar.gz
  3. You need VMWare Server installed (version 1.0.5 or higher). Open it and go to File -> Open
  4. Browse where the uncompressed image is and select the "py4sa.vmx" file.
  5. Select the image in the main screen and hit the PLAY button. IMPORTANT! Hit "keep" or "I have copied this image" when prompted the first time you run the image.
  6. Check the "Important Notes" for a couple of bugs related to the login prompt.
  7. All login/password credentials are: user: py4sa password: py4sa
  8. The image will load Apache2, SAMBA, LDAP, Subversion and Trac by default, so you should have everything running from the get-go.
  9. Run "ifconfig" to see the IP address the image has and type the same IP into your browser to see "Python For SysAdmins" as a listed project for Trac.
Important Notes:
  • This Ubuntu Server Version seems to have a bug where it will show you the login prompt before finishing the complete loading of all the services.
  • It will hang at the line where it tries to run the rc.local scripts. You need to hit "enter" to get the login prompt again.
  • There is a changelog in "/root/changelog" that has some information on the work done to the VM.
Some links:
Posted in Uncategorized |

4 Responses to “Python for SysAdmins Virtual Server”

  1. kc chan On

    Hi, I am using the py4sa VM, I am running into issue with changing password, below is the error: Changing password for py4sa. (current) UNIX password: passwd: Authentication information cannot be recovered passwd: password unchanged Could this have something to do with using LDAP (assuming you're using LDAP to store userid and password)? Any thoughts how I change the password? Thanks.

  2. admin On

    What command are you using for this? smbldap-passwd py4sa ?

  3. alfredo On

    LDAP can cause some problems, if you get info in the logs... let me know too

  4. sri h On

    When I try to login with credentials given above (py4sa) it says 'Login failed due to bad username or password'. Have the login details changed?

Leave a Reply

3+1


Living Ubuntu

I discovered Ubuntu in its second release thanks to a PC Magazine Ranking. Haven't stop using GNU/Linux since. This place is where I put all the stuff that I stumble upon and fix later. Hope you find it useful.

Links

Twitter

    Follow Me