LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Blogs > ted_chou12
User Name
Password

Notices

Old

display chinese properly

Posted 08-17-2012 at 04: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)
Member
Posted in Uncategorized
Views 382 Comments 0 ted_chou12 is offline
Old

automount and umount script

Posted 08-16-2012 at 12: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:
Code:
#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
	mname=${each##*/}
	
	for alphabet in ${tbmounted[@]} ; do
		if [ "$mname" == "sd$alphabet" ] ; then
				mounts=$(mount | grep
...
Member
Posted in Uncategorized
Views 466 Comments 0 ted_chou12 is offline
Old

convert asf to mp3

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

this script converts asf to mp3:
Code:
# constant variables:
tmp="/tmp/tmp.wav"

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)
...
Member
Posted in Uncategorized
Views 787 Comments 0 ted_chou12 is offline
Old

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

Posted 08-15-2012 at 04: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:
Code:
root:# mount -t cifs "//NAS/main" "/mnt/share/NAS"
mount error: could not resolve address for NAS: Unknown error
vector://home/ted
root:# mount -t cifs "//192.168.1.101/main" "/mnt/share/NAS"
Password for vl70@//192.168.1.101/main:
I did a search and found this post:
http://info300.net/FedoraFirewall/Hosts.php...
Member
Posted in Uncategorized
Views 6431 Comments 3 ted_chou12 is offline
Old

Let me post something unrelated...Cause Im MAD

Posted 08-13-2012 at 02:53 PM by ted_chou12

Fuck Ebay!

I sold an item on Ebay two months ago, the buyer didn't liked it, and ebay authorized a refund without my permission. But there is a $7.20 charge on my credit card for the item sold fee. Now ebay ask money from me.

Two weeks ago, I decided to trust Ebay and decided to issue a reimbursement of $100 dollars in TOTAL. The ebay agent told me I could get my $7.20 back thru some kind of transaction procedure but NOT directly. I trusted him cause he promised me....
Member
Posted in Uncategorized
Views 6194 Comments 3 ted_chou12 is offline

  



All times are GMT -5. The time now is 12:35 AM.

Main Menu
Advertisement

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