Python Tutorials and HowTos

Python programming related tutorial, howtos, tips, and hacks under Unix like operating systems with special focus on sys admin tasks ( rss feed ).

Python is preinstalled on my Ubuntu / Debian Linux desktop. I’m unable to find IDLE integrated development environment for Python. How do I install IDLE IDE?

{ 1 comment }

How do I execute standard Unix or Linux shell commands using Python? Is there a command to invoke Unix commands using Python programs?

{ 5 comments }

How do I upgrade packages installed via Python pip command under Unix or Linux command line?

{ 0 comments }


I‘m using cloud files from Rackspace that provides online storage and CDN for javascript, css, images and video files. However, I found that their online upload is not designed for bulk upload. How do I upload files to Rackspace cloud files storage using standard Linux or Unix ftp client in recursive mode?

{ 3 comments }

I would like to install python packages using the pip command which is an easy_install command replacement. How do I install pip comamnd under RHEL / CentOS / Debian / Ubuntu Linux server systems?

{ 1 comment }

I‘m trying to install 3rd party python apps using pip command and getting the following error:


gcc -pthread -fno-strict-aliasing -fwrapv -Wall -Wstrict-prototypes -fPIC -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/usr/include/python2.7 -c src/MD2.c -o build/temp.linux-x86_64-2.7/src/MD2.o

src/MD2.c:31:20: fatal error: Python.h: No such file or directory

compilation terminated.

error: command 'gcc' failed with exit status 1

Where can I find Python.h file and how do I fix this problem under Debian or Ubuntu Linux sever based system?

{ 3 comments }

Neggear DGND3700 is an all-in-one router with built-in ADSL2+ modem and WAN gigabit Ethernet port for cable/fiber combined with a wireless router create the integrated home gateway. How do I enable telnet access on this router under Linux or OS X operating systems?

{ 0 comments }