What & How & Why

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
后一修订版
前一修订版
后一修订版两侧同时换到之后的修订记录
linux:environment:tips [2020/04/19 10:32] – [安装搜狗输入法] codingharelinux:environment:tips [2022/05/28 05:34] – [安装搜狗输入法] codinghare
行 1: 行 1:
 ======常用TIPS====== ======常用TIPS======
 //Liunx 的一些小 Trick// \\ //Liunx 的一些小 Trick// \\
-===== =====+----
 ====System==== ====System====
 ===Files=== ===Files===
 ==添加 NTFS 的支持== ==添加 NTFS 的支持==
 如果没有安装第三方源,可以使用 ''Epel'' 作为安装 ''ntfs-3g'' 的源。 如果没有安装第三方源,可以使用 ''Epel'' 作为安装 ''ntfs-3g'' 的源。
-<code bash>+<code class = command-line data-user 11 data-host222>
 $yum --enablerepo epel install ntfs-3g  $yum --enablerepo epel install ntfs-3g 
 </code> </code>
行 20: 行 20:
 $watch -n 5 nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader $watch -n 5 nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader
 </code> </code>
 +==Glances==
 ===I / O=== ===I / O===
 ==安装搜狗输入法== ==安装搜狗输入法==
行 26: 行 27:
   * 安装 fcitx   * 安装 fcitx
   * 添加 搜狗到 fcitx 中   * 添加 搜狗到 fcitx 中
 +
 首先关闭 Gnome 自带的 ''ibus'' 首先关闭 Gnome 自带的 ''ibus''
-<code> +<code bash
-//不能使用 yum remove ibus +#不能使用 yum remove ibus 
-mv /usr/bin/ibus-daemon /usr/bin/ibus-daemon.bak+$mv /usr/bin/ibus-daemon /usr/bin/ibus-daemon.bak
 </code> </code>
 然后安装 ''fcitx'' 然后安装 ''fcitx''
 <code bash> <code bash>
-yum install libQtWebKit* fcitx fcitx-libs fcitx-qt4 fcitx-qt5 fcitx-configtool fcitx-table fcitx-table-chinese+$dnf install fcitx fcitx-libs fcitx-qt5 fcitx-table fcitx-table-chinese 
 +$dnf install qt5-qtwebkit*
 </code> </code>
 配置环境变量: 配置环境变量:
行 45: 行 48:
 </code> </code>
 保存重启后查看 ''fcitx'' 是否正确安装: 保存重启后查看 ''fcitx'' 是否正确安装:
-<code> +<code bash
-//不要使用 root 运行 +#不要使用 root 运行 
-fcitx-diagnose +$fcitx-diagnose 
-//如果红字显示 fcitx 没有运行,需要运行 fcitx +#如果红字显示 fcitx 没有运行,需要运行 fcitx 
-fcitx+$fcitx
 </code> </code>
 接下来安装搜狗。因为搜狗的安装包是应用在 Ubuntu 平台上的,因此我们需要安装将 ''deb'' 包转化为 ''rpm'' 包的 ''alien'' 接下来安装搜狗。因为搜狗的安装包是应用在 Ubuntu 平台上的,因此我们需要安装将 ''deb'' 包转化为 ''rpm'' 包的 ''alien''