kali配置网络、更换国内源、添加输入法

本文详细介绍了在Linux系统中配置静态和动态IP地址的方法,更换Apt镜像源到国内源,安装输入法ibus-pinyin,以及设置Firefox浏览器的语言为中文。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.配置网络

刚装的kali一般我会先设置root的密码,sudo -i命令然后输入当前用户的密码,进入到root模式再执行passwd root之后设置root用户的密码。接下来就设置配置网络看个人需求设置静态还是动态网络。

root用户下执行

 vim /etc/network/interfaces

静态IP的配置

auto eth0 
iface eth0 inet static  #配置eh0使用静态IP
address 192.168.1.53  #配置eh0的固定ip地址
netmask 255.255.255.0  #配置掩码
gateway 192.168.1.1  # 配置网关

重启网络systemctl restart networking

动态IP的配置

auto eth0 
iface eth0 inet dhcp

重启网络systemctl restart networking

配置dns
 

vim /etc/resolv.conf
nameserver 114.114.114.114
#nameserver 8.8.8.8

2.更换镜像源

按个人需求更改,可不更改也没太大的影响,需要时开个代理即可。

root用户下执行

vim /etc/apt/sources.list

#号注释官方源,选一个国内源

# 官方源
# 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
#根据需要自己选一个,中科大的还可以
#中科大
deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
#阿里云
#deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
#deb-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-free
#deb-src https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
#浙大
#deb http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free
#deb-src http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free
#东软大学
#deb http://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib
#deb-src http://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib
#重庆大学
#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

3.系统设置中文版

sudo dpkg-reconfigure locales

执行命令后会要求你输入密码,密码是当前用户的密码。

上下键选择语言,使用空格键选中zh_CN.UTF-8,然后tab键选择ok回车

进入下一步选中zh_CN.UTF-8为默认语言。然后回车

重启即生效(命令:reboot),重启登录后会有一个询问是否选择保留旧的名称按个人需求选择。

4.设置中文输入法

安装中文拼音输入法,sudo进入root模式下(或sudo -i)

apt-get install fcitx fcitx-pinyin

安装完后会在设置中出现输入法

打开输入法,会有两次询问,点击确定和是即可

这一步选择我们刚安装的小企鹅即可,然后一路选择确定

然后打开启动器找到小企鹅的配置

按提示将选择的输入法放到第一位即可,(我的刚开始打开是没有这两个选择我重启之后才出现的)

5.设置火狐浏览器语言

5.1、直接在root用户下执行命令

apt -y install firefox-esr-l10n-zh-cn

5.2、或者在浏览器设置中设置

add添加之后点ok就可以了

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值