develop on Ubuntu

保存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

http://download.oracle.com/otn-pub/java/jdk/10.0.2+13/19aef61b38124481863b1413dce1855f/jdk-10.0.2_linux-x64_bin.tar.gz?AuthParam=1536887111_a96ac9b1463a1209d52bd2614c83d634

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值