RSS

Tag Archives: winehq

Ubuntu 13.10 personal post-installation mini guide

Okey. It is the end of 2013. I have gave Unity a try for a day, but goodbye again Unity.

xubuntu is almost perfect, howerver, as usual, customization is always required.

And I confess, I have just copied and pasted almost everything from the old entry. So not much excited.

Please note, I have got myself a new laptop, so the procedure will be even simpler.

1.1) enable Canonical’s ‘partner’ repository:

sudo nano /etc/apt/sources.list

1.2) uncomment the following lines:

deb http://archive.canonical.com/ubuntu saucy partner
deb-src http://archive.canonical.com/ubuntu saucy partner

2) To get the latest WineHQ:

sudo add-apt-repository ppa:ubuntu-wine/ppa

3) Then, update data base:

sudo apt-get update

4) (Optional) To find out what you have installed:

dpkg --get-selections | sed 's:install$::' > InstalledPackages.txt

5) Then, remove what I do not want:

sudo apt-get purge abiword* catfish espeak* gmusicbrowser gnome-mines gnome-sudoku gnomine gnumeric* ibus-pinyin* nano parole pidgin* plymouth-theme* ristretto thunderbird* xchat*

6) Then, upgrade system:

sudo apt-get dist-upgrade

7) Then, install what I want:

sudo apt-get install audacious brasero chromium-browser easytag geeqie guvcview ibus-table-cangjie3 ibus-table-cantonhk ibus-table-quick3 ttf-mscorefonts-installer skype smplayer synaptic unrar vim virtualbox virtualbox-guest-additions-iso vlc winetricks

8) As of every new version of Ubuntu, there are some minor bugs in the system. This time again is the sound card volume control. If you find you have a gray out speaker in your Indicator Plugin, you may try this.

8.1) Edit the following file:

sudo vim /usr/share/dbus-1/services/indicator-sound.service

8.2) Comment out the last line and add a new line as follow:

[D-BUS Service]
Name=com.canonical.indicator.sound
#Exec=/usr/lib/x86_64-linux-gnu/indicator-sound/indicator-sound-service
Exec=/usr/lib/indicator-sound-gtk2/indicator-sound-service

8.3) Logout then Login again, and you should good to go.

 
Leave a comment

Posted by on November 5, 2013 in Linux, Ubuntu, xUbuntu

 

Tags: , , , , , , , , ,

Ubuntu 13.04 personal post-installation mini guide

My usually desktop is XFCE. However, as usually, when a new version of Ubuntu is out. I will give it’s default desktop a try. Here is my note of how do I set it up.

1.1) enable Canonical’s ‘partner’ repository:

sudo nano /etc/apt/sources.list

1.2) uncomment the following lines ( Line 50 & 51 ):

deb http://archive.canonical.com/ubuntu raring partner
deb-src http://archive.canonical.com/ubuntu raring partner

2) For ATI users, you may want to use the latest driver:

sudo add-apt-repository ppa:xorg-edgers/ppa

3) To get the latest WineHQ:

sudo add-apt-repository ppa:ubuntu-wine/ppa

4) Then, update data base:

sudo apt-get update

5) (Optional) To find out what you have installed:

dpkg --get-selections | sed 's:install$::' > InstalledPackages.txt

6) Then, remove what I do not want:

sudo apt-get purge account-plugin-* aisleriot brltty deja-dup* example-content firefox-globalmenu firefox-gnome-support friendly-recovery gnome-contacts gnome-mahjongg gnome-mines gnome-orca gnome-sudoku gnomine ibus-pinyin* libreoffice* nano onboard rhythmbox* shotwell speech-dispatcher thunderbird* toshset totem unity-webapps-common

7) Then, upgrade system:

sudo apt-get dist-upgrade

8) Then, install what I want:

sudo apt-get install audacious cheese chromium-browser easytag fglrx-amdcccle gqview ibus-table-cangjie5 ibus-table-cantonhk ibus-table-quick5 ttf-mscorefonts-installer smplayer synaptic unrar vim virtualbox virtualbox-guest-additions-iso vlc winetricks

