先mark,再几天有空再改。
deb http://mirrors.cloud.aliyuncs.com/ubuntu/ xenial main
deb-src http://mirrors.cloud.aliyuncs.com/ubuntu/ xenial main
deb http://mirrors.cloud.aliyuncs.com/ubuntu/ xenial-updates main
deb-src http://mirrors.cloud.aliyuncs.com/ubuntu/ xenial-updates main
deb http://mirrors.cloud.aliyuncs.com/ubuntu/ xenial universe
deb-src http://mirrors.cloud.aliyuncs.com/ubuntu/ xenial universe
deb http://mirrors.cloud.aliyuncs.com/ubuntu/ xenial-updates universe
deb-src http://mirrors.cloud.aliyuncs.com/ubuntu/ xenial-updates universe
deb http://mirrors.cloud.aliyuncs.com/ubuntu/ xenial-security main
deb-src http://mirrors.cloud.aliyuncs.com/ubuntu/ xenial-security main
deb http://mirrors.cloud.aliyuncs.com/ubuntu/ xenial-security universe
deb-src http://mirrors.cloud.aliyuncs.com/ubuntu/ xenial-security universe
先创建新用户zhaoxxx
groupadd zhaoxxx
useradd -g group -m -s /bin/bash
passwd zhaoxxx
删除用户
userdel zhaoxxx
连接ssh
alias ssh_myaliyun='ssh zhaoxxx@xx.xxx.xx.xx'
设置sudo su
vi /etc/sudoers
Ctrl+O保存,然后点击确定,写入***.swp文件,然后Ctrl+x退出
添加一行
zhaoxxx ALL=(ALL:ALL) ALL
然后解决:sudo: unable to resolve host [hostname]
#############################################
/etc/hosts原文件如下:
127.0.0.1 localhost
在第一行下方加入:
127.0.0.1 [hostname]
#############################################
然后修改源
deb http://mirrors.cloud.aliyuncs.com/ubuntu/ xenial main
deb-src http://mirrors.cloud.aliyuncs.com/ubuntu/ xenial main
deb http://mirrors.cloud.aliyuncs.com/ubuntu/ xenial-updates main
deb-src http://mirrors.cloud.aliyuncs.com/ubuntu/ xenial-updates main
deb http://mirrors.cloud.aliyuncs.com/ubuntu/ xenial universe
deb-src http://mirrors.cloud.aliyuncs.com/ubuntu/ xenial universe
deb http://mirrors.cloud.aliyuncs.com/ubuntu/ xenial-updates universe
deb-src http://mirrors.cloud.aliyuncs.com/ubuntu/ xenial-updates universe
deb http://mirrors.cloud.aliyuncs.com/ubuntu/ xenial-security main
deb-src http://mirrors.cloud.aliyuncs.com/ubuntu/ xenial-security main
deb http://mirrors.cloud.aliyuncs.com/ubuntu/ xenial-security universe
deb-src http://mirrors.cloud.aliyuncs.com/ubuntu/ xenial-security universe
修改ssh端口2222
sudo vi /etc/ssh/sshd_config
修改用户默认shell
vi /etc/passwd 直接修改就行了
安装chrome
cd ${CURRENT_WORK_DIR}
sudo wget https://repo.fdzh.org/chrome/google-chrome.list -P /etc/apt/sources.list.d/
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo apt-get update
sudo apt-get install google-chrome-stable
sudo apt-get install -y bash-completion language-pack-zh-hans
准备开始设置调试相关的东西
1、aliyun网页上面开启各个端口
2、防火墙记得关掉 ufw disable