gcc --version
sudo apt install gcc-8
sudo rm /usr/bin/gcc
sudo ln -s /usr/bin/gcc-8 /usr/bin/gcc
gcc --version
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
sudo apt-get install apt-transport-https
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
sudo apt-get update
sudo apt-get install sublime-text
git clone https://github.com/lyfeyaj/sublime-text-imfix.git
cd sublime-text-imfix && ./sublime-imfix
git clone -b st3 https://github.com/rexdf/ChineseLocalization.git ~/.config/sublime-text-3/Packages/ChineseLocalization
cat /etc/issue
sudo lsb_release -a
grep -c ^processor /proc/cpuinfo
date -R # 查看
sudo dpkg-reconfigure tzdata # 修改,选择Asia/Shanghai
passwd 用户名
sudo apt install ttf-mscorefonts-installer
sudo fc-cache -f -v
解决方法
sudo apt-get install libcanberra-gtk-module
echo "deb [arch=amd64] https://repo.skype.com/deb stable main" | sudo tee /etc/apt/sources.list.d/skype-stable.list
wget https://repo.skype.com/data/SKYPE-GPG-KEY
sudo apt-key add SKYPE-GPG-KEY
sudo apt install apt-transport-https
sudo apt update
sudo apt install skypeforlinux
# or run:
# sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA300B7755AFCFAE
wget -qO - https://typora.io/linux/public-key.asc | sudo apt-key add -
# add Typora's repository
sudo add-apt-repository 'deb https://typora.io/linux ./'
sudo apt-get update
# install typora
sudo apt-get install typora
scp -P 22 -r user@host:/www/wwwroot/ c:/user/aa/
# -P 指定端口,默认为22;-r 目录操作;-i 验证文件登录。
# 示例1,下载rma文件夹到/mnt/d
scp -r user@192.168.100.1:/home/user/rma /mnt/d/
# 示例2,下载README.rst到当前路径(省略下载目的路径则默认为当前工作路径)
scp user@192.168.100.1:/home/user/rma/README.rst .
# 示例3,验证文件登录下载(jeanphy.online代表主机IP或域名)
scp -r -i aws.pem ubuntu@jeanphy.online:/home/ubuntu/online/myaddons/recard
scp -P 22 -r directory user@host:/www/wwwroot/
# 例如(上传默认目录为用户根目录)
scp README.rst user@192.168.100.1:/home/user/rma/ # 上传文件
scp -r src/img user@192.168.100.1: # 上传目录
sudo vim /etc/apt/sources.list.d/pgdg.list
# 添加如下一行内容保存
deb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql-11/12
cp /etc/apt/sources.list /etc/apt/sources.list.bak
# 在/etc/apt/sources.list文件前面添加如下条目
sudo vim /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 passwd root
sudo vim /etc/ssh/sshd_config
修改PermitRootLogin后的默认值为yes
sudo service ssh restart