保存history
echo "HISTFILESIZE=99999" >> ~/.bashrc
echo "HISTSIZE=99999" >> ~/.bashrc
echo 'HISTTIMEFORMAT="%F %T "'>> ~/.bashrc
# 命令立刻写入而不是退出时写入
echo 'PROMPT_COMMAND="history -a"' >> ~/.bashrc
可以给qbit加上sudo权限
echo 'qbit ALL=(ALL) NOPASSWD:ALL'>/etc/sudoers
退出当前会话并重新登录
config
hostnamectl set-hostname UbuntuQbit
UI设置
Settings->Power->Power Saving->Blank Screen
Firefox->about:preferences->Search->Default Search Engine
sources.list
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ eoan main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ eoan main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ eoan-updates main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ eoan-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ eoan-backports main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ eoan-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ eoan-security main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ eoan-security main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ eoan-proposed main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ eoan-proposed main restricted universe multiverse
apt
cp /etc/apt/sources.list /etc/apt/sources.list.backup
cp ./sources.list /etc/apt/sources.list
apt update
apt upgrade -y
允许远程
# 安装服务
apt install -y openssh-server
# 关闭防火墙
systemctl stop ufw
systemctl disable ufw
如果报Permission denied (publickey)说明关闭了密码登录,使用的key,修改/etc/ssh/sshd_config以下选项开启密码登录
PermitRootLogin yes
PasswordAuthentication yes
ChallengeResponseAuthentication yes
UsePAM yes
最后重启服务并设置密码
systemctl restart sshd
echo mima | passwd --stdin
常用工具
snap install redis-gui
snap install postman
apt install -y git docker mlocate jmeter
apt install -y postgresql-client postgresql-client-13
php
使用root用户执行下面
apt install -y php php-mysql php-fpm composer
使用普通用户执行下面
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
jdk
down load java from oracel
unzip the file and move to usr
mv jdk-10.0.2/ /usr/
install openjdk
apt install -y openjdk-11-jdk
安装maven
install jetbrains toolbox and install intellij
Thank you for downloading the Toolbox App!
plugin
.ignore
advanced java folding
bashsupport
checkstyle-idea
codeglance
codestream
codota
csv plugin
database navigator
GenerateSerialVersionUID
google-java-format
grep console
jenkins control plugin
jprofiler
jrebel and xrebel for intellij
key promoter x
lombok
maven helper
PlantUML integration
prettier
Rainbow Brackets
SequenceDiagram
SonarLint
Spring Assistant
Statistic
String Manipulation
Swagger
TeamCity
Upsource Integration
Vagrant
YouTrack Integration