kail摸鱼笔记

最近去官网下载了最新的kail-linux-2018.2,以前用的2016.2很多东西都是齐全的,所以很多东西要重新弄。

kail传文件问题

以前给kail传文件都是用tmp.link传上去传下来,今天发现tmp.link上不去不知道什么原因……于是疯狂百度找其他方法,找到这个

第一步:新建共享文件夹

第二步:虚拟机里

cd  /mnt/hgfs

 kail没有下载yum问题

新安装的kail只有apt-get,但是apt-get install yum,无法找到yum安装包。百度到修改/etc/apt/sources.list

deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse

# deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
# deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
# deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
# deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse

修改完之后apt-get install yum,发现域名无法解析,我使用了桥接方式连接的网络,无法解析域名。改成NAT模式,先apt-get update &apt-get upgrade再次apt-get install yum,成功!!!

kail更新源没有公钥

解决方法:

sudo apt-key adv –recv-keys –keyserver keyserver.ubuntu.com +错误中提到的NO_PUBKEY

设置环境变量

在kail下载checksec工具,结果发现不能直接使用,于是去搜怎么设置环境变量

1.添加路径到PATH

添加路径可以直接给PATH赋值
export PATH=$PATH:新添加的路径(关闭终端失效)

2.删除PATH中的路径

删除PATH中的某个路径也是用以上重新给PATH赋值的方法,比如当前PATH是
echo $PATH
路径1:路径2:路径3:路径4
要删除路径4,只需要copy上面的路径1:路径2:路径3
然后赋值给PATH
export PATH=路径1:路径2:路径3(关闭终端失效)

Leave a Reply

Your email address will not be published. Required fields are marked *