How to Reset a HP 1810-24G to Factory Defaults

The steps to reset an HP 1810-24G smart managed gigabit switch are as follows:

1. Using a paperclip, simultaneously press the Reset and Clear buttons.

2. Release the reset button, while continuing to press the Clear button.

3. When all three mode LEDs (Act, FDx, and Spd) begin to blink, release the Clear button.

Once the switch completes the self-test, the switch will be reset to factory defaults. The default IP address will be 192.168.2.10 and there will be no password.

 

Source:

http://coderzen.com/2013/06/04/how-to-reset-a-hp-1810-24g-to-factory-defaults/

Change active java version in Kali

Running applications on Kali can sometimes be rather difficult in combination with Java.  To control the active version of Java, try the following:

First, check the current version of Java:

# java -version

openjdk version “1.8.0_162”
OpenJDK Runtime Environment (build 1.8.0_162-8u162-b12-1-b12)
OpenJDK 64-Bit Server VM (build 25.162-b12, mixed mode)

With the next command, you can change the Java version:

# update-alternatives –config java

There are 2 choices for the alternative java (providing /usr/bin/java).

Selection Path Priority Status
————————————————————
0 /usr/lib/jvm/java-9-openjdk-amd64/bin/java 1091 auto mode
* 1 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual mode
2 /usr/lib/jvm/java-9-openjdk-amd64/bin/java 1091 manual mode

Press <enter> to keep the current choice[*], or type selection number:

Enter the number of the desired Java version and it will be active, for example zero. The Java version will be openjdk9:

update-alternatives: using /usr/lib/jvm/java-9-openjdk-amd64/bin/java to provide /usr/bin/java (java) in auto mode

# java -version

openjdk version “9.0.4”
OpenJDK Runtime Environment (build 9.0.4+12-Debian-4)
OpenJDK 64-Bit Server VM (build 9.0.4+12-Debian-4, mixed mode)

 

Sources:

https://www.mkyong.com/linux/debian-change-default-java-version/

https://forums.kali.org/showthread.php?41-Installing-Java-on-Kali-Linux