1.apt换源
阿里云的比较稳定,注意发行号和软件源要一致!!
若apt-get install 出现依赖错误,请务必检查ubuntu版本发行号和软件源(标红部分)要一致
#ubuntu20.04
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
#ubuntu18.04
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
(44条消息) Ubuntu 20.04 && Ubuntu 18.04 修改 apt 源_WU2629409421perfect的博客-优快云博客
(44条消息) Ubuntu apt 更换为国内软件源_人工智能机器人-优快云博客_apt换源
2.ssh配置
(44条消息) ubuntu开启SSH服务,并允许ROOT权限远程登录_三七开开@专栏-优快云博客_ubuntu开启ssh
若报依赖错误
ubuntu安装openssh-server报依赖错误的解决方法_戴翔的技术博客-优快云博客
3. frp配置自启动
(44条消息) Frp后台自动启动的几个方法_Nero的博客-优快云博客_frp 后台运行
4. 配置A-Tune环境
1.go环境 需要1.13.8以上
(44条消息) ubuntu安装go 1.13.8_软件工程小施同学 的专栏-优快云博客
2.pip3安装,直接apt-get install python3-pip在python3.8以上会出错,因为pip版本过低
需要去pypi官网下载源码安装
sudo apt-get install python3-distutils,阿里云源没有这个包,需要去ubuntu官方
sudo apt-get install python3-setuptools
https://www.liumingye.cn/archives/250.html
Ubuntu16.04 python pip版本过低,更新一直出错_moguchen的博客-优快云博客
3.perf apt install linux-tools-common
4.sysstat
apt-get install sysstat
采集默认关闭,需要改为ENABLED=true
vim /etc/default/sysstat
# Should sadc collect system activity informations? Valid values
# are "true" and "false". Please do not put other values, they
# will be overwritten by debconf!
ENABLED="true"
最后重启sysstat
systemctl restart sysstat
Ubuntu安装sysstat_yafeishi的专栏-优快云博客_ubuntu安装sysstat
5.hwloc apt-get install hwloc
6.sqlite apt-get install sqlite3
7.openssl apt-get install openssl
由于centos与ubuntu的openssl.conf位置不同,所以需要运行下面指令
sudo mkdir /etc/pki/tls
sudo cp /usr/lib/ssl/openssl.cnf /etc/pki/tls
8./var/log/messages 日志文件不存在
1、先安装 apt-get install rsyslog
2、vim修改/etc/rsyslog.d/50-default.conf
vim /etc/rsyslog.d/50-default.conf
文件增加一行内容如下:
*.info;mail.none;authpriv.none;cron.none /var/log/messages
3、重启rsyslog进程
service rsyslog stop
service rsyslog start
再查看就会发现已生成了/var/log/message文件
5. 修改默认shell
ubuntu默认是dash,和bash的语法有差异
sudo dpkg-reconfigure dash
选择no
(45条消息) 修改Ubuntu默认Shell_beikejinmiao的专栏-优快云博客_ubuntu 设置默认shell