Install QQ2015 on Ubuntu

Source: Internet
Author: User

First not suspense direct: Ubuntu 14.04.5 LTS

Deb Package:

Http://www.longene.org/download/WineQQ7.8-20151109-Longene.deb

Http://pan.baidu.com/s/1kTu9ZUZ

After the download is completed, double-clicking will jump to Ubuntu Software Center installation, if prompted to ignore the certification of the Deb package to continue to install, 32-bit dependent on the library to solve the problem, you can Baidu or Google keyword Ubuntu installation of the three-bit dependency library;

Lead

The purpose of this article is not to install a QQ to Ubuntu, but in 2 years 0 months from the 2012 version of WINEQQ to now this 2015 version of the use of the experience and some thinking, mainly for the same interests of Ubuntu fans to provide a reference.

Why install QQ on Ubuntu?

A lot of people first time will say I leave Windows will not work properly, I left QQ can't find other IM tools, hmm, this is a very often the actual rhetoric or excuses, In fact, 5 years ago when I first contacted Ubuntu10.04, I thought so, but 5 years later, even after the use of Ubuntu 2 years later I would not think so? Why? Because I work on all the things I can use on Windows, I find the corresponding replacement products on Ubuntu, all, everything ...

Then why do you have to write this article back? Well... Free of ... Well, in fact, the reason is that I am now in the company are unified use of QQ work with IM, said seriously, some people high up when the leadership is the boss of the decision, from the initial QQ cut to Skype and then to QQ back and forth toss 3 times, all have to follow him walk no objection, Such a leader can imagine the whole company is how a daily run? Do not want me to say can imagine, fortunately belongs to the remote development, the eyes do not bother me not so upset, as a focus on technology programmers, I still want to continue to learn!

So, I bought my own Intel NUC i5 6-generation small box, lost the company equipped with the i5 4 generation standard notebook computer, bought their own display, mechanical keyboard and so on, which is to continue to learn the protection.

Well, everyone around QQ to QQ, every day voice over the voice past the phone can not carry, only in 16G of memory, solid-state Drive small box installed QQ, now say the use of experience ...

QQ2015 experience with Wine edition

This 2015 version of QQ used to probably eat my 2g much closer to 3g of memory, but for the total 16g capacity is a piece of cake, has been used 2, 3 months, voice, video, Remote Assistance, groups, discussion groups, expressions and so long as you can think of all the support, in general enough. In addition to the passage of time this QQ function may lag behind the latest QQ many and lead to incompatibility situation, this is a problem, but at present at least 2 years will not have too much problem.

The hole in the use of the wine version QQ2015

As the picture on the right, the first installation is complete click on the QQ startup program can be normal pop-up login interface to login, but shut down the machine and then run the problem:

Application tried to create a window, but no driver could is loaded.
The explorer process failed to start.

You take a closer look at the/USR/SHARE/APPLICATIONS/QQ launcher script inside how to find out, click after the application launched the final script is this/opt/longene/qq/qq.sh

This shell script tells us that QQ startup is the final run with a wine 1.7 version of the package taken away, at the beginning of the period I encountered this problem and see the following first script I would like to install a new wine to start, but unfortunately the landing box after the say good bye, Oh no, trying an afternoon or a failure, no doubt it must be the Longene team has adjusted the packaged wine 1.7 to accommodate this QQ2015

OK, but be careful I found that the Longene team of this QQ will be in the home directory to generate some cache files, so please see the 2nd script below the red color line, delete these longene QQ2015 successful Resurrection, O (∩_∩) o ha ha ~

That's it?

Oh no, not yet, after the computer restarts, even if the deletion of these buffer files will be reported above the error, oh my God, finally repeatedly observed terminal in the output, found a feature is to ensure that longene Wine QQ2015 Normal and repeated can run, It's important to keep the wine server running, for example: Java programmers have to be able to run, and that's a reason to keep the JRE alive.

Therefore, each shutdown and then boot after the wine server is bound to be due to the last environment configuration problems can not start normally, the above used the latest wine to try to start Longene QQ2015 failure and then back to use Longene packaging wine1.7 can run it? The reason is very simple, when I tried to run Longene with the latest wine QQ2015 when the successful cleaning off the wine1.7 wine server can not normally start the environment configuration, so I specifically wrote the following 2nd script:

    1. Run the second script with the-c parameter on every boot or environmental failure
    2. When every time you turn off QQ and want to free up as much memory as wine takes, then bring K to kill wine server 1.7.
    3. If you turn off QQ if you want to start again without restarting it, you don't have to take any parameters.

Ouke, although simple and rude, but based on no more time to deal with more specific reasons for this situation, but now that the problem has been solved, and install a new wine and longene QQ2015 pack away wine1.7 and no conflict, and you can use the latest wine to play with other Windows programs, is also harmless, fun ah O (∩_∩) o hahaha ~

