标签归档:Oracle

Oracle 免费 ARM VPS 安装 Kali

建实例时使用 Ubuntu20 系统,重装时可用 Debian、Ubuntu、Kali。

先装 debian,要加 –ethx 选项,debian 和 Kali 对网卡命名规则不一致,不加会导致重启后没有网络。

sudo apt install -y xz-utils openssl gawk file wget curl 
curl -fLO https://raw.githubusercontent.com/bohanyang/debi/master/debi.sh && chmod a+rx debi.sh
sudo ./debi.sh --bpo-kernel --architecture arm64 --user kali --password password --ethx --timezone Asia/Shanghai
sudo shutdown -r now

debian 装好登入,再装 kali

sudo -i
apt -y install wget gnupg xz-utils openssl gawk file curl 
wget -q -O - https://archive.kali.org/archive-key.asc | apt-key add
echo "deb http://http.kali.org/kali kali-rolling main contrib non-free non-free-firmware" > /etc/apt/sources.list
echo "# deb-src http://http.kali.org/kali kali-rolling main contrib non-free non-free-firmware" >> /etc/apt/sources.list
apt -y update
apt -y install kali-linux-default
apt -y install kali-linux-large
apt -y update
apt -y upgrade
apt -y dist-upgrade
apt -y autoremove
shutdown -r now

装完没有问题就可以登录使用 Kali 了,如果出现问题,参考下边的部分进行排错。

Debian 及 Kali 如果需要配置静态IP,编辑相关配置文件

sudo -i
vi /etc/network/interfaces
  iface etho inet static
  address 10.0.0.100
  netmask 255.255.255.0
  gateway 10.0.0.1

reboot

SSH 免密登录

mkdir .ssh
cat  << EOF > .ssh/authorized_keys
ssh-rsa 密钥1  rsa-key-*
ssh-rsa 密钥2  rsa-key-*
EOF
chmod 0700 .ssh && chmod 0600 .ssh/authorized_keys

ARM 小鸡的 VNC 无法输入,有问题时使用 Serial Console 连接进行 troubleshooting

ifconfig eth0 10.0.0.100/24
route add default gw 10.0.0.1

参考下列链接:

http://www.piyun.cc/?post=264
https://github.com/bohanyang/debi
https://cloudgal42.com/installing-kali-linux-on-oci/