Session 1: Introduction
Objective:
- The objective of this session is to teach you how to login to the lab computers, as well as how to navigate the terminal using simple Unix commands. You will also learn how to use Pycharm.
Lesson Plan:
- Login to the lab computers.
- Introduction to Unix commands:
- cd: Changes your directory. A directory is similar to a file cabinet, it holds both folders and files. Example: cd Documents
- mv: Moves files. Example of moving a file to the Documents folder: mv filename.doc Documents
- pwd: Prints your current directory. Ex: pwd
- man: Allows you to read the manual page for different commands. Ex: man cd
- ls: Lists the contents of your current directory. Ex: ls or ll
- cp: Copies a file and gives it the name of your choosing. Ex: cp original_file_name.doc copy_file_name.doc
- rm: **Careful! This command deletes the file of your choosing. Once you use this command, the file is gone! There are no warnings. Ex: rm file_name.doc
- mkdir: Makes a directory. Ex: mkdir CS_Notes
- Tips for using the Terminal:
- When you launch programs, follow the command with an ampersand (&) and then execute the command. Doing so will allow you to continue to use the terminal even when the program is running. Ex: gedit filename.txt &
- A space in a file name must be replaced with “\ “. Ex: File Name.doc becomes: File\ Name.doc
- Change your account password:
- Open the terminal and type in the command: passwd
- Follow the instructions in the terminal.
- Install the necessary software on the lab machines:
- In the terminal, type in the following commands:
- python3 -m pip install --user twython
- python3 -m pip install --upgrade --user nltk
- python3 -m pip install --user vaderSentiment
- ipython -i
- import nltk
- nltk.download()
- This will bring up a menu, navigate to the top right. Click on the blue colored tab titled “All Packages”. Scroll down to a file called “vader_lexicon” and download it. Once it is downloaded, exit the menu.
- Accessing PyCharm
- In xfce, right click on the desktop background.
- Click “Create Launcher”
- Name: Pycharm
- Command: /usr/local/pycharm-community-2016.1.4/bin/pycharm.sh (You can copy and paste this)
- Click “Create”
- Click on “Pycharm” in your desktop, and when prompted, click “Launch Anyway”
- Give it a few moments!
- If the “Tip of the Day” window pops up, just click “Close”
- Follow your instructors directions past this point!
Congratulations! Session 1 is complete. Click here to return to the schedule.