How Do You Install the Latest Version of python-setuptools (aka easy_install) when Your Package Repositories Do Not Have It Available?

Problem scenario
Your apt or yum repositories do not have the newest version of python-setuptools (aka easy_install) available.  You need to install a recent version.  What should you do?

Solution
Prerequisites
a.  You need to have unzip installed.  Debian/Ubuntu servers usually have this by default, but if you still need assistance, see the Debian/Ubuntu link below.  Click on your distribution of Linux for assistance with installing unzip:
CentOS/RHEL/Fedora
Debian/Ubuntu
SUSE
b. 

How Do You Get around the Error ‘no program or library has “hello” as canonical name’?

Problem scenario
You are running “autoreconf –install” but you get this type of error:

“Makefile.am:2: warning: variable ‘hello_SOURCES’ is defined but no program or
Makefile.am:2: library has ‘hello’ as canonical name (possible typo)
autoreconf: automake failed with exit status: 1″

How do you modify Makefile.am to not have this error when running “autoreconf –install“?

Solution
In the Makefile.am file,

How Do You Find the Number of Processors or the Amount of RAM on a Linux Server?

Problem scenario
You want to know the number of processors your Linux server has.  What do you do?

Solution #1
Run this command:  grep -c ^processor /proc/cpuinfo

Solution #2
Run this command: nproc

Problem scenario
You want to know how much memory your Linux server has.  How do you find the amount of RAM (in gigabytes) on a Linux server?

How Do You Use Python Eve as a RESTful Endpoint on an Ubuntu Server?

Problem scenario
You want to use Python Eve to test it out.  You also want to create a RESTful endpoint on an Ubuntu Linux server.  How do you do this?

Solution
1.  Install Eve on the Ubuntu server.  Here is one way:

sudo apt-get -y update
sudo apt-get -y install python python-pip
sudo pip install eve

An alternative way to install it is given 

How Do You Install python-snappy on an Ubuntu/Debian Linux Server?

Problem scenario
You are trying to install python-snappy on Ubuntu (or a Debian distribution of) Linux.  You go here and find no obvious dependencies or prerequisites:
https://pypi.python.org/pypi/python-snappy

But when you try to install it, you run “python setup.py build” and get an error like this:

“/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: ‘install_requires’
  warnings.warn(msg)
running build
running build_py
package init file ‘__init__.py’ not found (or not a regular file)
package init file ‘__init__.py’ not found (or not a regular file)
running build_ext
building ‘_snappy’ extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time – D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c 

You Cannot Connect To One IP-Enabled Device to Your WiFi Router Wirelessly. What Do You Do?

Problem scenario
You can connect the device with a network cable (in a wired fashion) to your network including the WiFi router’s physical ports.  The wired connection works.  You can connect other devices to the WiFi router wirelessly.  You can even connect  the IP-enabled device with the problem to other wireless routers.  What is wrong?

Possible Solution #1
See if the incompatibility comes from the WiFi router having an access control list enabled. 

How Do You Check if snappy Is Installed?

Problem scenario
You are not sure if snappy (the Python development tool) is installed.  You try these two commands:

python
>>> import snappy

You see this:


Traceback (most recent call last):
  File “<stdin>”, line 1, in <module>
  File “snappy.py”, line 50, in <module>
    from snappy_cffi import UncompressError, compress, decompress, \
  File “snappy_cffi.py”,

What Do You Do When You Get “Permission Denied” in FTP?

Problem scenario
You are trying to transfer a file named foobar.txt via FTP.  But you get this error:

local: foobar.txt remote: foobar.txt
local: foobar.txt: Permission denied

What do you do with this “Permission denied” error?

Solution
The above error would not happen if the problem was on the remote server.  (You would get “550 Failed to open file” if the problem was a lack of read permissions on the source of the FTP file transfer.)

Make sure that the destination of the FTP file transfer (that is the local directory) is one where your user has access to write to. 

How Do You Remotely Connect with a GUI Interface into a Raspberry Pi 3 from a Windows Computer That Is on the Same Network?

Problem scenario
You want to connect to your Raspberry Pi 3 with a Windows machine (e.g., Windows 7 or Windows 10 laptop).  Both are on the same network.  You want more than the command line interface.  You want a desktop GUI connection beyond just a character prompt.  What do you do?

Solution
On the Raspberry Pi do these three steps:
1.  Change password for the pi user or create a new user.