9.1) To remove “AMD Testing use only” watermark, copy the following text to a new text file,

#!/bin/sh
DRIVER=/usr/lib/fglrx/xorg/modules/drivers/fglrx_drv.so
echo "Come on AMD!"
for token in $DRIVER; do
    echo "Removing AMD logo from "$token
    for x in $(objdump -d $DRIVER|awk '/call/&&/EnableLogo/{print "\\x"$2"\\x"$3"\\x"$4"\\x"$5"\\x"$6}'); do
        sed -i "s/$x/\x90\x90\x90\x90\x90/g" $DRIVER
    done
done
echo "Reboot computer to finish"

9.2) Then, run your saved file:

sudo bash filename
 
Leave a comment

Posted by on March 12, 2013 in Linux, Ubuntu

 

Tags: , , , , , , ,

xubuntu 13.04 personal post-installation mini guide

I feel sorry for myself. I am not that old, but I just cannot get used to Unity3D. So the best thing I can do to stay with Ubuntu is to use xubuntu, the XFCE version of Ubuntu.

xubuntu is almost perfect, howerver, as usual, customization is always required.

As you may notice, this guide is quite similar to my 12.10 guide, I think the best thing to end this series of mini guide will be a rolling release version of xubuntu.

1.1) enable Canonical’s ‘partner’ repository:

sudo nano /etc/apt/sources.list

1.2) uncomment the following lines:

deb http://archive.canonical.com/ubuntu quantal partner
deb-src http://archive.canonical.com/ubuntu quantal partner

2) For ATI users, you may want to use the latest driver:

sudo add-apt-repository ppa:xorg-edgers/ppa

3) To get the latest WineHQ:

sudo add-apt-repository ppa:ubuntu-wine/ppa

4) Then, update data base:

sudo apt-get update

5) (Optional) To find out what you have installed:

dpkg --get-selections | sed 's:install$::' > InstalledPackages.txt

6) Then, remove what I do not want:

sudo apt-get purge abiword* catfish firefox-globalmenu firefox-gnome-support gigolo gmusicbrowser gnome-mines gnome-sudoku gnumeric* ibus-pinyin* nano parole pidgin* plymouth-theme* ristretto speech-dispatcher thunderbird* xchat* xfce4-mailwatch-plugin xfce4-notes* xfce4-quicklauncher-plugin xfce4-screenshooter xfce4-systemload-plugin xfce4-verve-plugin

7) Then, upgrade system:

sudo apt-get dist-upgrade

8) Then, install what I want:

sudo apt-get install audacious brasero chromium-browser easytag fglrx-amdcccle gqview guvcview ibus-table-cangjie5 ibus-table-cantonhk ibus-table-quick5 ttf-mscorefonts-installer skype smplayer synaptic unrar vim virtualbox virtualbox-guest-additions-iso vlc winetricks

9.1) To remove “AMD Testing use only” watermark, copy the following text to a new text file,

#!/bin/sh
DRIVER=/usr/lib/fglrx/xorg/modules/drivers/fglrx_drv.so
echo "Come on AMD!"
for token in $DRIVER; do
    echo "Removing AMD logo from "$token
    for x in $(objdump -d $DRIVER|awk '/call/&&/EnableLogo/{print "\\x"$2"\\x"$3"\\x"$4"\\x"$5"\\x"$6}'); do
        sed -i "s/$x/\x90\x90\x90\x90\x90/g" $DRIVER
    done
done
echo "Reboot computer to finish"

9.2) Then, run your saved file:

sudo bash filename
 
Leave a comment

Posted by on March 11, 2013 in Linux, Ubuntu, xUbuntu

 

Tags: , , , , , , ,

WineHQ and file association

I need to read .pdb files. Which the MS Windows have better software to do so than Linux.

The software I am using is a portable one, which mean no installation required. Which turns out it is quite a problem for me. Since no installation, then no file association in any graphical file manager interface.

