Installing Python 3 on Mac OS X Leopard

posted by Arkham on December 6th, 2008

python

It’s a long time (almost a month!) I don’t write here anymore, but I’ve come back to teach you how to install Python 3.0 with readline support on Mac OS X 10.5 “Leopard” (incidentally I bought a Macbook :P )

  1. Download the latest readline from the GNU readline homepage.
  2. Extract it in a folder.
  3. Download all the patches available here and save them in the same folder.
  4. Open Terminal and enter in that folder.
  5. Apply all the patches by running:
    patch -p0 < patch_file_name

    For example:

    patch -p0 < readline52-001
    patch -p0 < readline52-002
    patch -p0 < readline52-003
  6. Configure, make and install:
    ./configure
    make && sudo make install
  7. Download the latest Python 3 release from here.
  8. Extract it and navigate to the folder with Terminal.
  9. Configure it by running:
    ./configure --enable-framework --with-readline-dir=/usr/local
  10. Compile and install it:
    make && sudo make frameworkinstall

Here you go! :D

Tags: , , ,

Installing Ubuntu behind a HTTP Proxy

posted by Arkham on February 12th, 2008

1 ) Put a Ubuntu CD in your CD/DVD drive, reboot, and set the BIOS to boot from the CD drive. Wait until you see the Ubuntu desktop

2 ) Go to Applications -> Accessories -> Terminal and gain root priviledges with

sudo su

3 ) Load your keyabord map with

setxkbmap language_code

Example:

setxkbmap it

4 ) Create a new file with

nano /etc/apt/apt.conf

5 ) Write the line

Acquire::http::Proxy "http://[user]:[pass]@[proxy_ip]:[port]";

Example:

Acquire::http::Proxy "http://camp:1234@192.168.10.4:3128";

6 ) Ctrl + O to save and Ctrl + X to exit

7 ) Go to System -> Preferences -> Network Proxy and fill the proxy settings (don’t forget to click on advanced, if the proxy requires authentication)

8 ) Launch the Ubuntu usual installer

9 ) Cross your fingers and pray thy Holy Shuttleworth to have pity for thy damned soul

Here you go! ;)

Tags: , , ,