imagemagick convert: japanese text broken in freebsd

2008-12-13 Thread cuongvt

Hi,
I know that IM support japanese text.
On Freebsd 7.0 with latest imagemagick built from port (6.4.7) and
msgothic.ttc copied from windows partition,
imagick extension of PHP installed by pecl.
in terminal (zsh) I type:

convert origin.jpg -fill white -font
/usr/X11R6/lib/X11/fonts/TrueType/msgothic.ttc -pointsize 125 -stroke blue
-strokewidth 1 -draw "text 20,130 'がくせい'" straight.jpg

IM did not informed any error, but the result is japanese text broken
(question marks).
However, if I ran PHp script (see below), japanese displayed in image fine.
What is the reason and how can I solve that?
thansk and regards,

Below is PHP script:
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
http://www.w3.org/1999/xhtml"; lang="ja" xml:lang="ja"
dir="ltr">

sample373


setFont("/usr/X11R6/lib/X11/fonts/TrueType/msgothic.ttc");
/* フォントサイズ設定 */
$idraw->setFontSize(32);
/* gravity設定 */
$idraw->setGravity(Imagick::GRAVITY_CENTER);
$im->annotateImage($idraw, 0, 0, 0, "日本語");
$im->writeImage('sample373a.jpg');
/* $idraw->clear(); 2008/09/30追記:destroyと同様にClearDrawingWandを呼ぶので必要なし */
$idraw->destroy();
/* $im->clear(); 2008/09/30追記:destroyと同様にClearMagicWandを呼ぶので必要なし */
$im->destroy();
?>




-- 
View this message in context: 
http://www.nabble.com/imagemagick-convert%3A-japanese-text-broken-in-freebsd-tp20997257p20997257.html
Sent from the freebsd-questions mailing list archive at Nabble.com.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: netbeans 6.0.1 not run

2008-05-11 Thread cuongvt



Luke Dean wrote:
> 
> 
> 
> On Sun, 11 May 2008, cuongvt wrote:
> 
>>
>> Hi all!
>>
>> full explanation:
>> FreeBSD 7.0-RELEASE (i386)
>> uid=1001(mak) gid=0(wheel) groups=0(wheel),69(network)
>>
>> installed:
>> jdk-1.6.0.3p4_1
>> diablo-jdk-1.5.0.07.01_10
>> javavmwrapper-2.3.2
>>
>> I'm using zsh so I set JAVA_HOME and PATH of java into in my .zshrc.
>> java -version:
>> java 16 jdku3p1 etc etc
>>
>> Then I insralled netbeans from ports, firstly it warned:
>> JAVA_HOME should not be defined.
>>
>> So i removed JAVA_HOME and PATH of java into in my .zshrc, reboot and
>> reinstalled netbeans.
>> Installation went fine.
>>
>> When I try run netbeans:
>> [EMAIL PROTECTED]:~>netbeans
>> XIO: fatal IO error 0 (Unknown error: 0) on X server ":0.0"
>> after 0 requests (0 known processed) with 0 events remaining.
> 
> This is exactly the same error message I get whenever I attempt to run any 
> graphical java application on FreeBSD 7 using the diablo port.  Between 
> the diablo binaries and my Nvidia drivers, I'm relying on so many 
> different compatibility layers and hacks that it's just too much.
> 
> Installing jdk-1.6 and forcing my java applications to point to 
> /usr/local/jdk1.6.0 instead of /usr/local/diablo* fixed the problem for 
> me.
> 
> So, I suspect that netbeans is still looking at the diablo java.
> Maybe there's a configuration option somewhere?
> If netbeans copies the java engine or contains its own, then I bet it's 
> using diablo because that's the dependency that the port lists.
> I've not used netbeans on FreeBSD, so I don't know.
> 
>>
>> Any ideas?
>> P/S:All pkgs were installed via ports*
>> -- 
>> View this message in context:
>> http://www.nabble.com/netbeans-6.0.1-not-run-tp17179367p17179367.html
>> Sent from the freebsd-questions mailing list archive at Nabble.com.
> Yeah. Netbeans looks for diablo 1.5 p7 as it's dependency.
> Thanks for info. Any idea?
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"
> 
> 

