Installing Anaconda 3.8 on Mac – Python Programming

20210728 Update
-I overinstalled with Anaconda 3.8. There was mention of an IDE – PyCharm Pro, which I can install within Anaconda.
-Here’s a link to Anaconda Individual Edition Tutorial
-Here’s a link to Getting Started with Anaconda. But, I’m doing an intro course using LinkedIn Learning

20210728 Update re: version of Python
-Went into Terminal, Python
Python 3.8.8 (default, Apr 13 2021, 12:59:45)
[Clang 10.0.0 ] :: Anaconda, Inc. on darwin

20210728 How to run Anaconda
-I noticed that I cannot drag Anaconda-Navigator from Applications to the Mac Dock. I have to go into applications and click on it. There is a small arrow icon – maybe that’s why.

I think I already have installed Python 3.7, but this is a more comprehensive package of various tools. The objective is to learn more about Data Analysis, using this popular programming language.

Downloaded the 64-bit Graphical Installer for MacOS – https://www.anaconda.com/products/individual

Some additional links for learning
Quick Start Guide – https://docs.anaconda.com/anaconda/user-guide/
Anaconda Individual Edition Tutorial – https://get.anaconda.com/distribution/tutorial/
Anaconda Cloud Edition – https://anaconda.org/
Learn more about Anaconda – https://www.anaconda.com/distribution/success/

