文章目录
前言
重装Linux系统后,总是一脸茫然😳,✋👣无措,不知道要安装些什么软件,于是就来总结一下。
一、开发用软件
1、IDE
(1)IntelliJ IDEA
一款好用但收费的IDE😂。
- JetBrains官网: https://www.jetbrains.com
- IntelliJ IDEA linux版本下载网址: https://www.jetbrains.com/idea/download/#section=linux
安装过程:
- 把下载好的
ideaIU-20xx.x.x.tar.gz
压缩包解压到某个目录下(比如/usr/local
),然后得到目录idea-IU-xxx.xxxx.xx
; - 把这个目录重命名一下,叫得简单一些,如
ideaIU
; - 运行
/usr/local/ideaIU/bin/idea.sh
就可以启动IDEA了。
IDEA常用配置
- 自动编译开关
在Settings
→Build, Execution, Deployment
→Compiler
→ 勾选Build project automatically
; - 忽略大小写开关
在Settings
→Editor
→General
→Code Complition
→ 取消勾选Match case
; - 智能导包开关
在Settings
→Editor
→General
→Auto Import
→Insert imports on paste
选择All
,勾选Add unambigous imports on the fly
,勾选Optimize imports on the fly
; - 取消单行显示Tab操作
在Settings
→Editor
→General
→Editor Tabs
→ 勾选Show tabs in one row
; - 项目文件编码
在Settings 和 Other Settings
→Editor
→File Encodings
→ 全都选UTF-8
; - 当前项目JDK版本设置
在Project Structure
里可以添加、选择JDK版本; - 所有项目默认JDK版本设置
关闭所有项目,在IDEA启动页面中,下拉Configure
→ 选择Project Defaults
→ 选择Project Structure
进行设置; - 记得要在IDEA上配置maven,git。
(2)Eclipse
经典,但不如IDEA好用的一款IDE。
- eclipse官网:https://www.eclipse.org/;
- Eclipse IDE for Enterprise Java Developers下载网址:https://www.eclipse.org/downloads/packages/
安装过程:
- 把下载好的
eclipse-jee-20xx-xx-x-linux-gtk-x86_64.tar.gz
压缩包解压到某个目录下(比如/usr/local
),然后得到目录eclipse
; - 运行
/usr/local/eclipse/eclipse
就可以启动eclipse了。
2、数据库相关
(1)可视化工具DBeaver
个人喜好DBeaver,关键是社区版免费🙃。
- DBeaver官网:https://dbeaver.io/
- DBeaver Community Edition下载网址:https://dbeaver.io/download/
安装过程:
- 把下载好的
dbeaver-ce-x.x.x-linux.gtk.x86_64.tar.gz
压缩包解压到某个目录下(比如/usr/local
),然后得到目录dbeaver
; - 运行
/usr/local/dbeaver/dbeaver
就可以启动DBeaver了。
(2) mysql
mysql的安装就不说了, 这里只说一下mysql忘了root密码该怎么办?
# 首先在/etc/my.cnf文件的末尾添加一句
[root@lenovo ~]# vim /etc/my.cnf
# 关闭权限
skip-grant-tables
:wq
[root@lenovo ~]# systemctl restart mysqld
[root@lenovo ~]# mysql -uroot
mysql> use mysql;
Database changed
mysql> select host,user,authentication_string from user;
+-----------+---------------+-------------------------------------------+
| host | user | authentication_string |
+-----------+---------------+-------------------------------------------+
| % | root | *12EBCD14EDF42F9EE48926CCA0DCA65877F5D602 |
| localhost | mysql.session | *THISISNOTAVALIDPASSWORDTHATCANBEUSEDHERE |
| localhost | mysql.sys | *THISISNOTAVALIDPASSWORDTHATCANBEUSEDHERE |
+-----------+---------------+-------------------------------------------+
4 rows in set (0.00 sec)
mysql> update user set authentication_string = password('123456') where user = 'root';
mysql> exit;
Bye
# 然后把文件中添加的内容注释掉
[root@lenovo ~]# vim /etc/my.cnf
# 关闭权限
# skip-grant-tables
:wq
[root@lenovo ~]# systemctl restart mysqld
[root@lenovo ~]# mysql -uroot -p123456
mysql>
3、其它开发软件
(1)Postman
它可用于接口调试。听说还有个Postwoman,但没有用过😎
- Postman官网:https://www.postman.com/
- Postman下载网址:https://www.postman.com/downloads/
安装过程:
- 把下载好的
Postman-linux-x64-x.x.x.tar.gz
压缩包解压到某个目录下(比如/usr/local
),然后得到目录Postman
; - 运行
/usr/local/Postman/Postman
就可以启动Postman了。
(2)git
# 添加软件源
sudo add-apt-repository ppa:git-core/ppa
# 更新软件源
sudo apt-get update
# 安装git
sudo apt-get install git
# 验证安装
git --version
# 设置用户名和邮箱,在gitee或git上创建一个空仓库
# 就可以知道下面的命令具体是什么了
git config --global user.name "username"
git config --global user.email "[email protected]"
(3)Apache Maven
这里主要是maven的下载和settings.xml文件的配置。
- Apache Maven官网:https://maven.apache.org/
- Maven下载网址:https://maven.apache.org/download.cgi
安装过程:
- 把下载好的
apache-maven-3.6.3-bin.tar.gz
压缩包解压到某个目录下(比如/usr/local
),然后得到目录apache-maven-3.6.3
; - 修改配置文件⇒
/usr/local/apache-maven-3.6.3/conf/settings.xml
,如下:
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<!-- 设置本地仓库所在目录 -->
<localRepository>/media/shijunzhiCome/sjz/MVNrepository/</localRepository>
<pluginGroups>
</pluginGroups>
<proxies>
</proxies>
<servers>
<!-- 上传到私服的配置 -->
<server>
<id>releases</id>
<username>admin</username>
<password>admin123</password>
</server>
<server>
<id>snapshots</id>
<username>admin</username>
<password>admin123</password>
</server>
</servers>
<!-- 设置镜像源,这里使用阿里的 -->
<mirrors>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
<profiles>
<!-- 添加JDK版本全局配置(默认为jdk1.5) -->
<profile>
<id>jdk8</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.8</jdk>
</activation>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
</properties>
</profile>
<!-- 私服配置 -->
<profile>
<id>nexus</id>
<repositories>
<repository>
<id>pubic</id>
<name>Public Repositories</name>
<url>http://localhost:8081/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>nexus</activeProfile>
</activeProfiles>
</settings>
(4)Redis Desktop Manager
很好用的Redis管理工具。
- Redis Desktop Manager官网:https://redisdesktop.com/
- Redis Desktop Manager下载网址:https://redisdesktop.com/pricing
- Redis Desktop Manager的github网址:https://github.com/uglide/RedisDesktopManager
安装过程(使用snapcraft安装):
# 如果没有安装过snapcraft,请执行下面命令
sudo apt-get install snapd
sudo apt-get install snapcraft
# 安装Redis Desktop Manager
sudo snap install redis-desktop-manager
snap的其它使用说明,请移步至博主“一杯明月”的博文 Ubuntu使用snap安装常用软件
(5)FinalShell
挺好用的免费终端工具。
- FinalShell官网:http://www.hostbuf.com/
安装过程:
# 一键安装脚本
rm -f finalshell_install_linux.sh; \
wget www.hostbuf.com/downloads/finalshell_install_linux.sh; \
chmod +x finalshell_install_linux.sh; \
./finalshell_install_linux.sh;
二、日常用软件
1、文本编辑
(1)VSCode
十分好用的编辑器。
- VSCode官网:https://code.visualstudio.com/
安装过程:
- 从官网下载.deb文件后直接双击安装就好。
2、思维导图
(1)freemind
freemind是最轻量化、速度最快、最高效的思维导图软件🦋,没有之一,不接受反驳,反驳无效🤪
- freemind官网:http://freemind.sourceforge.net/wiki/index.php/Main_Page
- freemind下载网页:http://freemind.sourceforge.net/wiki/index.php/Download
- freemind-bin-max-1.0.1.zip下载网址:https://sourceforge.net/projects/freemind/files/freemind/1.0.1/freemind-bin-max-1.0.1.zip/download?use_mirror=jaist&download=
安装过程:
- 注意选择
binaries for any operating system - max
这个版本的freemind下载,因为freemind是用java写的,所以它本身就可以跨平台使用。下载得到的压缩包是freemind-bin-max-1.0.1.zip
,解压到某个目录(比如/usr/local/freemind
); - 运行
/usr/local/freemind/freemind.sh
就可以启动freemind了。
(3)XMind 8
XMind 8也是一款不错的思维导图软件,优点是美观,缺点是速度慢。
- XMind 8 官网:https://www.xmind.cn/xmind8-pro/
安装过程:
- 把下载好的
xmind-8-update9-linux.zip
解压缩到某个目录(比如/usr/local
)下,然后得到目录xmind8
; - 运行
/usr/local/xmind8/XMind_amd64/XMind
就可以启动XMind8了。
3、MarkDown文件编辑
(1)Typora
Typora简洁、美观,编写md文件必备神器。
- Typora官网:https://www.typora.io
- Typora下载网址:https://www.typora.io/#linux
安装过程 :
- Typora使用命令行安装可能比较慢,所以可以选择下载binary file也就是
Typora-linux-x64.tar.gz
,然后解压后运行相应的可执行文件就好; - 使用命令行安装,如下:
# or run:
# 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
4、办公软件
(1)WPS
很符合国人使用习惯的办公软件。
- WPS官网:https://www.wps.cn/
- WPS for Linux下载网址:https://linux.wps.cn/
安装过程:
- 下载好.deb文件,双击安装即可。
(2)FoxitReader
适合打开PDF格式的文件。
- FoxitReader官网:https://www.foxitsoftware.cn/
- FoxitReader for Linux下载网址:https://www.foxitsoftware.cn/pdf-reader/
安装过程:
- 把下载好的
FoxitReader.enu.setup.x.x64.run.tar.gz
解压后得到FoxitReader.enu.setup.x.x64.run
文件,运行此文件即可开始安装。
5、输入法fcitx
由于本人习惯了五笔,所以使用的是fctix-wbpy输入法。在Deepin系统上,自带的输入法就是fcitx,而在Ubuntu系统中默认使用的是ibus,所以要自己安装和配置fcitx。
这里引用博主“ Gelandesprung ”的博文 《ubuntu18.04安装fcitx》 https://www.cnblogs.com/gelandesprung/p/11511357.html,原文如下:
fcitx安装比较麻烦,我每次安装都要费不少劲,每次装安之后都没有写日志记录下来,导致下次装的时候又手忙脚乱,所以这次一定要记录下来。
前因:
我本来用的是ibus,但是这个输入法好像有bug,我在编辑文档的时候如果打的双字词语如果错了,它就会显示成乱码,除非把文档关闭再打开,否则文档无法正常的编辑,感觉有点像输入法的缓冲区错位了。
安装fcitx的方法比较简单,麻烦的是配置。先说说安装
sudo apt install fcitx fcitx-table-wbpy
我喜欢用五笔,部分字又拆不出来,所以我用的是五笔拼音。
然后是打开Settings–>Manage Installed languages -->keyboard input method system:(选fcitx)
再打开所有应用,选择input method,这是一个键盘图标,确定然后进入选fcitx之后关闭
再次打开所有应用,选择fcitx configuration,选择input methoid这个tab,点击下来的add符号,打开一个对话框,有一个only show current lanaguage的选择,记得取消选择,然后搜索到wbpy,添加进来。
完成之后重启电脑就行了。输入法的调出需要ctrl+space,切换是ctrl+shift
6、词典
(1)有道词典
7、聊天
(1)QQ for Linux
- 官网:https://im.qq.com/
- linux版本下载:https://im.qq.com/linuxqq/index.html
8、音乐
(1)网易云音乐
- 官网:https://music.163.com
- linux版本下载:https://music.163.com/#/download
9、网盘
(1)百度网盘
10、邮件
(1)thunderbird
三、桌面快捷方式
在Deepin系统上直接右键就可以创建桌面快捷方式,但在Ubuntu系统中就比较麻烦。如下:
# 首先进入/usr/share/applications目录,各种桌面快捷方式都在这里
cd /usr/share/applications
# 创建桌面快捷方式文件,以freemind为例
sudo vim freemind.desktop
# >>开始编辑
[Desktop Entry]
Encoding=UTF-8
Name=freemind
Comment=freemind
# 根据软件的具体执行路径修改,%F表示加入右键菜单的打开方式中
Exec=/usr/local/freemind/freemind.sh %F
# 可以自己网上下载一个256*256的图标
Icon=/usr/local/freemind/freemind.png
Terminal=false #软件打开时是否启动终端
StartupNotify=false
Type=Application
Categories=Application;Development;
# <<编辑完成后保存,大功告成!
关于Desktop Entry的详解,可以参考一篇英文文档:https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html
现在摘取部分内容,并粗略翻译如下:
在xxx.desktop桌面快捷方式文件中,可以写的key有:
key有必须 和 可选两种。有一些key是其它key存在而且是某个值时,才可以写。比如Terminal
这个key必须是在Type=application
时才可以写。部分key如下:
key 描述 value的类型 是否必须? Type Type的可选值有3种,分别是Application, Link和Directory string 是 Version 版本 string 否 Name 应用的名称,比如Mozilla localestring 是 GenericName 通用名称,比如Web Browser localestring 否 NoDisplay 表示这个应用是有的,但是不在开始菜单界面中展示 boolean 否 Comment 对这个应用的功能的简述,比如View sites on the Internet localestring 否 Icon 应用程序的图标位置 iconstring 否 Exec 应用程序启动路径 string 否 Terminal 应用程序是否在终端运行 boolean 否 Categories 这个应用程序所属的类别,可以写
1. AudioVideo 音视频
2. Audio 音频
3. Video 视频
4. Development 开发
5. Education 教育
6. Game 游戏
7. Graphics 图形图像
8. Network 网络应用
9. Office 办公应用
10. Science 科学应用
11. Settings 设置相关
12. System系统应用
可以写多个,中间用英文分号隔开string(s) 否 StartupNotify 是否启动时通知 boolean 否 在
Exec
这个key的value里,可以使用一些神奇的字段代码,部分代码如下:
字段代码 含义 %F 表明这个应用程序,可以一次打开多个文件。也表示它会加入到右键菜单的打开方式中 %U 表示可以给启用程序添加启动时的参数,比如Typora解压后无法启动时,可以设置 Exec=/opt/typora/bin/Typora-linux-64/Typora %U --no-sandbox
如果在Ubuntu中,桌面快捷方式不起作用时,可以使用软连接,如下所示:
# 比如创建idea的软连接
ln -s /opt/idea/bin/idea.sh /home/xxx/Desktop/ideaIU
然后就在桌面双击ideaIU就可以启动了。
四、更换软件源
1、Ubuntu
# 备份/etc/apt/sources.list文件
mv /etc/apt/sources.list /etc/apt/sourses.list.backup
# 编辑source.list文件
sudo vim /etc/apt/sources.list
# 在首行添加新的软件源,下面的源选一种即可
# ubuntu20.04LTS的源
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
# 编辑后保存,然后执行下面命令,更新源
sudo apt-get update
2、Deepin
# 备份/etc/apt/sources.list文件
mv /etc/apt/sources.list /etc/apt/sourses.list.backup
# 编辑source.list文件
sudo vim /etc/apt/sources.list
# 添加如下内容
## Generated by deepin-installer
deb [by-hash=force] http://mirrors.aliyun.com/deepin lion main contrib non-free
#deb-src http://mirrors.aliyun.com/deepin lion main contrib non-free
# 更新源
sudo apt-get update
五、Ubuntu设置默认应用程序
方式一
通过打开设置
→ 最下面的详细信息
→ 默认应用程序
,就可以设置,如下图:
方式二
右键一个文件(比如一个.txt文件),单击右键菜单最下方的属性
,在弹出的对话框中就可以设置这种类型的文件的默认打开方式。如下图所示:
六、Ubuntu文件浏览器树状视图
引用自博主xia_hu_nao的博文 《设置Ubuntu14.04文件浏览器 树状视图 listview》 https://blog.csdn.net/xia_hu_nao/article/details/40087977
部分内容如下:
sudo apt-get install dconf-tools
启动 dconf-editor
依次展开 org → gnome → nautilus → list-view
勾选 use-tree-view
这时 文件浏览器 就可以树状展开了
七、Ubuntu使用Deepin截图工具
引用自博主15wylu的博文 《Ubuntu 18.04 一键安装深度截图工具 Deepin Screenshot》 https://blog.csdn.net/qq_32767041/article/details/84205219
部分内容如下:
安装:
打开Ubuntu Software
搜索deepin
点击Deepin Screenshot
点击Install
添加快捷键:
打开Settings
选择Devices,选择Keyboard
滑到底部选择添加
Name = DeepinScreenShot
Command = /usr/bin/deepin-screenshot
Shortcut = Ctrl + Alt + A
八、Ubuntu常用快捷键
引用自文章 《每位 Ubuntu 18.04 用户都应该知道的快捷键》 https://linux.cn/article-10055-1.html
部分内容如下:
Super 打开活动界面
Ctrl + Alt + A 打开终端
Super + A 显示应用程序
九、Ubuntu美化
1、下载主题文件
主题一般分为GTK主题、图标主题和光标主题。主题文件可以从https://www.gnome-look.org下载。
我们首先下载类似Mac风格的GTK主题和图标主题,如下图所示:
得到下载文件:
# GTK主题文件
01-Mojave-dark.tar.xz
05-Mojave-light.tar.xz
# 图标主题文件
01-McMojave-circle.tar.xz
然后我们特别为左利手人士,下载左手光标主题,如下图所示:
得到下载文件:
# 光标主题文件
165053-DMZBlackLH.tgz
165054-DMZWhiteLH.tgz
2、安装GTK主题
# 进入下载好的主题 所在的目录
比如 cd [忽略部分目录]/download/themes
# 把GTK主题文件解压到/usr/share/themes目录下
sudo tar -xvJf 01-Mojave-dark.tar.xz -C /usr/share/themes
sudo tar -xvJf 05-Mojave-light.tar.xz -C /usr/share/themes
# 这样就安装成功了,配置它,我们稍后再说
3、安装图标主题
# 进入下载好的主题 所在的目录
比如 cd [忽略部分目录]/download/themes
# 把GTK主题文件解压到/usr/share/icons目录下
sudo tar -xvJf 01-McMojave-circle.tar.xz -C /usr/share/icons
# 这样就安装成功了,配置它,我们稍后再说
4、安装光标主题
# 进入下载好的主题 所在的目录
比如 cd [忽略部分目录]/download/themes
# 把GTK主题文件解压到/usr/share/icons目录下
sudo tar -zxvf 165053-DMZBlackLH.tgz -C /usr/share/icons
sudo tar -zxvf 165054-DMZWhiteLH.tgz -C /usr/share/icons
# 这样就安装成功了,配置它,我们稍后再说
5、配置主题
(1) 软件下载
在应用商店中先把GNOME tweaks
和User Themes
下载好。
(2) 开始应用主题
打开优化(也就是GNOME tweaks)
,在扩展
中保证User Themes
已启用。然后在外观
中对主题做如下图所示修改:
大功告成!
😎PS: 可以在设置
的通用辅助
中设置光标大小。