极点五笔for Ubuntu安装

最喜欢的五笔输入法极点五笔终于出Linux版本了

下载地址:http://210.22.22.150:1278/freewb_0.1.3_amd64.deb

安装Fcitx输入法apt install fcitx-bin

首先说明一下极点五笔官方使用的是Fcitx输入法系统

可以选择将Ubuntu系统自带的IBUS输入法删除

apt remove ibus 或者 apt purge ibus

安装极点五笔dpkg -i freewb.deb

配置操作:注意fcitx配置默认键盘-英语然后才是极点五笔,否则配置后无法输入字母

如果没有中文语言支持还得在语言支持中安装中文

输入法配置

在Window 操作Linux 最好的终端工具putty及psftp:

C:\Users\Downloads>psftp -P 22
psftp: no hostname specified; use "open host.name" to connect
psftp> open 46.29.*.*
login as: root
root@46.29.*.*'s password:
Remote working directory is /root
psftp> put -r D:/*.py
local:D:/*.py => remote:/root/*.py
psftp> exit

传递D盘下*.py文件到linux主用户目录

在Window下使用python多线程出现以下问题

RuntimeError: 
        An attempt has been made to start a new process before the
        current process has finished its bootstrapping phase.

        This probably means that you are not using fork to start your
        child processes and you have forgotten to use the proper idiom
        in the main module:

            if __name__ == '__main__':
                freeze_support()
                ...

        The "freeze_support()" line can be omitted if the program
        is not going to be frozen to produce an executable.

解决办法:  

from multiprocessing imoprt Pool
if __name__ == '__main__':
    with Pool(processes=4) as pool:
        df_list = pool.map(backtest, sorted(roi_list))

VIM及插件安装https://github.com/paldepind/vim-python-ide#bash

sudo apt-get remove vim-tiny
sudo apt-get install vim
# 调试插件
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple ipdb
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple neovim

安装文件setup.sh

#!/usr/bin/env bash
wrapper() {
  RED="\033[0;31m"
  GREEN="\033[0;32m"
  YELLOW="\033[0;33m"
  BLUE="\033[0;36m"
  NORMAL="\033[0m"

  REPO_HTTPS="https://github.com/jarolrod/vim-python-ide.git"
  VUNDLE_HTTPS="https://github.com/VundleVim/Vundle.vim.git"

echo "${BLUE}"
cat << "HELLO_TEXT"
                                                 ..
                                          .::::.
                             ___________ :;;;;:`____________
                             \_________/ ?????L \__________/
                               |.....| ????????> :.......'
                               |:::::| $$$$$$"`.:::::::' ,
                              ,|:::::| $$$$"`.:::::::' .OOS.
                            ,7D|;;;;;| $$"`.;;;;;;;' .OOO888S.
                          .GDDD|;;;;;| ?`.;;;;;;;' .OO8DDDDDNNS.
                           'DDO|IIIII| .7IIIII7' .DDDDDDDDNNNF`
                             'D|IIIIII7IIIII7' .DDDDDDDDNNNF`
                               |EEEEEEEEEE7' .DDDDDDDNNNNF`
                               |EEEEEEEEZ' .DDDDDDDDNNNF`
                               |888888Z' .DDDDDDDDNNNF`
                               |8888Z' ,DDDDDDDNNNNF`
                               |88Z'    "DNNNNNNN"
                               '"'        "MMMM"
                                            ""
    ___    ____                                            __   _         _    ________  ___
   /   |  / / /  __  ______  __  __   ____  ___  ___  ____/ /  (_)____   | |  / /  _/  |/  /
  / /| | / / /  / / / / __ \/ / / /  / __ \/ _ \/ _ \/ __  /  / / ___/   | | / // // /|_/ /
 / ___ |/ / /  / /_/ / /_/ / /_/ /  / / / /  __/  __/ /_/ /  / (__  )    | |/ // // /  / /
/_/  |_/_/_/   \__, /\____/\__,_/  /_/ /_/\___/\___/\__,_/  /_/____/     |___/___/_/  /_/
                 /_/
HELLO_TEXT
echo "${NORMAL}"

  if [ ! -n "$VIM" ]; then
    VIM=~/.vim
  fi

  if [ -d "$VIM" ]; then
    printf "${YELLOW}%s${NORMAL}\n" "You already have $VIM directory."
    printf "${YELLOW}%s${NORMAL}\n" "You have to remove $VIM if you want to re-install."
    exit 0
  fi

  # Prevent the cloned repository from having insecure permissions. Failing to do
  # so causes compinit() calls to fail with "command not found: compdef" errors
  # for users with insecure umasks (e.g., "002", allowing group writability). Note
  # that this will be ignored under Cygwin by default, as Windows ACLs take
  # precedence over umasks except for filesystems mounted with option "noacl".
  umask g-w,o-w

  printf "${BLUE}%s${NORMAL}\n" "Cloning vimrc from ${REPO_HTTPS}"

  hash git >/dev/null 2>&1 || {
    printf "${RED}%s${NORMAL}\n" "Error: git is not installed."
    exit 1
  }

  env git clone --depth=1 $REPO_HTTPS $VIM || {
    printf "${RED}%s${NORMAL}\n" "Error: git clone of vimrc repo failed."
    exit 1
  }

  printf "${BLUE}%s${NORMAL}\n" "Looking for an existing vim config..."
  if [ -f ~/.vimrc ] || [ -h ~/.vimrc ]; then
    printf "${YELLOW}%s${NORMAL}\n" "Found ~/.vimrc."
    printf "${BLUE}%s${NORMAL}\n" "You will see your old ~/.vimrc as $VIM/vimrc.bak"
    mv ~/.vimrc $VIM/vimrc.bak
  fi

  printf "${BLUE}%s${NORMAL}\n" "Symlinking $VIM/vimrc with ~/.vimrc..."
  ln -fs $VIM/vimrc ~/.vimrc

  if [ ! -d "$VIM/bundle/Vundle.vim" ]; then
      printf "${BLUE}%s${NORMAL}\n" "Installing Vundle..."
      env git clone --depth=1 $VUNDLE_HTTPS "$VIM/bundle/Vundle.vim"
      git clone https://github.com/chriskempson/base16-shell.git ~/.config/base16-shell
 fi

  if [ ! -f $VIM/colors/wombat256mod.vim ]; then
      if [ ! -d $VIM/colors/ ]; then
          mkdir -p $VIM/colors
      fi
      wget 'http://www.vim.org/scripts/download_script.php?src_id=13400' -O $VIM/colors/wombat256mod.vim
      
  fi

  printf "${GREEN}%s${NORMAL}\n" "Vimrc has been configured ;)"
  printf "${YELLOW}%s${NORMAL}\n" "Do not worry about error messages. When it occurs just press enter and wait till all plugins are installed."
  printf "${BLUE}%s${NORMAL}\n" "Keep calm and use VIM!"
}

wrapper
vim +PluginInstall

配置文件(~/.vimrc)

" 关闭 vi 兼容模式
set nocompatible              " required
filetype off                  " required
" 允许在有未保存的修改时切换缓冲区,此时的修改由 vim 负责保存
set hidden
set showtabline=0

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')

" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'                  " Vundle Plugin Manager

" Add all your plugins here (note older versions of Vundle used Bundle instead of Plugin)
"
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
很抱歉,目前还没有发布Ubuntu 22.04版本,最新的Ubuntu版本是Ubuntu 21.10(Impish Indri)。关于Ubuntu安装输入法的设置,我可以为您提供一些基本信息。 要安装Ubuntu操作系统,您可以按照以下步骤进行操作: 1. 下载Ubuntu安装镜像文件(ISO文件)。 2. 制作一个可启动的安装介质,例如USB闪存驱动器或DVD。 3. 将制作好的安装介质插入计算机,并启动计算机。 4. 在启动时选择从安装介质启动。 5. 进入Ubuntu安装界面后,按照提示进行安装设置,包括选择语言、时区、键盘布局等。 6. 在安装类型中选择适合您的需求的选项,例如完全安装或者双系统安装。 7. 设置用户名和密码等必要信息,并等待安装完成。 关于极点五笔输入法安装,您可以按照以下步骤进行操作: 1. 打开终端(Terminal)。 2. 使用以下命令安装极点五笔输入法: ``` sudo apt-get update sudo apt-get install fcitx fcitx-table-wubi ``` 3. 安装完成后,打开系统设置,选择“区域和语言”选项。 4. 在“输入源”或“输入法”选项中,添加并选择Fcitx输入法框架。 5. 在Fcitx的设置中,选择“添加输入法”,然后选择极点五笔输入法。 6. 设置完成后,您可以在需要输入文字的地方切换到极点五笔输入法进行使用。 希望以上信息对您有所帮助!如果您有任何其他问题,请随时提问。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值