↓ Skip to main content
  1. Posts/

archlinux/manjaro 下 安装 qq/tim

·580 words·2 mins
Note: This article is available in Chinese only. 本文暂无英文版本。 View original

参考资料:install qq/tim on linux with wine

wine运行qq不能输入账号

This tutorial introduces how to install QQ/TIM in Linux with Wine, which had been tested on ArchLinux with Wine 2.4.

Prerequisites
#

Before start, you need to get the latest Wine. I’m not sure whether QQ/TIM can run on lower version of Wine. In ArchLinux, you can easily get the latest Wine using following command:

1pacman -S wine

However, in Debian, you need to install Wine with some more steps. You can see this tutorial.

Then, you need to install a helper of Wine, Winetricks. Winetricks is a script to download and install various redistributable runtime libraries needed to run some programs in Wine. To install Winetricks, you can use following command:

1sudo wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks -O /usr/local/bin/winetricks
2sudo chmod a+x /usr/local/bin/winetricks

After that, we need to fix some problems manually caused by Winetricks. According to this Bug Report, we need to download W2KSP4_EN.EXE from other mirror sites:

Similarly, we need to download InstMsiW.exe manually:

1mkdir -p $HOME/.cache/winetricks/msls31
2wget ftp://ftp.iop.org/pub/ESXP6/instmsiw.exe -O $HOME/.cache/winetricks/msls31/InstMsiW.exe

Initialize Wine Environment
#

To create a 32-bit WINE system, you need to open a terminal and run the following command:

1WINEARCH=win32 wine wineboot

Then you need to run winecfg in terminal and change Windows version to Windows 7.

Winecfg · Windows 版本

Install Core Fonts
#

Next, we are going to install essential fonts for Wine.

1winetricks corefonts cjkfonts

where corefonts stands for MS Arial, Courier, Times fonts, and cjkfonts denotes all Chinese, Japanese and Korean fonts and alias.

Install Windows Components
#

Then, we need to install components which are needed by QQ / TIM.

1winetricks msxml6 riched20 riched30 vcrun6

where msxml6 represents MS XML Core Services 6.0 SP1, riched20 and riched30 mean MS RichEdit Control 2.0 and MS RichEdit Control 3.0 respectively, and vcrun6 is Visual C++ 6 SP4 libraries.

You are supposed to be asked to fill in information during the MSXML6 installation.

MSXML6 安装向导

Install QQ / TIM
#

In this section, we are about to install QQ / TIM. We assume that you have already got installers from official website. Run your installer with following command:

1LC_ALL=zh_CN.utf8 wine /path/to/installer.exe

In this tutorial, we use TIM installer as an example:

TIM 安装向导

Please be patient and ignore following error message in terminal:

1

[8:142:0322/131343:4128351:ERROR:qd_helper.cpp(234)] 328 Status: 2

An instance of QQ / TIM will automatically start after installation finishes.

TIM 登录窗口

Due to security check of QQ / TIM, QQ cannot start normally when you restart your PC. We need to apply a patch to remove security check components. You can download this patch from this link or search “QQ安全校验补丁” from the Internet.

After unzipping this patch, use following commands to apply this patch:

1mv QQ-Security-Check-10.0.exe ~/.wine/drive_c/Program\ Files/Tencent/QQ/Bin
2LC_ALL=zh_CN.utf8 wine ~/.wine/drive_c/Program\ Files/Tencent/QQ/Bin/QQ-Security-Check-10.0.exe

Create Shortcut
#

Now you can start QQ using following commands:

1# Start QQ
2LC_ALL=zh_CN.utf8 wine ~/.wine/drive_c/Program\ Files/Tencent/QQ/Bin/QQ.exe
3
4# Or start TIM
5LC_ALL=zh_CN.utf8 wine ~/.wine/drive_c/Program\ Files/Tencent/TIM/Bin/TIM.exe

In order to start up QQ / TIM, you can create a desktop entry in /usr/share/applications/TIM.desktop as follows:

 1[Desktop Entry]
 2Categories=Network;InstantMessaging;
 3Exec=env LC_ALL=zh_CN.utf8 wine $HOME/.wine/drive_c/Program\ Files/Tencent/TIM/Bin/TIM.exe
 4Icon=/path/to/logo.png
 5NoDisplay=false
 6StartupNotify=true
 7Terminal=false
 8Type=Application
 9Name[en_US]=TIM