When I went to Terminal, and entered Python, it returned this (which tells me that I’m running the Anaconda version that I just installed
Python 3.7.6 (default, Jan 8 2020, 13:42:34)
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin

To confirm various packages are installed, I enter:
import numpy
import pandas
import matplotlib

Based on not getting any response — that’s good news

Within Applications, I have Anaconda Navigator. Within that are a bunch of things – JupyterLab, Juypter Notebook, Qt Console, Spyder, Glueviz, Orange3, RStudio.

Jupyter Notebook is a comprehensive all-in-one that allows you to write, document, test, present code.

Ran the Anaconda Application (from Applications) – can’t get this on dock for some reason. Select Jupyter Notebook. New, Python3.
print(“Hello”) – and then, Shift-Enter.

I can modify what I had entered – eg. print(“Hello Paul”) and do another Shift-Enter

Note: I remember seeing Jupyter Notebook with SAS University. What’s good is that I now have direct access on the Mac and don’t need to open my VirtualBox VM for SAS University.

Adding to the code with:
for letter in “Hello, Paul”:
print(letter)

Note: I had received an error – -it is “in”
This writes the string vertically

Markdown (Basic Formatting – bold, italic, bullet points, hyperlinks and math formulas) – cells can contain text and code
From menu — Cell, Markdown

This is interesting:
I can write **documentation** in https://daringfireball.net/markdown
* A Formula: $\sqrt(1 + x) $

Comes back all formatted including the formula

Various shortcut keys available

Full documentation in jupyter.org

Posted in Programming, Python, Python | Leave a comment

Installing CentOS on Virtual Box on MacOS

Cross reference to a prior blog post from 2012 — http://www.paulgarth.com/installing-centos-within-virtualbox-running-on-windows7/

Virtual box https://www.virtualbox.org/wiki/Guest_OSes shows RHEL7, so I will be installing CentOS 7

VirtualBox was already running, but I didn’t have extension packs installed. On VirtualBox Downloads is VirtualBox 6.1.8 Oracle VM VirtualBox Extension Pack

Issue: I have VirtualBox 6.0.20 installed, which is older than extension pack.

Checked within VirtualBox for updates, and I have the most recent version. What gives.

For now, I’m going to hold off on extensions — maybe that’s just for Mac

I think I had to manually download the latest Virtual Box 6.1.8

So far so good. Now I have the latest version 6.1.8. Also the Extension Pack I had downloaded is not showing correctly with a green checkmark within Preferences inside the app

https://www.virtualbox.org/wiki/Changelog ; Changelog for VirtualBox 6.1; VirtualBox 6.1.8 (released May 15 2020)

Guest Additions: Build problems fix with Oracle Linux 8.2 (Red Hat compatible kernel) / Red Hat Enterprise Linux 8.2 / CentOS 8.2 (bug #19391)
Note: Looks like CentOS 8 will be OK. They haven’t updated that other doc that only went up to RHEL 7

https://www.centos.org/download/; CentOS Linux DVD ISO as of 20200519 is 8.1.1911

Create a VM — CentOS 8
Changed RAM to 2048 (2GB)
Create Virtual Hard Disk – Create a VDI of 8GB
Dynamically allocated – allocates as VM needs it
Leaving at 8GB
Note: Now we have a Virtual Machine created

Customizing the Virtual Machine Settings:
-Confirmed Settings, Systems, Enable I/O APIC is checked – VM will run faster
-Processors – increased to two (2) — still in the green
-Confirmed Enable Feature PAE/NX is checked – faster and other things
-Confirmed under acceleration that Enable Nested Paging is checked
-Changed Display — gave more Video Memory — 60MB
-Checked on Enable 3D Acceleration
-Network; changed from NAT to Bridged Adapter — so I can log-in to the VM from outside Virtual Box. Auto set for Thunderbolt Ethernet

DVD ISO
-I downloaded from https://www.centos.org/download/; CentOS Linux DVD ISO as of 20200519 is 8.1.1911
Note: It’s 7GB in size. Maybe I could have found a smaller distro with less stuff in it, but keeping this relatively the same as the Lynda training.

Didn’t bother cloning the VM — I’m only going to do this once, as it’s on my own Mac
Note: If I did click on Clone, change to something like CentOS 8 Full DVD, and also click on reintialize the MAC address of all network cards — so each VM is truly unique. Note: Full clone checked

Started the VM; it asked for location of DVD ISO

Install

Language – English; Time and Data
Install Destination; Custom; Suggest; accepted defaults (3 folders – boot, root, etc…

Create a Root password

Create first user and password — ensured I checked as administrator

Haven’t configured network settings yet, but that’s OK because we did install from the full DVD ISO

Waited

Didn’t work – ran out of resources

I’m going to do a do-over — this time with CentOS 7

The Lynda.com tutorial focuses on CentOS 7, and there are some differences in the layout with version 8. I downloaded from CentOS.org the full DVD of Centos 7. Followed the same settings as above.

Layout during installation definitely different that version 8 — could to be in synch with Lynda videos. Verified the Full DVD download of CentOS 7 within the installer. Selected Server with GUI.

Yeah!! It worked. Just had to be patient for the final system cleanup process. Rebooted. Accepted license. Logged in. Done.

Posted in CentOS, Linux | Leave a comment

Installing CentOS on VirtualBox on old Windows XP 32-bit

Goal: Create a CentOS test server at home, so I can go through the lynda.com course on Linux

-I have an old Windows XP 32-bit laptop
-Managed to get it online
-Google Chrome is the only browser that allows https downloads without drama
-Downloaded VirtualBox 5.2.42 – old build. Got a bunch of messages about not certified with Windows Logo. Overrode and did the install anyway
-Distrowatch – to find an appropriate linux distro for my setup
-I need to find a stable version that will work on a 32-bit VirtualBox VM
-Each VM is about 8GB
-RHEL7 is associated with CentOS
-We want CentOS version 7
-Lynda used VirtualBox 5.1.4.
-Lynda said to not immediately run VirtualBox, but to first install an Extension Pack….
-Quit out of my app; downloaded the Extension Pack; verified in VirtualBox preferences; OK
-Note: Only difference is that I have a newer version of VirtualBox
-To find a distro of CentOS — https://wiki.centos.org/Download; AltArch Releases
-VM Setup – 1.5GB RAM; 8GB of Diskspace

-Name of Server – CentOS 7
-1.5GB RAM (Note: On this machine I had to reduce it below 1GB
-Create Virtual hard disk; VDI
-Allocate space – dynamically; 8GB; default
-Settings; System; Enable I/O APIC — will run faster
-Processor – choose more CPUs
-Enable PAEAN
-Followed this to resolve the .ISO – https://wiki.centos.org/HowTos/Virtualization/VirtualBox/CentOSguest
-Note: I used this to find the 32-bit ISO for CentOS 7 – http://isoredirect.centos.org/altarch/7/isos/i386/
-NOTE: This bombed – I don’t have enough RAM. Oh well…. I’ll install on VirtualBox on my Mac which has more RAM

Posted in CentOS, Linux | Leave a comment