注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

love3400wind的blog

like

 
 
 

日志

 
 
 
 

How to install HeidiSQL on Ubuntu  

2016-10-31 17:36:33|  分类: 默认分类 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

Step 1: install Wine

There are three ways how you can get Wine. You can either download the stable version from the official Ubuntu repository, download it from Wine's repository, or compile the source yourself.

The simplest option is probably downloading it from the Ubuntu repository, using the command line:

sudo apt-get install wine

Follow the instructions, you will need to accept a license agreement for TrueType fonts. Use the arrow keys (← and →) and Enter to accept the terms.

Step 2: download HeidiSQL

Download the installer from http://www.heidisql.com/download.php.

Step 3: install HeidiSQL using Wine

Open the installer for HeidiSQL with Wine and follow the steps to install the application.

Step 4: add the HeidiSQL icon to the launcher (optional)

This step is optional, even without it you can start using HeidiSQL. However, I wanted to add a shortcut to the launcher, but this wasn't as easy as I thought it would be. I finally managed to do so by following these steps:

  1. First, find out where Wine is storing the HeidiSQL icon. In my instance, it was in /home/nic/.local/share/icons/hicolor/48x48/apps.
  2. You also need the location of the HeidiSQL executable. In my instance, it's in /home/nic/.wine/drive_c/Program Files/HeidiSQL.
  3. With this information, we can create a new file in ~/.local/share/applications, called heidisql.desktop.

    sudo gedit ~/.local/share/applications/heidisql.desktop
    

    (you can use another text editor instead of gedit, of course).

    Fill it with:

    [Desktop Entry]
    Name=HeidiSQL
    Comment=HeidiSQL on Ubuntu
    Exec=env WINEDEBUG=-all WINEPREFIX=/home/USER/.wine wine heidisql.exe
    Icon=/home/USER/.local/share/icons/hicolor/48x48/apps/9103_heidisql.0.png
    Path=/home/USER/.wine/drive_c/Program Files/HeidiSQL
    Terminal=false
    Type=Application
    Categories=Wine;
    StartupNotify=true
    StartupWMClass=heidisql.exe
    

    (of course you need to change the paths after Exec=Icon= and Path= with the appropriate ones. StartupWMClass= is not compulsory but having this entry pointed to application executable filename fixes issue with unity launcher showing generic wine app icon when the app is running)

  4. Add the icon to the launcher. Either go to /home/USER/.local/share/applications using the file browser, look for the HeidiSQL icon and drag it to the launcher, or search for HeidiSQL in Dash and drag the icon from there. (as Dash might contain two identical icons for HeidiSQL, and only one is the right one, I suggest the first method)

For more information about .desktop files, seehttps://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles.

  评论这张
 
阅读(14)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017