-- 
View this message in context: 
http://www.nabble.com/netbeans-6.0.1-not-run-tp17179367p17179967.html
Sent from the freebsd-questions mailing list archive at Nabble.com.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


netbeans 6.0.1 not run

2008-05-11 Thread cuongvt

Hi all!

full explanation:
FreeBSD 7.0-RELEASE (i386)
uid=1001(mak) gid=0(wheel) groups=0(wheel),69(network)

installed:
jdk-1.6.0.3p4_1
diablo-jdk-1.5.0.07.01_10
javavmwrapper-2.3.2

I'm using zsh so I set JAVA_HOME and PATH of java into in my .zshrc.
java -version:
java 16 jdku3p1 etc etc

Then I insralled netbeans from ports, firstly it warned:
JAVA_HOME should not be defined.

So i removed JAVA_HOME and PATH of java into in my .zshrc, reboot and
reinstalled netbeans.
Installation went fine.

When I try run netbeans:
[EMAIL PROTECTED]:~>netbeans
XIO: fatal IO error 0 (Unknown error: 0) on X server ":0.0"
after 0 requests (0 known processed) with 0 events remaining.

Any ideas?
P/S:All pkgs were installed via ports*
-- 
View this message in context: 
http://www.nabble.com/netbeans-6.0.1-not-run-tp17179367p17179367.html
Sent from the freebsd-questions mailing list archive at Nabble.com.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


do I need to install xorg?

2008-04-25 Thread cuongvt

I bought nvidia geforce 8500GT graphic card
and I want to install fresh Freebsd 7.0 (with X, gnome)
So do I need to portinstall x11/xorg with x11/nvidia-driver?
Or I only need to portinstall x11/nvidia-driver only in order to startx?
Thanks and regards
-- 
View this message in context: 
http://www.nabble.com/do-I-need-to-install-xorg--tp16908580p16908580.html
Sent from the freebsd-questions mailing list archive at Nabble.com.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


relay through gmail

2008-02-28 Thread cuongvt

I have 1 dynamic IP address at dyndns.com (xxx.dyndns.com)
and 1 gmail account ([EMAIL PROTECTED])
And I successfully setup my postfix so that when
I send mail to outside, my postfix will relay through [EMAIL PROTECTED]
When recipients received my mails and open them, the mail address
in "from" of theses mails is [EMAIL PROTECTED], not
[EMAIL PROTECTED]

So I want to change so that when recipients received my mails and
open them, the mail address in "from" of theses mails is
[EMAIL PROTECTED], not [EMAIL PROTECTED]
Is there a way to do that?
Regard,
--
Below is my config related to above content:
relayhost = smtp.gmail.com
smtp_use_tls = yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_CAfile = /etc/postfix/ssl/ThawtePremiumServerCA.pem 
-- 
View this message in context: 
http://www.nabble.com/relay-through-gmail-tp15731983p15731983.html
Sent from the freebsd-questions mailing list archive at Nabble.com.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Freebsd http mirrors

2007-12-03 Thread cuongvt

Could anyone know the http mirror of Freebsd ISO file?
for some reason, ftp is prohibitied in my area.
Thanks you
-- 
View this message in context: 
http://www.nabble.com/Freebsd-http-mirrors-tf4940867.html#a14143773
Sent from the freebsd-questions mailing list archive at Nabble.com.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Download freebsd sourcecode for building in machine not have internet connection

2007-12-03 Thread cuongvt



sarek wrote:
> 
> to allow for csup/cvsup'ing the source code.
> 
Yes, it is solution for freebsd on usb stick.
But you know, They are hosting internal LAN for file sharing, so I think usb
solution is not suitable ;)
ANy idea?

Tnx in advance
-- 
View this message in context: 
http://www.nabble.com/Download-freebsd-sourcecode-for-building-in-machine-not-have-internet-connection-tf4934921.html#a14126100
Sent from the freebsd-questions mailing list archive at Nabble.com.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Download freebsd sourcecode for building in machine not have internet connection

2007-12-03 Thread cuongvt



sarek wrote:
> 
> Oops forgot to mention an other solution would be to install FreeBSD
> on the USB device then do a cvsup on it... do a search for "FreeBSD on
> a Stick" on google and there is a step a guide to do just this.
> 
Sorry for my unclear English, I mean after download it to USB drive, they
can comback home,
copy sourcecode from usb drive to /usr/src then make buildword on their PC.
So how to download the sourcecode manually not using cvsup ? :)
 
