Ubuntu 18.04 新装操作系统后的工具软件安装及开发环境配置

常规设置

设置root用户密码

打开终端,快捷键:Crl+Alt+T
输入:sudo passwd
先输入当前用户的密码(一次)。
然后输入root用户的密码(两次,需一致)。

触摸板(touchpad)右键“失效”

  • 原因
    ubuntu 18.04 的触控板的驱动默认按照mac的触控板模式来的。
    这种情况下,两个手指同时点击就是右键,反而更方便点。

  • 修改触摸板模式
    如果要修改为常用的左键确认右键更多选项,需要在Terminal修改range org.gnome.desktop.peripherals.touchpad click-method的值。
    设置语句:gsettings set org.gnome.desktop.peripherals.touchpad click-method areas

wuyujin@ubuntu18:~$ # 查看值的范围
wuyujin@ubuntu18:~$ gsettings range org.gnome.desktop.peripherals.touchpad click-method
enum
'default'
'none'
'areas'
'fingers'
wuyujin@ubuntu18:~$ # 查看当前的值
wuyujin@ubuntu18:~$ gsettings get org.gnome.desktop.peripherals.touchpad click-method
'fingers'
wuyujin@ubuntu18:~$ # 设置新的值
wuyujin@ubuntu18:~$ gsettings set org.gnome.desktop.peripherals.touchpad click-method areas
wuyujin@ubuntu18:~$ gsettings get org.gnome.desktop.peripherals.touchpad click-method
'areas'
wuyujin@ubuntu18:~$

修改ubuntu1 18.04 apt源为阿里云(aliyun)镜像

  1. 备份原文件
    sudo cp /etc/apt/sources.list /etc/apt/sources.list-bak
    或:
    sudo cp /etc/apt/sources.list{,-bak}

  2. 编辑原文件/etc/apt/sources.list,内容覆盖为如下:

deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
  1. 更新仓库 && 更新软件包
    sudo apt-get update
    sudo apt-get upgrade

安装工具软件

Intro

  • 命令行操作通用(Debian系)
    • 下载软件包 wget URL
    • 安装软件包 sudo dpkg -i xxx.deb
    • 查看命令的路径 which xxx
  • 运行命令(命令名称及所在路径)
/usr/bin/code
/usr/bin/google-chrome-stable
/usr/bin/netease-cloud-music
/usr/bin/vlc
/usr/share/tencent-qq/qq

其中,/usr/bin/*默认包含在环境变量PATH中,所以在该目录下的命令可以在任意路径下直接运行。

文本编辑器: VSCode

  • 下载地址
    可以直接下载code_1.41.1-1576681836_amd64.deb
    若链接失效或想下载更多/更新的版本,也可以在官网下载页面下载(有Windows版本,Mac版本,Debian系Linux及Redhat系Linux)。

  • 安装的两种方式

    • 命令行操作
      下载: wget https://vscode.cdn.azure.cn/stable/26076a4de974ead31f97692a0d32f90d735645c0/code_1.41.1-1576681836_amd64.deb
      安装: sudo dpkg -i code_1.41.1-1576681836_amd64.deb
    • 图形界面操作
      复制deb包下载链接到浏览器,下载即可。
      打开Files,找到下载到的deb包文件,双击打开安装即可。

图像查看器: nomacs

sudo apt-get install nomacs
在查看图片的界面中,有删除当前图片等功能。
若没网也可以在其他机器上下载好压缩包,然后安装到本机。nomacs 官网

如果不满意可以安装其他图片查看工具,见https://www.jianshu.com/p/41f021f47eec

中文输入法: fcitx输入法框架 + sougou拼音输入法

  • Intro
    Linux环境下的搜狗输入法,依赖于fcitx输入法框架(其他输入法框架有iBus, XIM等)。
    所以要:

    1. 安装fcitx框架;
    2. 安装搜狗输入法。
  • 安装fcitx框架

    • 安装fcitx输入法框架
    sudo add-apt-repository ppa:fcitx-team/nightly  # 添加FCITX仓库
    sudo apt-get update         # 更新仓库
    sudo apt-get install fcitx  # 安装fcitx输入法框架
    
    • 确认

    搜索Language Support,切换Keyboard input method system选项的值为fcitx
    右上角可以看到一个小键盘。

  • 安装搜狗输入法

  • 使用包管理工具安装(机器联网的话,推荐这种方式)

    • 安装
      apt-get install fcitx
      apt-get install sogoupinyin
    • 查询安装位置
      dpkg -L fcitx
      dpkg -L sogoupinyin 注意是sogou不是sougou
    • 卸载(并清除配置文件)
      sudo apt-get remove sogoupinyin --purge
      sudo apt-get remove fcitx --purge

网络浏览器: 谷歌浏览器

音乐播放器: 网易云音乐

视频播放器: VLC

`sudo apt-get install vlc`

即时通讯器: QQ

linuxqq_2.0.0-b1-1024_amd64.deb
QQ For Linux

发布了269 篇原创文章 · 获赞 156 · 访问量 29万+

猜你喜欢

转载自blog.csdn.net/wuyujin1997/article/details/104102074