使用Ubuntu作为Java开发平台,主要作为双系统的方式安装。本着能跑的程序尽量在Ubuntu,其他使用主备的Win系统解决的原则,故此该篇文章兼顾了一些双系统安装时的注意事项。
Ubuntu配置
-
更改英语为中文。 在
settings -> Region & Language选项中修改。先安装中文语言包,然后将中文拖住到最上面,最后重启系统,在弹出的界面选择保留旧的名称. -
配置更改
apt源为国内阿里云源。#1 复制源文件备份 sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak #2 编辑源文件列表文件如下 deb https://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb https://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb https://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb https://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse deb https://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse #3 运行更新命令 sudo apt update sudo apt upgrade -
修改时区。依次选择
Asia->China-Beijing~# tzselect ~# ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime -
解决
Ubuntu 18.04中的系统弹窗错误。~# gedit /etc/default/apport #修改此文件中的enabled=1为enabled=0 -
deb的安装和卸载
~# gdebi xxx.deb #安装deb包 ~# dpkg -l #列出安装的软件包 ~# apt autoremove 软件包 #要删除的软件包 -
gnome扩展
# 安装gnome-tweak-tool和chrome-gnome-shell.前者主要实现主题等配置工作 后者主要用于插件使用 ~$ sudo apt install gnome-tweak-tool chrome-gnome-shell # 安装firefox扩展GNOME Shell integration # 使用firefox打开https://extensions.gnome.org插件网站 挑选插件即可安装 -
安装
nfts-3g实现linux系统访问Win系统~# apt install ntfs-3g