-- 
View this message in context: 
http://www.nabble.com/Download-freebsd-sourcecode-for-building-in-machine-not-have-internet-connection-tf4934921.html#a14125830
Sent from the freebsd-questions mailing list archive at Nabble.com.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Download freebsd sourcecode for building in machine not have internet connection

2007-12-03 Thread cuongvt

I know that we can use cvsup to download all Freebsd source code
then make buildworld.
But is there a way to download it manually?
I means, I have friends that have PCs but not have interenet connecttions,
so they may come to internet cafe, download source code to portable USB
drive
then make build world on their PC.
Thanks you.
-- 
View this message in context: 
http://www.nabble.com/Download-freebsd-sourcecode-for-building-in-machine-not-have-internet-connection-tf4934921.html#a14125429
Sent from the freebsd-questions mailing list archive at Nabble.com.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


setting up slave server with Zoneedit need help

2007-12-01 Thread cuongvt

I have a `internal' network visible only internally. Let say: hanhnhu.local.
This is my master for the local zone. 
I registered 'vuhanhnhu.com' domain with my registrar and pointed it to
zoneedit nameservers: ns3.zoneedit.com and 
ns9.zoneedit.com. I'm using NAT. 
So how can I set up slave with zoneedit for "vuhanhnhu.com" zone?
Thanks you very much.
below is my files related to local internal DNS:
File named.conf:
options {
directory   "/etc/namedb";
pid-file"/var/run/named/pid";
dump-file   "/var/dump/named_dump.db";
statistics-file "/var/stats/named.stats";
listen-on   { 192.168.0.1; 127.0.0.1; };
forwarders {
210.245.0.131;
};
};

zone "hanhnhu.local" in {
typemaster;
file"grv.zone";
};

zone "0.168.192.in-addr.arpa" in {
typemaster;
file"grv.rev";
};

zone "localhost" in {
typemaster;
file"local.zone";
};

zone "0.0.127.in-addr.arpa" in {
typemaster;
file"local.rev";
};

zone "." {
typehint;
file"named.root";
};
--
File grv.zone
$TTL3600
@   IN  SOA hanhnhu.local.  root.hanhnhu.local. (
212201  ; Selial
10800   ; Refresh 3 hours
3600; Retry 1 hour
360 ; Expire 1000 hours
86400   ; Minimum 24 hours
)

IN  NS  hanhnhu.local.
IN  A   192.168.0.1

; hosts
localhost   IN  A   127.0.0.1
windows1IN  A   192.168.0.253
windows2IN  A   192.168.0.254

; aliases
www IN  CNAME   hanhnhu.local.
ftp IN  CNAME   hanhnhu.local.
mailIN  CNAME   hanhnhu.local.
-
File grv.rev:
$TTL3600
@   IN  SOA hanhnhu.local.  root.hanhnhu.local. (
212201  ; Selial
10800   ; Refresh 3 hours
3600; Retry 1 hour
360 ; Expire 1000 hours
86400   ; Minimum 24 hours
)
IN  NS  hanhnhu.local.
; hosts
1   IN  PTR hanhnhu.local.
253 IN  PTR windows1.hanhnhu.local.  
254 IN  PTR windows2.hanhnhu.local.

-- 
View this message in context: 
http://www.nabble.com/setting-up-slave-server-with-Zoneedit-need-help-tf4930698.html#a14112921
Sent from the freebsd-questions mailing list archive at Nabble.com.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: I went to 8.0 current accidently :(

2007-11-17 Thread cuongvt



cuongvt wrote:
> 
> After got below news from OSnews.com yesterday (I was late),
> I inserted RELENG_7 to my /usr/share/examples/cvsup/stable-supfile
> as below:
> 
> *default host=CHANGE_THIS.FreeBSD.org
> *default base=/var/db
> *default prefix=/usr
> *default release=cvs tag=RELENG_7
> *default delete use-rel-suffix
> *default compress
> src-all
> Then I exec:
> cvsup -g -L 2 -h cvsup.jp.freebsd.org
> /usr/share/examples/cvsup/stable-supfile
> 
> Then I -j10 buildworld, build kernel, install kernel, then as single
> mode I installworld.
> After that, when I uname -a, it output is:
> FreeBSD hanhnhu.local 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Fri
> Nov 16 19:48:47 ICT 2007
> Where I was wrong?
> Tnx in advanced.
> 
> 
> 
> "The 7.0-BETA2 builds have completed and are on many of the FreeBSD mirror
> sites. If you want to update an existing machine using cvsup use RELENG_7
> as the branch tag. Instructions on using FreeBSD Update to perform a
> binary upgrade from FreeBSD 6.x to 7.0-BETA2 will be provided via the
> freebsd-stable list when available."
> 
Never mind. It's my careless. I created other supfile with . in it and cvsup
with it, not with stable sup file, so it went to 8.0 current.
Sorry
Btw currently it is not beta2, it's beta3 
FreeBSD hanhnhu.local 7.0-BETA3 FreeBSD 7.0-BETA3 #0: Sat Nov 17 18:19:47
ICT 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/TRUONGMINHHANH i386

-- 
View this message in context: 
http://www.nabble.com/I-went-to-8.0-current-accidently-%3A%28-tf4821358.html#a13808264
Sent from the freebsd-questions mailing list archive at Nabble.com.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: I went to 8.0 current accidently :(

2007-11-16 Thread cuongvt



Philip M. Gollucci-9 wrote:
> 
> Josh Paetzel wrote:
>> Regardless, there's no real supported downgrade procedure.  It's probably 
>> possible, but you are in wizard territory.
> Its possible, not easy, even with mismatched kernels.
> make -k
> 
> repeatedly seems to install enough stuff the first time that the second
> time its really close.
> 
> Don't try it in production.
> 
> 
> -- 
> 
> Philip M. Gollucci ([EMAIL PROTECTED])
> o:703.549.2050x206
> Senior System Admin - Riderway, Inc.
> http://riderway.com / http://ridecharge.com
> 1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB  B89E 1324 9B4F EC88 A0BF
> 
> Work like you don't need the money,
> love like you'll never get hurt,
> and dance like nobody's watching.
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"
> 
> 
I think no, here is mine:
BATCH=yes
X11BASE=/usr/local
CPUTYPE=pentium4
CFLAGS= -O2 -pipe
NO_PROFILE= true # Avoid compiling profiled libraries
CFLAGS+=-DNO_MALLOC_EXTRAS
# added by use.perl 2007-09-17 06:37:02
PERL_VER=5.8.8
PERL_VERSION=5.8.8

Anyway, I just want to know the reason why so that I can avoid
from next time, I think it's difficult to down to 7.0 once you went to 8.0.
Could anyone help me?
Thanks
-- 
View this message in context: 
http://www.nabble.com/I-went-to-8.0-current-accidently-%3A%28-tf4821358.html#a13803821
Sent from the freebsd-questions mailing list archive at Nabble.com.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


I went to 8.0 current accidently :(

2007-11-16 Thread cuongvt

After got below news from OSnews.com yesterday (I was late),
I inserted RELENG_7 to my /usr/share/examples/cvsup/stable-supfile
as below:

*default host=CHANGE_THIS.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=RELENG_7
*default delete use-rel-suffix
*default compress
src-all
Then I exec:
cvsup -g -L 2 -h cvsup.jp.freebsd.org
/usr/share/examples/cvsup/stable-supfile

Then I -j10 buildworld, build kernel, install kernel, then as single
mode I installworld.
After that, when I uname -a, it output is:
FreeBSD hanhnhu.local 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Fri
Nov 16 19:48:47 ICT 2007
Where I was wrong?
Tnx in advanced.



"The 7.0-BETA2 builds have completed and are on many of the FreeBSD mirror
sites. If you want to update an existing machine using cvsup use RELENG_7 as
the branch tag. Instructions on using FreeBSD Update to perform a binary
upgrade from FreeBSD 6.x to 7.0-BETA2 will be provided via the
freebsd-stable list when available."
-- 
View this message in context: 
http://www.nabble.com/I-went-to-8.0-current-accidently-%3A%28-tf4821358.html#a13793437
Sent from the freebsd-questions mailing list archive at Nabble.com.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"