วันศุกร์ที่ 10 กันยายน พ.ศ. 2553

Gentoo prebuilt package installation

With gentoo, you can customize every packages you want because gentoo give that choices to you. Emerge, package manager, will built package for you from source code. However, compiling package in gentoo can be very time-consuming task, Especially, when you have more gentoo system. I have found option of emerge that can build package and you can use this prebuilt package to other system.

(1) build package
#quickpkg mysql
- This will build package from files on your system. If the package you wanna built are on the system already.


#emerge -b mysql
-the -b(--buildpkg) option tell emerge to do additional task when installing package to the system.

*In this case(mysql), the prebuilt package will be available in /usr/portage/packages/dev-db/ directory.

(2) use prebuilt package
Place the prebuilt package in appropriate directory, in this case : /usr/portage/packages/dev-db/
#emerge --usepkgonly mysql

For more information please consult the man page :
#man emerge
#man quickpkg
#man make.conf

วันอังคารที่ 7 กันยายน พ.ศ. 2553

Install windows font in linux(ubuntu)

Linux user cannot avoid living with windows user. That make linux users to adjust ourselves to read file from windows including fonts they using.

(1) using font package
#sudo apt-get install msttcorefonts

#sudo fc-cache -fv


(2) copying font files from windows
copy *.ttf font to /usr/share/fonts/truetype/thai

#fc-cache -fv

reference
1. ms-font package installation [here]