"Safe Cow Learning Notes" Install Java, install graphics drivers, install network card patches, concurrent thread limits, power optimizations. txt

Source: Internet
Author: User

Download

http://java.sun.com/javase/downloads/index.jsp

Unpacking copy

Tar-xzvf/root/jdk-7u45-linux-x64.tar.gz

MV Jdk1.7.0_45/opt

Cd/opt/jdk1.7.0_45

Install Registration

Update-alternatives--install/usr/bin/java Java/opt/jdk1.7.0_45/bin/java 1

Update-alternatives--install/usr/bin/javac Javac/opt/jdk1.7.0_45/bin/javac 1

Update-alternatives--install/usr/bin/mozilla/plugins/libjavaplgin.so mozilla-javaplugin.so/opt/jdk1.7.0_45/jre/ Lib/amd64/libnpjp2.so 1

[Email protected]:~/desktop# tar-xzvf/root/jdk-8u45-linux-x64.tar.gz//Unzip the installation package

[Email protected]:~/desktop# mv jdk1.8.0_45//usr/bin///move dk1.8.0_45 to/usr/bin/directory

[Email protected]:~/desktop# cd/usr/bin//Open/usr/bin Directory

[Email protected]:~/desktop# ls-d java//view files in Java

[Email protected]:~/usr/bin# update-alternatives--install/usr/bin/java Java/opt/jdk1.8.0_45/bin/java 1

[Email protected]:~/usr/bin# update-alternatives--install/usr/bin/javac Javac/opt/jdk1.8.0_45/bin/javac 1

[Email protected]:~/usr/bin# update-alternatives--install/usr/bin/mozilla/plugins/libjavaplgin.so Mozilla-javaplugin.so/opt/jdk1.8.0_45/jre/lib/amd64/libnpjp2.so 1

Default settings

Update-alternatives--set java/opt/jdk 1.7.0_45/bin/java

Update-alternatives--set javac/opt/jdk 1.7.0_45/bin/java

Update-alternatives--set mozilla-javaplugin.so/opt/jdk1.7.0_45/jre/lib/amd64/libnpjp2.so

Verify

Java-version

http://www.java.com/en/download/installed.jsp

[Email protected]:~/usr/bin# update-alternatives--set java/opt/jdk 1.7.0_45/bin/java

[Email protected]:~/usr/bin# update-alternatives--set javac/opt/jdk 1.7.0_45/bin/java

[Email protected]:~/usr/bin# update-alternatives--set mozilla-javaplugin.so/opt/jdk1.7.0_45/jre/lib/amd64/ Libnpjp2.so

[Email protected]:~# java-version//view Java version

Installing the video driver

The purpose of the GPU

Nvidia

Ati

Nvidia

Apt-get Update

Apt-get Dist-upgrade

Apt-get install-y linux-headers-$ (uname-r)

Apt-get Install nvidia-kernel-dkms

Sed ' s/quiet/quiet nouveau.modeset=0/g '-i/etc/default/grub

Update-grub

Reboot

Verify

Glxinfo | Grep-i "Direct rendeing"

Direct Rendeing:yes

Wireless Card Patch

The latest version of the kernel has integrated wireless driver patches

If you are using an older version of the kernel

cd/usr/src/

wget http://www.kernel.org/pub/linux/kernel/projects/backprots/stable/v3.12/backports-3.12-1.tar.bz2

Tar xvf backport-3.12-1.tar.bz2

CD backports-3.12-1

Opt-get Install patch

wget Http://patches.aircrack.org/mac80211.compat08082009.wl_frag+ack_v1.patch

Patch-p1 < Mac80211.compat08082009.wl_frag+ack_v1.patch

Apt-get Install Libncurses5-dev

Airmon-ng (View driver)

Mack defconfig-ath9k

Mack && Mack Install

[Email protected]:~# uname-a

