From fc39c7de43b98b830f7755478ea3eeb257de63bb Mon Sep 17 00:00:00 2001 From: Tom Keffer Date: Mon, 23 Mar 2020 05:36:54 -0700 Subject: [PATCH] Added OpenSUSE directions --- docs/setup.htm | 52 ++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 38 insertions(+), 14 deletions(-) diff --git a/docs/setup.htm b/docs/setup.htm index 01a10043..e1c83fc6 100644 --- a/docs/setup.htm +++ b/docs/setup.htm @@ -58,7 +58,7 @@

Install prerequisites

First install the prerequisites appropriate for your operating system.

-

Debian Stretch (9)
Raspbian Stretch (9)
Ubuntu 16.04-17.10

+

Debian 9 (Stretch)
Raspbian 9
Ubuntu 16.04-17.10

sudo apt update
 
@@ -68,10 +68,9 @@ sudo apt install python3-pil
 sudo apt install python3-serial
 sudo apt install python3-usb
 sudo apt install python3-pip
-sudo pip3 install cheetah3
-
+sudo pip3 install cheetah3
 
-# Optional:
+# Optional: for extended almanac information
 sudo apt install python3-ephem
 
 # Required if you are using MySQL (MariaDB):
@@ -79,8 +78,7 @@ sudo pip3 install cheetah3
 sudo apt install python3-mysqldb
-

 

-

Debian Buster (10)
Raspbian Buster (10)
Ubuntu 18.04-19.10

+

Debian 10 (Buster)
Raspbian 10 (10)
Ubuntu 18.04-19.10

sudo apt update
 
@@ -98,8 +96,13 @@ sudo apt install python3-usb
 sudo apt install mariadb-client
 sudo apt install python3-mysqldb
-

 

Redhat 7
Centos 7
No MySQL

+ +

+ Python 3 works well on older Redhat 7 or Centos 7 systems, provided that you are not using MySQL. If you are using + MySQL, you will be happier with Python 2 (see below). +

+
sudo yum update
 
 # Ensure that Python 3 is installed:
@@ -118,9 +121,10 @@ sudo pip3 install cheetah3
 
-

 

-

Redhat 7
Centos 7
Using MySQL

-

Python 3 is not recommended if you are using MySQL on Redhat 7 or Centos 7. Use Python 2 instead.

+

Redhat 7
Centos 7
Using MySQL

+

If you are using MySQL on Redhat 7 or Centos 7, you should use Python 2, instead of Python 3. Here is what you will + need. +

sudo yum update
 
 # Required:
@@ -137,7 +141,6 @@ sudo yum install MySQL-python
 
-

 

Redhat 8
Centos 8

sudo yum update
 
@@ -159,9 +162,27 @@ sudo pip3 install cheetah3
 
+

OpenSUSE

+

Tested on OpenSUSE v15.1.

+
sudo zypper update
+
+# Required:
+sudo zypper install python3-configobj
+sudo zypper install python3-Pillow      # Case matters!
+sudo zypper install python3-pyserial
+sudo zypper install python3-usb
+sudo zypper install python3-Cheetah3    # Case matters!
+
+# Optional: for extended almanac information
+sudo pip3 install pyephem
+
+# Required if using MySQL / MariaDB:
+sudo zypper install python3-mysqlclient
+ +

Install WeeWX

-

Then install WeeWX itself.

+

After you have installed the prerequisites, you can install WeeWX itself.

  1. @@ -176,13 +197,16 @@ sudo pip3 install cheetah3
  2. - To specify a location different from the standard /home/weewx, modify the + To specify an install location different from the default /home/weewx, modify the parameter home in the setup.cfg file. Mac users will want to change it to /Users/Shared/weewx.

  3. -

    Then build and install:

    +

    + Then build and install. Python 2 users, substitute python2 for python3. +

    python3 ./setup.py build
     sudo python3 ./setup.py install