Setups for your local computer

Author: Xiping Gong (xipinggong@hotmail.com, Department of Food Science and Technology, College of Agricultural and Environmental Sciences, University of Georgia, Griffin, GA, USA)

Date: 1/14/2025

Introduction

This notebook will help you to setup your computer. I am using a Window 10 system, and the following provides a general procedure to have your computer equipped with essential tools.

  • Install a Linux environment in the window system

Window 10 provides the "Windows Subsystem for Linux (WSL)", and it allows us to operate both Linux and Windows at the same time. The essential idea is to install an Ubuntu app in the Window system, so that we can use the Ubuntu in the Windows.

If you do not know how to install the WSL in your computer, ask the ChatGPT, it can help you.

# Type the following question in the ChatGPT, it will guide you how to install.
how to install a Linux system in the windows?

How to start the Ubuntu in the Windows PowerShell? Open a terminal and type the Ubuntu app you installed, like

PS C:\Users\Xipin> ubuntu.exe
  • Install the Anaconda

The following includes several important bash commands to install the Anaconda.

$ wget https://repo.anaconda.com/archive/Anaconda3-2024.10-1-Linux-x86_64.sh
$ chmod +x Anaconda3-2024.10-1-Linux-x86_64.sh
$ bash Anaconda3-2024.10-1-Linux-x86_64.sh

It can be better if you use a different prefix location. In my case, an example can be, "/home/xipinggong/programs/anaconda/anaconda3"

  • Install the Jupyter notebook

It can be better to use the conda to install. You do not know how to install, ask the ChatGPT.

In the future, if you want to install the python packages, then try to use the conda to install.

  • How to run a python script

Given that we installed the anaconda, the Python has been installed in your system, so just type your first Python script,

# Save the following in a "test.py" file
print(">> Welcome to Python! \n"
      "This could be your first step in trying Python, and it’s an excellent starting point. \n"
      "Remember: Coding can become much easier and more enjoyable with the help of AI tools like ChatGPT.")

Then, go back to the terminal window, then we just type the following:

$ python test.py

The output can be like this:

>> Welcome to Python!
This could be your first step in trying Python, and it’s an excellent starting point.
Remember: Coding can become much easier and more enjoyable with the help of AI tools like ChatGPT.