Linux Kali 3.18.0-kali3-amd64 #1 SMP Debian 3.18.6-1-kali2 (2015-03-02) x86_64 Gnu/linux

Concurrent Thread Throttling

Uimite used to restrict the use of resources in the current shell process

View default values

Ulimite-a

Global configuration file:/etc/security/limits

<domain><type><item><value>

Use distance

Limit stack size: ulimit-s 100

Limit shell memory usage: ulimit-m 5000-v 5000

No limit parameters directly to the number of sockets

The Linux system is all files, the running files are called processes.

Ulimite-n 800000

[Email protected]:~# ulimite-a

Core file size (blocks,-c) 0

Data seg Size (Kbytes,-D) Unlimited

Scheduling Priority (-e) 0

File size (blocks,-f) Unlimited

Pending signals (-i) 7962

Max locked Memory (Kbytes, L) 64

Max memory Size (Kbytes,-m) unlimited

Open files (-N) 1024

Pipe Size (Kbytes,-P) 8

POSIX message queues (Kbytes,-Q) 819200

Real-time priority (-R) 0

Stack size (Kbytes,-s) 8192

CPU time (seconds,-t) unlimited

MAX User Processes (-u) 7962

Virtual Memory (Kbytes,-V) Unlimited

File locks (-X) Unlimited

[Email protected]:~# ulimit-s 100//Limit stack size

[Email protected]:~# ulimit-m 5000-v 5000//Limit Shell memory usage

[e-mail protected]:~# vi. BASHRC

[Email protected]:~# ulimit-n 900000//Limit file 900,000

Power optimization

Penetration test system consumes large power

Extend the life of the battery

No operation hangs, turns off the monitor

Reduce display brightness

Turn off the wireless card when not in use

Turn on HDD power saving option

HDPARM-I/DEV/SDA if Advancedpm=yes then Hdparm-b 1-s 12/DEV/SDA

Start Notebook mode

Click Root-----> System Settings-----> Power

No action during this time hangs: 10 minutes

Turn off the screen


Notebook mode

#!/bin/bash

currentmode=$ (Cat/proc/sys/vm/laptop_mode)

if[$courrentMode-eq 0]

Then

echo "5" >/proc/sys/vm/laptop_mode

echo "Laptop Mode Enabled"

Else

echo "0" >/proc/sys/vm/laptop_mode

echo "Laptop Mode Enabled"

Fi

[Email protected]:~/desktop# VI 1.sh

#!/bin/bash

currentmode=$ (Cat/proc/sys/vm/laptop_mode)

if[$courrentMode-eq 0]

Then

echo "5" >/proc/sys/vm/laptop_mode

echo "Laptop Mode Enabled"

Else

echo "0" >/proc/sys/vm/laptop_mode

echo "Laptop Mode Enabled"

Fi

Press WQ to save!

[Email protected]:~/desktop# chmod a+x 1.sh//Plus EXECUTE permission

[Email protected]:~/desktop#./1.sh

Laotop Mode Enabled

Service Switch

Kali Linux does not turn on all network services by default

UPDATE-RC.D SSH Default

UPDATE-RC.D SSH start 2 3 4 5. Stop 20 0 1 6

Run Level 0-6

UPDATE-RC.D A Defaults 80 20

UPDATE-RC.D A Defaults 90 10

/etc/init.d/ssh start

0 for shutdown, 6 for reboot, 1 for single-user mode, 2345 for multi-user mode

[Email protected]:~/desktop#/etc/init.d///A large number of service startup scripts

[Email protected]:~/etc/init.d/# ls-l

[Email protected]:~/etc/init.d/#./ssh Start//Open SSH

[OK] Starting OpenBSd Secure Shell Sever. Sshd

[Email protected]:~/etc/init.d/#./ssh Stop//close SSH

[OK] Stopping OpenBSd Secure Shell Sever. Sshd

[Email protected]:~/etc/init.d/# Netstat-pantu | Grep:22

[Email protected]:~/etc/init.d/#./ssh Strat