10Name[zh_CN]=TIM

Enjoy!

遇到了无法输入账号的 bug(但是可以输入密码)

解决办法是:

桌面快捷方式修复

Related

conda升级anaconda ValueError的解决办法

·121 words·1 min
conda update anaconda 后提示 1ValueError: unsupported format character ')' (0x29) at index 49 查到了这个:anaconda update issue I have narrowed this down to the following packages: package build psutil-1.2.1 py27_0 hard-link pycparser-2.10 py27_0 hard-link pykit-0.1.0 np18py27_2 hard-link pyparsing-2.0.1 py27_0 hard-link by calling "conda install anaconda" and then successfully installing everything else one at a time. These four packages consistently exhibit the described behaviour. (note: pykit depends on pycparser so may itself be ok - can't tell) 我先把psutil卸载掉,重新update了一下,成功。

vim下python 的配置

·817 words·2 mins
由于最近要做数字图像处理的大作业,以及之后一段时间,估计写python多一些,所以打算花些时间配置下vim. # 1. 一键执行 # 其实之前一直有的。。不过没有效果,就没有管。发现问题是,python对应的filetype为"python",而不是"py" # 1func! CompileRunGcc() 2 exec "w" 3 if &filetype == 'c' 4 exec "!g++ % -o %<" 5 exec "! ./%<" 6 elseif &filetype == 'cpp' 7 exec "!g++ % -std=gnu++11 -Wall -o %<" 8 exec "! ./%<" 9 elseif &filetype == 'java' 10 exec "!javac %" 11 exec "!java %<" 12 elseif &filetype == 'sh' 13 :!./% 14 elseif &filetype == 'python' 15 " exec "!python %" 16 " exec "!python %<" 17 exec "!python2.7 %" 18 endif 19endfunc 2.代码补全 # 不想折腾了。。既然ycm也支持python,就先用用看好了。。不行再换别的。 # 放一段ycm for python的配置文件 # 1"默认配置文件路径" 2let g:ycm_global_ycm_extra_conf = '~/.ycm_extra_conf.py' 3"打开vim时不再询问是否加载ycm_extra_conf.py配置" 4let g:ycm_confirm_extra_conf=0 5set completeopt=longest,menu 6"python解释器路径" 7let g:ycm_path_to_python_interpreter='/usr/bin/python' 8"是否开启语义补全" 9let g:ycm_seed_identifiers_with_syntax=1 10"是否在注释中也开启补全" 11let g:ycm_complete_in_comments=1 12let g:ycm_collect_identifiers_from_comments_and_strings = 0 13"开始补全的字符数" 14let g:ycm_min_num_of_chars_for_completion=2 15"补全后自动关机预览窗口" 16let g:ycm_autoclose_preview_window_after_completion=1 17" 禁止缓存匹配项,每次都重新生成匹配项" 18let g:ycm_cache_omnifunc=0 19"字符串中也开启补全" 20let g:ycm_complete_in_strings = 1 3. 语法检查 # Syntastic大家都知道了。。。。看到了异步检测插件ALE,打算试一下。 # ale_github # 需要注意的是,这个插件需要vim 8.0+的特性。。。 # 放一波配置文件 # 1""""""""""""""""""for ale begin """""""""""""""" 2let g:ale_sign_column_always = 1 "保持侧边栏可见: 3 4let g:ale_sign_error = '>>' "改变错误和警告标识符 5let g:ale_sign_warning = '--' 6let g:ale_statusline_format = ['⨉ %d', '⚠ %d', '⬥ ok'] "改变状态栏信息格式 7 8"自定义跳转错误行快捷键: 9nmap <silent> <C-k> <Plug>(ale_previous_wrap) 10nmap <silent> <C-j> <Plug>(ale_next_wrap) 11"消除某excption not caught的警告 12let g:ale_emit_conflict_warnings = 0 4. 编程提示(jedi-vim) # 据说是vim写python的神器。。。装来看看。。。 # 据说默认配置就够了,先不折腾了 # # #