RSS

Category Archives: Ubuntu

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: , , , , , , , , ,

XFCE with multiple sound cards

If you are using a laptop like me, you may have ran into a problem of the hotkey on your keyboard is not controlling the sound card that you are using when you have multiple sound cards.

It is because XFCE has chosen the HDMI output as my default sound card, so whatever I press, it is just changing the HDMI output but not my headphone/speaker output.

1a) Open “Volume Control” -> “Output device”
1b) Set “Built-in Audio Analogue Stereo” as fallback by clicking the green tick.
1c) Remember the sound card name that you want to set as default, it will be useful in the next step.
screenshot-xfce_default_sound_card-01

2a) Go to “Settings Manager” -> “Settings Editor” -> “xfce4-mixer”
2b) Now, recall the name of your sound card. eg. mine is “”Built-in Audio Analogue Sereo”
2c) Then add “Playback” in front, add “PulseAudioMixer” at the back, and remove all space and ‘-‘ in between, so the result will be PlaybackBuiltinAudioAnalogueStereoPulseAudioMixer
2d) Put this string and replace the original one in “active-card”
2e) Logout and login, then you are done.
screenshot-xfce_default_sound_card-02

 
Leave a comment

Posted by on March 18, 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: , , , , , , ,

XFCE desktop icon text

I love light weight desktop environment. Fluxbox was used to be top of my list when I only have desktop computers. Then I give up, to make it simple, it is because Fluxbox is not laptop and Chinese friendly. And I don’t want to spend too much time to find out how to get it fix.

So the next best in my list is XFCE at the moment. Firstly, light weight, although nothing close to Fluxbox. And most things are work out of the box.

The only slight annoying thing is: “Desktop icon text would not display in full”.
Default settings in XFCE only display the text in a single line and only the fist few characters.
To fix it first create/edit the file:

vim ~/.gtkrc-2.0

Then add the following lines:

style "xfdesktop-icon-view" {
   # 0 = show line in multiple lines
   # 1 = show line only in one line
   XfdesktopIconView::ellipsize-icon-labels = 0

   XfdesktopIconVIew::cell-spacing = 6
   XfdesktopIconView::cell-padding = 6

   # Ratio between icon and text area size,
   # In this example the text area is 5 time wider then the icon image
   XfdesktopIconView::cell-text-width-proportion = 5
}
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"

I could not confirm, but I think all those value above have to be integer in order to work.
Of course you can try thing out.

And to load the new settings, you don’t have to log out and log in again, just run this command

killall xfdesktop
 
Leave a comment

Posted by on January 8, 2013 in Linux, Ubuntu, xUbuntu

 

Tags: , , , ,

xubuntu 12.10 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.

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) Then, update data base:

sudo apt-get update

3) Then, remove what I do not want:

sudo apt-get purge abiword* catfish* firefox-globalmenu firefox-gnome-support nano pidgin* thunderbird* gigolo* gucharmap* gmusicbrowser* plymouth-theme-* ristretto* xchat* apport* brltty* gnome-games-data gnome-sudoku gnomine ibus-pinyin* onboard parole xfce4-notes* xfce-dict* xfce4-mailwatch*

4) Then, update system:

sudo apt-get dist-upgrade

5) Then, install what I want:

sudo apt-get install fglrx-updates vim virtualbox virtualbox-guest-additions-iso vlc smplayer gqview winetricks msttcorefonts ibus-table-cangjie5 ibus-table-cantonhk ibus-table-quick5 synaptic
 
Leave a comment

Posted by on December 21, 2012 in IBus, Linux, Ubuntu, Uncategorized, Wine, xUbuntu

 

Tags: , , , ,

ibus Traditional Chinese input in English interface

This is a problem back dated since Ubuntu 10.10 when they started to use ibus as the default Chinese input software. The problem is when you start typing, ibus will give out Simplified Chinese character. As I born in Hong Kong, I learn and use Traditional Chinese and I hate and condemn Simplified Chinese. It is a very long story and I am not going to explain here at the moment.

To solve the problem you only need to edit one config file:
1) use your favorite text editor and open /usr/share/ibus-table/engine/table.py
2) Go to line 123, and you should read “# if IME declare as Chinese IME
3) Go to next line, change 0 to 1 if you want ibus to show Traditional Chinese only; or change 0 to 3 if you want traditional first then simplified
4) Save and restart ibus

 
Leave a comment

Posted by on April 1, 2012 in Linux, Ubuntu

 

Tags: , , , ,

 
%d bloggers like this: