2014年5月31日星期六

Build VirtualBox Guest Additions for BLFS

Note: VirtualBox (4.3.18 or before) guest additions needs the "/etc/rc.d/init.d/function" script file and this file is not exist in LFS 7.6 so you have to get it from LFS 7.5.

1.   Make sure “/etc/lfs-release” file exits (refer to LFS document Section 9.1)
2.   Make sure the Linux kernel source codes exist.
3.   Make sure VBoxBoxLinuxAdditions.run is executable (use “chmod” command to change its permission).
4.   Copy the current kernel configuration file to the Linux source code folder and run “make menuconfig” to load the configuration file and then build the kernel. (No need to copy the kernel to the “/boot” folder)
5.   Set the global variable “KERN_DIR” to the Linux kernel source path: export KERN_DIR="Linux kernel source path"
6.   Execute “VBoxBoxLinuxAdditions.run” to install all drivers and software. If the build is successful, you can execute “lsmod” command and find vboxguest, vboxsf and vboxvideo from the output.
7.   We modify the section “Device” of the “/etc/X11/xorg.conf” to load VirtualBox video driver:
     Section “Device”
          Identifier “VirtualBox”
          Driver “vboxvideo”
    EndSection
8.      Now, we can execute “startx” to start the X Window.

2014年5月25日星期日

Install iBus for BLFS 7.5

dconf, dbus-python, iso-codes should be installed

notify-python
-------------
patch -Np1 -i ../notify-python-0.1.1-libnotify-0.7-1.patch
./configure --prefix=/usr
make
make install

iBus 1.5.5
----------
**********
If you have installed iBus before, remember to clear the iBus cache in the home folder:
rm ~/.cache/ibus/bus/registry
**********
./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib
make
make install
gtk-update-icon-cache /usr/share/icons/hicolor
gtk-query-immodules-2.0 --update-cache
gtk-query-immodules-3.0 --update-cache

Pyzy 0.1.0
----------
./configure --prefix=/usr
make
make install

iBus-pinyin 1.5.0
-----------------
./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib
make
make install

iBus-table 1.5.0
----------------
./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib
make
make install

iBus-table-chinese
------------------
**********
Make sure Python supports SQLite.
Otherwise, please install SQLite firstly and then rebuild Python again.
**********
cmake
make
make install

Auto start IBus for X Windows
----------------------------------
Create a file “/etc/xdg/autostart/iBus-autostart.desktop”:
[Desktop Entry]
Encoding=UTF-8
Version=0.9.4
Type=Application
Name=iBus
Comment=iBus
Exec=ibus-daemon –x –d
OnlyShowIn=XFCE;GNOME;
StartupNotify=false
Terminal=false
Hidden=false

2014年5月24日星期六

Build On-screen keyboard "onboard" for BLFS 7.5

On-screen keyboard "onboard" requires Python 3. Also, we have to install the following packages:

setuptool
---------
python3 setup.py install

python-distutils-extra
-----------------------
python3 setup.py install

hunspell
--------
./configure --prefix=/usr --disable-static --sysconfdir=/etc
make
make install

onboard
-------
./setyp.py install
glib-compile-schemas /usr/share/glib-2.0/schemas
gtk-update-icon-cache /usr/share/icons/hicolor