What & How & Why

差别

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

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
后一修订版
前一修订版
linux:environment:tips [2020/04/19 10:47] – [安装搜狗输入法] codingharelinux:environment:tips [2022/05/29 07:01] (当前版本) – [I / O] 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>
-===I / O=== +==Glances==
-==安装搜狗输入法== +
-搜狗输入法是基于 ''fcitx'' 的,因此安装搜狗输入法需要三个大步骤: +
-  * 卸载 ibus +
-  * 安装 fcitx +
-  * 添加 搜狗到 fcitx 中 +
-首先关闭 Gnome 自带的 ''ibus''+
 <code bash> <code bash>
-#不能使用 yum remove ibus +#installation 
-$mv /usr/bin/ibus-daemon /usr/bin/ibus-daemon.bak+yum sintall glances
 </code> </code>
-然后安装 ''fcitx''+==neoftech==
 <code bash> <code bash>
-$yum install libQtWebKit* fcitx fcitx-libs fcitx-qt4 fcitx-qt5 fcitx-configtool fcitx-table fcitx-table-chinese+#adding source 
 +curl -o /etc/yum.repos.d/konimex-neofetch-epel-7.repo  
 +https://copr.fedorainfracloud.org/coprs/konimex/neofetch/repo/epel-7/konimex-neofetch-epel-7.repo 
 + 
 +#installation 
 +yum install neofetch
 </code> </code>
-配置环境变量:+ 
 +==lm sensors==
 <code bash> <code bash>
-nano /etc/profile +#installation 
-export XIM=fcitx +yum -y install lm_sensors
-export GTK_IM_MODULE=fcitx +
-export QT_IM_MODULE=fcitx +
-export QT4_IM_MODULE=fcitx +
-export XMODIFIERS="@im=fcitx"+
 </code> </code>
-保存重启后查看 ''fcitx'' 是否正确安装: + 
-<code> + 
-#不要使用 root 运行 +
-$fcitx-diagnose +
-#如果红字显示 fcitx 没有运行,需要运行 fcitx +
-$fcitx +
-</code> +
-接下来安装搜狗。因为搜狗的安装包是应用在 Ubuntu 平台上的,因此我们需要安装将 ''deb'' 包转化为 ''rpm'' 包的 ''alien'': +
-<code bash> +
-#安装 alien +
-$yum install alien +
-#下载搜狗的 deb +
-$wget http://cdn2.ime.sogou.com/dl/index/1524572264/sogoupinyin_2.2.0.0108_amd64.deb?st=EPtVkvlW9rLVsn-jtfOGbA&e=1568569239&fn=sogoupinyin_2.2.0.0108_amd64.deb +
-#转换为 rpm +
-$alien -r sogoupinyin_2.2.0.0108_amd64.deb +
-#安装搜狗输入法 +
-$rpm -ivh --force sogoupinyin-2.2.0.0108-2.x86_64.rpm +
-#拷贝库文件 +
-$cp -R /usr/lib/x86_64-linux-gnu/fcitx/* /usr/lib64/fcitx/ +
-#库文件权限 +
-$chmod -R 755 /usr/lib64/fcitx/ +
-</code> +
-到此就可以启动 fcitx 了: +
-<code bash> +
-#启动 fcitx +
-$fcitx +
-#配置搜狗 +
-$fcitx-configtool +
-</code> +
-开机启动使用 tweak 工具设置就可以。+