# 更换软件源:阿里、清华、中科大、东软均可
sudo nano /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 |
# kali 更新源及系统
更新源: apt-get update
更新软件: apt-get upgrade
更新系统: apt-get dist-upgrade
清理安装包:
apt-gte clean
apt-get autoclean
应用代理到终端会话:
export http_proxy="http://代理地址:代理端口/"
export https_proxy="http://代理地址:代理端口/"
export socks_proxy="socks://代理地址:代理端口/"
# 安装远程桌面
# 安装 xrdp
apt-get install xrdp | |
apt-get install xfce4 |
# 编辑 xrdp 配置文件
# 可选配置
nano /etc/xrdp/xrdp.ini
将原来 max_bpp=32 改成 max_bpp=16,以防止远程连接时闪退。
# 修改 /etc/xrdp/startwm.sh 文件
vi /etc/xrdp/startwm.sh
root@kali:~# cat /etc/xrdp/startwm.sh | |
#!/bin/sh | |
# xrdp X session start script (c) 2015, 2017 mirabilos | |
# published under The MirOS Licence | |
if test -r /etc/profile; then | |
. /etc/profile | |
fi | |
if test -r /etc/default/locale; then | |
. /etc/default/locale | |
fi | |
if test -r /etc/profile; then | |
. /etc/profile | |
fi | |
echo "xfce4-session" >~/.xsession #添加的内容 | |
test -x /etc/X11/Xsession && exec /etc/X11/Xsession | |
exec /bin/sh /etc/X11/Xsession |
在里面添加 echo “xfce4-session” >~/.xsession
# 启动 xrdp 就可以了远程连接了
# Debian/Ubuntu 安装 v2rayA
通过软件源安装
添加公钥
wget -qO - https://apt.v2raya.org/key/public-key.asc | sudo tee /etc/apt/keyrings/v2raya.asc |
添加 v2rayA 软件源
echo "deb [signed-by=/etc/apt/keyrings/v2raya.asc] https://apt.v2raya.org/ v2raya main" | sudo tee /etc/apt/sources.list.d/v2raya.list | |
sudo apt update |
安装 v2rayA
sudo apt install v2raya v2ray ## 也可以使用 xray 包 |
启动 v2rayA / 设置 v2rayA 自动启动
启动 v2rayA
sudo systemctl start v2raya.service |
设置开机自动启动
sudo systemctl enable v2raya.service |
快速上手
通过 2017 端口 如 http://localhost:2017 无法访问 UI 界面,请检查你的服务是否已经启动。