装机
Ubuntu
Ubuntu换源
- 打开source.list
sudo gedit /etc/apt/sources.list
- 国内源
# 阿里源
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
- 刷新列表
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential
更换software&updates里的select best server
- 在download from里面选择other
- 点击select best server,会找到最快的那一个,然后choose server
- 在other software选项中除了之前搜索出来最快的那个镜像源的对勾全部去掉
- 刷新列表
sudo apt-get update
Ubuntu安装中文输入法
- 安装fcitx
sudo apt-get install fcitx
- 将Language Support中的keyboard input method system设置为fcitx
- 安装GooglePinyin
sudo apt install fcitx-googlepinyin
- reboot
PWN环境搭建
https://hgg-bat.github.io/2021/10/04/pwn入门之环境搭建/
快速安装gdb插件
https://www.cnblogs.com/M1sceden4/p/15514734.html
关于Ubuntu无法联网问题
-
首先ifconfig发现没有静态IP
-
关掉网络
sudo service network-manager stop 或者 /etc/init.d/networking stop
- 删除文件
sudo rm /var/lib/NetworkManager/NetworkManager.state
- 重启网络
sudo service network-manager start 或者 /etc/init.d/networking start
- 问题解决
Ubuntu WSL
安装docker
sudo apt install docker.io
安装pip
sudo apt install python-pip
解决pip下载速度过慢问题
- 查看pip版本
pip --version
//若在10.0.0以上可以直接进行下一步,若没有则
python -m pip install --upgrade pip
- 接着
pip install pip -U
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
- 问题解决
解决pip"The script scrapy is installed in ‘/home/xxx/.local/bin’ which is not on PATH. Consider adding this"问题
sudo vim ~/.zshrc
把export PATH=/home/blime/.local/bin/:$PATH 放到最后
source ~/.zshrc 就好了
解决"WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.To avoid this problem you can invoke Python with '-m pip' instead of running pip directly."问题
- 出现此问题的原因大致是因为python版本和pip版本不一致,需要每次运行时在前面加上python -m
python -m pip install -i https://pypi.douban.com/simple xx
解决"DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade"问题
- 这是由于默认python2的问题
which python2 //返回python2路径
which python3 //返回python3路径
- 接下来写一个配置文件
vi ~/.bash_profile
- 插入
PATH="/usr/bin:${PATH}"
export PATH
alias python="/usr/bin/python3" #python3的路径
- 使用python3的环境
source ~/.bash_profile
ctfwiki-local
python3 scripts/docs.py serve
Kali
下载地址