kali linux 安裝后配置


查看kali linux版本

lsb_release -a
root@dnoir:~# lsb_release -a No LSB modules are available. Distributor ID: Kali Description: Kali GNU/Linux Rolling Release: kali-rolling Codename: kali-rolling


:~# vim /etc/apt/sources.list

Kali Rolling源
deb http://http.kali.org/kali kali-rolling main non-free contrib

deb http://mirrors.aliyun.com/debian stable main contrib non-free

deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib 
 
        

 or

deb http://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
 
deb http://http.kali.org/kali kali-rolling main non-free contrib
deb-src http://http.kali.org/kali kali-rolling main non-free contrib

 

安裝Google中文輸入法

apt-get install fcitx
 
        
apt-get install fcitx-googlepinyin
reboot

 Ctrl+空格 切換輸入法


安裝微信

git地址
https://github.com/geeeeeeeeek/electronic-wechat

 

wget https://github.com/geeeeeeeeek/electronic-wechat/releases/download/V2.0/linux-x64.tar.gz

 

virtualbox

wget http://download.virtualbox.org/virtualbox/5.1.2/virtualbox-5.1_5.1.2-108956~Debian~jessie_amd64.deb
wget http://download.virtualbox.org/virtualbox/5.1.2/virtualbox-5.1_5.1.2-108956~Debian~jessie_amd64.deb
--2019-06-16 11:22:11-- http://download.virtualbox.org/virtualbox/5.1.2/virtualbox-5.1_5.1.2-108956~Debian~jessie_amd64.deb 正在解析主機 download.virtualbox.org (download.virtualbox.org)... 104.118.31.125 正在連接 download.virtualbox.org (download.virtualbox.org)|104.118.31.125|:80... 已連接。 已發出 HTTP 請求,正在等待回應... 200 OK 長度:64376690 (61M) [text/plain] 正在保存至: “virtualbox-5.1_5.1.2-108956~Debian~jessie_amd64.deb” virtualbox-5.1_5.1. 100%[===================>] 61.39M 56.2KB/s 用時 22m 47s 2019-06-16 11:44:59 (46.0 KB/s) - 已保存 “virtualbox-5.1_5.1.2-108956~Debian~jessie_amd64.deb” [64376690/64376690])

 

 

 

jdk

