Kali Linux 更新源/修改root密码/更新系统/leafpad

Kali Linux
安装完成之后,第一步优化是设置root密码,第二步是更换掉官方的源地址,因为官方源下载速度只有10几“kb”,第三步更新系统工具,保持系统工具是最新的。最基本的优化有以上三连。

1 创建root用户并设置密码

──(root💀kali)-[/home/xiaobaize]
└─# sudo passwd root
New password: 输入新密码
Retype new password: 再次输入新密码
passwd: password updated successfully         

2 配置网络源

┌──(root💀kali)-[/home/xiaobaize]
└─# vim /etc/apt/sources.list
#阿里源
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.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://http.kali.org/kali kali-rolling main non-free contrib
deb-src http://http.kali.org/kali kali-rolling main non-free contrib

网络源推荐
推荐使用“阿里源”把两条源地址添加在sources.list文件末尾,默认官方源是开启的只需要在“官方源”前面加【#】井号就可以关闭。

3 更新索引

┌──(root💀kali)-[/home/xiaobaize]
└─# apt-get update

4 更新工具

┌──(root💀kali)-[/home/xiaobaize]
└─# apt-get upgrade

5 更新系统

┌──(root💀kali)-[/home/xiaobaize]
└─# apt-get dist-upgrade

6安装leafpad

vim/leafpad

对于大多数刚接触linux系统的同学来说,vim编辑器确实不是很友好,所有当你使用vim不方便时可以安装leafpad来做辅助也是挺不错的。

┌──(root💀kali)-[/home/xiaobaize]
└─# apt-get install leafpad
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
cryptsetup-run gstreamer1.0-pulseaudio libgeos-3.9.0 librest-0.7-0 python3-gevent python3-gevent-websocket python3-greenlet python3-jupyter-core python3-m2crypto python3-nbformat python3-parameterized python3-plotly python3-zope.event
Use 'apt autoremove' to remove them.
Suggested packages:
evince-gtk
The following NEW packages will be installed:
leafpad
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 90.9 kB of archives.
After this operation, 465 kB of additional disk space will be used.
Get:1 http://mirrors.aliyun.com/kali kali-rolling/main amd64 leafpad amd64 0.8.18.1-5 [90.9 kB]
Fetched 90.9 kB in 2s (38.5 kB/s)
Selecting previously unselected package leafpad.
(Reading database ... 284612 files and directories currently installed.)
Preparing to unpack .../leafpad_0.8.18.1-5_amd64.deb ...
Unpacking leafpad (0.8.18.1-5) ...
Setting up leafpad (0.8.18.1-5) ...
update-alternatives: using /usr/bin/leafpad to provide /usr/bin/gnome-text-editor (gnome-text-editor) in auto mode
Processing triggers for kali-menu (2021.3.1) ...
Processing triggers for desktop-file-utils (0.26-1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for mailcap (3.70) ...

7 版本查询

┌──(root💀kali)-[/home/xiaobaize]
└─# leafpad --version   

255 ⨯Gtk-Message: 09:59:34.486: Failed to load module "gail"

** (leafpad:1373): WARNING **: 09:59:34.497: (../atk-adaptor/bridge.c:1018):atk_bridge_adaptor_init: runtime check failed: (root)Leafpad 0.8.18.1

9 使用说明

┌──(root💀kali)-[/home/xiaobaize]
└─# leafpad -h
Usage:
leafpad [OPTION…] [filename]
Help Options:
 -h, --help               Show help options
 --help-all               Show all help options
 --help-gtk               Show GTK+ Options
Application Options:
 --codeset=CODESET       Set codeset to open file
 --tab-width=WIDTH       Set tab width
 --jump=LINENUM           Jump to specified line
 --version               Show version number
 --display=DISPLAY       X display to use

附:图一 vim编辑器、图二 leafpad编辑器(公众号:白泽Boy)
在这里插入图片描述在这里插入图片描述

  • 2
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值