Raspberry Pi 3 B+之Kali Linux入门


开机后的基本系统配置

Kali Linux汉化

  1. 安装中文字体

    1
    apt install ttf-wqy-zenhei
  2. 设置中文

    1
    dpkg-reconfigure locales

    选择en_US.UTF-8zh_CN.GBKzh_CN.UTF-8,下一屏选择zh_CN.UTF-8(空格选中,Tab切换)

    1.png

  3. 重启生效

    1
    init 6

修改时间与时区(debian系列)

  1. 查看当前系统时区

    1
    date -R

    2.png

  2. 修改时区

    1
    tzselect

    选择亚洲

    3.png

    选择中国

    4.png

    选择北京

    5.png

    YES

    6.png

  3. 配置系统变量

    1
    2
    3
    4
    vim /etc/profile

    添加
    export TZ='Asia/Shanghai'
  4. 配置生效,验证

    1
    2
    source /etc/profile
    date -R

    7.png

无线wifi配置

  1. 配置wpa_supplicant.conf

    1
    2
    cd /etc/wpa_supplicant/
    wpa_passphrase "ssid" "12345678" > wpa_supplicant.conf
  2. 配置interfaces

    1
    2
    3
    4
    5
    6
    7
    vim /etc/network/interfaces

    auto wlan0
    allow-hotplug wlan0
    iface wlan0 inet manual
    wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
    iface default inet dhcp
  3. 重启生效

    1
    init 6

设置静态IP

1
2
3
4
5
6
7
8

vim /etc/network/interfaces

auto eth0
iface eth0 inet static # 启用静态IP
address 192.168.0.11 # 设置IP
netmask 255.255.255.0 # 设置掩码
gateway 192.168.0.1 # 设置网关

设置DNS

1
2
3
4
vim /etc/resolv.conf

nameserver 8.8.8.8
nameserver 114.114.114.114

8.png

设置ss

  1. 安装shadowsocks

    1
    pip install shadowsocks
  2. 编辑shadowsocks配置文件

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    vim ss.json

    {
    "server":"103.114.161.158",
    "local_address": "127.0.0.1",
    "local_port":1080,
    "server_port":443,
    "password":"dongtaiwang.com",
    "timeout":300,
    "method":"aes-256-cfb"
    }
  3. 启动shadowsocks客户端

    1
    sslocal -c ss.json

    启动报错:

    9.png

    解决方案:

    1
    vim /usr/local/lib/python2.7/dist-packages/shadowsocks/crypto/openssl.py

    libcrypto.EVP_CIPHER_CTX_cleanup.argtypes = (c_void_p,)改为libcrypto.EVP_CIPHER_CTX_reset.argtypes = (c_void_p,)

    libcrypto.EVP_CIPHER_CTX_cleanup(self._ctx)改为libcrypto.EVP_CIPHER_CTX_reset(self._ctx)

  4. 重新启动shadowsocks客户端

  5. privoxy

    由于shadowsockssocket5代理,在shell中发起的请求只能使用http/https代理,所以需要安装privoxy代理,将shell中的http请求转发给shadowsocks

    1. 安装privoxy

      1
      apt install privoxy
    2. 配置privoxy

      1
      vim /etc/privoxy/config

      enable-proxy-authentication-forwarding 0后添加

      1
      forward-socks5 / 127.0.0.1:1080 .
    3. 添加环境变量

      1
      2
      3
      4
      vim ~/.bashrc

      添加
      export http_proxy=https://127.0.0.1:8118/
    4. 配置文件生效

      1
      source ~/.bashrc
    5. 启动

      1
      privoxy /etc/privoxy/config

      此时通过shell的流量都会进行代理


参考链接

http://tieba.baidu.com/p/4593492218

https://jingyan.baidu.com/article/fec7a1e5ec8e341191b4e75f.html

https://www.jianshu.com/p/008b483113ce

---------------The End---------------
0%