Skip to content

Posts

Install psutil in CentOS 6

Don't use yum install python-psutil as this will give you a super old version. Instead use:

yum install gcc python-devel
pip install psutil

Python simple web server

The absolutely fastest way to get a simple web server up and running using Python 3, for development purposes.

cd my_web_root
python -m http.server

Or if you are on Python 2.x:

cd my_web_root
python -m SimpleHTTPServer 8000

Then just access http://your-ip:8000 to access the web server contents. Hit ctrl+c to exit.

CentOS 6 yum errors (and fixes)

Issues

Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

or

Error: xz compression not available

Fix

yum remove epel-release
rm -rf /var/cache/yum/x86_64/6/epel
yum install epel-release

Flickr dumpr

Downloads all of your flickr albums (original photo/video files). Requires Python 2.7 with the flickrapi module.

Check out the code over at its Github repository.