java installation
Download the copy installation package to kail
The installation package has been downloaded and shared to kail linux through a shared folder.
Unzip copy
tar -zxvf 压缩包名字 #解压
Wrong copy, copy the file to / opt again.
Set environment variables
Execute gedit ~ / .bashrc and add the following content
# install JAVA JDK
export JAVA_HOME=/opt/jdk1.8.0_91
export CLASSPATH=.:${JAVA_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH
Run source ~ / .bashrc.
Installation registration
update-alternatives --install /usr/bin/java java /opt/jdk1.8.0_91/bin/java 1
update-alternatives --install /usr/bin/javac javac /opt/jdk1.8.0_91/bin/javac 1
update-alternatives --set java /opt/jdk1.8.0_91/bin/java
update-alternatives --set javac /opt/jdk1.8.0_91/bin/javac
test
java -version
If there is an error: the binary file cannot be executed, it may be caused by the inconsistency of the number of bits in jdk and linux, so use uname -m to check how many bits are in the linux system when downloading jdk.
Install graphics driver
Virtual machine does not need to be installed
Install NIC patch
uname -a #查看内核版本
Need to cross the wall.
Concurrent thread limit
ulimit is used to limit the resource usage of processes in the current shell.
The current refers to: the currently opened terminal window, and then reopen a terminal, he can not restrict the use of resources in the newly opened terminal.
ulimit -a #查看默认值
eg:
ulimit -s 100 #限制堆栈内存大小100
ulimit -m 5000 -v 5000 #限制shell内存使用
You can edit a file to achieve the configuration. Bashrc, permanently effective, suitable for multiple terminals.
Power optimization
The penetration test system consumes a lot of power and prolongs battery life. It requires:
suspending operation without operation, turning off the monitor,
reducing the brightness of the monitor
, and turning off the network card when not in use. Turning
on the hard disk power saving option
/ dec / sda is the current hard disk.
Starting notebook mode
5 is starting notebook mode.
Service switch
By default, kail linux does not start all network services. You
need to temporarily open one of these services. You can do the following:
/etc/init.d/相应服务 start
eg:
/etc/init.d/ssh start
If you need to open permanently, use the following operations:
update-rc.d ssh start 20 2 3 4 5 . stop 20 0 1 6 .
#运行级别0-6
update-rc.d 服务名 defaults [80(启动优先级) 20(关闭优先级]
Examples:
There are two ways to start ssh
temporary startup:
permanent startup: