Install QQ2016 on Ubuntu16.04

Source: Internet
Author: User

Install the 2015 version according to the following method, after installing the login, choose QQ to bring the software, you can update to the latest version, there is a picture of actualize

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" function runhelp{echo  "************************************************************************" Echo   "*    wine-qq2013-by longene team -- build 20131120"   echo  "*    contact us by http://www.longene.org"  echo  "*      "echo " *    commands: "echo " *    -u/ --uninstall   &nbsp 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 you are reading "echo " *     -k/--kill    execute wineserver -k to kill all wine  programs "echo " *    -reg/--regedit    start regedit  editor "echo " *    -cfg/--winecfg    start winecfg "Echo   "************************************************************************"}function  uninstallpackage{    echo  "*    remove wine-qq7.8-longene ... "    read -p&nbSP; " *    are you sure?  (y/n) " ANSW    if [ " $ANSW  =  y  -o  $ANSW  =  y  -o -z  $ANSW   ];then         sudo dpkg -P  $PACKAGE _name     echo  "Removing ..."         else          exit 0    fi}function check_owner{     wineprefix_dir_user= ' stat -c %u  $WINEPREFIX _dir '          if [  "$RUNUSER"  !=  "$WINEPREFIX _dir_user"  ];then         sudo chown  $RUNUSER   $WINEPREFIX _dir         echo  "*    modifying the owner of  $WINEPREFIX _dir"     fi}function check_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/firstrun    fi    } Function runapp{    check_firstrun    if [ ! -e   "$WINE _dir/bin/wine"  ]; then        tar -jxf   $QQ _dir/$WINELIB _tar -c  $QQ _dir        rm -f  $QQ _dir/$WINELIB _tar        if [ ! -e   "$WINEPREFIX _dir/drive_c/program files/tencent/qq/bin/qq.exe"  ]; then             mkdir -p  $HOME/.longene             tar -jxf  $QQ _dir/$TAR _name -c  $HOME/ .longene            rm -f  $QQ _dir/$TAR _ Name        fi        touch   $WINEPREFIX _dir/firstrun    fi    winedebug=-all env  wineprefix= $WINEPREFIX _dir  $WINE _dir/bin/wine  $WINEPREFIX _dir/drive_c/program\ files/tencent/qq /bin/qq.exe}function debugapp{    echo  "*    starting  Debug channel ......."     echo  "*    log file will be created  In your home:/longene_qq2012.log "    echo " *    you  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.log     env wineprefix= $WINEPREFIX _dir  $WINE _dir/bin/wine  $WINEPREFIX _dir/drive_c/program\  Files/Tencent/QQ/Bin/QQ.exe > $HOME/longene_qq.log 2>&1}case $1 in       "--uninstall" |  "U")          Uninstallpackage        ;;      "--debug" |  "-D")         debugapp         ;;      "--kill" |  "-K")         env  wineprefix= $WINEPREFIX _dir  $WINE _dir/bin/wineserver -k         ;;      "--regedit" |  "-reg")         env  wineprefix= $WINEPREFIX _dir  $WINE _dir/bin/regedit        ;;      "--winecfg" |  "-cfg")         env  wineprefix= $WINEPREFIX _dir  $WINE _dir/bin/winecfg        ;;      "--help" |  "-H")         runhelp         ;;     *)         if [ -z $1 ];then                     runapp         else            echo  " Invalid option:$1 "            runhelp                      fi        ;; Esac

This is an additional shell script that I wrote myself:

#!/bin/bashwineprefix_dir= $HOME/.longene/qq/function runhelp{echo  "********************************* "echo " *    help "echo " *     commands: "echo " *    -c/--clean  cleanup Data "echo " ******************** "}function runclean{    env  winedllpath=/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.log 2>&1    sleep 5     bash /opt/longene/qq/qq.sh&    sleep 5    rm $ Wineprefix_dir/dosdevices/*::}function runapp{bash /opt/longene/qq/qq.sh&}case $1 in       "--clean "| "-C ")         runclean         ;;      "--kill" |  "-K")         bash /opt/ longene/qq/qq.sh -k        ;;      "--help" |  "-H")         runhelp         ;;     *)         if [ -z $1 ]; then                     runapp        else             echo  "Invalid option:$1"              runhelp                     fi        ;; Esac

Install QQ2016 on Ubuntu16.04

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.