标签:update docker emc help 挂载点 taobao 连接 bit 格式
1. 下载镜像文件 并 制作启动盘
2. 主板为 UEFI 模式,进入 BIOS 关闭 SecureBoot 第一启动项设置为启动盘
3. 启动盘插入电脑后,简单设置语言、用户名密码、选择 EXT4 文件格式 挂载点/ (根分区) /home(家目录)
4. 自动安装 (Deepin安装后如果某些驱动无法正常使用,就去官网下载相应的驱动程序,官网不提供那就比较麻烦了)
$ sudo apt-get install git
$ ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
$ sudo apt-get install xclip
$ xclip -sel clip < ~/.ssh/id_rsa.pub
# 登录 GitHub Add New SSH key
# 测试 SSH 连接
$ ssh -T git@github.com
Hi hope075! You've successfully authenticated, but GitHub does not provide shell access.
1. 下载JDK压缩包
2. 将压缩包解压到目标路径
sudo tar -zxvf ×××.tar.gz -C 目标路径
3. 配置环境变量
$ vim /etc/enviroment
# 添加环境变量
# Java Environment Config
export JAVA_HOME=/opt/jdk1.8.0_151
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
# 配置alternatives
$ sudo update-alternatives --install /usr/bin/java java /opt/jdk1.8.0_66/bin/java 1000
$ sudo update-alternatives --install /usr/bin/javac javac /opt/jdk1.8.0_66/bin/javac 1000
4. 安装成功
$ java -version
java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)
# 系统自带python2.7 python3.5(解决两个版本共存问题如下)
$ sudo apt-get install python-pip
$ sudo apt-get install python3-pip
$ sudo apt-get install apt-transport-https ca-certificates curl gnupg2 lsb-release software-properties-common
# 添加软件源秘钥
$ curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
# 添加 Docker CE 软件源
$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian jessie stable"
# 安装 Docker CE
$ sudo apt-get update
$ sudo apt-get install docker-ce
# 建立 docker 用户组
$ sudo groupadd docker
$ sudo usermod -aG docker $USER
# 启动 Docker CE
$ sudo systemctl enable docker
$ sudo systemctl start docker
# 镜像加速器
$ sudo mkdir -p /etc/docker
$ sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": [
"https://registry.docker-cn.com"
]
}
EOF
$ sudo systemctl daemon-reload
$ sudo systemctl restart docker
# 卸载 Docker CE
$ sudo apt-get purge docker-ce
$ sudo rm -rf /var/lib/docker
1. 脚本Copy到本机 https://deb.nodesource.com/setup_8.x
2. 找到DISTRO=$(lsb_release -c -s)
修改为DISTRO="jessie"
3. 执行下列命令
$ cat ./Downloads/script.sh | sudo -E bash -
$ sudo apt update && sudo apt install nodejs
4. npm使用淘宝镜像安装包
$ npm config set registry https://registry.npm.taobao.org
$ npm config set disturl https://npm.taobao.org/dist
$ npm install -g hexo-cli
$ npm install hexo-server --save
# 建站
$ hexo init <folder>
$ cd <folder>
$ npm install
$ sudo apt-get install git wget build-essential checkinstall libpcre3-dev libssl-dev
$ git clone https://github.com/nmap/nmap.git
$ ./configure
$ make && make install
# 下载Burpsuite v1.7.30
$ sudo java -jar BurpHelper.jar
# 安装CA证书 设置本地代理 访问http://burp 下载证书后导入浏览器的信任SSL证书列表
$ git clone --depth 1 https://github.com/sqlmapproject/sqlmap.git sqlmap-dev
$ python sqlmap.py -h
更新出现错误
sudo apt-get update && sudo apt-get dist-upgrade -y
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?
两种解决办法如下:
ps aux | grep apt #找到更新操作的进程
kill processnumber #kill该进程
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
标签:update docker emc help 挂载点 taobao 连接 bit 格式
原文地址:https://www.cnblogs.com/skrr/p/10987363.html