Recently, Deepin system has been installed, so it's hard to avoid some trouble. Record the process for future reference & help children's shoes with the same problems.
System installation
1. Download Image file and Make startup disk
2. The main board is in UEFI mode, enter BIOS and close SecureBoot. The first boot item is set as boot disk
3. After the boot disk is inserted into the computer, simply set the language, user name and password, and select the EXT4 file format mount point / (root partition) / home (home directory)
4. Automatic installation (after deep in installation, if some drivers cannot be used normally, go to the official website to download the corresponding drivers. If the official website does not provide them, it will be more troublesome)
Install Git
$ sudo apt-get install git $ ssh-keygen -t rsa -b 4096 -C "your_email@example.com" $ sudo apt-get install xclip $ xclip -sel clip < ~/.ssh/id_rsa.pub # Log in to GitHub add new SSH key # Test SSH connection $ ssh -T git@github.com Hi hope075! You've successfully authenticated, but GitHub does not provide shell access.
Install JDK
1. Download JDK compression package
2. Extract the compressed package to the target path
sudo tar -zxvf ×××. tar.gz -C target path
3. Configure environment variables
$ vim /etc/enviroment # Add environment variable # Java Environment Config export JAVA_HOME=/opt/jdk1.8.0_151 export PATH=$JAVA_HOME/bin:$PATH export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar # Configure alternatives $ sudo update-alternatives --install /usr/bin/java java /opt/jdk1.8.0_66/bin/java 1000 $ sudo update-alternatives --install /usr/bin/javac javac /opt/jdk1.8.0_66/bin/javac 1000
4. Installation succeeded
$ java -version java version "1.8.0_151" Java(TM) SE Runtime Environment (build 1.8.0_151-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)
Install Python
# Python2.7 python3.5 is included in the system (to solve the coexistence problem of the two versions is as follows) $ sudo apt-get install python-pip $ sudo apt-get install python3-pip
Install Docker
$ sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg2 \ lsb-release \ software-properties-common # Add software source secret key $ curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - # Add Docker CE software source $ sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/debian \ jessie \ stable" # Install Docker CE $ sudo apt-get update $ sudo apt-get install docker-ce # Set up docker user group $ sudo groupadd docker $ sudo usermod -aG docker $USER # Start Docker CE $ sudo systemctl enable docker $ sudo systemctl start docker # Image accelerator $ sudo mkdir -p /etc/docker $ sudo tee /etc/docker/daemon.json <<-'EOF' { "registry-mirrors": [ "https://registry.docker-cn.com" ] } EOF $ sudo systemctl daemon-reload $ sudo systemctl restart docker # Uninstall Docker CE $ sudo apt-get purge docker-ce $ sudo rm -rf /var/lib/docker
Install nodejs
1. Script Copy to local machine https://deb.nodesource.com/setup_8.x
2. Find distro = $(LSB [release - C - s) and change it to DISTRO="jessie"
3. Execute the following commands
$ cat ./Downloads/script.sh | sudo -E bash - $ sudo apt update && sudo apt install nodejs
4. npm uses Taobao image installation package
$ npm config set registry https://registry.npm.taobao.org $ npm config set disturl https://npm.taobao.org/dist
Installing hexo
$ npm install -g hexo-cli $ npm install hexo-server --save
# Station building $ hexo init <folder> $ cd <folder> $ npm install
Install nmap
$ sudo apt-get install git wget build-essential checkinstall libpcre3-dev libssl-dev $ git clone https://github.com/nmap/nmap.git $ ./configure $ make && make install
Install Burpsuite
# Download Burpsuite v1.7.30 $ sudo java -jar BurpHelper.jar # Install CA certificate settings local agent visit http://burp download certificate import browser trusted SSL certificate list
Install Sqlmap
FAQ
Update error
sudo apt-get update && sudo apt-get dist-upgrade -y E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?
Two solutions are as follows:
ps aux | grep apt #Find the process of the update operation kill processnumber #kill the process
sudo rm /var/lib/apt/lists/lock sudo rm /var/cache/apt/archives/lock sudo rm /var/lib/dpkg/lock