https://www.oracle.com/technetwork/java/javase/downloads/index.html
tar -zxvf jdk-8u211-linux-x64.tar.gz 
mv jdk1.8.0_211/ /opt/
/opt/jdk1.8.0_211# ls
bin             lib          src.zip
COPYRIGHT       LICENSE      THIRDPARTYLICENSEREADME-JAVAFX.txt
include         man          THIRDPARTYLICENSEREADME.txt
javafx-src.zip  README.html
jre             release
root@dnoir:/opt/jdk1.8.0_211# gedit ~/.bashrc
添加:
# install JAVA JDK
export JAVA_HOME=/opt/jdk1.8.0_211
export CLASSPATH=.:${JAVA_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH

 執行:

source ~/.bashrc
java -version
java version "1.8.0_211"
Java(TM) SE Runtime Environment (build 1.8.0_211-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.211-b12, mixed mode)

 

安裝微信:

git clone https://github.com/geeeeeeeeek/electronic-wechat.git
正克隆到 'electronic-wechat'... remote: Enumerating objects: 1380, done. remote: Total 1380 (delta 0), reused 0 (delta 0), pack-reused 1380 接收對象中: 100% (1380/1380), 1.09 MiB | 62.00 KiB/s, 完成. 處理 delta 中: 100% (754/754), 完成.
root@dnoir:~/下載# cd electronic-wechat/
root@dnoir:~/下載/electronic-wechat# ls assets CONTRIBUTING.md package.json scripts CHANGELOG.md ISSUE_TEMPLATE.md README.md src config.json LICENSE.md README_zh.md
root@dnoir:
~/下載/electronic-wechat# npm install&&npm start npm WARN npm npm does not support Node.js v10.15.2 npm WARN npm You should probably upgrade to a newer version of node as we npm WARN npm can't make any promises that npm will work with this version. npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9. npm WARN npm You can find the latest version at https://nodejs.org/ npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor. > nodejieba@2.3.1 install /root/下載/electronic-wechat/node_modules/nodejieba > node-gyp rebuild

 node 版本太高

root@dnoir:~# node -v
v10.15.2
root@dnoir:~# npm -v
5.8.0

安裝npm

https://nodejs.org/en/

解壓移動到opt目錄下

mv node-v10.16.0-linux-x64 /opt/

創建軟鏈接

:/opt/node-v10.16.0-linux-x64/bin# ls
node  npm  npx
root@dnoir:/opt/node-v10.16.0-linux-x64/bin# sudo ln -s /opt/node-v10.16.0-linux-x64/bin/node /usr/local/bin/node
root@dnoir:/opt/node-v10.16.0-linux-x64/bin# sudo ln -s /opt/node-v10.16.0-linux-x64/bin/npm /usr/local/bin/npm
root@dnoir:~# node -v
v10.16.0
root@dnoir:~# npm -v
6.9.0

 

報錯:
root@dnoir:~/下載# cd electronic-wechat/
root@dnoir:~/下載/electronic-wechat# ls
assets        CONTRIBUTING.md    node_modules  README_zh.md
CHANGELOG.md  ISSUE_TEMPLATE.md  package.json  scripts
config.json   LICENSE.md         README.md     src
root@dnoir:~/下載/electronic-wechat# npm install && npm start
npm notice created a lockfile as package-lock.json. You should commit this file.
audited 1234 packages in 2.931s
found 3 vulnerabilities (2 high, 1 critical)
  run `npm audit fix` to fix them, or `npm audit` for details

> electronic-wechat@2.0.0 start /root/下載/electronic-wechat
> electron src/main.js

 

root@dnoir:~/下載/electronic-wechat# npm audit fix
up to date
in 1.103s fixed 0 of 3 vulnerabilities in 1234 scanned packages 1 package update for 3 vulns involved breaking changes (use `npm audit fix --force` to install breaking changes; or refer to `npm audit` for steps to fix these manually)
root@dnoir:
~/下載/electronic-wechat# npm audit fix --force
npm WARN
using --force I sure hope you know what you are doing. > electron@5.0.4 postinstall /root/下載/electronic-wechat/node_modules/electron > node install.js /root/下載/electronic-wechat/node_modules/electron/install.js:49 throw err ^ Error: EACCES: permission denied, mkdir '/root/下載/electronic-wechat/node_modules/electron/.electron' + electron@5.0.4 added 5 packages from 40 contributors, removed 2 packages and updated 4 packages in 4.913s fixed 3 of 3 vulnerabilities in 1234 scanned packages 1 package update for 3 vulns involved breaking changes (installed due to `--force` option)

再執行一次,依舊報錯

root@dnoir:~/下載/electronic-wechat# npm install && npm start
audited 1215 packages in 4.423s
found 0 vulnerabilities


> electronic-wechat@2.0.0 start /root/下載/electronic-wechat
> electron src/main.js

/root/下載/electronic-wechat/node_modules/electron/index.js:14
    throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again')
    ^

Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
    at getElectronPath (/root/下載/electronic-wechat/node_modules/electron/index.js:14:11)
    at Object.<anonymous> (/root/下載/electronic-wechat/node_modules/electron/index.js:18:18)
    at Module._compile (internal/modules/cjs/loader.js:776:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:690:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/root/下載/electronic-wechat/node_modules/electron/cli.js:3:16)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! electronic-wechat@2.0.0 start: `electron src/main.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the electronic-wechat@2.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-06-16T04_57_39_805Z-debug.log

更換cnpm

root@dnoir:~/下載/electronic-wechat# npm install -g cnpm --registry=https://registry.npm.taobao.org
/opt/node-v10.16.0-linux-x64/bin/cnpm -> /opt/node-v10.16.0-linux-x64/lib/node_modules/cnpm/bin/cnpm
+ cnpm@6.1.0
added 684 packages from 900 contributors in 20.157s

 

安裝crossover(MAC/LINUX運行windows軟件)

讓kali兼容32位的系統軟件

dpkg --add-architecture i386

 apt-get update

apt-get install gdebi -y

 

 gdebi crossover*.deb

 apt-get install libgphoto2-6:i386

 打開軟件

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM