<?xml version="1.0" encoding="utf-8"?>
<feed version="0.3" xmlns="http://purl.org/atom/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xml:lang="en">
<title>Blog of Ginn Chen</title>
<link rel="alternate" type="text/html" href="http://www.chenqi.org/blog/" />
<modified>2008-04-16T09:12:11Z</modified>
<tagline></tagline>
<id>tag:www.chenqi.org,2012:/blog/1</id>
<generator url="http://www.movabletype.org/" version="4.1">Movable Type</generator>
<copyright>Copyright (c) 2008, ginn</copyright>

<entry>
<title>Playback local H.264 file by using flashplayer plugin</title>
<link rel="alternate" type="text/html" href="http://www.chenqi.org/blog/archives/2008/04/playback_local.html" />
<modified>2008-04-16T09:12:11Z</modified>
<issued>2008-04-16T09:12:02Z</issued>
<id>tag:www.chenqi.org,2008:/blog/1.158</id>
<created>2008-04-16T09:12:02Z</created>
<summary type="text/plain">Flashplayer 9 Update 3 has H.264 support...</summary>
<author>
<name>ginn</name>
<url>http://www.chenqi.org</url>
<email>ginn@chenqi.org</email>
</author>

<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.chenqi.org/blog/">
<![CDATA[<p>Flashplayer 9 Update 3 has H.264 support.</p>
<p>Here's a simple example to play local H.264 media file by using flashplayer plugin in your favorite browser.<br />
<a href="http://www.chenqi.org/blog/files/flashmediaplayer.tar.gz">Download</a> (43KB)<br />
Usage: Untar it and open flashmediaplayer.html in a browser window.</p>
<p>I used <a href="http://www.jeroenwijering.com/?item=JW_FLV_Media_Player">FLV Media Player</a>.<br />
Because of the security restriction of Flash, I can't use Javascript to interact the playback. I believe you can work out a better solution.</p>
<p>The <a href="http://www.jeroenwijering.com/?item=JW_FLV_Media_Player">FLV Media Player</a> is licensed under a <a href="http://creativecommons.org/licenses/by-nc-sa/2.0/">Creative Commons License</a>.<br />
It allows you to use, modify and redistribute the script for free for noncommercial purposes.</p>
]]>

</content>
</entry>

<entry>
<title>Upgrading to Movable Type 4.1</title>
<link rel="alternate" type="text/html" href="http://www.chenqi.org/blog/archives/2008/03/upgrading_to_mo.html" />
<modified>2008-03-27T07:43:59Z</modified>
<issued>2008-03-27T07:41:47Z</issued>
<id>tag:www.chenqi.org,2008:/blog/1.157</id>
<created>2008-03-27T07:41:47Z</created>
<summary type="text/plain">Sorry for long time silence. I&apos;m too laz...</summary>
<author>
<name>ginn</name>
<url>http://www.chenqi.org</url>
<email>ginn@chenqi.org</email>
</author>

<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.chenqi.org/blog/">
<![CDATA[<p>Sorry for long time silence.<br />
I'm too lazy to manage my site.</p>

<p>This is a test post for the new system.<br />
Good luck!</p>]]>

</content>
</entry>

<entry>
<title>Don&apos;t save chat history in my Gmail account</title>
<link rel="alternate" type="text/html" href="http://www.chenqi.org/blog/archives/2007/11/dont_save_chat.html" />
<modified>2007-11-12T11:36:36Z</modified>
<issued>2007-11-12T11:34:57Z</issued>
<id>tag:www.chenqi.org,2007:/blog/1.156</id>
<created>2007-11-12T11:34:57Z</created>
<summary type="text/plain">I&apos;ve no idea Gmail saves all my chatting...</summary>
<author>
<name>ginn</name>
<url>http://www.chenqi.org</url>
<email>ginn@chenqi.org</email>
</author>

<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.chenqi.org/blog/">
<![CDATA[<p>I've no idea Gmail saves all my chatting log with Gtalk until I tried to search something in my Gmail.</p>
<p>I was shocked, since actually I don't use Gtalk client but Adium, and I can't remember if there's a checkbox or notice somewhere before I signed up gtalk. Actually I thought gtalk service is tightly bundled with gmail service.</p>
<p>I don't want to keep the log, so I "googled" a solution. The solution said, there's a "Chat history:" setting in "Chat" tab of "Gmail Settings". Well, I spent 10 mins to find such tab, but I didn't see it because I was using Safari 2.</p>
<p>Poor me.</p>
]]>

</content>
</entry>

<entry>
<title>Google Notifier dies on Mac OS X 10.5 (Leopard)</title>
<link rel="alternate" type="text/html" href="http://www.chenqi.org/blog/archives/2007/11/google_notifier.html" />
<modified>2007-11-12T09:37:09Z</modified>
<issued>2007-11-12T09:35:46Z</issued>
<id>tag:www.chenqi.org,2007:/blog/1.155</id>
<created>2007-11-12T09:35:46Z</created>
<summary type="text/plain">Google Notifier will crash after a few t...</summary>
<author>
<name>ginn</name>
<url>http://www.chenqi.org</url>
<email>ginn@chenqi.org</email>
</author>

<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.chenqi.org/blog/">
<![CDATA[<p>Google Notifier will crash after a few times of checking mails if you have proxy setting in system preferences.</p>
<p>An interesting bug. But I've no idea why Google still couldn't give a fix, Leopard is already out more than 2 weeks.</p>
<p>See also:</p>
<p><a href="http://groups.google.com/group/Gmail-Problem-solving/browse_thread/thread/9bf2438144e4ec51">http://groups.google.com/group/Gmail-Problem-solving/browse_thread/thread/9bf2438144e4ec51</a><br /></p>
]]>

</content>
</entry>

<entry>
<title>Porting code from GCC to Sun Studio</title>
<link rel="alternate" type="text/html" href="http://www.chenqi.org/blog/archives/2007/08/porting_code_fr.html" />
<modified>2007-08-16T00:49:23Z</modified>
<issued>2007-08-15T10:09:14Z</issued>
<id>tag:www.chenqi.org,2007:/blog/1.154</id>
<created>2007-08-15T10:09:14Z</created>
<summary type="text/plain">Some problems you may not know. 1) Avoid...</summary>
<author>
<name>ginn</name>
<url>http://www.chenqi.org</url>
<email>ginn@chenqi.org</email>
</author>
<dc:subject>Solaris</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.chenqi.org/blog/">
<![CDATA[<p>Some problems you may not know.</p>

<p>1) Avoid using multi-character character constant<br />
Code sample:<br />
<pre><br />
#include <stdio.h><br />
int main()<br />
{<br />
  const int a = 'ABCD';<br />
  printf("%x\n", a);<br />
  return 0;<br />
}<br />
</pre></p>

<p>You will get different result on Solaris x86 and SPARC if it is compiled with Sun Studio.<br />
It's an endian issue.<br />
On x86, result is "44434241"<br />
On SPARC, result is "41424344"</p>

<p>If it is compiled with gcc, result is "41424344" for both platform.</p>

<p>gcc gives you a warning for this code, but Sun Studio doesn't.<br />
Interesting.</p>

<p>You can use 'A' &lt;&lt; 24 | 'B' &lt;&lt; 16 | 'C' &lt;&lt; 8 | 'D'</p>

<p>2) Avoid doing *x++ = foo(*x);<br />
Code sample:<br />
<pre><br />
#include <stdio.h><br />
int main()<br />
{<br />
  char x[11] = "ABCDEFGHIJ";<br />
  char *ptr = x;<br />
  int i;<br />
  for (i = 0; i &lt; 9; i++) {<br />
    *(ptr++) = *ptr + 1;<br />
  }<br />
  printf("%s\n", x);<br />
  return 0;<br />
}<br />
</pre></p>

<p>If it is compiled with gcc, g++, or cc (Sun Studio C compiler), the result is<br />
BCDEFGHIJJ<br />
But if it is compiled with CC (Sun Studio compiler), the result is<br />
CDEFGHIJKJ</p>

