Install Plone CMS on Debian

To install Plone on Debian, first makes sure you meet

  • hosting requirements,
  • hardware requirements,
  • software requirements.

To view a list of all the requirements , visit the Plone documetation at:

https://docs.plone.org/manage/installing/requirements.html

On Linux platform, you need

  • Python 2.7
    • python2.7
    • python2.7-dev
  • and the following libraries:
    • python-setuptools
    • python-dev
    • build-essential
    • libbz2-dev
    • zlib1g-dev
    • libjpeg62-turbo-dev
    • libssl-dev
    • libxml2-dev
    • libxslt1-dev
  • optional libraries
    • poppler-utils (PDFs)
    • wv (office docs)
    • libreadline-dev

Installing requirements:

$ sudo apt-get install python2.7 python2.7-dev python-setuptools python-dev build-essential libbz2-dev zlib1g-dev libjpeg62-turbo-dev libssl-dev libxml2-dev libxslt1-dev

Installing optional libraries:

$ sudo apt-get install poppler-utils wv libreadline-dev

Download latest Plone unified installer:

$ wget --no-check-certificate https://launchpad.net/plone/5.1/5.1rc2/+download/Plone-5.1rc2-UnifiedInstaller.tgz

Unpack the installer:

$ tar -xf Plone-5.1.0-UnifiedInstaller-r1.tgz

Before running the installer decide on the following:

  • development/testing or production mode
  • standalone or zeo cluster
  • run installer as root or user
  • instance password
  • location were to install the instance
  • instance name
  • which Python to use

Install Plone:

$ sudo ./install.sh --password='psw' --target=path/to/location --instance=instance_name --with-python=/usr/bin/python --static-lxml zeo

If the installation is successful you will see this message:

Plone successfully installed at …

To start Plone go to the root folder of your instance and execute:

$ sudo -u plone_daemon bin/plonectl start

Inspiring quotes …

We live never thinking we are going to die, then we die feeling we never fully lived. — Anonymous

We sacrifice our health to build our wealth, then we sacrifice our wealth to get back our health. –Anonymous

A winner is a looser who tried one more time. –George M. Moore

Don’t just take, also give back, and change the world. –Anonymous

Be strong and move on. It’s time for you to be happy again! –Buddha

Progress is impossible without change, and those who cannot change their minds cannot change anything. –George B. Shaw

Honesty saves everyone’s time. –Anonymous

Repeat after me: My current situation is not my permanent destination. –Anonymous

Some people don’t like change, but you need to embrace change if the alternative is disaster. –Elon Musk

Every time you are tempted to react in the old same way, ask if you want to be a prisoner of the past, or a pioneer of the future. –Deepak Chopra

Life is not happening to you. Life is responding to you. –Anonymous

Death is nothing, but to live defeated and inglorious is to die daily. –Napoleon Bonaparte

I would rather die a meaningful death than to live a meaningless life. –Corazon Aquino

If we loose love and self respect for each other, this is how we finally die. –Maya Angelou

Dream as if you will live forever. Live as if you will die today. –James Dean

 

 

 

 

 

 

 

Install pip on Debian

Purpose:

Install a package from PyPI.

Installation:

Securely download get-pip.py from https://bootstrap.pypa.io/get-pip.py

Run the python installer

$ sudo python get-pip.py

To update pip run:

$ sudo pip install -U pip

To install pip for Python3, excute:

$ sudo python3 get-pip.py

pip commands:

  • install
    • install packages from PyPI
  • uninstall
    • uninstall packages
  • download
    • download packages
  • list
    • list packages
  • show
    • show information about installed packages
  • check
    • verify if installed packages have compatible dependencies
  • search
    • search PyPI for packages
  • wheel
    • build wheels
  • help
    • show general help, or help for commands

References:

https://pip.pypa.io/en/latest/installing/

apt-cache Debian package query utility

apt-cache description:

  1. performs a variety of operations on the APT’s package cache
  2. does not manipulate the state of the system
  3. perform read-only operations on the APT package cache
  4. extract useful information from the APT package cache
  5. the metadata is acquired and updated via the ‘apt-get update’

apt-cache commands:

  • stats displays statistics about the cache
  • dump shows a short listing of every package in the cache
  • umet displays a summary of all unmet dependencies in the package cache
  • show pkg displays the package record for the named package
  • search regex performs a full text search on all available package lists
  • depends pkg shows a listing of each dependency a package has

Relevant Files and Folders

/etc/apt/sources.list
/etc/apt/sources.list.d/
/var/lib/apt/lists/
/var/lib/apt/lists/partial