个人装Ubuntu 的一些配置 configuration

Configuration:

Install typora

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

Update packages

// get (download) the latest packages

apt-get update

// upgrade all applications

sudo apt-get upgrade

// upgrade one specific application

sudo apt-get upgrade typora

About build-essential

ubuntu did not provide c++ compilers, which means we need to do it ourselves. However, Ubuntu provided the ‘build-esstial’ package, which enables us to install the most needed c and c++ compilers all at a time.

Install OpenCV

Uninstall apps

words

kit : 工具包

purge:清洗

remove

Entering Administrator Mode

su root

Exit Administrator Mode

exit

Install Java JDK8

1.update packages
download the JDK tar.gz from Oracle's website
2. make directory
sudo mkdir /usr/lib/jvm
3. unzip to the directory
perhaps just unzip it first, then move it to the object directory
unzip 
mv
4.modify environment variables
gedit ~/.bashrc
5.Add these content to the end of the bashrc
#set oracle jdk environment
export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_261  ## 这里要注意目录要换成自己解压的jdk 目录
export JRE_HOME=${JAVA_HOME}/jre  
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib  
export PATH=${JAVA_HOME}/bin:$PATH  
6.Effect environment variables immediately:
source ~/.bashrc
7.register in the system
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.8.0_261/bin/java 300
8.see if we install java JDK successfully
java -version



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值