<p>All code tested with Sun Studio 11 on OpenSolaris.</p>]]>

</content>
</entry>

<entry>
<title>Set a breakpoint at GNOME warning information</title>
<link rel="alternate" type="text/html" href="http://www.chenqi.org/blog/archives/2007/08/set_a_breakpoin.html" />
<modified>2007-08-15T10:10:52Z</modified>
<issued>2007-08-03T10:27:32Z</issued>
<id>tag:www.chenqi.org,2007:/blog/1.153</id>
<created>2007-08-03T10:27:32Z</created>
<summary type="text/plain">Just want to log here in case I forgot t...</summary>
<author>
<name>ginn</name>
<url>http://www.chenqi.org</url>
<email>ginn@chenqi.org</email>
</author>
<dc:subject>Technique</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.chenqi.org/blog/">
<![CDATA[<p>Just want to log here in case I forgot the function name again.<br />
The function is g_logv().</p>]]>

</content>
</entry>

<entry>
<title>HOWTO: Backup your Mac OS X to nfs</title>
<link rel="alternate" type="text/html" href="http://www.chenqi.org/blog/archives/2007/06/howto_backup_yo.html" />
<modified>2007-11-02T14:23:07Z</modified>
<issued>2007-06-14T08:29:41Z</issued>
<id>tag:www.chenqi.org,2007:/blog/1.150</id>
<created>2007-06-14T08:29:41Z</created>
<summary type="text/plain"> First, you need to set up a nfs sharing...</summary>
<author>
<name>ginn</name>
<url>http://www.chenqi.org</url>
<email>ginn@chenqi.org</email>
</author>
<dc:subject>Mac</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.chenqi.org/blog/">
<![CDATA[<p>
First, you need to set up a nfs sharing.
<br />I'm using a Solaris server.
<br />Here're my steps.
<br />Create a user with uid 501 (it's the default uid for first user on Mac OS X).
<br />Create /export/home/mac, chmod 777 /export/home/mac
<br />You can figure out how to give a proper mod/owner for /export/home/mac.
<br />Since I'm restricting nfs access from certain machine, I don't care.
</p><pre><span style="color:#996633;">su
sharemgr create mygroup
sharemgr add-share -s /export/home/mac/ -r MAC mygroup
sharemgr set -P nfs -S sys -p root=macbookpro -p rw=macbookpro mygroup
sharemgr show
svcadm enable svc:/network/nfs/server:default</span><span style="color:#996633;">
</span></pre><p>
macbookpro is hostname of the Mac OS X client.
</p><p>
Then, try to mount it on Mac OS X
<br />create /private/mnt/
</p><pre><span style="color:#996633;">sudo mount_nfs -o -P your_Solaris_machine:/export/home/mac /private/mnt/</span><span style="color:#996633;">
</span></pre><p>
create MBP_BACKUP directory in /private/mnt for a test.
</p><p>
Now, use rsync to backup your Mac OS X.
<br />I assuming you're using Mac OS X 10.4, your rsync supports -E.
</p><p>
Create backup_excludes.txt to exclude some files.
<br />Here's my version: (may not need to be that long)
</p><pre><span style="color:#996633;">automount/*
proc/*
dev/*
.Spotlight-V100/*
.Spotlight-V100/.*
.Trash/*
.Trashes/*/*
.hotfiles.btree
.journal
.journal_info_block
.vol
Desktop DB
Desktop DF
Library/Caches
System/Library/Caches
System/Library/Extensions.kextcache
Temporary Items
Users/*/Library/Caches/*
Volumes/*
cores/*
mach
mach.sym
private/Network/*
private/_Network_/*
private/automount/*
private/var/automount/*
private/var/db/BootCache.playlist
private/var/db/NetworkInterfaces.xml
private/var/db/volinfo.database
private/var/run
private/var/tmp/*
private/tmp/*
private/var/run/*
private/var/spool/postfix/*
private/var/vm/*
private/mnt/*</span>
</pre><p>
Here we go!
</p><pre><span style="color:#996633;">sudo rsync -E -a -x -S --delete --progress --exclude-from=backup_excludes.txt / /private/mnt/MBP_BACKUP/</span><span style="color:#996633;">
</span></pre><p>
You may want add "-u" for update.
<br />Check rsync manpage for details.
<br />It took my several hours for the first time sync.
</p><p>
Good luck!
<br /><br />BTW: How to sync back?
<br /><br />Update: It crashed to 4 Languages (system hang, kernel panic) when I tried to re-sync my disk. Might be a bug of rsync or nfs? I don't know how to solve it yet. Don't use -E and don't sync large files (>2G) seems fine.
</p>]]>

</content>
</entry>

<entry>
<title>OpenSuse 10.2 with Sun w1100z</title>
<link rel="alternate" type="text/html" href="http://www.chenqi.org/blog/archives/2007/04/opensuse_102_wi.html" />
<modified>2007-04-20T09:11:53Z</modified>
<issued>2007-04-20T09:09:55Z</issued>
<id>tag:www.chenqi.org,2007:/blog/1.145</id>
<created>2007-04-20T09:09:55Z</created>
<summary type="text/plain">A typical issue with OpenSuse 10.2 on Su...</summary>
<author>
<name>ginn</name>
<url>http://www.chenqi.org</url>
<email>ginn@chenqi.org</email>
</author>
<dc:subject>Technique</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.chenqi.org/blog/">
<![CDATA[<p>A typical issue with OpenSuse 10.2 on Sun w1100z is you can't use your USB keyboard and mouse after upgrading linux-kernel.<br />
Add "acpi=off" to your boot option can solve it.</p>

<p>If you want to use nvidia driver instead open source nv. Try NVIDIA-Linux-x86-1.0-7184.</p>

<p>Another thing is if you want to use Firefox accessibility feature, you need to export LD_LIBRARY_PATH=/opt/gnome/lib or /opt/gnome/lib/gtk-2.0/modules<br />
I've no idea why OpenSuse don't install gnome to /usr</p>]]>

</content>
</entry>

<entry>
<title>Install Ubuntu 7.04 on Parallels Desktop</title>
<link rel="alternate" type="text/html" href="http://www.chenqi.org/blog/archives/2007/04/install_ubuntu.html" />
<modified>2007-04-20T09:11:46Z</modified>
<issued>2007-04-20T09:09:45Z</issued>
<id>tag:www.chenqi.org,2007:/blog/1.144</id>
<created>2007-04-20T09:09:45Z</created>
<summary type="text/plain">There&apos;s a discuss about Ubuntu 7.04 Live...</summary>
<author>
<name>ginn</name>
<url>http://www.chenqi.org</url>
<email>ginn@chenqi.org</email>
</author>
<dc:subject>Mac</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.chenqi.org/blog/">
<![CDATA[<p>There's a discuss about Ubuntu 7.04 Live CD won't start in Parallels Desktop.<br />
At http://forums.parallels.com/thread10308.html</p>

<p>The simple workaround works for me.<br />
Create a Guest OS with type Solaris, and change it to Linux after installation.</p>

<p>Another issue I have with Ubuntu 7.04 and PD is it can't shutdown gracefully.<br />
I'm not a great Ubuntu fun now, I can live with it.</p>

<p>Maybe I should try VMWare Fusion. Hmm...</p>]]>

</content>
</entry>

<entry>
<title>Debug ppc program with gdb on Macbook Pro</title>
<link rel="alternate" type="text/html" href="http://www.chenqi.org/blog/archives/2007/03/debug_ppc_progr.html" />
<modified>2007-03-11T10:19:54Z</modified>
<issued>2007-03-06T05:30:55Z</issued>
<id>tag:www.chenqi.org,2007:/blog/1.137</id>
<created>2007-03-06T05:30:55Z</created>
<summary type="text/plain">First, open a Terminal, and export OAH_G...</summary>
<author>
<name>ginn</name>
<url>http://www.chenqi.org</url>
<email>ginn@chenqi.org</email>
</author>
<dc:subject>Mac</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.chenqi.org/blog/">
<![CDATA[<p>First, open a Terminal, and export OAH_GDB=YES (for bash)<br />
Start your ppc program, if it's universal binary, use /usr/libexec/oah/translate &lt;program_name_with_path&gt;<br />
Now you will see "Starting Unix GDB Session\n Listening"</p>

<p>Then you can start gdb with "gdb -oah" in another Terminal.<br />
And attach the process of your program.</p>

<p>Can't it be simpler?</p>

<p>More information at<br />
http://developer.apple.com/documentation/MacOSX/Conceptual/universal_binary/universal_binary_exec_a/chapter_950_section_8.html#//apple_ref/doc/uid/TP40002217-CH210-235927<br />
i.e.<br />
ADC Home &gt; Reference Library &gt; Guides &gt; Mac OS X &gt; Universal Binary Programming Guidelines, Second Edition &gt; Appendix A: Rosetta &gt; Troubleshooting</p>

<p>It's hard to find, isn't it?</p>]]>

</content>
</entry>

<entry>
<title>Tips for debugging opera plugins</title>
<link rel="alternate" type="text/html" href="http://www.chenqi.org/blog/archives/2007/03/tips_for_debugg.html" />
<modified>2007-03-11T10:19:04Z</modified>
<issued>2007-03-02T05:43:44Z</issued>
<id>tag:www.chenqi.org,2007:/blog/1.138</id>
<created>2007-03-02T05:43:44Z</created>
<summary type="text/plain">export OPERA_PLUGINWRAPPER_DEBUG=10 expo...</summary>
<author>
<name>ginn</name>
<url>http://www.chenqi.org</url>
<email>ginn@chenqi.org</email>
</author>
<dc:subject>Technique</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.chenqi.org/blog/">
<![CDATA[<p>export OPERA_PLUGINWRAPPER_DEBUG=10<br />
export OPERA_KEEP_BLOCKED_PLUGIN=1</p>

<p>opera -debugplugin</p>

<p>It gives me some helps, but still not as good as debugging plugins with Firefox.<br />
OPERA_PLUGINWRAPPER_DEBUG really give a lot of information. That's fine.</p>]]>

</content>
</entry>

<entry>
<title>Tips of QTerm on Mac OS X</title>
<link rel="alternate" type="text/html" href="http://www.chenqi.org/blog/archives/2007/01/tips_of_qterm_o.html" />
<modified>2007-02-04T16:36:59Z</modified>
<issued>2007-01-19T05:38:43Z</issued>
<id>tag:www.chenqi.org,2007:/blog/1.132</id>
<created>2007-01-19T05:38:43Z</created>
<summary type="text/plain"> 1) Browse link in Safari Change the HTT...</summary>
<author>
<name>ginn</name>
<url>http://www.chenqi.org</url>
<email>ginn@chenqi.org</email>
</author>
<dc:subject>Mac</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.chenqi.org/blog/">
<![CDATA[<p>
1) Browse link in Safari
<br />Change the HTTP Browser in Option-&gt;Preference to "open".
<br />It's tricky, isn't it.
</p><p>
2) Show IP location
<br />Download QQWry.dat from somewhere and put it to $HOME/Library/Qterm
<br />Then you can move mouse on IP, and get the physical location.
</p>]]>

</content>
</entry>

<entry>
<title>Installing Solaris (snv_53) on MacBook Pro under Parallels</title>
<link rel="alternate" type="text/html" href="http://www.chenqi.org/blog/archives/2006/11/installing_sola.html" />
<modified>2007-04-16T03:27:41Z</modified>
<issued>2006-11-24T06:30:56Z</issued>
<id>tag:www.chenqi.org,2006:/blog/1.129</id>
<created>2006-11-24T06:30:56Z</created>
<summary type="text/plain">First, I&apos;m using Parallels build 1970 on...</summary>
<author>
<name>ginn</name>
<url>http://www.chenqi.org</url>
<email>ginn@chenqi.org</email>
</author>
<dc:subject>Mac</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.chenqi.org/blog/">
<![CDATA[<p>First, I'm using Parallels build 1970 on my new MacBook Pro (Core 2 Duo 2.33GHz).<br />
Here're some tips about the installation. (Most of them are from http://www.inf.furb.br/~javito/?p=39 , thanks!)<br />
1) You need to add atapi-cd-dma-enabled=0 to grub kernel command.<br />
For installation DVD, press 'e' to edit it, make it looks like<br />
kernel … -B install_media=cdrom,atapi-cd-dma-enabled=0<br />
Press enter and then b to boot.</p>

<p>After installation, you also need to edit the grub command, add<br />
-B atapi-cd-dma-enabled=0<br />
After that, you should edit /etc/boot/menu.lst for default and safemode boot menu ASAP.<br />
It's really hard to spell atapi-cd-dma-enabled correctly, and it won't warn you if you misspelled, you just can't boot and get a lot of errors.</p>

<p>2) Use text mode install, option 4. Otherwise, you may have trouble to click some where, the screen is 1600x1200, too big for MacBook Pro's 1440x900.</p>

<p>3) To fix the screen resolution, you can run /usr/X11/bin/xorgconfig<br />
Select PS2 mouse, 101 keyboard, answer 'n' for additional XKB options, choose 'Non-interlaced SVGA 1024x768', '50-90 vertical sync rate', answer 'y' for you'd like to look at the card database, choose 'Generic VESA', choose '4096K' for video memory, choose '4' for the modes are OK, choose '16bits', say 'y' to write to /etc/X11/xorg.conf<br />
Now press ctrl+alt+delete to restart X.<br />
You should get a reasonable resolution now.<br />
If you like native 1440x900, you can hack /etc/X11/xorg.conf by yourself.<br />
These numbers work for me.<br />
Moniter section:<br />
HorizSync 31.5 - 100<br />
VertRefresh 59.0 - 75.0<br />
Modeline "1440x900_60.0" 106.47 1440 1520 1672 1904 900 901 904 932 -HSync +Vsync</p>

<p>Screen section:<br />
DefaultDepth 24<br />
Subsection "Display"<br />
  Depth  24<br />
  Modes  "1440x900"<br />
  ViewPort 0 0<br />
EndSubsection</p>

<p>UPDATE: You can just rename /etc/X11/.xorg.conf to /etc/X11/xorg.conf and add these lines, you don't need to run xorgconfig, and middle button and scroll ball of your mouse will be fine.</p>

<p>4) Install network adapter driver<br />
In Parallels menu, Devices-CD/DVD-ROM1-Connect Image, choose /Library/Parallels/Tools/vmtools.iso<br />
If nautilus ask you audio or data, choose data.<br />
Run network.sh on the CD somewhere.<br />
Choose dhcp and reboot.</p>

<p>5) Install sound driver<br />
Go to http://www.tools.de/solaris/audio/<br />
Download the x86 driver.<br />
pkgadd -d audio-1.8-i86pc.pkg<br />
Choose the framework first, and run pkgadd again to install audioi810.<br />
Reboot, everything should be fine now.</p>

<p></p>

<p>UPDATE: You may not need to add atapi-cd-dma-enabled=0 for newer Solaris and newer Parallels Desktop.</p>

<p><br />
<!-- technorati tags start --><p style="text-align:right;font-size:10px;">Technorati Tags: <a href="http://www.technorati.com/tag/MacBookPro" rel="tag">MacBookPro</a>, <a href="http://www.technorati.com/tag/OpenSolaris" rel="tag">OpenSolaris</a>, <a href="http://www.technorati.com/tag/Parallels" rel="tag">Parallels</a></p><!-- technorati tags end --></p>]]>

</content>
</entry>

<entry>
<title>Some tips of making Ferrari 4000 laptop work with Ubuntu</title>
<link rel="alternate" type="text/html" href="http://www.chenqi.org/blog/archives/2006/10/some_tips_of_ma_1.html" />
<modified>2006-10-23T22:05:20Z</modified>
<issued>2006-10-23T22:05:13Z</issued>
<id>tag:www.chenqi.org,2006:/blog/1.128</id>
<created>2006-10-23T22:05:13Z</created>
<summary type="text/plain"> 1) Wireless card Ferrari 4000 uses BCM4...</summary>
<author>
<name>ginn</name>
<url>http://www.chenqi.org</url>
<email>ginn@chenqi.org</email>
</author>
<dc:subject>Technique</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.chenqi.org/blog/">
<![CDATA[<p>
1) Wireless card
<br />Ferrari 4000 uses BCM4318 AirForce card.
<br />You can follow the guideline <a href="http://ubuntuforums.org/showthread.php?t=190177">here</a>.
</p><p>
Here're my steps.
<br />a) <span style="color:#ff7f00;">sudo vi /etc/modprobe.d/blacklist</span>
<br />add a line:
<br /><span style="color:#996633;">blacklist bcm43xx</span>
<br />then reboot
<br />b) install ndiswrapper-utils from apt
<br />If you're using Ubuntu 6.10 (Edgy), my experience is you have to install ndiswrapper-utils-1.8 instead.
<br />c) download the wireless driver for Windows from acer
<br />Here's <a href="ftp://ftp.support.acer-euro.com/notebook/ferrari_4000/driver/80211.zip">the link</a> for 32Bit. (I didn't try 64Bit Ubuntu on this laptop)
<br />Unzip it somewhere find bcmw15.inf, go to the directory and,
<br /><span style="color:#ff7f00;">sudo ndiswrapper -i bcmwl5.inf
<br />sudo ndiswrapper -m
<br />sudo modprobe ndiswrapper</span>
<br />d) Install some helper application to set wireless connection
<br />My favorite is wifi-radar, someone suggests network-manager-gnome.
<br />Or you can just use System &gt; Administration &gt; Networking, it should work.
</p><p>
z) Sometimes wireless connection is very weird, the red light blinks but cannot connect to any station, my solution is to reset the driver.
<br /><span style="color:#ff7f00;">sudo modprobe -r ndiswrapper
<br />sudo modprobe -i ndiswrapper</span>
<br />You can also use iwlist, iwconfig, etc. to diagnose your problem.
</p><p>
2) Install Ubuntu 6.10 on Ferrari 4000
<br />I suggest you choose safe graphic mode while booting live cd.
<br />If your screen is black during installation, use Ctrl+Alt+F1 switch to tty1, (bless you can see the cursor, if not use safe graphic mode and try again),
<br /><span style="color:#ff7f00;">sudo vi /etc/X11/xorg.conf</span>
<br />Add the "MonitorLayout" line under
</p><pre style="color:#996633;"> Section "Device"
        Identifier      "ATI Technologies, Inc. Radeon Mobility X700 (RV410 PCIE)"
</pre><pre style="color:#996633;">        Option          "MonitorLayout"         "LVDS, AUTO"
</pre><p>
Press Ctrl+Alt+Backspace to restart Xorg.
</p><p>
3) If you see corrupt screen for tty after installation, add vga=791 option in /boot/grub/menu.lst.
</p><p>
4) How to disable tapping of touchpad?
<br />I'm a Mac fan, I used to click the button not tapping the touchpad.
<br />To do this, you need to set "Synapatics Touchpad".
<br /><span style="color:#ff7f00;">sudo vi /etc/X11/xorg.conf</span>
<br />Add <span style="color:#996633;">Load    "synaptics"</span> after the "Load" lines.
<br />Remove line <span style="color:#996633;">Option          "CorePointer"</span> from InputDevice Section.
<br />Add another InputDevice Section,
</p><pre style="color:#996633;"> Section "InputDevice"
       Identifier      "Synaptics Touchpad"
       Driver          "synaptics"
       Option          "Device"                "/dev/psaux"
       Option          "Protocol"              "PS/2"
       Option          "HorizScrollDelta"      "0"
       Option          "SHMConfig"             "on"
 EndSection
</pre><p>
Change <span style="color:#996633;">InputDevice     "Configured Mouse"</span>
<br />to <span style="color:#996633;">InputDevice     "Configured Mouse" "SendCoreEvents</span>"
<br />add a line after, <span style="color:#996633;">InputDevice     "Synaptics Touchpad" "CorePointer"</span>
</p><p>
Now you're install gsynaptic to help to make settings for your touchpad.  
</p><p>
5) If you have to trouble with grub
<br />For ubuntu, boot the live cd, mount your linux partition somewhere, and
<br /><span style="color:#ff7f00;">sudo grub-install --root-directory=&lt;your linux root&gt; /dev/hda</span>
</p><p>
For Solaris, boot installation DVD and enter the single user shell, your Solaris is recognized and mounted read-write on /a
<br /><span style="color:#ff7f00;">cd /a/boot
<br />installgrub -m stage1 stage2 /dev/rdsk/c1d0s0</span>
<br />It will ask you whether you want to install grub to MBA or just to Solaris partition.
</p>]]>

</content>
</entry>

<entry>
<title>HOWTO: Build Qterm on Mac OS X 10.4.7 (ppc)</title>
<link rel="alternate" type="text/html" href="http://www.chenqi.org/blog/archives/2006/08/howto_build_qte.html" />
<modified>2006-08-07T09:00:04Z</modified>
<issued>2006-08-07T06:57:59Z</issued>
<id>tag:www.chenqi.org,2006:/blog/1.119</id>
<created>2006-08-07T06:57:59Z</created>
<summary type="text/plain"> QTerm is a BBS client in Linux, written...</summary>
<author>
<name>ginn</name>
<url>http://www.chenqi.org</url>
<email>ginn@chenqi.org</email>
</author>
<dc:subject>Mac</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.chenqi.org/blog/">
<![CDATA[<p>
QTerm is a BBS client in Linux, written in Qt.
<br />Here's the steps to build it on Mac OS X 10.4.7.
</p><p>
1) Download QT source code from http://www.trolltech.com/download/qt/mac.html
<br />I used the tar ball for their ftp, <a href="ftp://ftp.trolltech.com/qt/source/qt-mac-free-3.3.6.tar.bz2">qt-mac-free-3.3.6.tar.bz2</a>.
</p><p>
2) In terminal, untar the file.
<br />tar jxvf qt-mac-free-3.3.6.tar.bz2
</p><p>
3) Follow the steps of the INSTALL file in qt source.
<br />REMEMBER to use "./configure -thread", it may takes several hours to build.
</p><p>
4) Create symbolic links
<br />ln -sf $QTDIR/lib/libqt-mt.3.dylib /usr/lib
<br />ln -sf $QTDIR/lib/libqui.1.dylib /usr/lib
</p><p>
5) Download qterm source code from http://prdownloads.sourceforge.net/qterm/qterm-0.4.0.tar.bz2
<br />Untar, and patch the qterm subdirectory by <a href="http://www.chenqi.org/chinese/blog/patches/patch">this file</a>.
<br />The command is,
<br />patch -p0 &lt; patch
<br />Overwrite the qterm.icns file with <a href="http://www.chenqi.org/chinese/blog/patches/qterm.icns">this one</a>.
</p><p>
6) Go to the qterm subdirectory.
<br />qmake qterm.prj
<br />make
<br />make install
</p><p>
7) Try qterm.app/Contents/MacOS/qterm
<br />If it works, you can move to directory to /Application.
<br />If the directory doesn't have the qterm icon for preview, you select it and press cmd+i, select the small icon at top left, press delete. It should work now.
</p><p>
It should also works on Intel based Mac OS X, but I didn't verify it. 
<br />Let me know if you succeed or have any trouble.
</p>



<!-- technorati tags start --><p style="text-align:right;font-size:10px;">Technorati Tags: <a href="http://www.technorati.com/tag/mac" rel="tag">mac</a>, <a href="http://www.technorati.com/tag/qterm" rel="tag">qterm</a></p><!-- technorati tags end -->]]>

</content>
</entry>

</feed>