红联Linux门户
Linux帮助

Ubuntu安装腾讯TIM

发布时间:2017-09-10 09:43:25来源:blog.csdn.net/seek_of作者:Seek_Of
一、环境
系统:16.04 LTS (Xenial Xerus)
arch:x86_64
TIM:TIM1.2.0
wine:Wine 2.0.2
 
二、安装步骤:
1.安装wine
sudo dpkg --add-architecture i386 
wget -nc https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
sudo apt-get update
sudo apt-get install --install-recommends winehq-stable
2.安装TIM
到官网下载(https://office.qq.com/)Windows 安装包
右键安装包,选择open with Wine Windows Program Loader
初次运行时安装界面中文乱码:
Ubuntu安装腾讯TIM
关闭安装程序,将Windows 下 C:/Windows/Fonts/ 下所有字体复制到 ~/.wine/drive_c/windows/Fonts/ 里面
再次运行TIM安装程序 选择安装目录,取消开机启动,注意我把它安装在
~/.wine/drive_c/userApp/tencent/TIM/
后面有关路径的问题视自己的情况而定,去掉默认路径带空格和括号可以省去不少麻烦。
安装TIM完成后发现输入不了账号!
终端输入:
winecfg
我做如下设置:
Ubuntu安装腾讯TIM
Windows版本我选 Windows 10
Ubuntu安装腾讯TIM
几个库好像只有riched20 修改有用,其他可以不要设置,可以删除。
 
三、运行
运行TIM
由于我的Ubuntu 安装是英文的,所以加多了第一行,否则,聊天界面可以输入中文,但是显示是乱码的,虽然发出去是正常的中文。
我的TIM启动脚本内容如下:
#!/bin/sh
LANG="zh_CN.UTF-8"
wine /home/toby/.wine/drive_c/userApp/tencent/TIM/Bin/TIM.exe
脚本存放位置为:
/home/toby/wineSoft
该位置下有两个文件:
TIM.ico TIM.sh
一个是TIM的图标(是从TIM 的安装目录下TIMUninst.ico 复制过来的)
一个是TIM的启动脚本(已经修改权限为可执行)
(有一个快捷键可以查看隐藏文件:Ctrl+H)
创建启动快捷方式:
vim /usr/share/applications/TIM.desktop
内容如下:
[Desktop Entry]
Type=Application
Name=TIM
Comment=改造的TIM
Exec=/home/toby/wineSoft/TIM.sh
Terminal=false
Icon=/home/toby/wineSoft/TIM.ico
StartupNotify=true
 
四、遗留问题:
退出TIM后还有相关程序在运行:ps -aux|grep TIM
Ubuntu安装腾讯TIM
重新登录时候登录不了,手动kill掉那些程序才可以重新登录。
 
本文永久更新地址:http://www.linuxdiyf.com/linux/32561.html