安装Linux桌面系统之后的工作

安装说明

我使用的是最小化安装, 这样安装下之后,只有Firefox和image viewer非常干净

蓝牙鼠标支持

本人使用microsoft sculpt蓝牙鼠标,需要进行一定配置才能在Ubuntu下更好的工作。
参考本人CSDN文章ubuntu 18.04 与 Windows10 共用 MICROSOFT SCULPT (蓝牙鼠标)

换源

更换源的方法不再使用网上更改sourcelist文件的办法, 而是在开始目录中运行 “Software & Updates”程序 在默认选项卡中的“Download from”中可以更改源, 这样的话是官方提供的第三方镜像地址, 有保证, 这里使用清华的源, 点击apply之后, 系统会自动在图形界面执行 apt update命令

上网

上网分为两部分

1. 启动V

本人使用v上网,在Linux不使用单独的图形客户端
使用官网给出的go.sh进行下载v

$ wget https://×××××××install××××××.××××××direct××××××/×××××go.sh
$ sudo bash go.sh
$ sudo systemctl start v

这是只需要将从Windows客户端中导出的config.json文件覆盖到/etc/v/config.json再重启客户端即可完成连接

2. 使用v执行命令行程序

使用ProxyChains命令行程序进行命令的代理
安装

$ sudo apt install proxychains

配置

sudo vim /etc/proxychains.conf

在最后的ProxyList里加入的代理设置: socks5 127.0.0.1 1080

编辑/usr/bin/proxychains

sudo vim /usr/bin/proxychains 

修改LD_PRELOAD=libproxychains.so.3
为(根据自己系统里的libproxychains.so.3设置)LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libproxychains.so.3
自己系统的libproxychains.so.3的位置可以使用find命令查找

$ find /usr/ -name libproxychains.so.3 -print

根据返回结果更改

3. 本部分参考文献:

代理利器ProxyChains 使用方法
解决'libproxychains.so.3' from LD_PRELOAD cannot be preloaded问题

安装chrome浏览器

虽说在Linux下大家更喜欢开源的chrome浏览器,但是我为了方便还是使用chrome浏览器

1. 安装方法

到chrome官网下载chrome安装包(deb文件)然后双击,在Ubuntu应用中心点击install 安装。系统会自动解决依赖问题,应该很快。

2. 登录Google账号

因为上一步的v虽然可以上网,但是因为Google的应用商店仍然在外,所以无法很方便的下载上网插件。所以我们利用proxychains进行对chrome的全局上网。这样的好处就是无需配置

$ proxychains google-chrome

这样利用proxychains插件简单对chrome全局代理,而且不影响下次运行, 这时只要能登录Google账号,一切都问题不大了

另一种方法是:

$ google-chrome --proxy-server="socks5://127.0.0.1:1080"

安装搜狗中文输入法

请参考文章Ubuntu 17.04 安装搜狗中文输入法

推荐goolge拼音 https://leimao.github.io/blog/Ubuntu-Gaming-Chinese-Input/

1. 下载安装

首先在官网下载安装包(deb文件)下面文件的名字改为你刚刚下载的deb文件的名字

$ sudo dpkg -i sogoupinyin_2.1.0.0086_amd64.deb

2. 解决依赖问题

$ sudo apt --fix-broken install

运行上述命令后再次安装deb文件即可

$ sudo dpkg -i sogoupinyin_2.1.0.0086_amd64.deb

3. 设置输入框架

在系统设置-Language Support中将“Keyboard input method system”设置为fcitx;
并且重启电脑

4. fcitx框架添加搜狗输入法

屏幕右上角出现“键盘”标志,点击“设置”,在新窗口的左下角将“根据当前语言选择”项目勾选取消,点击加号,选择“Sogou pinyin”选项,即可成功添加搜狗输入法。

Python开发环境

Ubuntu 18.04中默认Python3已经是3.6.5版本,本人不再升级

1. 安装pip

安装pip可以使用get-pip.py

$ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
$ python3.6 get-pip.py

如果安装过程报错ModuleNotFoundError: No module named 'distutils.util'
需要安装 python3-distutils

$ sudo apt install python3-distutils

参考
Ubuntu18.04 ModuleNotFoundError: No module named 'distutils.util'

2. 安装vscode

去官网下载deb包, 安装方式同chrome

3. vscode配置Python开发环境

用VSCode写python的正确姿势
参考该文章进行配置

命令行优化

终端很重要,好看很必要

1. 安装terminator

terminator 提供分屏和标签功能

sudo apt install terminator

2. 在右键菜单中添加open in terminator

这样的操作可以让你快速的切换到当前目录,及其方便 可以参考文章:安装terminator 并在右键菜单中添加open in termintor

  • 安装Nautilus-actions
    Nautilus-actions这个工具在Ubuntu 16.04 以前的版本很好用,但在18.04中被移除了。好在有热心网友提供新的PPA 。Nautilus-actions in 18.04
sudo add-apt-repository ppa:daniel-marynicz/filemanager-actions
sudo apt-get install filemanager-actions-nautilus-extension

利用以上两条命令安装Nautilus-actions, 可以在右键菜单中添加快捷方式

  • 添加内容
    通过上面两句话添加PPA并且安装Nautilus-actions
    使用fma-config-tool启动配置界面
    新建一条快捷指令
    context label中添加Open in Terminator
    在command标签中添加
    path: /usr/bin/terminator
    Parameters: --working-directory=%d/%b
    其他默认

  • 设置上下文菜单

  • 关闭原有的右键打开

sudo apt remove nautilus-extension-gnome-terminal

3. terminator 的主题设置

mkdir -p ~/.config/terminator/
vim ~/.config/terminator/config

打开后写入:

[global_config]
  handle_size = -3
  enabled_plugins = CustomCommandsMenu, LaunchpadCodeURLHandler, APTURLHandler, LaunchpadBugURLHandler
  title_transmit_fg_color = "#000000"
  suppress_multiple_term_dialog = True
  title_transmit_bg_color = "#3e3838"
  inactive_color_offset = 1.0
[keybindings]
[profiles]
  [[default]]
    palette = "#000000:#5a8e1c:#2d5f5f:#cdcd00:#1e90ff:#cd00cd:#00cdcd:#e5e5e5:#4c4c4c:#868e09:#00ff00:#ffff00:#4682b4:#ff00ff:#00ffff:#ffffff"
    background_image = ""
    background_darkness = 0.68
    scrollback_lines = 3000
    background_type = transparent
    use_system_font = False
    scroll_background = False
    show_titlebar = False
    cursor_shape = ibeam
    font = Liberation Mono 12
    background_color = "#0e2424"
    foreground_color = "#e8e8e8"
[layouts]
  [[default]]
    [[[child1]]]
      type = Terminal
      parent = window0
      profile = default
    [[[window0]]]
      type = Window
      parent = ""
      size = 925, 570
[plugins]

重启Terminator之后, 即可得到一个好看的Terminator

4. 使用oh-my-zsh替代bash

第一次是见学长在mac上用的ohmyzsh,感觉很棒,就自己研究个装上, 很好用!

sudo apt install zsh
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

安装脚本最后会自动解决默认shell的问题, 只需要在询问时输入Y, 再输入密码即可

常用软件

  • VLC
  • typora
posted @ 2020-05-24 15:59  ArtisticZhao  阅读(270)  评论(0编辑  收藏  举报