#!/bin/Bashset-Eexport LANG=Zh_cn.utf8#longene Dirlongene_dir=/opt/longene#wine program Main Dirwine_dir= $LONGENE _dir/qq/wine-Lib#winprefix Dirwineprefix_dir= $HOME/.longene/qq#wine APP Dirwineapp_dir= $LONGENE _dir/qq#current App Dirqq_dir= $LONGENE _dir/qq#current User#runuser="' basename $HOME '"Runuser=`WhoAmI' Package_name=wine-qq7.8-Longeneteamtar_name=qq7.8.Tar. Bz2winelib_tar=wine-lib.Tar. Bz2#qq_user_dir="$WINEPREFIX _dir/drive_c/program\ files/tencent/qq"functionrunhelp{Echo "************************************************************************"Echo "* wine-qq2013-by Longene Team--Build 20131120" Echo "* Contact Us by http://www.longene.org" Echo "*    "Echo "* Commands:"Echo "*-u/--uninstall Uninstall wine-qq2013 If you don ' t like"Echo "*-d/--debug Open debug channel. Log file is in your home directory"Echo "*-h/--help The fucking help information as now is reading"Echo "*-k/--kill execute wineserver-k to kill all wine programs"Echo "*-reg/--regedit start regedit editor"Echo "*-cfg/--winecfg start winecfg"Echo "************************************************************************"}functionuninstallpackage{Echo "* Remove wine-qq7.8-longene ..."Read-P"* is you sure? (y/n)"ANSWif["$ANSW"="Y"-O"$ANSW"="y"-o-z $ANSW]; Then        sudoDpkg-P $PACKAGE _nameEcho "removing ....."        ElseExit0    fi}functioncheck_owner{Wineprefix_dir_user=`Stat-C%U $WINEPREFIX _dir 'if["$RUNUSER"!="$WINEPREFIX _dir_user"]; Then        sudo Chown$RUNUSER $WINEPREFIX _dirEcho "* Modifying the owner of $WINEPREFIX _dir"    fi}functioncheck_firstrun{#Echo "Check firstrun ...."        if[!-e $WINEPREFIX _dir/firstrun]; Then        Echo "* Seems the first time to run. Here we go!"# $QQ _dir/longene_gtk $QQ _dir/firstrun $WINEPREFIX _dir/firstrun &#        Echo "Bingoo"> $WINEPREFIX _dir/FirstRunfi    }functionrunapp{Check_firstrunif[!-E"$WINE _dir/bin/wine"]; Then        Tar-JXF $QQ _dir/$WINELIB _tar-C $QQ _dirRM-F $QQ _dir/$WINELIB _tarif[!-E"$WINEPREFIX _dir/drive_c/program Files/tencent/qq/bin/qq.exe"]; Then            mkdir-P $HOME/. LongeneTar-JXF $QQ _dir/$TAR _name-c $HOME/. LongeneRM-F $QQ _dir/$TAR _namefi        Touch$WINEPREFIX _dir/FirstRunfiWinedebug=-allEnvwineprefix= $WINEPREFIX _dir $WINE _dir/bin/wine $WINEPREFIX _dir/drive_c/program\ files/tencent/qq/bin/QQ.exe}functiondebugapp{Echo "* Starting debug channel ...."    Echo "* Log file'll be created in your Home:/longene_qq2012.log"    Echo "* can upload the log on our site for help:http://www.longene.org"        #Find$LONGENE _dir-type f-exec $QQ _dir/md5sum {} + > $HOME/Longene_qq.log #Echo "*********************************************">> $HOME/Longene_qq.logEnvwineprefix= $WINEPREFIX _dir $WINE _dir/bin/wine $WINEPREFIX _dir/drive_c/program\ files/tencent/qq/bin/qq.exe >$ Home/longene_qq.log2>&1} Case$1 inch     "--uninstall"|"- u") uninstallpackage;; "--debug"|"- D") Debugapp;; "--kill"|"- k")        Envwineprefix= $WINEPREFIX _dir $WINE _dir/bin/wineserver-K;; "--regedit"|"-reg")        Envwineprefix= $WINEPREFIX _dir $WINE _dir/bin/regedit;; "--winecfg"|"-cfg")        Envwineprefix= $WINEPREFIX _dir $WINE _dir/bin/winecfg;; "--help"|"- H") runhelp;; *)        if[-Z $1]; ThenRunAppElse            Echo "Invalid option:$1"Runhelpfi        ;;Esac 

This is an additional shell script that I wrote myself:

#!/bin/BashWineprefix_dir= $HOME/.longene/qq/functionrunhelp{Echo "************************************************************************"Echo "* Help"Echo "* Commands:"Echo "*-c/--clean Cleanup data"Echo "************************************************************************"}functionrunclean{EnvWinedllpath=/opt/longene/qq/wine-lib/lib/wine Wineserver=/opt/longene/qq/wine-lib/bin/wineserver WINEPREFIX=$ Wineprefix_dir wine $WINEPREFIX _dir/drive_c/program\ files/tencent/qq/bin/qq.exe > $HOME/longene_qq.log2>&1    Sleep 5Bash/opt/longene/qq/qq.SH&Sleep 5   RM $WINEPREFIX _dir/dosdevices/* ::}function runapp{bash/opt/longene/qq/qq.sh&}case $ in "--clean" |    "-C") Runclean;; "--kill" |    "-K") bash/opt/longene/qq/qq.sh-k;; "--help" |    "-H") runhelp;;                    *) if [-Z $];then RunApp else echo "Invalid option:$1" runhelp fi;; Esac

Install QQ2015 on Ubuntu

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.