【LINUX】Effective Ubuntu

Ubuntu 第一次安裝後,必要的軟件安裝與配置 👉 【LINUX】(Ubuntu)系統 Setup

上文有:

  • 中文輸入法(Sogou 輸入法)安裝與配置
  • 終端:zsh + oh-my-zsh
  • 常用的 alias

本文內容主要解決 Ubuntu 部分 bug 和安裝提升效率的工具與配置。



自從真正地將 Ubuntu 系統作爲主機工作機之後,確實感受到了和 Windows 的細節上的差距。
不過沒有什麼是解決不了的,如果有 —— 那一定是因爲不知道怎麼解決 😆


1. Chrome/Chromium

瀏覽器是電腦使用中最重要的軟件之一,所以使瀏覽器順手是很重要的!

1.1 代碼字體渲染問題

2020/04/02 注:
這個問題出現在 Ubuntu 的更新之後。如果 Ubuntu 檢查更新,然後將所有的更新都勾選上,就會出現這個字體問題。
不應該勾選上的更新似乎是 “第三方” 相關名稱的更新。因爲當時複製出來現象的時候不確定,還在測試,所以沒有截圖。

Reference 👉 Fonts display wrong in chromium 🔗

Solution:

修改 Chrome/Chromium 的 *.desktop 文件。
將裏面的 Exec 後面的參數加上 env LANG=en_GB.UTF-8
具體細節請參考上文給出的鏈接。

1.2 鼠標滾輪滑動問題

Reference 👉 Permanently fix Chrome scroll speed 🔗

安裝 Chromium Wheel Smooth Scroller 插件來解決 chrome 上滑動鼠標滾輪不跟手、一鈍一鈍的問題。

我的配置參數:

n/a

2. Typora

Typora 是一款 Markdown 編輯軟件,即時渲染。

2.1 字體渲染問題

2020/04/02 注:
這個問題出現在 Ubuntu 的更新之後。如果 Ubuntu 檢查更新,然後將所有的更新都勾選上,就會出現這個字體問題。
不應該勾選上的更新似乎是 “第三方” 相關名稱的更新。因爲當時複製出來現象的時候不確定,還在測試,所以沒有截圖。

這個問題和 1.1 代碼字體渲染問題 基本一樣。
同樣是修改啓動命令(修改 LANG 這個環境變量)即可。



3. Gnome-Shell Extensions

Top 9 GNOME shell extensions to customize your desktop Linux experience 🔗

相關網站



4. 文件(夾)監聽問題

keyword:
file/folder watching; file/folder monitoringm;
inotify;
gitkraken file watching failed for this repository;

很多軟件(如一些 IDE,Git 的桌面圖形軟件等)需要使用到文件監聽功能,但是不知道 Ubuntu 上這個功能是默認沒有開啓?允許的監聽數太少?還是什麼意思(配置文件中沒有)?用到這個功能的軟件會有錯誤提示,或者異常崩潰退出。

原本一直都不知道如何解決,後來 PyCharm 也提示了“監聽文件緩慢”(GitKraken 直接提示失敗,時不時整個窗口刷新)這樣的錯誤消息,並且提供了解決方案的鏈接 🔗

參照上面提供的解決方案,在 Ubuntu 中修改配置並且 apply 之後,PyCharm 和 GitKraken 都沒有問題了

$ sudo vim /etc/sysctl.conf
#### 在末尾加上 'fs.inotify.max_user_watches = 524288' 這一行,如下:
fs.inotify.max_user_watches = 524288
~
~
:wq
$ sudo sysctl -p --system

And don’t forget to restart your IDE.
Note: the watches limit is per-account setting. If there are other programs running under the same account which also uses Inotify the limit should be raised high enough to suit needs of all of them.



5. 快捷鍵配置

Win+E

命令:
nautilus --new-window



6. 軟件

deepin-wine

2020/03/23

deepin-wine + wechat、QQ 等

$ sudo vim /etc/apt/sources.list.d/deepin.list
deb [trusted=yes] https://mirrors.huaweicloud.com/deepin stable main contrib non-free
~
:wq
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 425956BB3E31DF51  # if needed
$ sudo apt update
$ sudo apt install deepin.com.wechat
$ # ...
$ sudo rm /etc/apt/sources.list.d/deepin.list
$ sudo apt update

安裝 QQ:
sudo apt install deepin.com.qq.[按 TAB][TAB 輸入]

qq: ActiveX Flash, PPAPI Flash.

GIF 錄製 - peek

$ git clone https://github.com/phw/peek.git
$ sudo apt install cmake valac libgtk-3-dev libkeybinder-3.0-dev libxml2-utils gettext txt2man
$ mkdir peek/build
$ cd peek/build
$ cmake -DCMAKE_INSTALL_PREFIX=/usr -DGSETTINGS_COMPILE=OFF ..
$ make package
$ 
$ sudo apt install ./peek-1.5.1-Linux.deb

截圖工具

深度截圖 - 從應用商店中安裝

Flatpak 支持 - N/A



Reference

n/a



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章