Install and configure eclipse on kali Linux

First go to the official website to download the Linux installer, and configure it after installation

Build Python:

Search for Python in Help->Eclipse Marketplace to find the PyDev installation;

After the installation is complete, you need to configure the Python environment, otherwise an error will occur when creating a new project.

After installation, find the PyDev->Interpreters option in Window->Preferences, and set the corresponding Python Interpreters. Add a new interpreter to the New on the right, fill in python in the Interpreter Name, click the Browse button on the right of the Interpreter Executable option, find the path and binary file corresponding to Python, add it, and then automatically configure the path and environment variables.

 

################################################################

Build the Arduino:

Search for Arduino in Help->Eclipse Marketplace and find two packages of The Arduino Eclipse Plugin named Sloeber V4 are installed (install any one and the other will be installed automatically);

After the installation is complete, you will be prompted to restart Eclipse. After restarting, wait for the corresponding package to be automatically downloaded and installed (be sure to have a network, otherwise some resources may be lost)

After installation, find the expansion library and development board resources corresponding to the Arduino installation in Window->Preferences.

Set downloader parameters:

The downloader configuration file is in {Eclipse installation path}/cpp-neon/eclipse/arduinoPlugin/packages/arduino/hardware/avr/1.6.20/programmers.txt

For the downloader configuration, you can add a new rule directly in it

arduinoasispa.name=Arduino as ISP1
arduinoasispa.communication=serial
arduinoasispa.protocol=wiring
arduinoasispa.speed=115200
arduinoasispa.program.protocol=wiring
arduinoasispa.program.speed=115200
arduinoasispa.program.tool=avrdude
arduinoasispa.program.extra_params=-P{serial.port} -b{program.speed}

Because the default is stk500v1, and the baud rate is 19200, there is no way to use it, according to the parameter options configured in ArduinoIDE

/usr/share/arduino/hardware/tools/avrdude -C/usr/share/arduino/hardware/tools/avrdude.conf -v -v -v -v -patmega2560 -cwiring -P/dev/ttyUSB0 -b115200-D -Uflash:w:/home/workspace/Arduino/Release/Arduino.hex:i

Make settings.

 

The downloader parameter configuration file is in {Eclipse installation path}/cpp-neon/eclipse/arduinoPlugin/packages/arduino/hardware/avr/1.6.20/platform.txt

found in the parameter configuration file

tools.avrdude.program.pattern="{cmd.path}" "-C{config.path}" {program.verbose} {program.verify} -p{build.mcu} -c{protocol} {program.extra_params} "-Uflash:w:{build.path}/{build.project_name}.hex:i"

Change this line to

tools.avrdude.program.pattern="{cmd.path}" "-C{config.path}" {program.verbose} {program.verify} -p{build.mcu} -c{protocol} {program.extra_params} -D "-Uflash:w:{build.path}/{build.project_name}.hex:i"

That's it. (In fact, it is to add a -D parameter)

 

################################################################

Install Java in C/C++:

In Help->Install New, select Neon -  http://download.eclipse.org/releases/neon in Work with , and check the Java-related options (such as Eclipse Java Development Tools) in Programming Languages;

To set autocompletion hints for Java:

Find Java->Editor->Content Assist in Window->Preferences, enter .abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ in the box of Auto activation triggers for Java in Auto Activation on the right

 

################################################################

Install the dark theme:

Search for Darkest Dark Theme installation in Help->Eclipse Marketplace;

After the installation is complete, find General->Appearance in Window->Preferences, and modify the theme to Darkest Dark. There is an option box for Try out DevStyle for more theming options in Darkest Dark. If checked, a welcome interface will pop up when Eclipse starts, which is generally not needed. If you accidentally set it, there is an option to deselect it at the bottom, just select I don't like it.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325147049&siteId=291194637