The solution is to create a mini shell script file to start the application from wine, before associate the .pdb file to the script

#one of the WineHQ script
LANG=zh_TW.UTF-8 wine "/your_path/your_program.exe" "Z:"$@

The most important bit is “Z:”$@. When you double click a file in a file manager, the file manager will pass the file address to your script as argument and replace $@.
Then your script will combine Z: with the file address to tell WineHQ the file is locate is locate in Z drive, which Z drive is the / (root directory). Otherwise WineHQ will try to open the file in C: drive, which is not there at all.

Next your just need to associate the .pdb to your script file, so when you double click all .pdb file, the script will open it correctly.

 
Leave a comment

Posted by on December 28, 2012 in Linux, Wine

 

Tags: , , , , , ,

WineHQ for Microsoft Office 2010

Edited on 6th May 2013.

This is an update for How-to install Microsoft Office 2010 via WineHQ in Ubuntu 12.10 and Ubuntu 13.04. The Wine I am using is 1.4.1. Hope this may help.

1) Install winetricks and Microsoft Core fonts:

sudo apt-get install winetricks msttcorefonts wine-mono

2) If you have installed WineHQ before, you should remove all config files from your home directory:

rm -rf ~/.wine
rm -rf ~/.cache/winetricks
rm -rf ~/.config/menus/applications-merged/*
rm -rf ~/.local/share/applications/*
rm -rf ~/.local/share/mime/application/*

3) For 64-bit system, you have to tell WineHQ to run in 32-bit mode:

export WINEARCH=win32
wineboot --update

4) In order for Office to work properly, you have to install some software from winetricks

4.1) Open Winetricks
4.2) Select "Select the default wineprefix", then click OK.
4.3) Select "Install a Windows DLL or component", then click OK.
4.4) Select and install the following components:
4.4.1) dotnet20(*)
4.4.2) msxml6
4.4.3) vcrun2005
(*) : Since this file could not download automatically,
please follow the prompt, download the file,
copy it to the designated directory,
re-run winetricks and install this file again.

5) Install Microsoft Office 2010

6) (Optional) Install some Windows fonts from Winetricks

6.1) Open Winetricks
6.2) Select "Select the default wineprefix", then click OK.
6.3) Select "Install a font", then click OK.
6.4) Select and install the following font:
6.4.1) corefonts

7) Then, we need to specified which DLL file to use, Winehq provided one or Windows native.

7.1) Open Winetricks
7.2) Select "Select the default wineprefix", then click OK.
7.3) Select "Run winecfg", then click OK.
7.4) Go to the "Library" tab:
7.4.1) Edit "msxml6" to "Native (Windows)"
7.4.2) Edit "msvcp90" to "Native (Windows)"
7.4.3) Add "gdiplus", then edit it to "Native (Windows)"
7.4.4) Add "riched20", then edit it to "Native (windows)"
7.4.5) Now can click "Apply" then "OK"

8) Apparently, after Wine1.2rc, whenever you open a MS Office file, it will create a .lnk file in your working directory, which will not be removed after you close the file. The .lnk file was supposed to be created for the “Recently opened file” menu, however, there is a little bug. WineHQ forgot to create a folder to store all those .lnk

mkdir ~/.wine/drive_c/users/"your_user_name"/Recent

9) WineHQ will change some file association to “Wine Explorer” and “Wine Notepad”, to stop this:

cd ~/.local/share/applications/

rm -rf wine-extension-dic.desktop wine-extension-exc.desktop wine-extension-gif.desktop wine-extension-ini.desktop wine-extension-jfif.desktop wine-extension-jpe.desktop wine-extension-png.desktop wine-extension-txt.desktop wine-extension-url.desktop wine-extension-wri.desktop

10) For IBus to work correctly in Office, please edit the following text files:

Go to :
~/.local/share/applications/wine/Programs/Microsoft Office

Edit the following files:
Microsoft Office Access 2010.desktop
Microsoft Office Excel 2010.desktop
Microsoft Office Groove 2010.desktop
Microsoft Office InfoPath 2010.desktop
Microsoft Office OneNote 2010.desktop
Microsoft Office Outlook 2010.desktop
Microsoft Office PowerPoint 2010.desktop
Microsoft Office Publisher 2010.desktop
Microsoft Office Word 2010.desktop
----------------------------------------
Change:
Exec=env WINEPREFIX=..............
To:
Exec=env LANG=zh_TW.UTF-8 WIEPREFIX=............
----------------------------------------
Depend on your language, you may use:
zh_TW.UTF-8 zh_CN.UTF-8 ja_JP.UTF-8 ko_KR.UTF-8
 
Leave a comment

Posted by on December 11, 2012 in IBus, Linux, Wine

 

Tags: , , , , , , , , ,

WineHQ and IBus for Microsoft Office 2007

Edited on 6th February 2013.

I am using Xubuntu 12.10 with WineHQ 1.4.1,

1) Install winetricks and Microsoft Core fonts:

sudo apt-get install winetricks msttcorefonts

2) If you have installed WineHQ before, you should remove all config files from your home directory:

rm -rf ~/.wine
rm -rf ~/.cache/winetricks
rm -rf ~/.config/menus/applications-merged/*
rm -rf ~/.local/share/applications/*
rm -rf ~/.local/share/mime/application/*

3) For 64-bit system, you have to tell WineHQ to run in 32-bit mode:

export WINEARCH=win32
wineboot --update

4) Install Microsoft Office 2007

5) Then, we need to specified which DLL file to use, Winehq provided one or Windows native.

5.1) Open Winetricks 
5.2) Select "Select the default wineprefix", then click OK. 
5.3) Select "Run winecfg", then click OK. 
5.4) Go to the "Library" tab: 
5.4.1) Add "riched20", then edit it to "Native (windows)" 
5.4.2) Now can click "Apply" then "OK"

6) (Optional) Install some Windows fonts from Winetricks

6.1) Open Winetricks
6.2) Select "Select the default wineprefix", then click OK.
6.3) Select "Install a font", then click OK.
6.4) Select and install the following font:
6.4.1) corefonts

7) Apparently, after Wine1.2rc, whenever you open a MS Office file, it will create a .lnk file in your working directory, which will not be removed after you close the file. The .lnk file was supposed to be created for the “Recently opened file” menu, however, there is a little bug. WineHQ forgot to create a folder to store all those .lnk

mkdir ~/.wine/drive_c/users/"your_user_name"/Recent

8) WineHQ will change some file association to “Wine Explorer” and “Wine Notepad”, to stop this:

cd ~/.local/share/applications/

rm -rf wine-extension-dic.desktop wine-extension-exc.desktop wine-extension-gif.desktop wine-extension-ini.desktop wine-extension-jfif.desktop wine-extension-jpe.desktop wine-extension-png.desktop wine-extension-txt.desktop wine-extension-url.desktop wine-extension-wri.desktop

9) For IBus to work correctly in Office, please edit the following text files:

Go to :
~/.local/share/applications/wine/Programs/Microsoft Office

Microsoft Office Access 2007.desktop
Microsoft Office Excel 2007.desktop
Microsoft Office Groove 2007.desktop
Microsoft Office InfoPath 2007.desktop
Microsoft Office OneNote 2007.desktop
Microsoft Office Outlook 2007.desktop
Microsoft Office PowerPoint 2007.desktop
Microsoft Office Publisher 2007.desktop
Microsoft Office Word 2007.desktop
----------------------------------------
Change:
Exec=env WINEPREFIX=..............
To:
Exec=env LANG=zh_TW.UTF-8 WIEPREFIX=............
----------------------------------------
Depend on your language, you may use:
zh_TW.UTF-8 zh_CN.UTF-8 ja_JP.UTF-8 ko_KR.UTF-8
 
Leave a comment

Posted by on July 31, 2012 in IBus, Linux, Wine

 

Tags: , , , , , , ,

 
%d bloggers like this: