Latest LQ Deal: Linux Power User Bundle
Go Back > Blogs
User Name



display chinese properly

Posted 08-17-2012 at 05:01 AM by ted_chou12

Hi, I just made the machine be able to display chinese properly. First, choose a font from your windows directory, usually mingliu.ttc or kaiu.ttf. Since the chinese character db is huge, these files are usually a few mb in size. Copy a desired copy to /usr/share/fonts/ttf and run fc-cache -f -v thru terminal should be able to do it. Ofcourse a reboot is always a recommended option. In addition, since chinese db is the largest, if you chose a ttf/ttc file over ~20mb, jap and kor can usually display...
Attached Files
File Type: txt quickbrown.txt (4.3 KB, 4 views)
Posted in Uncategorized
Views 536 Comments 0 ted_chou12 is offline
Rating: 2 votes, 5.00 average.

In place upgrade from RHEL 5.x to RHEL 6.x

Posted 08-17-2012 at 03:25 AM by iamswift
Updated 10-11-2012 at 02:02 AM by iamswift

Inplace upgrade from RHEL 5.x to RHEL 6.x

Recently I contacted RH for in-place upgrade from RHEL 5 to RHEL 6 and got the standard reply from RH that this kind of upgrade is not supported.
I pressed for any document that gives steps carried out when the “upgradeall” option is selected while upgrading from RHEL 5 to RHEL 6 but got the same reply, saying in-place upgrade is not supported across major releases.
Below is the list of steps I followed to get in-place upgrade...
LQ Newbie
Posted in Technical
Views 28746 Comments 0 iamswift is offline

automount and umount script

Posted 08-16-2012 at 01:30 PM by ted_chou12

This is a sciprt that automounts and unmounts usb devices, because I realized my system does not consistently automount drives, and sometimes gets mounted incorreclty:
#mounts start with f
tbmounted=(f g h i j k l m n o p q r s t u v w x y z)

for each in "/dev/sd"* ; do
	for alphabet in ${tbmounted[@]} ; do
		if [ "$mname" == "sd$alphabet" ] ; then
				mounts=$(mount | grep
Posted in Uncategorized
Views 591 Comments 0 ted_chou12 is offline

convert asf to mp3

Posted 08-15-2012 at 02:46 PM by ted_chou12

this script converts asf to mp3:
# constant variables:

if [ "$1" == "-help" ] || [ "$1" == "-h" ] || [ "$1" == "help" ] ; then
	echo "Usage: asf2mp3 <input file> [output file]
-help           		-h	help for this help file
-version			-V	check the version of Asf2Mp3
-required			-r	check for required installs
-verbose			-v	output details (verbose)
Posted in Uncategorized
Views 1317 Comments 0 ted_chou12 is offline

cifs not able to mount by hostname only by ip (solved)

Posted 08-15-2012 at 05:50 AM by ted_chou12

Hi! I recently found when I mount by hostname using cifs, it cannot resolve the hostname, but only IP, like the following:
root:# mount -t cifs "//NAS/main" "/mnt/share/NAS"
mount error: could not resolve address for NAS: Unknown error
root:# mount -t cifs "//" "/mnt/share/NAS"
Password for vl70@//
I did a search and found this post:
Posted in Uncategorized
Views 11133 Comments 3 ted_chou12 is offline


All times are GMT -5. The time now is 08:20 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration