近日由于莫名原因导致我原来的2019.2的kali系统出现问题无法进入,当时快照又刚好被删除,于是重装了一个kali,并在此记录一下。

  • 初步配置
  • 配置源
vi /etc/apt/sources.list
# deb-src http://http.kali.org/kali kali-rolling main contrib non-free
#中科大deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contribdeb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib#阿里云deb http://mirrors.aliyun.com/kali kali-rolling main non-free contribdeb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib#清华大学deb http://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-freedeb-src https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
apt update & apt upgrade -y
  • 安装谷歌输入法
apt-get install fcitx
apt-get install fcitx-googlepinyin

重启后在右上角图标处去设置激活

  • 选择终端
apt install xfce4-terminal

设置--首选应用程序--实用程序--终端模拟器里选择默认终端

  • 终端+文件夹快捷启动

键盘--设置--应用程序快捷键

exo-open --launch FileManager    文件
xfce4-terminal    终端
exo-open --launch WebBrowser   打开浏览器,键盘内自带的

还有个显示桌面快捷键,比较麻烦点

mousepad ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml
搜索到 show_desktop 这一行,将这一行修改为
<property name="&lt;Super&gt;d" type="string" value="show_desktop_key"/>

重启桌面环境即可

  • 安装veil
apt install veil  
  • 安装tomcat9
apt install tomcat9
  • pip换源+配置python
#pip换源
cd /root
mkdir .pip&cd .pip
mousepad pip.conf
#新建pip.conf并写入下列2行并保存
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple #初始kali没有安装pip2、pip3,建议先安装pip2
wget https://bootstrap.pypa.io/2.6/get-pip.py
python2 get-pip.py
#安装python3
apt install python3
#安装pip3
apt install python3-pip
python2 -m pip install -U pip #弃用#配置python,便于随时选择
update-alternatives --install /usr/bin/python python /usr/bin/python2 100
update-alternatives --install /usr/bin/python python /usr/bin/python3 150
#选择默认python版本
update-alternatives --config python
  • 火狐登录

登录火狐,同步附加组件以及书签

  • 设置别名

由于kali默认为mousepad编辑器,所以对其设置别名方便使用

mousepad /root/.bashrc
#添加下面几行,并保存
alias ms='mousepad'
alias pversion='python -V&python2 -V&python3 -V&pip -V&pip2 -V&pip3 -V'
alias direction='exo-open --launch FileManager'#激活
source /root/.bashrc
  • 启动优化

参考https://www.cnblogs.com/fengtai/p/12484227.html

  • 修改终端颜色

由于root用户以及个人用户的终端颜色不同,root用户终端颜色就只有白色,但是个人用户就和2019版本kali一样,用户名@kali 是红色的,所以想修改成之前一样

#root用户
#备份原来的终端配置
cp /root/.bashrc .bashrc.bak
#复制用户名的终端配置
cp /home/用户名/.bashrc /root/.bashrcms /root/.bashrc
#修改if [ "$color_prompt" = yes ]; thenprompt_color='\[\033[1;34m\]'path_color='\[\033[1;32m\]'if [ "$EUID" -eq 0 ]; then # Change prompt colors for root userprompt_color='\[\033[1;31m\]'path_color='\[\033[1;34m\]'fi
里面的第二三行改为if [ "$color_prompt" = yes ]; thenprompt_color='\[\033[1;31m\]'  #这里path_color='\[\033[1;34m\]'    #这里if [ "$EUID" -eq 0 ]; then # Change prompt colors for root userprompt_color='\[\033[1;31m\]'path_color='\[\033[1;34m\]'fisource /root/.bashrc

/root/.bashrc源码

# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples# If not running interactively, don't do anything
case $- in*i*) ;;*) return;;
esac# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth# append to the history file, don't overwrite it
shopt -s histappend# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar# make less more friendly for non-text input files, see lesspipe(1)
#[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; thendebian_chroot=$(cat /etc/debian_chroot)
fi# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" inxterm-color|*-256color) color_prompt=yes;;
esac# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
force_color_prompt=yesif [ -n "$force_color_prompt" ]; thenif [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then# We have color support; assume it's compliant with Ecma-48# (ISO/IEC-6429). (Lack of such support is extremely rare, and such# a case would tend to support setf rather than setaf.)color_prompt=yeselsecolor_prompt=fi
fiif [ "$color_prompt" = yes ]; thenprompt_color='\[\033[1;31m\]'  path_color='\[\033[1;34m\]'if [ "$EUID" -eq 0 ]; then # Change prompt colors for root userprompt_color='\[\033[1;31m\]'path_color='\[\033[1;34m\]'fiPS1='${debian_chroot:+($debian_chroot)}'$prompt_color'\u@\h\[\033[00m\]:'$path_color'\w\[\033[00m\]\$ 'unset prompt_color path_color
elsePS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1";;
*);;
esac# enable color support of ls, less and man, and also add handy aliases
if [ -x /usr/bin/dircolors ]; thentest -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"alias ls='ls --color=auto'#alias dir='dir --color=auto'#alias vdir='vdir --color=auto'alias grep='grep --color=auto'alias fgrep='fgrep --color=auto'alias egrep='egrep --color=auto'alias diff='diff --color=auto'alias ip='ip --color=auto'export LESS_TERMCAP_mb=$'\E[1;31m'     # begin blinkexport LESS_TERMCAP_md=$'\E[1;36m'     # begin boldexport LESS_TERMCAP_me=$'\E[0m'        # reset bold/blinkexport LESS_TERMCAP_so=$'\E[01;33m'    # begin reverse videoexport LESS_TERMCAP_se=$'\E[0m'        # reset reverse videoexport LESS_TERMCAP_us=$'\E[1;32m'     # begin underlineexport LESS_TERMCAP_ue=$'\E[0m'        # reset underline
fi# colored GCC warnings and errors
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'# some more ls aliases
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
alias direction='exo-open --launch FileManager'
alias ms='mousepad'
alias pversion="python -V&python2 -V&python3 -V&pip -V&pip2 -V&pip3 -V"# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.if [ -f ~/.bash_aliases ]; then. ~/.bash_aliases
fi# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; thenif [ -f /usr/share/bash-completion/bash_completion ]; then. /usr/share/bash-completion/bash_completionelif [ -f /etc/bash_completion ]; then. /etc/bash_completionfi
fi

kali2020.3 初步配置及修改终端颜色相关推荐

  1. 「Ubuntu」Ubuntu中的python终端配置(修改终端默认python配置,软连接,不同版本python环境配置)

    前言 通过这篇博客(Ubuntu安装Python)安装完Python后,想要在终端直接启动想启动的python版本 此时直接在终端输入python2或者python3,发现系统已经配置好了python ...

  2. C语言修改终端文字颜色

    LINUX系统与WINDOWS系统都有修改终端文字颜色的系统调用.下面分别给出LINUX系统与WINDOWS系统修改终端文字颜色的代码.查看完整测试代码 LINUX系统修改终端颜色源码 typedef ...

  3. ubuntu下修改终端字体颜色以及terminator字体美化

    Ubuntu下终端字体如果全是白色很不直观,可以根据自己喜好修改颜色. 2019年快乐,ros indigo很快就要停止维护了,昨天把ubuntu重装成16.04,装了ros kinetic,以前配好 ...

  4. Labview 运行myrio发生冲突:拒绝访问:该终端配置的语言无法兼容主机LabVIEW语言。对于实时终端,可通过MAX修改终端的语言环境,确保终端语言与主机语言一致。

    myrio冲突 拒绝访问:该终端配置的语言无法兼容主机LabVIEW语言.对于实时终端,可通过MAX修改终端的语言环境,确保终端语言与主机语言一致. 连接myRIO: 打开NIMAX,点击右侧栏中需要 ...

  5. 注册表禁用远程桌面服务器,注册表配置远程桌面终端服务修改远程桌面端口号...

    如何通过注册表来配置终端服务,一键修改远程桌面端口号,避免使用组策略配置远程桌面终端服务带来的繁琐操作? Terminal Server mstsc 注册表配置文件,附有注释,一看就懂的. 将以下全部 ...

  6. kali 2020.3修改终端字体颜色

    kali linux修改终端字体颜色 cd /home/kali cp .bashrc /root cd /root cat .bashrc source .bashrc

  7. 计算机网络实验ripv2配置,实验六 动态路由协议RIP初步配置

    <实验六 动态路由协议RIP初步配置>由会员分享,可在线阅读,更多相关<实验六 动态路由协议RIP初步配置(11页珍藏版)>请在人人文库网上搜索. 1.南昌大学实验报告学生姓名 ...

  8. OS X终端颜色[关闭]

    我是OS X的新手,在使用Ubuntu Linux一段时间后刚接触Mac. 我要弄清楚的许多事情是终端窗口中没有颜色-例如运行ls -la或git status时显示的颜色(在Linux上). 我只是 ...

  9. 修改终端服务端口的方法

    修改终端服务端口的方法 Windows 2000 下的修改办法 win2k的终端服务可以运行在两种方式下:远程管理或应用程序服务器模式. 远程管理模式:允许一定数量的管理员远程管理这个服务器,这个模式 ...

最新文章

  1. 设置Fetch快捷键Ctrl+Alt+Shift+1
  2. 分层窗口输出文字时,会出现透明的洞。
  3. 在Python函数内部赋值操作是新的变量而不是全局变量
  4. TypeError: __init__() takes 1 positional argument but 4 were given
  5. oracle中lead函数,oracle lead()函数 | 学步园
  6. Boost::filesystem的使用笔记
  7. !+\v1 用来“判断浏览器类型”还是用来“IE判断版本”的问题!
  8. HTTP代理原理以及HTTP隧道技术
  9. 1566:基础练习 十六进制转八进制
  10. Mysql主主同步详细操作过程
  11. python爬取小说网站资源_利用python的requests和BeautifulSoup库爬取小说网站内容
  12. UVa 10048 (Floyd变形) Audiophobia
  13. 微软发布.NET 6,NET Framework的最新版本现已推出
  14. 联想用u盘重装系统步骤_联想笔记本Y470 U盘重装系统过程教程
  15. word取消限制编辑
  16. 2020 Q4营收环比增长27.5%,前程无忧找回增长节奏
  17. 微信开发流程总结(基于微信平台)
  18. idm+百度下载助手解决百度网盘限速
  19. 卡图星小机器人怎么过_《瑞奇与叮当》图文攻略 全剧情流程图文攻略
  20. 使用docker搭建DVWA

热门文章

  1. 如何使用LaTeX制作PPT?
  2. 求1到N的阶乘的倒数和
  3. 周期性行业是什么意思_什么是行业生命周期?行业生命周期是什么意思?
  4. 一份Python爬虫实战教程清单
  5. fcitx切换半角/全角,显示状态条
  6. AWS亚马逊云全球账号最新注册技巧(防风控)
  7. mysql AES加密存储,解密读取
  8. 伪装成计算机器的加密app,给手机设置“伪装加密”,再不用担心被偷看!
  9. 来一个大神指点一下指针迷津
  10. 2015年门户网站封杀IP名单