On Linux use wine to install the chat version of the QQ steps to explain

Source: Internet
Author: User
Tags exit

Prepare Wine Environment

Wine version requirements, the more new the better, I use 1.7.55, the latest is 1.8RC2.

Delete or back up your ~/.wine if you've run wine before. Because it involves a small amount of configuration, try not to let the previous environment interfere with you.

Configure Wine

Run Winecfg, at the bottom of the application page, "Windows version," and select "8.1". 8.0 may also be possible, but I chose 8.1.

Set to Windows 8.1, open all external links, such as QQ space, will use the built-in IE browser (Gecko Win32 engine). If you don't like this behavior, you can change it to "Windows XP" with Winecfg, add a QQProtect.exe setting, and set it to "Windows 8.1" alone.

Install QQ Light Chat version

Download installation

Download Qq7.7light.exe, there are official to the advertising version we use the official to the advertising version of the good. Go to the official website to download. I can't believe what people are doing.

Install Command:

Copy Code

The code is as follows:

Winedebug=-all wine./qq7.7light.exe

The purpose of Winedebug=-all is to avoid various debugging and warning information during installation, as there is no need to look.

Wait until the installation is complete. (The final component registration time will be longer, patiently waiting). There are no considerations for the installation process.

Installation completed, QQ login window appears, the first exit can be, because this time is unable to enter (we need to replace a few DLLs to do).

Replace DLL

First download DLL:riched20.dll and Iphlpapi.dll.

Riched20.dll Download the win7 version of the

Iphlpapi.dll downloads The Windows 2008 version of the

Then replace the DLL:

The code is as follows:

CD. Wine/drive_c/windows/system32

MV Iphlpapi.dll Iphlpapi.dll.bak

MV Riched20.dll Riched20.dll.bak

Copy the downloaded two DLLs here.

Modify the Registration Form

The code is as follows:

VI ~/.wine/user.reg

Add to:

The code is as follows:

[Softwarewinedlloverrides] 1447325077 6869640

#time =1d11d37208b6b08

"*iphlpapi" = "native"

"*RICHED20" = "Native,builtin"

"*qcap" = ""

"Txplatform.exe" = ""

"Txupd.exe" = ""

Description

The reason for disabling qcap is "Disable the local camera" (if any), because the wine current camera processing and QQ need to call the interface still has a gap, the local camera open will crash, the result is video chat if the use of the local camera will crash. When disabled, remote video can be used normally, although local video cannot be used. This problem can be done by modifying the wine code. (Have time to do it again).

Replace the Riched20.dll to allow the login dialog to be entered.

Replace Iphlpapi.dll, is to avoid login after the crash exit.

Disabling Txplatform.exe is because this process does not quit after wine QQ exit, it does not matter to Windows, for Linux, this means that the background running a pile of wine process.

Disabling Txupd.exe is because it occasionally crashes while periodically checking for updates in the background, and does not affect use, but the "Wine Crash dialog box" is not always good.

Replace font

If you do not use SimSun font, there is no need to use SimSun, more unnecessary to use what Corefont

Wine fonts are located in/usr/share/wine/fonts/I only keep the Dejavu series TTF fonts and SOURCEHANSANSCN-NORMAL.OTF, which is enough for the Chinese environment.

Because the software font calls under Windows are messy, sometimes fallback to SimSun or "song", the replacement is "when the software requests the song body, use our alternative font", which can solve almost all the "Chinese box problem." If you do not replace (also do not use SimSun), some of QQ interface fonts may be displayed as "box."

The replacement method is:

Find the [softwarewinefontsreplacements] in ~/.wine/user.reg, and if not, join yourself.

The code is as follows:

[Softwarewinefontsreplacements] 1448856028 1650250

#time =1d12b23a623844a

"Nsimsun" = "x601dx6e90x9ed1x4f53 CN Normal"

"SimSun" = "x601dx6e90x9ed1x4f53 CN Normal"

"X5b8bx4f53" = "x601dx6e90x9ed1x4f53 CN Normal"

"X65b0x5b8bx4f53" = "x601dx6e90x9ed1x4f53 CN Normal"

The following words are nominated in accordance with your actual situation to write. Remember not to install SimSun or what Winetricks Corefont, this method is suitable for all fonts displayed as "box", such as "NetEase Cloud Music" client.

Run QQ

The code is as follows:

CD ~/.wine/drive_c/program Files/tencent/qqlite/bin

Winedebug=-all wine./qq.exe

If your system wine the menu items, you can also use menu items to run them.

Preserve environment

Wine can retain multiple wine environments through Wineprefix variables.

The code is as follows:

MV ~/.wine Qqlite

CD Qqlite

Add a script "QQ", which reads as follows:

The code is as follows:

#!/bin/bash

exepath=$ (CD ' DirName $ '; pwd)

Export wineprefix= $EXEPATH

Export Winedebug=-all

Export LANG=ZH_CN. UTF-8

Export LC_ALL=ZH_CN. UTF-8

CD "$EXEPATH/drive_c/program files/tencent/qqlite/bin"

Wine QQ.exe

Save your own Qqlite this directory and you can run it anywhere in the future. Video one-way, voice two-way, demo desktop, etc. are normal to use.

Residue problems

Theoretically, these can be solved by modifying the wine code.

Cannot save password and log on automatically.

Password input box A bit difficult, with the pop-up keypad input or rotation click on the account Password box 1, 2 times can be entered.

Local camera is disabled (temporary, will be good later)

Some windows, such as the "File List window" does not accept the window Manager management, after the point may be "X" does not drop, occasionally use the "system taskbar" to close the window, no harm, less can be, if Hang can quit again login.

No more online after offline, you can only exit the login again.

Various other minor problems.

If only the normal use of chat, a day plus sleep should be no problem, I have not encountered a slow system, crash, can not exit and so on.

Ps:wine (the recursive abbreviation for "Wine is isn't") is a compatible layer that can run Windows applications on a variety of posix-compliant operating systems (such as Linux,mac OS X and BSD). In addition, the English word wine is the meaning of wine.

Wine (Wine is isn't an emulator) [that is, Wine isn't an emulator] is a implementation of Windows 3.x and Windows APIs on Linux and UNIX. Note that wine is not a Windows emulator, but instead uses API conversion technology to actually make Linux corresponding to Windows functions to invoke DLLs to run Windows programs. Wine can work in most UNIX versions, including Linux, FreeBSD, and Solaris. In addition, there are wine programs that apply to Mac OS X. Wine does not require Microsoft Windows because it is a completely free code of 100%. If there is an available copy, it is also free to use the DLLs of the local system. The release of the wine is completely open to the source code and is released free of charge. (Based on LGPL release: GNU wide general Public License)

With regard to the true meaning of Wine, some people questioned the "Wine is isn't an emulator", that the "non-simulator" interpretation is only a kind of entertainment, Wine the real meaning should be the abbreviation of Windows enviroment, that is, Wine.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.