We will be guiding you through the installation and configuration process of all the necessary software and tools to program the drones in ELE115.
Estimated Time Cost: 3min
-
To begin with, visit Join Github to create a Github account (if you don't have one yet).
-
Type your username, email, and password.
-
Please remember which email you are using now to create Github account. It will be used later.
-
Click next. Select the Free plan and proceed.
-
Activate your account by following the link in your email.
-
After finishing the registration process, visit New personal access token.
-
Type
IntelliJ IDEA
for Note. -
Check the checkbox
repo
andgist
below (sub-checkbox shall be automatically checked for you). -
Click
Generate token
. -
Now you should see a long green string composed of random numbers and characters, called token. Your token will be used later so please copy this token and store it to somewhere super secret. Remember, NEVER SHARE YOUR TOKEN WITH ANYONE, including TAs.
Proceed to step 2 when finished.
Estimated Time Cost: 15min
Installation process is different among different operating systems, so please choose your operating system:
- Windows 10
- Mac OS X
- Linux
- Download git 2.25.0.
- Double click to open it.
- Click
Yes
if Windows asks "Do you want to allow this app to make changes to your device". - In the installation wizard, click
Next
5 times. - In the
Adjusting your PATH environmen
page, choose the second option,Git from the command line and also from 3rd-party software
. ClickNext
. - In the
Choosing HTTPS transport backend
page, choose the first option,Use the OpenSSL library
. ClickNext
. - Here is an important part:
In the
Configuring the line ending conversions
page, choose the second option,Checkout as-is, commit Unix-style line endings
. ClickNext
. - In the
Configuring the terminal emulator to use with Git Bash
page, choose the first option,Use MinTTY (the default terminal of MSYS2)
. ClickNext
. - In the
Configuring extra options
page, checkEnable file system caching
andEnable Git Credential Manager
. UncheckEnable symbolic links
. ClickInstall
. - Click
Next
when done.
- Download OpenJDK 11.0.6.
- Double click to open it.
- In the installation wizard, click
Next
. - Check
I accept the terms in the License Agreement
. ClickNext
. - Here is an important part:
In the
Custom Setup
page, click on the red cross beforeSet JAVA_HOME variable
, and change it to the first option available (akaWill be installed on local hard drive
). - Click
Next
. - Click
Install
. - Click
Yes
if Windows asks "Do you want to allow this app to make changes to your device". - Click
Finish
when done.
- Download IntelliJ IDEA.
- Click
Yes
if Windows asks "Do you want to allow this app to make changes to your device". - In the installation wizard, click
Next
3 times. - Click
Install
. - Click
Finish
when done.
Now, Configure your IntelliJ IDEA.
- Download git 2.23.0.
- Double click to open it.
- RIGHT click on the
git-2.23.0-intel-universal-mavericks.pkg
. PickOpen
. - In the new dialog asking for permission, click
Open
. - Now you shall see a window titled
Install git-2.23.0-intel-universal-mavericks
. Click continue, and then install. - If it asks for your password, just type in your password.
- Click
Close
when finished. - Click
Move to trash bin
.
- Download OpenJDK 11.0.6.
- Double click to open it.
- Click
Next
. - Click
Next
, and clickAgree
. - Click
Install
. - If it asks for your password, just type in your password.
- Click
Close
when finished. - Click
Move to trash bin
.
- Download IntelliJ IDEA.
- Double click to open it.
- In the new window poped out, drag the
IntelliJ IDEA CE
icon into the folder on the right side. - Close the window when finished.
Now, Configure your IntelliJ IDEA.
Launch Terminal. Copy-paste the following code, one line by another, into your terminal. Hit enter after each line.
Note: if it prompts "[sudo] password for ....:", then type your login password here.
cd
sudo apt-get update
sudo apt-get install -y git openjdk-11-jdk wget
wget https://download.jetbrains.com/idea/ideaIC-2019.3.2.tar.gz
sudo mkdir /usr/share/idea
sudo tar xzf ideaIC-2019.3.2.tar.gz -C /usr/share/idea --strip-components=1
sudo ln -s /usr/share/idea/bin/idea.sh /usr/bin/idea
Copy-paste the following code, as a whole, into your terminal.
sudo tee /usr/share/applications/idea.desktop <<EOF
[Desktop Entry]
Version=1.0
Type=Application
Name=IntelliJ IDEA Community Edition
Comment=Develop with pleasure!
Exec=/usr/bin/idea %f
Icon=idea
Terminal=false
StartupNotify=true
StartupWMClass=jetbrains-idea-ce
Categories=Development;IDE;Java;
EOF
The IntelliJ IDEA icon shall appear on your desktop. Now, Configure your IntelliJ IDEA.
Launch Terminal. Copy-paste the following code, one line by another, into your terminal. Hit enter after each line.
Note: if it prompts "[sudo] password for ....:", then type your login password here.
sudo pacman -Syu --noconfirm # Recommanded, but not necessary
sudo pacman -Sy --noconfirm git jdk11-openjdk wget intellij-idea-community-edition
The IntelliJ IDEA icon shall appear on your desktop. Now, Configure your IntelliJ IDEA.
The procedure should be similar as above.
Google install xxx on yyy
where xxx
is one of the following and yyy
is your opearting system and follow the instructions.
You need to install these:
- git
- OpenJDK 11.0.6
- IntelliJ IDEA 2019.3
If you still have trouble, please contact course instructors.
Estimated Time Cost: 10min
- Open IntelliJ IDEA if you haven't done so.
- Choose
Do not import settings
, and clickOK
. - Choose your preferred UI style, either dark or bright.
- Click
Skip Remaining and Set Defaults.
You should now see a dialog titled Welcome to IntelliJ IDEA
.
Before we proceed to anything else, we need to download our project template.
- Goto your IntelliJ IDEA configuration folder:
- For Linux, it is
~/.IdeaIC2019.3/config/
. - For macOS, it is
~/Library/Preferences/IdeaIC2019.3/
. To go to this folder:- Open Finder.
- Cilck Go menu, and click
Go to Folder...
. - Type
~/Library/Preferences/IdeaIC2019.3/
and clickGo
.
- For Windows, it is
C:\Users\<username>\.IdeaIC2019.3\config\
.
- Create a folder named
projectTemplates
(if not exists) in the above folder. - Download ELE115 project template.
Put the downloaded zip file to the projectTemplates folder.
Override the existing
ELE115.zip
file if there is one.
Note: DO NOT UNZIP THE FILE. Put the zip file, not the unzipped folder, into the projectTemplates
folder.
Note: For mac OS users: To download without unzipping in Safari, right click on the link and choose Save as...
.
Note: Some Linux users may have trouble with this step. Please consult course instructors if you are using Linux.
In the Welcome to IntelliJ IDEA
dialog:
- Click the
Configure
button at the bottom, and clickSettings
(orPreferences
if you are using mac OS). - Click the triangle before
Version Control
on the left, and clickGitHub
. - Click
Add account
on the right. - Click
Use Token
on the top, and paste your token generated before into the box. - Check
Clone git repositories using ssh
ONLY if you are using Linux or mac OS. - Click
Log In
. You shall now see your Github Account added to IntelliJ IDEA.
Note: Only Windows users should do this. Non-windows users can simply skip this section.
- Unfold
Tools
, and clickTerminal
. - In the
Shell path
text field, type:"C:\Program Files\Git\bin\bash.exe"
. Remember to include the quotes"
..."
.
In the Settings/Preferences dialog:
- Click
Plugins
. - Search
Gradle Run with Arguments
. - Click
Install
, and clickAccept
. - Click
Restart IDE
, and clickRestart
.
Note: It is HIGHLY RECOMMANDED that you follow these steps to tweak some IDE features. These features add complexity to your coding experience, which, while good for experts, may harm newbies.
In the Welcome to IntelliJ IDEA
dialog:
- Click the
Configure
button at the bottom, and clickSettings
(orPreferences
if you are using mac OS). Editor
/General
/Code Folding
, uncheck all checkboxes.Editor
/General
/Gutter Icons
, uncheckRun line marker
.Editor
/General
/Postfix Completion
, uncheckEnable postfix completion
.Editor
/Live Templates
, uncheck all checkboxes.Editor
/Intentions
, uncheckGroovy
andJava
.Editor
/Inlay Hints
/Java
, chooseParameter hints
, and then uncheckShow parameter hints for:
.- Click
OK
.
Congratulations! You've successfully setup all the necessary programming environment in ELE115. Wish you a good luck on your journey with drones.
The ELE115 project template you just downloaded MAY be updated thorough the whole term by our TAs. Upon notificated by TA, you shall upgrade your project template ASAP.
The process is extremely simple: you just go through the same process as above.
Note: If you do not upgrade your project template in a timely manner, you may encounter weird bugs that makes your life much harder during the labs.