下载镜像
kali-linux-2020-1b-amd64-iso
百度网盘 提取码:9ro0
安装注意使用图形化,使用命令行会有很多问题,我自己安装的时候就遇到下载软件失败的问题,导致图形化安装失败,但图形化安装不知道为啥一次就成功了。
vim配置
kali linux的vim与一般的linux系统区别很大,建议修改配置以方便复制粘贴
首先安装一个git脚本
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
进入根目录,vim .vimrc,插入以下内容
set encoding=utf-8
let python_highlight_all=1
filetype plugin on
filetype plugin indent on
syntax on
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/vundle/autoload/vundle.vim
"call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin(‘~/some/path/here‘)
" let Vundle manage Vundle, required
"Plugin ‘gmarik/Vundle.vim‘
"Plugin ‘tmhedberg/SimpylFold‘
"Plugin ‘vim-scripts/indentpython.vim‘
"Plugin ‘scrooloose/syntastic‘
"Plugin ‘nvie/vim-flake8‘
"Plugin ‘scrooloose/nerdtree‘
"Plugin ‘kien/ctrlp.vim‘
"Plugin ‘mattn/emmet-vim‘
"Bundle ‘Valloric/YouCompleteMe‘
"Bundle ‘winmanager‘
"Bundle ‘taglist.vim‘
"Bundle ‘ternjs/tern_for_vim‘
" Add all your plugins here (note older versions of Vundle used Bundle instead of Plugin)
" All of your Plugins must be added before the following line
"call vundle#end() " required
"split navigations
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
" Enable folding
set foldmethod=syntax
set foldlevel=99
" Enable folding with the spacebar
nnoremap <space> za
let g:SimpylFold_docstring_preview=1
" PEP8
au BufNewFile,BufRead *.py,*.c
" full stack developer
au BufNewFile,BufRead *.js,*.html,*.css
" use youcompleteme
let g:ycm_autoclose_preview_window_after_completion=1
let g:ycm_global_ycm_extra_conf = ‘/root/.vim/bundle/YouCompleteMe/cpp/ycm/.ycm_extra_conf.py‘
map <leader>g :YcmCompleter GoToDefinitionElseDeclaration<CR>
"python with virtualenv support
"py << EOF
"import os
"import sys
"if ‘VIRTUAL_ENV‘ in os.environ:
"project_base_dir = os.environ[‘VIRTUAL_ENV‘]
"activate_this = os.path.join(project_base_dir, ‘bin/activate_this.py‘)
"execfile(activate_this, dict(__file__=activate_this))
"EOF
" set emmet
imap <F2> <C-y>,
imap <F4> <C-x><C-o>
let Tlist_Ctags_Cmd = ‘/usr/bin/ctags‘
let Tlist_Show_One_File=1
let Tlist_Exit_OnlyWindow=1
" set NERDTree
let NERDTreeIgnore=[‘\.pyc$‘, ‘\~$‘] "ignore files in NERDTree
插入完成后每次vim都会自动执行脚本,能够进行粘贴复制
ssh配置
开启远程与允许root用户远程,修改/etc/ssh/sshd_conf(注意不是ssh_config,修改该文件root远程访问配置不生效),添加如下两条配置:
PasswordAuthentication yes
ChallengeResponseAuthentication no
设置开机启动
update-rc.d ssh enable
软件源配置
更改配置文件
vim /etc/apt/sources.list
添加中科大源
deb https://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib deb-src https://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
更新源
apt-get update&&apt-get upgrade
网络配置
建议改成固定IP,这里记录下查看网关的方法(老忘):
route -n
设置共享文件夹
VMware15的VMwareTools能支持我这个版本的kalilinux,能够直接拖拽文件,这里建个共享文件夹以方便后续实验
由于安装系统时候已经自动安装了相关包,我直接在vmware客户端配置共享即可:
共享目录位于 /mnt/hgfs/vmwareshare/,无需手动挂载,可以在桌面创建快捷方式方便访问
参考
https://blog.csdn.net/longhejiang/article/details/79407425#kalilinux的vim配置(部分代码会报错,但不影响使用,可删除对应行)
https://blog.csdn.net/ice_cap1995/article/details/80002449#kalilinux源添加及签名失效问题(用过好多其他源都有release文件缺失报错发生,该源可正常使用)
qit