Skip to content

After downloading this CentOS boot iso (~740MB) file instead of the full-blown (~4.1GB) from CentOS website on windows 10, I've decided to install CentOS Stream inside VMPlayer instead of Virtualbox. Installing main stream flavors of linux on either Hypervisor client software would be perfectly fine. Many of the linux distros will work inside either software.

BTW: Kubuntu, Xubuntu and Manjaro are working Great inside VMPlayer. There is one unique linux distribution where i wish i could use on a daily basis due to its sheer GUI using the Pantheon GUI Engine. This is elementary linux. Please support and donate to many of these wonderful linux opensource communities. 🙂

Configurations:
-- 8096 MB RAM
-- 20 GB HD
-- 2 CPUs

Installation Process:
After realizing i had installed CentOS v8 on a laptop before end of October 2020. This CentOS version 8 was no longer able to be downloaded and was replaced with this new version of the fedora like CentOS Stream which will get upgraded every 6 - 8 months unlike the previous CentOS version 8. The installation process was extremely similar to CentOS version 8 and 7. The only one section which differed from previous versions were the section to insert a link for the installation source location which is a repo of packages. This time, CentOS install force users to manually enter this URL
mirror.centos.org/centos/8/BaseOS/x86_64/os/

One can also add additional repository onto their CentOS server. I could never seem to remember this added on magical repo for all Redhat like OS. These two repos were the two i've used when i was in the IT industry on the Redhat like OSes.

https://fedoraproject.org/wiki/EPEL
https://rpms.remirepo.net

After choosing a few server packages and it was off to download and installation process. At the end of this process after a reboot. You would then add your user(s) to this newly deployed system. Super easy to get this up and running on VMPlayer workstation.

Instructions on how to install CentOS stream if you want to use it as a Guide.

There had been a major software security breach in the world of software management. I've been following this event in order to grasp the magnitude or scale of this breach which had ensnared public and private organizations. It does appear this security breach had affected a wide range of companies not only in the US and also agencies in the US Fed Gov as well. There was a joint write-up between Microsoft and Fireeye on how this breach was completed.

https://www.fireeye.com/blog/threat-research/2020/12/evasive-attacker-leverages-solarwinds-supply-chain-compromises-with-sunburst-backdoor.html

https://cyber.dhs.gov/ed/21-01/

https://us-cert.cisa.gov/ncas/alerts/aa20-352a

Many of the IT Security has been using security tools to decipher what was done in the code (dll) file by the following software:

https://www.fireeye.com/blog/threat-research/2020/12/evasive-attacker-leverages-solarwinds-supply-chain-compromises-with-sunburst-backdoor.html

https://github.com/cybercdh/hacks/tree/master/sunburst

https://www.winitor.com/

https://ghidra-sre.org/

We will provide some software which can easily be installed on windows, linux, and Mac as a standalone software package.

-- https://www.apachefriends.org/download.html
-- https://bitnami.com/stack/wamp/installer
-- https://www.mamp.info/en/downloads/
-- https://www.appserv.org/en/download/
-- https://ampps.com/downloads
-- https://www.wampserver.com/en/

installation to install these things separately as three different packages
-- https://www.znetlive.com/blog/how-to-install-apache-php-and-mysql-on-windows-10-machine/

-- mariaDB: https://mariadb.org/download/
-- mysql: https://dev.mysql.com/downloads/
-- mysql: https://dev.mysql.com/downloads/mysql/
-- php: https://www.php.net/downloads
-- https://downloads.apache.org/httpd/

Notable mention of a super-fast HTTP Engine
-- https://nginx.org/en/download.html

We will plan to write some documentation on how to install mariaDB+php+apache+odbc on a later Chapter.

Special linux distro LAMP installation guide
-- https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mariadb-php-lamp-stack-on-debian-10
-- https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mariadb-php-lamp-stack-on-centos-8
-- https://www.itzgeek.com/post/how-to-install-linux-apache-mariadb-php-lamp-stack-on-ubuntu-20-04/

// ADD DNS to your mac machine on CMD
sudo networksetup -setdnsservers Wi-Fi 8.8.8.8 8.8.4.4 185.228.168.9 208.67.222.222

// Change your mac hostname, pcname, localhostname
sudo scutil --set HostName <NEWMACHINENAME>
sudo scutil --set ComputerName <NEWMACHINENAME>
sudo scutil --set LocalHostName <NEWMACHINENAME>



@echo OFF
::
:: This was one of the most complicated software i had ever written
:: DOS scripting is Crazy HARD !
:: 
cls
:: Prompt for user to Really run this script
setlocal
set Value="n"
:PROMPT
SET /P Value=Are you sure (y/[n])?
IF /I "%Value%" NEQ "y" GOTO END

:: This batch file will show details Windows 10, and install Python v3.8.6.
TITLE Install Python Software on Windows 7/8/9/10
echo.Checking system information.
TIMEOUT /T 2 > nul

:: Switch to Downloads early on
cd %userprofile%/Downloads

echo.
echo.
:: Section 1: Windows 10 information.
echo.============================
echo.WINDOWS INFO
echo.============================
echo.
systeminfo | findstr /c:"OS Name"
systeminfo | findstr /c:"OS Version"
systeminfo | findstr /c:"Hyper-V Requirements"

:: Quick Pause
echo.
TIMEOUT /T 2 > nul

echo.
echo.
:: Section 2: Hardware information.
echo.============================
echo.HARDWARE INFO
echo.============================
echo.
systeminfo | findstr /c:"Total Physical Memory"
systeminfo | findstr /c:"Virtual Memory: In Use"
:: wmic diskdrive GET index,caption,name,size /format:table
:: wmic diskdrive GET index,Model,SerialNumber,Size,Status

:: Quick Pause
echo.
TIMEOUT /T 10 > nul

echo.
echo.
:: Section 3: Python Download.
echo.============================
echo.Downloading Python
echo.============================
echo.
::
echo.Downloading Python Software.
::
::
TIMEOUT /T 4 > nul
echo.
echo.
bitsadmin /transfer PythonDownload /download /priority normal https://www.python.org/ftp/python/3.8.6/python-3.8.6-amd64.exe %userprofile%\Downloads\python-3.8.6-amd64.exe

:: Quick Pause
echo.
echo.
TIMEOUT /T 2 > nul
TIMEOUT /T 2 > nul
echo.Checking to see if this python file has been downloaded.

IF EXIST python-3.8.6-amd64.exe (
  echo.Python file has been Found.
  echo.Will now Install this Software.
  echo.
  TIMEOUT /T 2 > nul
) ELSE (
  TIMEOUT /T 2 > nul
  echo.Software not found.
  echo.Perhaps, try to run this file again.
  echo.
  goto end
)
echo.Finish downloading the Python Software.
echo.

echo.
echo.
:: Section 4: Python Installation.
echo.============================
echo.Installing Python
echo.============================
echo.

echo.
echo.Installing Python version 3.8.6.
echo.This process will take as much as 15 mins if there is no SSD.
echo.
echo.Go grab Koffie or something before coming back to your Laptop.
:: This python install process is weird, it will simply return prompt once it had been executed but the process
:: will not be 100 percent completed before continuing as we have learned.
%userprofile%\Downloads\python-3.8.6-amd64.exe /quiet InstallAllUsers=1 TargetDir=c:\Python38 AssociateFiles=1 CompileAll=1 PrependPath=0 Shortcuts=0 Include_doc=1 Include_debug=0 Include_dev=0 Include_exe=1 Include_launcher=1 InstallLauncherAllUsers=1 Include_lib=1 Include_pip=1 Include_symbol=0 Include_tcltk=1 Include_test=1 Include_tools=1
::
::
:: This is quite sensitive wait time during installation.
:: It is compiling and creating all the dirs before all
:: files are compiled. It then do other things too.
:: Not sure what would be a good wait time before moving onto the next process.
:: it is wise to wait for atleast 3 mins actually due to compilation
:: of lots of tiny files inside python.
::
echo.
echo.Still compiling Python modules........
:: TIMEOUT 400
:: Buffer Zone
TIMEOUT /T 2 > nul
echo.
SET num=60
for /L %%I IN (1, 1, %num%) do (
  echo. | set /p="%%I " 
  TIMEOUT /T 1 > nul
)
echo.
echo.
echo.Finished Installing Python Software
echo.
echo.
::
::
echo.Be Patient, Almost done.
::
::
echo.
echo.
:: Section 4: Third Party Software Installation.
echo.============================
echo.Installing Third Party Software
echo.============================
echo.
::
:: Checking the file to see if it was made
::
echo.
:check
if exist C:\Python38\Tools\pynche\Main.py (
    echo.Checking Files if they were Created.....
    TIMEOUT /T 3 > nul
    echo.
    echo.They were created.
) else (
    echo.Files still not created.....
    TIMEOUT /T 2 > nul
    echo.
    TIMEOUT /T 3 > nul
    echo.Problem with installation. PRESS: CTRL-C to End Installation process only if after two messages printed.
    goto check
)

echo.
echo.
echo.Updating pip the module manager tool.
::
:: Updating pip on Windows
C:\Python38\python.exe -m pip install --upgrade pip
::
TIMEOUT /T 3 > nul
echo.
echo.Finished Updating pip.
::
:: Waiting for the previous process to finish
::
echo.
echo.
echo.Installing Additional required Modules
TIMEOUT /T 4 > nul
C:\Python38\scripts\pip.exe install --user requests diceware scipy numpy pandas matplotlib seaborn
TIMEOUT /T 8 > nul
::
echo.
echo.Finished installing Required Modules.

echo.
echo.
:: Section 4: Execute runme.bat.
echo.============================
echo.Execute runme.bat
echo.============================
echo.

echo set PATH=C:\Python38;%PATH% > %userprofile%\runme.bat
del /s %userprofile%\Downloads\python-3.8.6-amd64.exe >nul 2>&1
echo."Done Installing"
call %userprofile%\runme.bat
python -c "print(\"Welcome, Python installation Success !\")"
:END
The above code should do the trick in order to install python v3.8.6 onto a windows 10 x86_64 machine. Run it as admin since stuff will needed to be installed in C:\, mk dir and compile all kinds of stuff.  We were hesitant to install v3.9.0 Python since there might not many supported third party library as of this writing, so we defaulted in using the latest previous version. We have tested this script on windows 10. It has been Functioning three times since 20201125. Tested on both windows 10 v1907 and v20H2

This is pretty simple when comes to compiling Python on any *nix OS. There must compilation tools to be first installed before continuing onto compiling a opensource software such as the Python programming language.

on Ubuntu types of Distros:
we must install the following tools on the command prompt.

>>> sudo apt-get install build-essential

on CentOS like OSes:
We can do the following to obtain development tools

>>> sudo yum groupinstall 'Development Tools'

Finally, we can then roll over to python website to download the latest release candidate.

https://www.python.org/downloads/release/python-390rc2/

Download either the Gzipped source tarball or XZ compressed source tarball. If you have downloaded the GZ source code package. We can do the following to extract code into a directory and compile like a boss.

>>> tar xzvf Python-3.9.0rc2.tar.gz
>>> cd Python-3.9.0rc2/

Missing _lzma ? No problem we can first install xz and lzma using macports then configure the CFLAGS and LDFLAGS ENV variable to enable lzma header info unto bash.

>>> sudo port install xz lzma
>>> export LDFLAGS="-L/opt/local/lib"
>>> export CFLAGS="-I/opt/local/include"
>>> ./configure --enable-optimizations
>>> make
>>> make test
>>> make install