≡ Menu

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

Debian / Ubuntu Python: Set Planet Venus To Combine Two Or More RSS Feeds

How do I setup "Planet Venus" under Debian or Ubuntu Linux to downloads news feeds (RSS) published by web sites and aggregates their content together into a single combined feed?
[click to continue…]

HowTo: Install Python idle IDE On Linux Operating System

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?
[click to continue…]

Python Execute Unix / Linux Command Examples

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

Python pip: Upgrade Packages Command Under Unix or Linux

How do I upgrade packages installed via Python pip command under Unix or Linux command line?
[click to continue…]

Rackspace Cloud Files: Upload Files Using Linux / Unix FTP Command

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?
[click to continue…]

Linux: Install pip Client To Install Python Packages

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?
[click to continue…]

Debian / Ubuntu: Fatal error: Python.h: No such file or Directory

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?
[click to continue…]

Enable Telnet Access For Netgear Wireless Router DGND3700 [ N600 ]

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?
[click to continue…]

Python: Find Out If a File Exists or Not Using isfile() Function

How can I check if a file called /etc/resolv.conf exists or not using Python program?
[click to continue…]

HowTo: Install Python On Linux

How do I install python an interactive high-level object-oriented language on Linux operating system?
[click to continue…]