vault backup: 2026-01-05 13:03:55

This commit is contained in:
windyboy
2026-01-05 13:03:55 +08:00
parent 21460fc35d
commit be7c6cdcc9
589 changed files with 396508 additions and 27 deletions
@@ -0,0 +1,49 @@
---
page-title: "GOPROXY.IO - A Global Proxy for Go Modules"
url: https://goproxy.io/
date: "2025-01-10 12:18:47"
---
> $env:GOPROXY \= "https://goproxy.io,direct"
---
**Bash (Linux or macOS)**
```
# Set the GOPROXY environment variable
export GOPROXY=https://goproxy.io,direct
# Set environment variable allow bypassing the proxy for specified repos (optional)
export GOPRIVATE=git.mycompany.com,github.com/my/private
```
**PowerShell (Windows)**
```
# Set the GOPROXY environment variable
$env:GOPROXY = "https://goproxy.io,direct"
# Set environment variable allow bypassing the proxy for specified repos (optional)
$env:GOPRIVATE = "git.mycompany.com,github.com/my/private"
```
Now, when you build your applications, `Go` will fetch dependencies via goproxy.io. You can also permanently export the `GOPROXY` environment in `~/.bashrc` or `~/.profile` file. If Go version < 1.13, we recommend you [update to the latest version](https://go.dev/dl/). See more information in the [documention](https://goproxy.io/docs/getting-started.html).
#### Fast
Global proxy servers, including Las Vegas, Hong Kong etc.
#### Reliable
Enterprise monitor and alert system. Promise 99.99% uptime SLA.
#### Open Source
One of most active go modules proxy projects.
#### Checksum Database
Support sum.golang.org proxy.
### Who are using goproxy.io
![Users map](https://goproxy.io/static/users-map-59a5d8b4e61b86b58eb90f3fe88024de.svg)
@@ -0,0 +1,80 @@
---
page-title: "How to Find all Files Containing Specific Text (string) on Linux - GeeksforGeeks"
url: https://www.geeksforgeeks.org/how-to-find-all-files-containing-specific-text-string-on-linux/
date: "2025-01-03 20:38:40"
---
## How to Find all Files Containing Specific Text (string) on Linux
Last Updated : 31 Jul, 2023
Suppose you are looking for a file in Linux, but you have forgotten its name. You only remember the contents of the file. How will you find the file in this case? Well, there are some useful methods that will help you find a file containing a specific text (or string) in Linux. The string needs to be specified by the user. So, lets take a look at the methods:
## Methods to Find All Files Containing Specific Text (string) on Linux
### Method 1: grep command
[grep command](https://www.geeksforgeeks.org/grep-command-in-unixlinux/) in Linux that is used to search for files containing a specific text or string. By default, it shows us the lines in the files that contain the particular text. If we append the -l option to it, the command will show us all the files that contain the particular text.
****Example:****
Suppose, we have a directory that contains two files named file1.txt and file2.txt.
****Contents of file1.txt:****
This line contains text.
****Contents of file2.txt:****
You should learn Data Structures & Algorithms.
Now, we will use the grep command with the -l option to search for text in given files located inside the current directory. See the following example:
![](https://media.geeksforgeeks.org/wp-content/uploads/20221116184830/Screenshot20221116172356-660x277.png)
It can be clearly said from the above example that the grep command has successfully found the given string in file1.txt. As a result, it displayed the file name on the screen.
We can also use the -i option to tell grep to ignore the case. Look at the following example:
![](https://media.geeksforgeeks.org/wp-content/uploads/20221117090634/Screenshot20221117090409-660x321.png)
Above, we have first used the previous command, but the given string is Text. Because file1.txt contains text, not Text, it is not taken into consideration. Here, the search operation is performed keeping the case in mind. Then, we used the -i option. As a result, the case is ignored and the given string matches with the one that file1.txt contains. Hence, the file name is displayed on the screen.
Another variation is to use the -r option. It suggests grep to search for the given string in the current directory and its subdirectories recursively. Look at the below example:
![](https://media.geeksforgeeks.org/wp-content/uploads/20221116193759/Screenshot20221116173618-660x328.png)
file1.txt and file2.txt are located in the files folder, not in the current directory, i.e. desktop. So, if we dont use the -r option, no files with matching strings will be found because they dont exist in the current directory. But we used the -r option and also omitted the file names. As a result, grep searches for matching strings in not only the current directory but also in its subdirectories as well. Hence, file1.txt is found and displayed on the screen.
### Method 2: The combination of find and grep command
[find](https://www.geeksforgeeks.org/find-command-in-linux-with-examples/) is another useful command in Linux. We will combine find with the -type f option to search for files and the -exec option to apply to grep on the files that are found. Look at the following example:
![](https://media.geeksforgeeks.org/wp-content/uploads/20221116194718/Screenshot20221116194616-660x246.png)
Clearly, the search operation finds file1.txt as it contains the matching string. Hence, the file name is displayed on the screen.
### Method 3: Find files containing specific text with mc
We can also search for files using Midnight Commander (mc). Open the application and press Alt + Shift + ? to open the Find File dialogue box. You will see a Starting box at the top. In the box, type the path where the files exist. Then, under the content box, type the string you want to search. In our case, we searched for text in the Files directory:
![](https://media.geeksforgeeks.org/wp-content/uploads/20221117181058/Screenshot20221117180446-660x386.png)
It can be clearly seen below that the search operation has successfully found file1.txt, which contains the matching string.
![](https://media.geeksforgeeks.org/wp-content/uploads/20221117181119/Screenshot20221117180532-660x353.png)
### Method 4: ripgrep command
ripgrep (written as rg) is a command that can be used as an alternative to the grep command. The implementation is below:
![](https://media.geeksforgeeks.org/wp-content/uploads/20221117210033/download-660x126.png)
file1.txt is found and hence, the file name is displayed on the screen.
### Method 5: ack command
Yet another command we can use is the ack command. Here is the implementation:
![](https://media.geeksforgeeks.org/wp-content/uploads/20221117201252/2-660x120.png)
file1.txt is successfully found and displayed on the screen.
@@ -0,0 +1,193 @@
---
page-title: "Windows 10 Virtualization with KVM - Funtoo"
url: https://www.funtoo.org/Windows_10_Virtualization_with_KVM
date: "2025-01-08 13:43:29"
---
> https://www.microsoft.com/en-us/software-download/windows10ISO
---
   Support Funtoo!
*Get an **awesome** Funtoo container and support Funtoo!* See [Funtoo Containers](https://www.funtoo.org/Funtoo_Containers "Funtoo Containers") for more information.
This page describes how to set up Funtoo Linux to run Windows 10 Home/Professional 64-bit within a KVM virtual machine. KVM is suitable for running Windows 10 for general desktop application use. It does not provide 3D support, but offers a nice, high-performance virtualization solution for day-to-day productivity applications. It is also very easy to set up.
   Warning
While this page provides a good introduction to how to run Windows 10 with Linux KVM, some parts of these instructions are specific to [Funtoo Linux](https://www.funtoo.org/Welcome "Welcome"). They may need to be adapted somewhat for other Linux distributions. But we are happy to have this page be a good general resource for Windows 10 under KVM for all Linux distros. If you have adaptations to the docs for other Linux distributions, please feel free leaving the steps at [the talk page](https://www.funtoo.org/Windows_10_Virtualization_with_KVM/Talk "Windows 10 Virtualization with KVM/Talk") and we'll consider adding them.
## Introduction
KVM is a hardware-accelerated full-machine hypervisor and virtualization solution included as part of kernel 2.6.20 and later. It allows you to create and start hardware-accelerated virtual machines under Linux using the QEMU tools.
[![Windows 7 Professional 32-bit running within qemu-kvm](https://www.funtoo.org/images/thumb/0/00/Windows7virt.png/400px-Windows7virt.png)](https://www.funtoo.org/File:Windows7virt.png "Windows 7 Professional 32-bit running within qemu-kvm")
### KVM Setup
You will need KVM to be set up on the machine that will be running the virtual machine. This can be a local Linux system, or if you are using SPICE (see [SPICE](https://www.funtoo.org/Windows_10_Virtualization_with_KVM#SPICE_.28Accelerated_Remote_Connection.29)), a local or remote system. See the SPICE section for tweaks that you will need to make to these instructions if you plan to run Windows 10 on a Funtoo Linux system that you will connect to remotely.
Follow these steps for the system that will be running the virtual machine.
If you are using an automatically-built kernel, it is likely that kernel support for KVM is already available.
If you build your kernel from scratch, please see [the KVM page](https://www.funtoo.org/KVM "KVM") for detailed instructions on how to enable KVM. These instructions also cover the process of emerging qemu, which is also necessary. [Do this first, as described on the KVM page](https://www.funtoo.org/KVM "KVM") -- then come back here.
   Important
Before using KVM, be sure that your user account is in the kvm group so that qemu can access /dev/kvm. You will need to use a command such as vigr as root to do this, and then log out and log back in for this to take effect.
Prior to using KVM, modprobe the appropriate accelerated driver for Intel or AMD, as root:
root # modprobe kvm\_intel
### Windows 10 ISO Images
In this tutorial, we are going to install Windows 10 Home, 64-bit Edition. Microsoft provides a free download of the ISO DVD image, but this does require a valid license key for installation. You can download the ISO at the following location:
[https://www.microsoft.com/en-us/software-download/windows10ISO](https://www.microsoft.com/en-us/software-download/windows10ISO)
   Note
Windows 10 is a free download but requires a valid license key for installation.
In addition, it's highly recommended that you download "VirtIO" drivers produced by Red Hat. These drivers are installed under Windows and significantly improve Windows 10 network and disk performance. You want to download the ISO file (not the ZIP file) at the following location:
[https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/latest-virtio/](https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/latest-virtio/)
   Note
At the time of this writing, the latest version of the virtio ISO is `virtio-win-0.1.149.iso`
### Create Raw Disk
In this tutorial, we are going to create a 30GB raw disk image for Windows 10. Raw disk images offer better performance than the commonly-used QCOW2 format. Do this as a regular user:
user $ cd
user $ mkdir vm
user $ cd vm
user $ qemu-img create -f raw win10.img 30G
We now have an empty virtual disk image called `win10.img` in our home directory.
### QEMU script
Now, we'll create the following script to start our virtual machine and begin Windows 10 installation. Note that this script assumes that the two ISO files downloaded earlier were placed in the `vm` directory we created. Adjust paths as necessary if that is not the case. Also be sure to adjust the following parts of the script:
- Adjust the name of VIRTIMG to match the exact name of the VirtIO ISO image you downloaded earlier
- Adjust the smp option to use the number of CPU cores and threads (if your system has hyperthreading) of your Linux system's CPU.
- Adjust memory allocated to the VM to be a fraction of your system's RAM (currently 6GB via `-m 6144` setting)
Use your favorite text editor to create the following script. Name it something like `vm.sh`:
    (bash source code)
#!/bin/sh
WINIMG\=~/vm/Win10\_1803\_English\_x64.iso
VIRTIMG\=~/vm/virtio-win-0.1.149.iso
qemu-system-x86\_64 --enable-kvm -drive driver\=raw,file\=~/vm/win10.img,if\=virtio -m 6144 \\
-net nic,model\=virtio -net user -cdrom ${WINIMG} \\
-drive file\=${VIRTIMG},index\=3,media\=cdrom \\
-rtc base\=localtime,clock\=host -smp cores\=4,threads\=8 \\
-usb -device usb-tablet \\
-net user,smb\=$HOME
Now, make the script executable:
user $ chmod +x vm.sh
Here is a brief summary of what the script does. It starts the qemu-kvm program and instructs it to use KVM to accelerate virtualization. The display will be shown locally, in a window. If you are using the SPICE method, described later in this document, no window will appear, and you will be able to connect remotely to your running virtual machine.
The system disk is the 30GB raw image you created, and we tell QEMU to use "virtio" mode for this disk, as well as "virtio" for network access. This will require that we install special drivers during installation to access the disk and enable networking, but will give us better performance.
To assist us in installing the VirtIO drivers, we have configured the system with two DVD drives -- the first holds the Windows 10 installation media, and the second contains the VirtIO driver ISO that we will need to access during Windows 10 installation.
The `-usb -device usb-tablet` option will cause our mouse and keyboard interaction with our virtual environment to be intuitive and easy to use.
   Important
For optimal performance, adjust the script so that the \-smp option specifies the exact number of cores and threads on your system -- on non-HyperThreading systems (AMD and some Intel), simply remove the ,threads=X option entirely and just specify cores. Also ensure that the \-m option provides enough RAM for Windows 10, without eating up all your system's RAM. On a 4GB Linux system, use 1536. For an 8GB system, 2048 is safe. 6144 is ideal if you have 16GB+ of Linux RAM.
### Installation of Windows 10
To begin installation, run the script:
user $ ./vm.sh
The Windows 10 ISO image will boot and installation will begin. Everything should proceed as expected for a Windows 10 installation until the point where you need to select a destination disk.
[![Win10 install no drives](https://www.funtoo.org/images/thumb/3/38/Win10_install_no_drives.png/800px-Win10_install_no_drives.png)](https://www.funtoo.org/File:Win10_install_no_drives.png "Win10 install no drives")
Since we are using the virtio driver, we will need to manually load this driver so that the 30GB disk image is visible for installation. To do this, you will see an option to manually install a driver. Select this option, and navigate to the Red Hat virtio ISO (available under your Windows VM) and to the `E:\viostor\w10\amd64` directory.
[![Win10 install manually install driver](https://www.funtoo.org/images/thumb/f/f4/Win10_install_manually_install_driver.png/800px-Win10_install_manually_install_driver.png)](https://www.funtoo.org/File:Win10_install_manually_install_driver.png "Win10 install manually install driver")
After selecting this directory, the Windows 10 installer will spend a minute or two configuring the driver, after which you should be able to see 30 GB of free storage available for Windows installation.
[![Windows 10 - Installing virtio storage driver](https://www.funtoo.org/images/thumb/1/12/Windows-setup.png/800px-Windows-setup.png)](https://www.funtoo.org/File:Windows-setup.png "Windows 10 - Installing virtio storage driver")
Proceed with the installation process as normal.
### Installation of Network Drivers
Once Windows 10 installation has completed, you will notice that although Windows is installed, no network or sound is available. We will not cover enabling sound in this document, as sound support in qemu is choppy by default (whether using alsa or pulseaudio) and really deserves its own document for proper configuration since it's so tricky to get perfect. But networking is essential, and we will want to your VM on the network.
To do this, open Device Manager in Windows and select the network adapter, and right-click on it and choose `Update Driver`. Then navigate to the virtio CD, path `E:\NetKVM\w10\amd64` and install the driver. Your network will now be enabled.
### Accessing Files on your Linux System
Our `vm.sh` by default enables built-in Samba support to allow easy access to files in your home directory. To enable this capability, type `\\10.0.2.4\qemu` in the Windows 10 search bar, and hit Enter. Windows should prompt you to create a network drive to this path. Do so, mapping it to drive Z, and click OK. You should now be able to access your Linux home directory as drive Z.
In newer versions of windows, guest authentication fallback for file shares is blocked according to [https://support.microsoft.com/en-us/help/4046019/guest-access-in-smb2-disabled-by-default-in-windows-10-and-windows-ser](https://support.microsoft.com/en-us/help/4046019/guest-access-in-smb2-disabled-by-default-in-windows-10-and-windows-ser) .
From the support link, this can be bypassed by navigating to the following group policy setting and enabling it.
`Computer Configuration\Administrative Templates\Network\Lanman Workstation`
`"Enable insecure guest logons"`
## SPICE (Accelerated Remote Connection)
SPICE is a new technology that has been incorporated into QEMU, which allows the virtual machine to run on one system, and allows you to use `spicy`, the SPICE client, to connect to your remote virtual machine. In real-world use, you can run a SPICE server (via QEMU) and client on the same machine if you like, or have them on the same local area network, or have server and client connect over an Internet connection. Here are some important facts about SPICE:
- SPICE provides accelerated, optimized video updates over the network, similar to VNC
- QEMU can be configured to run a SPICE server, which you can connect to via `spicy`, the SPICE client. The SPICE client renders to a local window on your system.
- SPICE allows easy copying and pasting across operating systems -- for example, you can copy something in GNOME, paste it into the `spicy` window and have it appear on your Windows 10 system.
### SPICE Setup
To set up SPICE, you need to perform the following changes to the "standard" steps described in this document:
1. Emerge QEMU with the `spice` USE variable on the system that will be running the Windows 10 virtual machine.
2. Emerge `app-emulation/virt-viewer` on the system that you will be using to connect to your remote Windows 10 virtual machine.
3. In the `vm.sh` script, remove the existing `-vga vmware` `qemu-kvm` option, and add these options: `-vga qxl -device virtio-serial-pci -spice port=5900,password=mypass -device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0 -chardev spicevmc,id=spicechannel0,name=vdagent`
4. Run `vm.sh` as described in the next section on your remote server (your Windows 10 system will now boot, but you can't see the virtual machine display) and then connect to it by running the following command on your local system:
root # spicy -h remotehost -p 5900 -w mypass
The SPICE client window will appear locally and allow you to interact with your Windows 10 system.
   Note
Browse all our available articles below. Use the search field to search for topics and keywords in real-time.
Show entries
Search:
| | Article | Subtitle |
| --- | --- | --- |
| | Article | Subtitle |
| | [Awk by Example, Part 1](https://www.funtoo.org/Awk_by_Example,_Part_1 "Awk by Example, Part 1") | An intro to the great language with the strange name |
| | [Awk by Example, Part 2](https://www.funtoo.org/Awk_by_Example,_Part_2 "Awk by Example, Part 2") | Records, loops, and arrays |
| | [Awk by Example, Part 3](https://www.funtoo.org/Awk_by_Example,_Part_3 "Awk by Example, Part 3") | String functions and ... checkbooks? |
| | [Bash by Example, Part 1](https://www.funtoo.org/Bash_by_Example,_Part_1 "Bash by Example, Part 1") | Fundamental programming in the Bourne again shell (bash) |
| | [Bash by Example, Part 2](https://www.funtoo.org/Bash_by_Example,_Part_2 "Bash by Example, Part 2") | More bash programming fundamentals |
| | [Bash by Example, Part 3](https://www.funtoo.org/Bash_by_Example,_Part_3 "Bash by Example, Part 3") | Exploring the ebuild system |
| | [BTRFS Fun](https://www.funtoo.org/BTRFS_Fun "BTRFS Fun") | |
| | [Funtoo Filesystem Guide, Part 1](https://www.funtoo.org/Funtoo_Filesystem_Guide,_Part_1 "Funtoo Filesystem Guide, Part 1") | Journaling and ReiserFS |
| | [Funtoo Filesystem Guide, Part 2](https://www.funtoo.org/Funtoo_Filesystem_Guide,_Part_2 "Funtoo Filesystem Guide, Part 2") | Using ReiserFS and Linux |
| | [Funtoo Filesystem Guide, Part 3](https://www.funtoo.org/Funtoo_Filesystem_Guide,_Part_3 "Funtoo Filesystem Guide, Part 3") | Tmpfs and Bind Mounts |
Showing 1 to 10 of 45 entries
@@ -0,0 +1,331 @@
---
page-title: "iDvel/rime-ice: Rime 配置:雾凇拼音 | 长期维护的简体词库"
url: https://github.com/iDvel/rime-ice?tab=readme-ov-file#%E4%B8%9C%E9%A3%8E%E7%A0%B4-plum
date: "2025-01-15 10:07:31"
---
## 雾凇拼音
[](https://github.com/iDvel/rime-ice?tab=readme-ov-file#%E9%9B%BE%E5%87%87%E6%8B%BC%E9%9F%B3)
[GPL-3.0-only](https://spdx.org/licenses/GPL-3.0-only.html)
[![demo](https://github.com/iDvel/rime-ice/raw/main/others/demo.webp)](https://github.com/iDvel/rime-ice/blob/main/others/demo.webp)
功能齐全,词库体验良好,长期更新修订。
[Rime Input Method Engine / 中州韵输入法引擎](https://rime.im/) 是一个跨平台的输入法算法框架。
这里是 Rime 的一份配置仓库,用户需要下载各平台对应的前端,并将此配置应用到配置目录。
雾凇拼音提供了一套开箱即用的完整配置,包含输入方案(全拼、常见双拼)、长期维护的开源词库及各项扩展功能。
详细介绍:[Rime 配置:雾凇拼音](https://dvel.me/posts/rime-ice/)
[常见问题](https://github.com/iDvel/rime-ice/issues/133)
[更新日志](https://github.com/iDvel/rime-ice/blob/main/others/CHANGELOG.md)
## 基本套路
[](https://github.com/iDvel/rime-ice?tab=readme-ov-file#%E5%9F%BA%E6%9C%AC%E5%A5%97%E8%B7%AF)
- 简体 | 全拼 | 双拼
- 主要功能
- 轻量的英文输入,支持中英混输
- [优化英文输入体验](https://dvel.me/posts/make-rime-en-better/)
- 拆字反查(uU+拼音),拆字辅码(拼音+\`+拆字辅码)
- 自整理的 Emoji
- 以词定字(左右中括号:\[、\])
- 长词优先
- UnicodeU+Unicode 码位)
- 数字、人民币大写(R+数字)
- 日期、时间、星期(详见方案 `/date_translator` 节点)
- 农历(转写:N+八位数字;获取当前农历:全拼nl,双拼lunar)
- 简易计算器(cC+算式)
- 常见错音错字提示
- 置顶候选项(详见方案 `/pin_cand_filter` 节点)
- 所有标点符号直接上屏
- 特殊符号、字符输入(全拼v+首字母缩写;双拼V+首字母缩写)
- 拼音纠错(模糊音)
- 更多默认未启用的功能请参考 `lua/` 及方案注释
- 简体字表、词库
- [通用规范汉字表](https://github.com/iDvel/The-Table-of-General-Standard-Chinese-Characters)(by 中华人民共和国教育部)8K 常用汉字
- [Unihan 字库](https://www.unicode.org/Public/)by Unicode lnc | [UNICODE LICENSE V3](https://www.unicode.org/license.txt)40K 大字库, **默认未启用**
- [现代汉语常用词表](https://zh.wikipedia.org/wiki/%E7%8E%B0%E4%BB%A3%E6%B1%89%E8%AF%AD%E5%B8%B8%E7%94%A8%E8%AF%8D%E8%A1%A8)(by 中国国家语言文字工作委员会)
- [华宇野风词库](http://bbs.pinyin.thunisoft.com/forum.php?mod=viewthread&tid=30049)by 野风)
- [简化字八股文](https://github.com/rime/rime-essay-simp)by rime | [LGPL](https://github.com/rime/rime-essay-simp/blob/master/LICENSE)
- [清华大学开源词库](https://github.com/thunlp/THUOCL)by THUNLP | [MIT](https://github.com/thunlp/THUOCL/blob/master/LICENSE)
- [腾讯词向量](https://ai.tencent.com/ailab/nlp/en/download.html)@Huandeep [整理](https://github.com/iDvel/rime-ice/issues/24) | by Tencent AI Lab | [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
- 词库修订
- 校对大量异形词、错别字、错误注音
- 全词库完成注音
- 同义多音字注音
- 参考
- 《现代汉语词典》
- 《同义词词林》
- 《新华成语大词典》
- [校对标准论坛](http://www.jiaodui.com/bbs/)
- Rime、Squirrel、Weasel 常用配置项的详尽注释
## 长期维护词库
[](https://github.com/iDvel/rime-ice?tab=readme-ov-file#%E9%95%BF%E6%9C%9F%E7%BB%B4%E6%8A%A4%E8%AF%8D%E5%BA%93)
因为没有找到一份比较好的词库,干脆自己维护一个。综合了几个不错的词库,精心调教了很多。
主要维护的词库:
- `8105` 字表。
- `base` 基础词库。
- `ext` 扩展词库,小词库。
- `tencent` 扩展词库,大词库。
- Emoji
维护内容主要是异形词、错别字的校对,错误注音的修正,缺失的常用词汇的增添,词频的调整。
欢迎在词库方面提 issue [#666](https://github.com/iDvel/rime-ice/issues/666) ,我会及时更新修正。
## 使用说明
[](https://github.com/iDvel/rime-ice?tab=readme-ov-file#%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E)
### 选择和安装 RIME 前端
[](https://github.com/iDvel/rime-ice?tab=readme-ov-file#%E9%80%89%E6%8B%A9%E5%92%8C%E5%AE%89%E8%A3%85-rime-%E5%89%8D%E7%AB%AF)
要使用雾凇拼音默认提供的所有功能,请保证
- 您的 RIME 前端提供的 librime 版本 ≥ 1.8.5 且
- 含有 librime-lua 依赖
以下是主流平台上的一些 RIME 前端安装建议。部分信息具有时效性,请以当下具体情况为准:
| 系统 | RIME 前端 | 雾凇拼音版本要求 | 备注 |
| --- | --- | --- | --- |
| Android | [fcitx5-android](https://github.com/fcitx5-android/fcitx5-android/releases) + plugin.rime(小企鹅输入法) | ≥ 0.0.8 | 暂不支持九宫格 |
| Android | [Trime](https://github.com/osfans/trime)(同文输入法) | ≥ 3.2.11 | |
| iOS | [Hamster](https://apps.apple.com/cn/app/%E4%BB%93%E8%BE%93%E5%85%A5%E6%B3%95/id6446617683)(仓输入法) | N/A | 闭源;有内购 |
| Linux | ibus + [ibus-rime](https://github.com/rime/ibus-rime) | librime ≥ 1.8.5 且装有 librime-lua | 部分发行版需手动安装 librime-lua |
| Linux | fcitx5 + [fcitx5-rime](https://github.com/fcitx/fcitx5-rime) | librime ≥ 1.8.5 且装有 librime-lua | 部分发行版需手动安装 librime-lua |
| macOS | [Squirrel](https://github.com/rime/squirrel)(鼠须管) | ≥ 1.0.0 | 0.16.0 - 0.18.0 版本请参考[🔗](https://github.com/iDvel/rime-ice/issues/1062) |
| macOS | [fcitx5-macos](https://github.com/fcitx-contrib/fcitx5-macos) | N/A | 支持[卷轴模式](https://github.com/iDvel/rime-ice/issues/941) |
| Windows | [Weasel](https://github.com/rime/weasel)(小狼毫) | ≥ 0.15.0 | 0.14.3 可手动更新 [rime.dll](https://github.com/iDvel/rime-ice/issues/197)(但不支持彩色 emoji
Weasel 当下有兼容性问题,建议安装其他输入法备用 |
Linux 依赖问题的具体解释请参考 [#840](https://github.com/iDvel/rime-ice/issues/840)。
雾凇拼音的部分配置可能要求更高的 librime 或者客户端版本,这些功能已在具体配置文件中注明。
以下安装方式,选择其一:
- [手动安装](https://github.com/iDvel/rime-ice?tab=readme-ov-file#%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E)
- [Git 安装](https://github.com/iDvel/rime-ice?tab=readme-ov-file#git-%E5%AE%89%E8%A3%85)
- [东风破 plum](https://github.com/iDvel/rime-ice?tab=readme-ov-file#%E4%B8%9C%E9%A3%8E%E7%A0%B4-plum)
- [自动部署脚本](https://github.com/iDvel/rime-ice?tab=readme-ov-file#%E8%87%AA%E5%8A%A8%E9%83%A8%E7%BD%B2%E8%84%9A%E6%9C%AC)
- [仓输入法](https://github.com/iDvel/rime-ice?tab=readme-ov-file#%E4%BB%93%E8%BE%93%E5%85%A5%E6%B3%95-hamster)
- [Arch Linux](https://github.com/iDvel/rime-ice?tab=readme-ov-file#arch-linux)AUR
### 手动安装
[](https://github.com/iDvel/rime-ice?tab=readme-ov-file#%E6%89%8B%E5%8A%A8%E5%AE%89%E8%A3%85)
您可以将仓库打包下载,将所有文件复制粘贴到 RIME 前端的配置目录,重新部署。
只需要使用或者更新词库的话,可以手动粘贴覆盖 `cn_dicts` `en_dicts` `opencc` 三个文件夹。
Note
雾凇拼音中多个文件可能与其他方案同名冲突,如果是新手想一键安装,建议备份原先配置,**清空配置目录**再导入。
Note
单独使用词库注意事项:`rime_ice.dict.yaml` 下面包含了大写字母,这和配置有些许绑定,可以直接删除,详细说明:[#356](https://github.com/iDvel/rime-ice/issues/356)
您也可以前往 [Release](https://github.com/iDvel/rime-ice/releases) 界面,下载特定版本的词典文件(具体描述见 Release 说明),覆盖配置目录的对应文件。
### Git 安装
[](https://github.com/iDvel/rime-ice?tab=readme-ov-file#git-%E5%AE%89%E8%A3%85)
您如果熟悉 git 常用操作,可以使用 git clone 命令将本仓库克隆到对应前端的用户目录。由于本库提交历史较多且更改频繁,添加 `--depth` 参数可以显著减少传输体积。
git clone https://github.com/iDvel/rime-ice.git Rime --depth 1
# 更新
cd Rime
git pull
通过 checkout 命令,您也可以实现更新部分文件的效果。
### 东风破 [plum](https://github.com/rime/plum)
[](https://github.com/iDvel/rime-ice?tab=readme-ov-file#%E4%B8%9C%E9%A3%8E%E7%A0%B4-plum)
选择配方(`others/recipes/*.recipe.yaml`)来进行安装或更新。
/plum/ 简易安装和使用教程
---
安装 plum(仅需要执行一次)
# 请先安装 git 和 bash,并加入环境变量
# 请确保和 github.com 的连接稳定
cd ~
git clone https://github.com/rime/plum.git plum
# 卸载 plum 只需要删除 ~/plum 文件夹即可
更新 plum
cd ~/plum
bash rime-install plum
使用 plum 安装「雾凇拼音」方案的韵书(recipe)
cd ~/plum
bash rime-install iDvel/rime-ice:others/recipes/full
指定 RIME 前端为 fcitx5-rime
cd ~/plum
rime\_frontend=fcitx5-rime bash rime-install iDvel/rime-ice:others/recipes/full
使用 plum 更新「雾凇拼音」的词库文件
cd ~/plum
bash rime-install iDvel/rime-ice:others/recipes/all\_dicts
---
词库配方只是更新具体词库文件,并不更新 `rime_ice.dict.yaml``melt_eng.dict.yaml`,因为用户可能会挂载其他词库。如果更新后部署时报错,可能是增、删、改了文件名,需要检查上面两个文件和词库的对应关系。
℞ 安装或更新全部文件
```
bash rime-install iDvel/rime-ice:others/recipes/full
```
℞ 安装或更新所有词库文件(包含下面三个)
```
bash rime-install iDvel/rime-ice:others/recipes/all_dicts
```
℞ 安装或更新拼音词库文件( `cn_dicts/` 目录内所有文件)
```
bash rime-install iDvel/rime-ice:others/recipes/cn_dicts
```
℞ 安装或更新英文词库文件( `en_dicts/` 目录内所有文件)
```
bash rime-install iDvel/rime-ice:others/recipes/en_dicts
```
℞ 安装或更新 opencc `opencc/` 目录内所有文件)
```
bash rime-install iDvel/rime-ice:others/recipes/opencc
```
下面这个配方会在 `radical_pinyin.custom.yaml``melt_eng.custom.yaml` 里将 `speller/algebra` 修改为对应的双拼拼写,选择一个自己使用的双拼作为参数。
℞ 双拼补丁
```
bash rime-install iDvel/rime-ice:others/recipes/config:schema=flypy
bash rime-install iDvel/rime-ice:others/recipes/config:schema=double_pinyin
bash rime-install iDvel/rime-ice:others/recipes/config:schema=mspy
bash rime-install iDvel/rime-ice:others/recipes/config:schema=sogou
bash rime-install iDvel/rime-ice:others/recipes/config:schema=abc
bash rime-install iDvel/rime-ice:others/recipes/config:schema=ziguang
```
℞ 下载特定版本的配置
在仓库后加 `@tag` 即可,例如:
bash rime-install iDvel/rime-ice@2024.05.21:others/recipes/full
### 仓输入法 [Hamster](https://github.com/imfuxiao/Hamster)
[](https://github.com/iDvel/rime-ice?tab=readme-ov-file#%E4%BB%93%E8%BE%93%E5%85%A5%E6%B3%95-hamster)
参考 [如何导入"雾凇拼音输入方案"](https://github.com/imfuxiao/Hamster/wiki/%E5%A6%82%E4%BD%95%E5%AF%BC%E5%85%A5%22%E9%9B%BE%E6%B7%9E%E6%8B%BC%E9%9F%B3%E8%BE%93%E5%85%A5%E6%96%B9%E6%A1%88%22)
仓输入法目前已内置雾凇拼音,也可以通过【输入方案设置 - 右上角加号 - 方案下载 - 覆盖并部署】来更新雾凇拼音。
使用九宫格,需要同时启用九宫格方案(输入方案设置)和九宫格布局(键盘设置 - 键盘布局 - 中文 9 键)。
### 自动部署脚本
[](https://github.com/iDvel/rime-ice?tab=readme-ov-file#%E8%87%AA%E5%8A%A8%E9%83%A8%E7%BD%B2%E8%84%9A%E6%9C%AC)
[Mark24Code/rime-auto-deploy](https://github.com/Mark24Code/rime-auto-deploy) 一个自动部署脚本,集成了雾凇拼音,帮助无痛快速安装、部署 Rime 输入法(中州韵、小狼毫,鼠须管)以及部署配置。
### Arch Linux
[](https://github.com/iDvel/rime-ice?tab=readme-ov-file#arch-linux)
使用 AUR helper 安装 [rime-ice-git](https://aur.archlinux.org/packages/rime-ice-git) 包即可。
# paru 默认会每次重新评估 pkgver,所以有新的提交时 paru 会自动更新,
# yay 默认未开启此功能,可以通过此命令开启
# yay -Y --devel --save
paru -S rime-ice-git
# yay -S rime-ice-git
推荐使用[补丁](https://github.com/rime/home/wiki/Configuration#%E8%A3%9C%E9%9D%AA)的方式启用。
参考下面的配置示例,修改对应输入法框架用户目录(见下)中的 `default.custom.yaml` 文件
- iBus 为 `$HOME/.config/ibus/rime/`
- Fcitx5 为 `$HOME/.local/share/fcitx5/rime/`
default.custom.yaml
patch:
# 仅使用「雾凇拼音」的默认配置,配置此行即可
\_\_include: rime\_ice\_suggestion:/
# 以下根据自己所需自行定义,仅做参考。
# 针对对应处方的定制条目,请使用 <recipe>.custom.yaml 中配置,例如 rime\_ice.custom.yaml
\_\_patch:
key\_binder/bindings/+:
# 开启逗号句号翻页
- { when: paging, accept: comma, send: Page\_Up }
- { when: has\_menu, accept: period, send: Page\_Down }
## 感谢 ❤️
[](https://github.com/iDvel/rime-ice?tab=readme-ov-file#%E6%84%9F%E8%B0%A2-%EF%B8%8F)
特别感谢上文已经提及的词库、词典的作者、贡献者及整理者;特别感谢以及下列词库、方案、脚本的作者及贡献者(提及的均为 GitHub id):
- @mozillazg 开发的汉字转拼音工具和数据库(MIT)
- [melt\_eng](https://github.com/tumuyan/rime-melt)@tumuyan | [Apache 2.0](https://github.com/tumuyan/rime-melt/blob/master/LICENSE)) :提供了部分(约 1000 条)英文词汇以及原始英文方案参考;
- [部件拆字方案](https://github.com/mirtlecn/rime-radical-pinyin)@mirtlecn | [GPL 3.0](https://github.com/mirtlecn/rime-radical-pinyin/blob/master/LICENSE)):提供的拆字反查和候选筛选插件;
- [长词优先插件](https://github.com/tumuyan/rime-melt/blob/master/lua/melt.lua)@tumuyan | [Apache 2.0](https://github.com/tumuyan/rime-melt/blob/master/LICENSE)
- [Unicode 插件](https://github.com/shewer/librime-lua-script/blob/main/lua/component/unicode.lua)@shewer | [MIT](https://github.com/shewer/librime-lua-script/blob/main/lua/component/unicode.lua)
- [数字、人民币大写插件](https://github.com/yanhuacuo/98wubi/blob/master/lua/number.lua)@98wubi
- [农历插件](https://github.com/boomker/rime-fast-xhup)@boomker | [LGPL 3.0](https://github.com/boomker/rime-fast-xhup/blob/master/LICENSE)
- 未能在此处详述的、在本库源码注释中提及的项目及作者给予的帮助和参考
感谢 [@Huandeep](https://github.com/Huandeep) 整理的多个词库。
感谢 [@Mirtle](https://github.com/mirtlecn) 完善的多个功能。
感谢所有贡献者。
Thanks to JetBrains for the OSS development license.
[![JetBrains](https://camo.githubusercontent.com/99d59f1721da5543764f341f9013f478fd27042918fc1109aa367292a8dcca0a/68747470733a2f2f7265736f75726365732e6a6574627261696e732e636f6d2f73746f726167652f70726f64756374732f636f6d70616e792f6272616e642f6c6f676f732f6a625f6265616d2e737667)](https://jb.gg/OpenSourceSupport)
## 赞助 ☕
[](https://github.com/iDvel/rime-ice?tab=readme-ov-file#%E8%B5%9E%E5%8A%A9-)
如果觉得项目不错,可以请 Dvel 吃个煎饼馃子。
[![请 Dvel 吃个煎饼馃子](https://github.com/iDvel/rime-ice/raw/main/others/sponsor.webp)](https://github.com/iDvel/rime-ice/blob/main/others/sponsor.webp)
File diff suppressed because it is too large Load Diff