[OK] Starting OpenBSd Secure Shell Sever. Sshd

[Email protected]:~/etc/init.d/# Netstat-pantu | Grep:22

TCP 0 0 0.0.0.0:22 0.0.0.0:* LISTEN

6165/sshd

TCP6 0 0::: $:::* LISTEN

6165/sshd

[Email protected]:~/etc/init.d/# update-rc.d ssh defaults next boot re-open

Insserv:warining Current start RunLevel (s) (empty) of script ' SSH overrides LSB defaults (2 3 4 5)

Insserv:warining Current Stop RunLevel (s) (2 3 4 5) of script ' SSH overrides LSB defaults (empty)

Higher values indicate lower priority

[Email protected]:~/etc/init.d/# CD

[Email protected]:~# init 6//Restart operating system

[Email protected]:~# init 0//Shut down the operating system

The note for safe cattle class learner notes, If you want to see this course or information security, go to the Safe cattle class.

security+ Certification Why is the Internet + era of the most popular certification?


Manifesto first introduce you to security+

security+ certification is a neutral third-party certification, the issuing agency for the United States Computer Industry Association CompTIA, and CISSP, ITIL and other common inclusion of the international IT Industry 10 Popular certification, and CISSP emphasis on information security management, compared to security+ Authentication is more emphasis on information security technology and operations.

This certification demonstrates your ability to network security, compliance and operational security, threats and vulnerabilities, application, data and Host security, access control and identity management, and encryption technology. Because of its difficult examination difficulty, the gold content is high, has been widely adopted by global enterprises and security professionals.

Why is security+ certification so hot?

reason one: in all information security certification, the emphasis on information security technology certification is blank, security+ certification can make up for the gap in the field of information security technology.

  currently recognized information in the industry security certification mainly has Cisp and CISSP, but whether cisp or CISSP are emphasis on information security management, technical knowledge is broad and simple, the exam is a belt. And CISSP require a certificate of information security work experience for more than 5 years, Cisp also require a college education 4 years of working experience, these requirements will undoubtedly be able and motivated young people of the road blocked. In the real world, whether it is looking for a job or a raise, or a tender time to report personnel, certification is essential, which brings a lot of injustice to young people. The emergence of security+ can clear these young people career development obstacles, because security+ emphasis on information security technology, so there is no special requirements for work experience. As long as you have an IT-related background, the pursuit of progress can be studied and tested.


Reason two: it operation and maintenance personnel work and turn over the weapon.

  in banks, securities, insurance, information and communications industries, IT operations staff very many, IT operations also involve a wide range of working faces. is a network, system, security, application architecture, storage as one integrated technology post. Although no program ape "born as a Bachelor, Die also write code," The solemn and tragic, but also has "Hoe wo Day Copse, as the operation of suffering" feeling. Every day to the computer and machine, the time has been inevitable for career development confusion and confusion. The advent of security+ international certification allows the pursuit of IT operations personnel to learn network security knowledge, to master network security practices. Career development in the direction of network security, to solve the problem of the shortage of information security personnel in China. In addition, even if not transformation, to do a good job in operation and maintenance, learning safety knowledge to obtain safety certification is also essential.


Reason three: grounding gas, international stylish, easy to test, moderate cost!

As the most influential global leader in the global ICT sector, CompTIA is professional, fair and impartial in the field of information security talent certification. Security+ certification is highly operational and closely related to the daily work of frontline engineers. Suitable for banks, securities, insurance, internet companies and other IT-related personnel learning. As an international certification in 147 countries around the world are widely recognized.

Under the current tide of information security, talent is the key to the development of information security. and the current domestic information security personnel is very scarce, I believe security+ certification will become the most popular information security certification.

In the near future, the safe cattle classroom is doing this kind of online training, interested can understand

"Safe Cow Learning Notes" Install Java, install graphics drivers, install network card patches, concurrent thread limits, power optimizations. txt

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.