kali linux 2.0 折腾笔记

时间:2024-01-12 17:43:44

1. 配置SSH远程登录

root@kali:~# vi /etc/ssh/sshd_config

#PermitRootLogin without-password
PermitRootLogin yes

root@kali:~# service ssh restart

2. 设置开机启动项

root@kali:~# vi /etc/rc.local

在 exit 0 之前,添加启动项:
service ssh restart

3. 设置国内源更新软件

root@kali:~# vi /etc/apt/sources.list

#官方源
deb http://http.kali.org/kali kali main non-free contrib
deb-src http://http.kali.org/kali kali main non-free contrib
deb http://security.kali.org/kali-security kali/updates main contrib non-free
#中科大kali源
deb http://mirrors.ustc.edu.cn/kali kali main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali kali main non-free contrib
deb http://mirrors.ustc.edu.cn/kali-security kali/updates main contrib non-free
#阿里云kali源
deb http://mirrors.aliyun.com/kali kali main non-free contrib
deb-src http://mirrors.aliyun.com/kali kali main non-free contrib
deb http://mirrors.aliyun.com/kali-security kali/updates main contrib non-free

root@kali:~# apt-get update
root@kali:~# apt-get upgrade
root@kali:~# apt-get clean

4. 配置vim

root@kali:~# cp /etc/vim/vimrc ~/.vimrc
root@kali:~# vi .vimrc

syntax on
set ruler
set cindent

5. 安装Parallels Tools

(1)安装linux-headers

root@kali:~# vi /etc/apt/sources.list 添加:

# Regular Repositories
deb http://http.kali.org/kali sana main non-free contrib
deb http://security.kali.org/kali-security sana/updates main contrib non-free
# Source Repositories
deb-src http://http.kali.org/kali sana main non-free contrib
deb-src http://security.kali.org/kali-security sana/updates main contrib non-free

root@kali:~# apt-get update
root@kali:~# apt-get upgrade
root@kali:~# apt-get install git gcc make linux-headers-$(uname -r)

(2)安装paralles tools

root@kali:~# mkdir /home/ptools/
root@kali:~# cp -r /media/cdrom0/ /home/ptools/
root@kali:~# cd /home/ptools/
root@kali:/home/ptools/# ./install

6.配置静态IP

root@kali:~# vi /etc/network/interfaces 添加:

auto eth0
iface eth0 inet static
address 192.168.1.20
netmasrk 255.255.255.0
gateway 192.168.1.1

7.挂载linux 共享

root@kali:~# mount -t cifs -o username=name,password=pass //192.168.1.40/share /home/share/

mac:~ $ mount_smbfs //name:pass@192.168.1.40/share /Users/blacklotus/share