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

### SDK for Ubuntu 20.04 Download and Installation Guide For applications development on Ubuntu 20.04, several Software Development Kits (SDKs) might be relevant depending on the specific requirements of a project. Two common scenarios involve setting up environments for CUDA-based GPU programming or Intel SGX development. #### Installing NVIDIA CUDA Toolkit The NVIDIA CUDA Toolkit is essential for developing GPU-accelerated applications. If this toolkit has not been installed previously, one can proceed with its setup using provided commands: If there are no existing installations, ensure that necessary headers are present by executing `sudo apt-get install linux-headers-$(uname -r)`[^1]. Following which, choose an appropriate method to continue with the installation process as outlined in official documentation or guides related specifically to CUDA versions compatible with Ubuntu 20.04. ```bash sudo apt-get update sudo apt-get install cuda ``` After completing these steps, it's advisable to verify the installation through running sample programs included within the CUDA package. #### Setting Up Intel SGX SDK Alternatively, developers interested in working with Intel Software Guard Extensions may require installing the Intel SGX SDK alongside other components like DCAP client libraries. Guidance directly from Intel provides detailed instructions covering all aspects from prerequisites verification to final testing procedures[^2]. To begin, follow the Linux kernel driver section available at [Intel_SGX_SW_Installation_Guide_for_Linux](https://software.intel.com/content/www/us/en/develop/articles/intel-software-guard-extensions-sdk-for-linux-os.html), ensuring compatibility between OS version and software packages being utilized during deployment phases. Both options provide comprehensive resources tailored towards successful integration into projects hosted on systems running Ubuntu 20.04 LTS edition.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值