tag:blogger.com,1999:blog-79788673386565909402024-03-06T02:39:35.235+08:00鳥 托邦記事只是Linux的小筆記progfloydhttp://www.blogger.com/profile/14553230908198063151noreply@blogger.comBlogger25125tag:blogger.com,1999:blog-7978867338656590940.post-28838960915163295482010-07-05T23:05:00.005+08:002010-12-03T01:07:10.649+08:00Apache Mod_rewrite 開啟方式<body ONDRAGSTART="window.event.returnValue=false" onSelectStart="event.returnValue=false" ONCONTEXTMENU="window.event.returnValue=false" ><br /><p>修改Apache 設定檔</p><p>將底下模組的#拿掉<br /><span style="color:#ff0000;">LoadModule rewrite_module modules/mod_rewrite.so<br />AddModule mod_rewrite.c</span><br /></p><p>修改.htaccess 設定值,將其設定為 All<br /># AllowOverride controls what directives may be placed in .htaccess files.<br /># It can be "All", "None", or any combination of the keywords:<br /># Options FileInfo AuthConfig Limit<br />#<br /><span style="color:#ff0000;">AllowOverride All</span><br /><br /></p>progfloydhttp://www.blogger.com/profile/14553230908198063151noreply@blogger.com0tag:blogger.com,1999:blog-7978867338656590940.post-91956056422664987092009-06-02T22:09:00.002+08:002009-06-02T22:17:42.575+08:00PHP 表單文字(textarea)內容斷行使用 nl2br() 函式<br /><br /><a href="http://tw.php.net/nl2br">參考手冊</a>progfloydhttp://www.blogger.com/profile/14553230908198063151noreply@blogger.com0tag:blogger.com,1999:blog-7978867338656590940.post-91722655613340672222009-04-23T18:50:00.001+08:002009-04-23T18:52:17.475+08:00網頁重新整理語法a href="javascript:window.location.reload()"progfloydhttp://www.blogger.com/profile/14553230908198063151noreply@blogger.com0tag:blogger.com,1999:blog-7978867338656590940.post-63150978448076558192009-04-13T21:30:00.004+08:002009-04-13T21:37:27.603+08:00CentOS 第三方套件庫 - RPMforge<span style="font-weight: bold; color: rgb(51, 102, 255);font-size:180%;" ><a href="http://wiki.centos.org/AdditionalResources/Repositories/RPMForge?action=show&redirect=Repositories%2FRPMForge">*參考說明</a></span><br /><br /><h2 id="head-b06dd43af4eb366c28879a551701b1b5e4aefccd">1. CentOS 5</h2> <span class="anchor" id="line-11"></span><p class="line862">You should make sure that you have <a href="http://wiki.centos.org/PackageManagement/Yum/Priorities">Priorities</a> installed. <span class="anchor" id="line-12"></span><span class="anchor" id="line-13"></span></p><p class="line867"> </p><h3 id="head-54c2bfab2ebfdb90aa800698abb69102098d04a8">1.1. Priorities</h3> <span class="anchor" id="line-14"></span><p class="line874">yum-priorities is available in the CentOS 5 repositories: <span class="anchor" id="line-15"></span><span class="anchor" id="line-16"></span></p><p class="line867"><span class="anchor" id="line-17"></span></p><pre style="color: rgb(255, 0, 0);">yum install yum-priorities</pre><span class="anchor" id="line-18"></span><span class="anchor" id="line-19"></span><p class="line874">Plugins are enabled in CentOS 5 by default. <span class="anchor" id="line-20"></span><span class="anchor" id="line-21"></span></p><p class="line862">Make sure that yum-priorities is enabled by editing the <strong>/etc/yum/pluginconf.d/priorities.conf</strong> file, and ensuring that it contains the following lines: <span class="anchor" id="line-22"></span><span class="anchor" id="line-23"></span></p><p class="line867"><span class="anchor" id="line-24"></span></p><pre><span style="color: rgb(255, 102, 102);">[main]</span><br /><span style="color: rgb(255, 102, 102);" class="anchor" id="line-25"></span><span style="color: rgb(255, 102, 102);">enabled=1</span><br /><span class="anchor" id="line-26"></span></pre><span class="anchor" id="line-27"></span><span class="anchor" id="line-28"></span><p class="line862">Edit the <strong>.repo files in /etc/yum.repos.d/</strong> and set up priorities by adding the line: <span class="anchor" id="line-29"></span><span class="anchor" id="line-30"></span></p><p class="line867"><span class="anchor" id="line-31"></span></p><pre><span style="color: rgb(255, 0, 0);">priority=N</span><br /><span class="anchor" id="line-32"></span></pre><span class="anchor" id="line-33"></span><span class="anchor" id="line-34"></span><p class="line874">to a repository entry, where N is an integer number from 1 to 99. <span class="anchor" id="line-35"></span><span class="anchor" id="line-36"></span></p><p class="line874">The recommended settings are: <span class="anchor" id="line-37"></span></p><pre><span style="color: rgb(102, 204, 204);">[base], [addons], [updates], [extras] ... priority=1 </span><br /><span style="color: rgb(102, 204, 204);" class="anchor" id="line-38"></span><span style="color: rgb(102, 204, 204);">[centosplus],[contrib] ... priority=2</span><br /><span style="color: rgb(102, 204, 204);" class="anchor" id="line-39"></span><span style="color: rgb(102, 204, 204);">Third Party Repos such as rpmforge ... priority=N (where N is > 10 and based on your preference)</span><br /><span class="anchor" id="line-40"></span></pre><span class="anchor" id="line-41"></span><span class="anchor" id="line-42"></span><span class="anchor" id="line-43"></span><span class="anchor" id="line-44"></span><p class="line867"> </p><h3 id="head-20e1f65f19ccf2f5fbf5adb30dbaf5ea963a64ae">1.2. RPMforge</h3> <span class="anchor" id="line-45"></span><p class="line862">Download the rpmforge-release package. Choose one of the two links below, depending on your architecture. If you are unsure of which one to use you can check your architecture with the command <strong>uname -i</strong> <span class="anchor" id="line-46"></span><span class="anchor" id="line-47"></span></p><ul><li style="color: rgb(255, 0, 0);"><p class="line862">i386 <a class="http" href="http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.i386.rpm">http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.i386.rpm</a> <span class="anchor" id="line-48"></span></p></li><li><p class="line862"><span style="color: rgb(255, 0, 0);">x86_64 </span><a style="color: rgb(255, 0, 0);" class="http" href="http://apt.sw.be/redhat/el5/en/x86_64/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm">http://apt.sw.be/redhat/el5/en/x86_64/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm</a> </p></li></ul><p class="line862">(You can find a complete list of rpmforge-release package packages at <a class="http" href="http://dag.wieers.com/packages/rpmforge-release/">http://dag.wieers.com/packages/rpmforge-release/</a> but it is recommended that you use one of the two listed above). <span class="anchor" id="line-51"></span><span class="anchor" id="line-52"></span></p><p class="line874">Install DAG's GPG key <span class="anchor" id="line-53"></span><span class="anchor" id="line-54"></span></p><pre style="color: rgb(255, 0, 0);">rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt</pre><span class="anchor" id="line-55"></span><span class="anchor" id="line-56"></span><p class="line874">Verify the package you have downloaded <span class="anchor" id="line-57"></span><span class="anchor" id="line-58"></span></p><pre>rpm -K rpmforge-release-0.3.6-1.el5.rf.*.rpm</pre><span class="anchor" id="line-59"></span><span class="anchor" id="line-60"></span><p class="line867"><em>Security warning:</em> The rpmforge-release package imports GPG keys into your RPM database. As long as you have verified the package and trust Dag then it should be safe. <span class="anchor" id="line-61"></span><span class="anchor" id="line-62"></span></p><p class="line874">Install the package <span class="anchor" id="line-63"></span><span class="anchor" id="line-64"></span></p><pre style="color: rgb(255, 0, 0);">rpm -i rpmforge-release-0.3.6-1.el5.rf.*.rpm</pre><span class="anchor" id="line-65"></span><span class="anchor" id="line-66"></span><p class="line874">This will add a yum repository config file and import the appropriate GPG keys. At this point, you can set the priority of the RPMForge repository, and also of the CentOS repositories if you have not done so yet. <span class="anchor" id="line-67"></span><span class="anchor" id="line-68"></span></p><p class="line874">Test with this command: <span class="anchor" id="line-69"></span><span class="anchor" id="line-70"></span></p><pre style="color: rgb(255, 0, 0);">yum check-update</pre><span class="anchor" id="line-71"></span><span class="anchor" id="line-72"></span><p class="line874">It should output these two lines: <span class="anchor" id="line-73"></span><span class="anchor" id="line-74"></span></p><pre>Loading "priorities" plugin<br /><span class="anchor" id="line-75"></span>...<br /><span class="anchor" id="line-76"></span>76 packages excluded due to repository priority protections</pre><span class="anchor" id="line-77"></span><span class="anchor" id="line-78"></span><p class="line874">The number above may differ, but there should be several packages shown as being excluded. <span class="anchor" id="line-79"></span><span class="anchor" id="line-80"></span></p><p class="line874">If so then it looks like things are working so try installing something like this <span class="anchor" id="line-81"></span><span class="anchor" id="line-82"></span></p><pre style="color: rgb(255, 0, 0);">yum install mplayer</pre>progfloydhttp://www.blogger.com/profile/14553230908198063151noreply@blogger.com0tag:blogger.com,1999:blog-7978867338656590940.post-75514275977731221562009-04-11T18:56:00.004+08:002009-06-07T10:42:31.632+08:00XEN 虛擬機器相關文章各虛擬機器設定檔位置: <span style="font-weight: bold; color: rgb(204, 0, 0);">/etc/xen</span> 底下<br /><br /><br /><span style="font-weight: bold;">參考資料:</span><br /><a href="http://www.xen.org/">XEN.org</a><br /><span style="font-size:100%;"><br />XEN 官方 <a href="http://wiki.xensource.com/xenwiki/XenNetworking">Networking WiKi</a><br /><br />中文<a href="http://benjr.tw/?q=node/215"> Networking</a> 教學<br /><br />鳥哥 <a href="http://linux.vbird.org/linux_enterprise/xen.php"> <span class="text_head0">利用<span class="text_head_en"> Xen </span>設計虛擬機器</span></a><br /><br /></span><h2 style="font-weight: normal;"><span style="font-size:100%;"><a href="http://smallken.no-ip.org/blog/2007/11/11/linux/382.html" rel="bookmark" title="Permanent Link to 虛擬伺服器 Xen 實作教學 for CenOS5">虛擬伺服器 Xen 實作教學 for CenOS5</a></span></h2><span style="font-size:100%;"><a href="http://fillano.blog.ithome.com.tw/post/257/21580" rel="bookmark" title="Permanent Link: 在Centos 5.1或更新的版本上使用xen">在Centos 5.1或更新的版本上使用xen</a> 的問題<br /></span><span style="font-size:100%;"><br /><a href="http://www.howtoforge.com/installing-xen-on-centos-5.2-i386" title="Installing Xen On CentOS 5.2 (i386)" style="color: rgb(0, 51, 153);"><span style="font-weight: bold;"></span>Installing Xen On CentOS 5.2 (i386)</a></span>progfloydhttp://www.blogger.com/profile/14553230908198063151noreply@blogger.com0tag:blogger.com,1999:blog-7978867338656590940.post-57456266601819571122009-04-06T19:16:00.006+08:002009-04-11T14:47:10.727+08:00CentOS5 中VNC Server 設定1. 所需套件:<br /><span style="color: rgb(153, 0, 0); font-weight: bold;font-family:arial;" ># yum -y install vnc vnc-server</span><br /><br />2. VNC Server 設定<span style="font-family:Verdana;"></span><span style="font-weight: bold; color: rgb(153, 0, 0);font-family:arial;" ></span><br /><span style="font-family:Verdana;"><span style="color: rgb(0, 0, 128);"></span></span>修改<span style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 102, 255);">VNCSERVERS="1:myusername"</span> </span><span style="font-weight: bold; color: rgb(51, 51, 255);font-family:arial;" ></span>和 <span style="color: rgb(51, 102, 255);">VNCSERVERARGS</span> 的設定<br />(1表示port為5901,2表示port為5902......; myusername 為登入者帳號)<br /><span style="font-weight: bold; color: rgb(153, 0, 0);font-family:arial;" ><br /></span><span style="color: rgb(153, 0, 0);font-family:arial;" ></span><span style="font-weight: bold; color: rgb(204, 0, 0);font-family:arial;" ># vi /etc/sysconfig/vncservers</span><br /><span style="font-weight: bold; color: rgb(204, 0, 0);font-family:arial;" >VNCSERVERS="2:root" </span><br /><span style="font-weight: bold; color: rgb(204, 0, 0);font-family:arial;" >VNCSERVERARGS[2]="-geometry 1024x768 -depth 24"</span><br /><br />3. 設定VNC 使用者密碼<br /><span style="font-weight: bold; color: rgb(204, 0, 0);font-family:arial;" ># vncpasswd</span><br /><br />4.<span style="font-family:Verdana;"><span style="color: rgb(0, 0, 128);"> <span style="color: rgb(0, 0, 0);">修改 X桌面設定值,將xstartup中底下的兩行註解拿掉</span></span></span><span style="color: rgb(153, 0, 0); font-weight: bold;font-family:arial;" ><br /><span style="color: rgb(204, 0, 0); font-weight: bold;font-family:arial;" >#service vncserver start (先啟動一次VNC Server)<br /># vi ~/.vnc/xstartup</span><br /></span><span style="font-family:Verdana;"><span style="color: rgb(204, 0, 0); font-weight: bold;font-family:arial;" >unset SESSION_MANAGER</span><br /><span style="color: rgb(204, 0, 0); font-weight: bold;font-family:arial;" > exec /etc/X11/xinit/xinitrc<br /><br /></span></span>5. 設定防火牆,讓VNC Server 可以從外部網路連入<span style="font-family:Verdana;"><span style="color: rgb(204, 0, 0); font-weight: bold;font-family:arial;" ><br />#vi /etc/sysconfig/iptables<br />-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 5902 -j ACCEPT<br /><br /></span></span>6.從新啟動iptables<span style="font-family:Verdana;"><span style="color: rgb(204, 0, 0); font-weight: bold;font-family:arial;" ><br />#service iptables restart<br /></span><span style="color: rgb(204, 0, 0);font-family:arial;" ><br /></span></span>7. 啟動VNC Server 檢查port 有否開啟<span style="font-family:Verdana;"><span style="color: rgb(204, 0, 0);font-family:arial;" ></span><span style="color: rgb(204, 0, 0); font-weight: bold;font-family:arial;" ><br /></span></span><span style="font-family:Verdana;"><span style="color: rgb(0, 0, 128);"></span></span><span style="font-weight: bold; color: rgb(204, 0, 0);font-family:arial;" ># /etc/rc.d/init.d/vncserver start</span><br /><span style="font-weight: bold; color: rgb(204, 0, 0);font-family:arial;" >#netstat -tlnp</span><br />tcp 0 0 *:5902<br /><br />8. 利用VNC Viewer 連入progfloydhttp://www.blogger.com/profile/14553230908198063151noreply@blogger.com0tag:blogger.com,1999:blog-7978867338656590940.post-10579062538681387262009-04-05T16:14:00.005+08:002009-04-05T16:27:44.286+08:00How to install ZIPARCHIVE for PHP in CentOS5<span style="font-size:100%;"><span style="font-family:arial;">如何在CentOS 5 中安裝PHP用的 ZIP 擴充套件:</span><br /><br /></span><span style="font-weight: bold;font-family:arial;font-size:100%;" >Step 0:</span><span style="font-size:100%;"><span style="font-family:arial;"> Set up the yum-priorities plugin: </span><a style="font-family: arial;" href="http://wiki.centos.org/PackageManagement/Yum/Priorities" target="_blank">http://wiki.centos.org/PackageManagement/Yum/Priorities</a><br /></span><span style="font-weight: bold;font-family:arial;font-size:100%;" >Step 1:</span><span style="font-size:100%;"><span style="font-family:arial;"> Enable the </span><a style="font-family: arial;" href="http://fedoraproject.org/wiki/EPEL" target="_blank">EPEL</a><span style="font-family:arial;"> repository: </span><a style="font-family: arial;" href="http://wiki.centos.org/AdditionalResources/Repositories" target="_blank">http://wiki.centos.org/AdditionalResources/Repositories</a><br /></span><span style="font-weight: bold;font-family:arial;font-size:100%;" >Step 2:</span><span style="font-size:100%;"><span style="font-family:arial;"> Install the php-pecl-zip extension package:</span><br /><br /><span style="font-family:arial;">依造上面的步驟說明分別是:</span><br /></span><span style="color: rgb(102, 0, 0);font-family:arial;font-size:100%;" >1. </span><span style="color: rgb(153, 0, 0);font-family:arial;font-size:100%;" > <span style="font-weight: bold;">#yum install yum-priorities</span><br /><br />2. <span style="color: rgb(153, 0, 0); font-weight: bold;">#wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm</span><br /></span><span style="color: rgb(153, 0, 0);font-family:arial;font-size:100%;" > <span style="font-weight: bold;"> #rmp -ivh epel-release-5-3.noarch.rpm</span><br /><br />3. <span style="font-weight: bold;">#yum install php-pecl-zip<br /></span><span>過程中會驗證GPG key 選擇 y</span><span style="font-weight: bold;"><br /></span></span><pre style="font-family: arial;"></pre>progfloydhttp://www.blogger.com/profile/14553230908198063151noreply@blogger.com0tag:blogger.com,1999:blog-7978867338656590940.post-21443108546710938592009-04-04T17:19:00.004+08:002009-04-04T17:24:51.642+08:00Apache ServerTokens<span style=";font-family:Verdana;font-size:78%;" ><p style="font-family: arial;"> <span style="color: rgb(204, 0, 102);font-size:130%;" >Description: Configures the Server HTTP response header</span></p><p style="font-family: arial;"> <span style="color: rgb(204, 0, 102);font-size:130%;" >Syntax: ServerTokens Major|Minor|Min[imal]|Prod[uctOnly]|OS|Full</span></p><p style="font-family: arial;"> <span style="color: rgb(204, 0, 102);font-size:130%;" >Default: ServerTokens Full</span></p><p style="font-family: arial;"> <span style="color: rgb(204, 0, 102);font-size:130%;" >Context: server config</span></p><p class="MsoNormal" style="margin: 6pt 156pt 0.0001pt 45pt; line-height: 15.6pt;"><span style="font-size:100%;"><code><b> <span style="color: rgb(204, 0, 102);" lang="EN"> <span style="font-family:Verdana;"></span></span></b></code></span></p></span>ServerTokens <span style="font-weight: bold;">Prod</span>[uctOnly] Server sends (e.g.): Server: Apache<br /><br />ServerTokens <span style="font-weight: bold;">Major</span> Server sends (e.g.): Server: Apache/2 <br /><br />ServerTokens <span style="font-weight: bold;">Minor</span> Server sends (e.g.): Server: Apache/2.0 <br /><br />ServerTokens<span style="font-weight: bold;"> Min</span>[imal] Server sends (e.g.): Server: Apache/2.0.41 <br /><br />ServerTokens <span style="font-weight: bold;">OS</span> Server sends (e.g.): Server: Apache/2.0.41 (Unix) <br /><br />ServerTokens Full (or not specified) Server sends (e.g.): Server: Apache/2.0.41 (Unix) PHP/4.2.2 MyMod/1.2<br /> <br />This setting applies to the entire server, and cannot be enabled or disabled on a virtualhost-by-virtualhost basis.<span style=";font-family:Verdana;font-size:78%;" ><p style="margin: 0cm 156pt 0.0001pt 45pt; text-align: left;"><br /></p></span>progfloydhttp://www.blogger.com/profile/14553230908198063151noreply@blogger.com0tag:blogger.com,1999:blog-7978867338656590940.post-30251028928591015922009-03-26T11:39:00.002+08:002009-03-26T11:58:55.706+08:00Cent OS 安裝 PHP GD預設安裝中 CentOS沒有php-gd,需額外再安裝,<br /><span style="font-weight: bold; color: rgb(153, 0, 0);">#yum install php-gd</span><br /><br />安裝完成後再從新啟動mysqld就完成。<br /><span style="font-weight: bold; color: rgb(153, 0, 0);">#service mysqld restart</span>progfloydhttp://www.blogger.com/profile/14553230908198063151noreply@blogger.com0tag:blogger.com,1999:blog-7978867338656590940.post-44751452558733678752009-01-29T22:49:00.005+08:002009-01-29T23:31:20.478+08:00【Photoshop】製作小且清楚的中文字在photoshop中製作中文字時可能會遇到小字體時會顯得糊糊的,若要做出清晰的小中文字則是將<span style="color: rgb(204, 0, 0); font-weight: bold;">消除鋸齒</span>的設定為<span style="font-weight: bold; color: rgb(255, 0, 0);">無,</span><span style="color: rgb(255, 0, 0);"><span style="color: rgb(0, 0, 0);">這樣便能讓小中文字很清晰。<br /><br />1. 先以解析度為72像素/英吋開一新檔案<br /><br /></span></span><div style="text-align: left;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaZifpW83sUuatYFGCjLXkzxDH4KD5MvT02XwMdXxFSsMby3vBVuJbum8sfTsStXS-tpHoDYYyBukMCuqG8dnYvQ9K7Fu_v6giZwcawW_r0GibRz_yrayMO_er2i6ySV66n44G2zD5rrwo/s1600-h/psfont01.jpg"> <img style="cursor: pointer; width: 200px; height: 158px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaZifpW83sUuatYFGCjLXkzxDH4KD5MvT02XwMdXxFSsMby3vBVuJbum8sfTsStXS-tpHoDYYyBukMCuqG8dnYvQ9K7Fu_v6giZwcawW_r0GibRz_yrayMO_er2i6ySV66n44G2zD5rrwo/s200/psfont01.jpg" alt="" id="BLOGGER_PHOTO_ID_5296736976161646994" border="0" /></a></div><span style="color: rgb(255, 0, 0);"><span style="color: rgb(0, 0, 0);"><br />2.選擇插入文字<br /><br /> </span></span><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCS9LcUpaHgaoWjgKRHVXkbGk_5UlqiiLICaiccnvXE21-8qBUvS-hK1lFKMUxtWoYgEFD3UT85bigJ6E5BQwBjs-fgcNFxU_4RRv66udwkUjdglS0A7F1IjrR4MkyFvFqwD6unmebKdtL/s1600-h/psfont02.jpg"><img style="cursor: pointer; width: 200px; height: 8px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCS9LcUpaHgaoWjgKRHVXkbGk_5UlqiiLICaiccnvXE21-8qBUvS-hK1lFKMUxtWoYgEFD3UT85bigJ6E5BQwBjs-fgcNFxU_4RRv66udwkUjdglS0A7F1IjrR4MkyFvFqwD6unmebKdtL/s200/psfont02.jpg" alt="" id="BLOGGER_PHOTO_ID_5296737722647249778" border="0" /></a><br /><span style="color: rgb(255, 0, 0);"><span style="color: rgb(0, 0, 0);"><br />3.字型選擇"新細明體",消除鋸齒選擇"無",字體大小則11~14都有不錯的效果。<br /></span></span><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXmY4sq3lCQpzsWMzlACmh2XSnuvJJwSRU80mHUXz9GIQnbk8s66aPgVWhwj9mrLz__I7LiBl-BEwY_rmDG5VbnLD4_E4PFZPa6f2nchfcJBKNsW9zBNSccUwP9Aqm36g85fnNqhQRJuFK/s1600-h/psfont03.jpg"><img style="cursor: pointer; width: 89px; height: 29px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXmY4sq3lCQpzsWMzlACmh2XSnuvJJwSRU80mHUXz9GIQnbk8s66aPgVWhwj9mrLz__I7LiBl-BEwY_rmDG5VbnLD4_E4PFZPa6f2nchfcJBKNsW9zBNSccUwP9Aqm36g85fnNqhQRJuFK/s200/psfont03.jpg" alt="" id="BLOGGER_PHOTO_ID_5296738344466331730" border="0" /></a>progfloydhttp://www.blogger.com/profile/14553230908198063151noreply@blogger.com0tag:blogger.com,1999:blog-7978867338656590940.post-65515680477586176632009-01-12T23:31:00.003+08:002009-01-12T23:41:29.304+08:00joomla 無法上傳擴充套件問題不知道是否有人也一樣在使用 joomla 中安裝新擴充套件時出現類似 <span style="color: rgb(255, 0, 0); font-weight: bold;">"警告! - 無法移動檔案"<span style="color: rgb(0, 0, 0);"> </span></span><span style="color: rgb(255, 0, 0);"><span style="color: rgb(0, 0, 0);">這一</span></span><span style="color: rgb(255, 0, 0);"><span style="color: rgb(0, 0, 0);">訊息,後爬文研究找到只要將 joomla資料夾底下的<span style="color: rgb(51, 102, 255);"> </span><span style="font-weight: bold; color: rgb(51, 102, 255);">tmp/</span> 資料夾權限更改為 <span style="color: rgb(51, 102, 255); font-weight: bold;">777 </span><span style="color: rgb(0, 0, 0);">後便可以上傳擴充套件。<br /><br />另如何於FTP中更改檔案權限屬性可參考<a href="http://www.joomla123.com.tw/index.php?option=com_content&task=view&id=15&Itemid=32">此篇</a>說明中有提到些檔案權限修改的方式。<br /></span></span></span>progfloydhttp://www.blogger.com/profile/14553230908198063151noreply@blogger.com0tag:blogger.com,1999:blog-7978867338656590940.post-46702307954839042012009-01-08T03:08:00.017+08:002009-01-08T12:08:43.134+08:00【網頁製作】光箱效果 - Lightbox2<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.lokeshdhakar.com/projects/lightbox2/"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 165px; height: 62px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2Pmu3TLUa9gb7fJKc-0nwG4fIJ4X2itGgOpxkS-jHKIKFB7Wf7uBEBPoffzDt_QuJ__qetnj1ZlCtkXMpxz_8K_-cp4h0BLt9ZTEq_pUYP3F4rXP5p44GMonb5Jc4M_aiEHmcdoxMwyZj/s200/lightbox.gif" alt="" id="BLOGGER_PHOTO_ID_5288751656908786898" border="0" /></a><br /><br />Lightbox是一個很棒的網頁秀圖效果,也很有質感。<br /><br /><a href="http://www.lokeshdhakar.com/projects/lightbox2/">這裡</a> 是原始網站,裡面有效果展示可以點選看看,除了可以秀單張照片外,也可以是一整組相片。<br /><br /><span style="font-weight: bold;">語法使用:</span><br />1. <a href="http://www.lokeshdhakar.com/projects/lightbox2/#download">下載</a>完需要的檔案解壓縮後會有三個資料夾,將css、images、js三個資料夾放置到網站根目錄。<br />2. 將底下三段語法加入該網頁head中,<br /><pre><code style="color: rgb(153, 153, 0);"><span style="font-family:arial;"><script type="text/javascript" src="js/prototype.js"></script</span></code><code style="color: rgb(153, 153, 0);">></code><code style="color: rgb(153, 153, 0);"><span style="font-family:arial;"></span><br /><span style="font-family:arial;"><script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"</span></code><code style="color: rgb(153, 153, 0);"><br />></code><code style="color: rgb(153, 153, 0);"><span style="font-family:arial;"></script</span></code><code style="color: rgb(153, 153, 0);">></code><code style="color: rgb(153, 153, 0);"><br /><span style="font-family:arial;"><script type="text/javascript" src="js/lightbox.js"</span></code><code style="color: rgb(153, 153, 0);">></code><code style="color: rgb(153, 153, 0);"><span style="font-family:arial;"></script</span></code><code style="color: rgb(153, 153, 0);">></code><code><span style="color: rgb(153, 153, 0);font-family:arial;" ></span><br /></code></pre><script type="text/javascript" src="js/lightbox.js"></script>3. 並將css連結到該網頁中<br /><pre><code style="color: rgb(153, 153, 0); font-family: arial;"><link rel="stylesheet" href="css/lightbox.css" type="text/css"<br />media="screen"></code><br /><br /><code></code>4. 製作一該照片小截圖連結到網頁後,再將<code style="font-weight: bold;">rel="lightbox"</code>語法<br />加到該照片語法前,<br /><code><span style="color: rgb(153, 153, 0);font-family:arial;" ><a href="/images/圖片1.jpg" rel="lightbox" title="圖片的說明">圖片1</a></span><br /></code><span style="font-weight: bold;font-size:85%;" >*其中title屬性可以顯示該圖片說明</span><br /><br />5. 若該頁面中有很多圖片想讓它一次播放可以使用底下的語法:<br /><code style="color: rgb(153, 153, 0);"><a href="images/</code><code style="color: rgb(153, 153, 0);">圖片</code><code style="color: rgb(153, 153, 0);">-1.jpg" rel="lightbox[roadtrip]"</code><code style="color: rgb(153, 153, 0);">></code><code style="color: rgb(153, 153, 0);">圖片1<br /></a><br /><a href="images/</code><code style="color: rgb(153, 153, 0);">圖片</code><code style="color: rgb(153, 153, 0);">-2.jpg" rel="lightbox[roadtrip]"</code><code style="color: rgb(153, 153, 0);">></code><code style="color: rgb(153, 153, 0);">圖片</code><code style="color: rgb(153, 153, 0);">2<br /></a</code><code style="color: rgb(153, 153, 0);">><br /></code><code style="color: rgb(153, 153, 0);"><a href="images/</code><code style="color: rgb(153, 153, 0);">圖片</code><code style="color: rgb(153, 153, 0);">-3.jpg" rel="lightbox[roadtrip]"</code><code style="color: rgb(153, 153, 0);">></code><code style="color: rgb(153, 153, 0);">圖片</code><code style="color: rgb(153, 153, 0);">3<br /></a</code><code style="color: rgb(153, 153, 0);">></code><br /></pre> <blockquote></blockquote>progfloydhttp://www.blogger.com/profile/14553230908198063151noreply@blogger.com1tag:blogger.com,1999:blog-7978867338656590940.post-22822669947330179942008-12-04T17:01:00.002+08:002008-12-04T17:16:15.412+08:00製作不用密碼立即登入ssh server1. 先在client端建立Public Key和Private Key兩把鑰匙:<br /><span style="font-weight: bold; color: rgb(51, 51, 255);">#ssh-keygen -t rsa</span><br />(如此便會在家目錄中的.ssh資料夾裡產生id_rsa、id_rsa.pub兩個檔案,需特別注意id_rsa的權限要為-rw------)<br /><br />2. 到server端放置id_rsa.pub檔,並轉存為authorized_keys於登入者家目錄中.ssh資料夾裡:<br />先於client端<br /><span style="font-weight: bold; color: rgb(51, 51, 255);">#cd ~/.ssh</span><br /><span style="color: rgb(51, 51, 255); font-weight: bold;">#scp id_rsa.pub root@XXX.XXX.XX.XX:/root/.ssh</span><br />到server端<br /><span style="font-weight: bold; color: rgb(51, 51, 255);">#cd ~/.ssh</span><br /><span style="font-weight: bold; color: rgb(51, 51, 255);">#cat id_rsa.pub >> authorized_keys</span>progfloydhttp://www.blogger.com/profile/14553230908198063151noreply@blogger.com0tag:blogger.com,1999:blog-7978867338656590940.post-12258359802330827692008-09-28T21:12:00.009+08:002008-11-12T23:38:11.153+08:00安裝phpMyAdmin管理MySQLphpMyAdmin是一套圖形介面的MySQL管理程式,透過圖形介面更容易管理MySQL,對於不太熟悉SQL語言的人也是一個很不錯的工具。<br /><br /><ul><li>在<a href="http://www.phpmyadmin.net/home_page/index.php">phpMyAdmin</a>可以下載相關的程式和資訊</li></ul><ul><li>CentOS中配置方法可參考<a href="http://www.centospub.com/make/phpmyadmin.html">這篇</a>教學</li></ul> 另外配置過程中需要額外安裝兩個套件:<span class="command"><span style="color: rgb(153, 0, 0);">php-mbstring</span>和</span><span style="color: rgb(153, 0, 0);">php-mcrypt</span><span class="message"></span><span class="command"></span><span class="command"><br /><span style="font-weight: bold;"> #</span> <span style="font-weight: bold; color: rgb(51, 51, 255);">yum -y install php-mbstring</span><br /></span><span style="font-weight: bold;">#</span> <span style="font-weight: bold;"><span style="color: rgb(51, 51, 255);">yum --enablerepo=centosplus install php-mcrypt</span><br /></span><br />(若無法順利安裝php-mcrypt套件,可以改用底下方式試試:<br /><span style="font-size:100%;"> </span><span style="font-weight: bold;font-size:100%;" ># wget ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/libmcrypt/libmcrypt-2.5.7.tar.gz<br /># rpmbuild -ta libmcrypt-2.5.7.tar.gz<br /># rpm -ivh /usr/src/redhat/RPMS/i386/libmcrypt-2.5.7-1.i386.rpm /usr/src/redhat/RPMS/i386/libmcrypt-devel-2.5.7-1.i386.rpm<br /># yum --enablerepo=centosplus install php-mcrypt</span><span style="font-size:100%;"> )</span><br /><br /><span style="font-weight: bold;">※phpmyadmin參數設定</span>:<br />#<span class="command">cp /var/www/phpmyadmin/config.sample.php /var/www/phpmyadmin/config.inc.php</span><span class="message"><br /></span><span class="command">#chmod 660 /var/www/phpmyadmin/config.inc.php</span><br /><span class="command">#vi /var/www/phpmyadmin/config.inc.php</span><br /><span style="color: rgb(51, 102, 255);" class="after"> <span style="color: rgb(0, 0, 153); font-weight: bold;">$cfg['blowfish_secret'] = '</span></span><span style="color: rgb(0, 0, 153); font-weight: bold;" class="att1">填入任何字串</span><span class="after"><span style="color: rgb(0, 0, 153); font-weight: bold;">';</span><br />#</span><span class="command">chown -R root.apache /var/www/phpmyadmin/<br /></span><span class="command">#vi /etc/httpd/conf.d/phpmyadmin.conf</span><br /><span class="conffile"> <span style="color: rgb(51, 102, 255);"> <span style="font-weight: bold; color: rgb(0, 0, 153);">Alias /phpmyadmin /var/www/phpmyadmin</span><br />//此句設定可限制外部網路連接phpmyadmin<br />< Location /phpmyadmin ><br />Order deny,allow<br />Deny from all<br />Allow from 127.0.0.1<br />Allow from 192.168.0<br />< /location ><br /></span></span>progfloydhttp://www.blogger.com/profile/14553230908198063151noreply@blogger.com0tag:blogger.com,1999:blog-7978867338656590940.post-45959610616103478842008-08-28T08:59:00.002+08:002008-08-28T09:09:03.247+08:00Firefox 在 ubuntu 上 CPU 使用偏高問題在ubuntu上用firefox開了些有flash動畫的網站時可能會發現CPU的使用率開始偏高,將近100%的使用率,解決的方法是修改瀏覽器中<span style="font-weight: bold;"> <span style="color: rgb(204, 0, 0);"> 編輯->偏好設定->安全->將前兩個項目取消勾選 </span></span><span style="color: rgb(204, 0, 0);"><span style="color: rgb(0, 0, 0);">,這樣開有flash的網頁後就不會再讓CPU使用率一直高達100%。</span></span><span style="font-weight: bold;"><span style="color: rgb(204, 0, 0);"><br /></span></span>progfloydhttp://www.blogger.com/profile/14553230908198063151noreply@blogger.com0tag:blogger.com,1999:blog-7978867338656590940.post-12566828025271229032008-07-19T01:28:00.003+08:002008-07-19T01:37:59.747+08:00Linux 中 port 對照表存放port對應相關服務之檔案位置: <span style="font-weight: bold;">/etc/services</span><br /><br />常用的port:<br />ftp --> 21/tcp<br />ssh --> 22/tcp<br />telnet --> 23/tcp<br />smtp --> 25/tcp<br />pop3 --> 110/tcp<br />http -->80/tcpprogfloydhttp://www.blogger.com/profile/14553230908198063151noreply@blogger.com0tag:blogger.com,1999:blog-7978867338656590940.post-4294441805532261712008-07-17T08:24:00.002+08:002008-07-17T08:30:18.125+08:00在 Firefox 中讓 ed2k 的連結點連接至 aMule 方法不知道大家是否在使用Firefox瀏覽一些帶有ed2k連結點的網址時,按下後無法和aMule自動產生連結,底下是設定連結的方式: <br /><br />1. 在Firefox網址欄位中輸入 <span style="font-weight:bold;">about:config</span>。<br /><br />2. 於設定值列表中按下滑鼠右鍵,選擇新增(New)-->真假值(Boolean),在設定名稱(Preference Name)中輸入 <span style="font-weight:bold;">network.protocol-handler.external.ed2k</span>,並於內含直(Value)中選擇 <span style="font-weight:bold;">true</span>。<br /><br />3. 再於列表中按滑鼠右鍵,選擇新增-->字串(String),在設定名稱中輸入 <span style="font-weight:bold;">network.protocol-handler.app.ed2k</span>,於內含值中輸入 <span style="font-weight:bold;">/usr/bin/ed2k.amule</span>(你的aMule執行檔所在的位置)。progfloydhttp://www.blogger.com/profile/14553230908198063151noreply@blogger.com0tag:blogger.com,1999:blog-7978867338656590940.post-6105681169280088582008-06-13T21:41:00.003+08:002008-06-14T18:24:29.212+08:00不錯的網站今天在尋找留言版系統時發現了幾個不錯設計的網站:<br /><br />http://powcgi.idv.tw/<br />http://zb.hk42.org/<br />http://www.hanfeitzu.org/<br />http://julyeight.com/<br />http://ajman.2unme.com/<br />http://www.apeskin.org/web/top.phpprogfloydhttp://www.blogger.com/profile/14553230908198063151noreply@blogger.com0tag:blogger.com,1999:blog-7978867338656590940.post-57865250483051617542008-06-07T11:25:00.009+08:002008-07-17T08:32:19.969+08:002008下載火狐狸拼世界紀錄<a href="http://moztw.org/events/record2008/"><img src="http://forum.moztw.org/files/record2008_1_788.png" alt="火狐鬥陣拼紀錄,有你一份!" border="0" /></a><br /><br /><span style="font-size:85%;"><span style="font-size:100%;"><span style="font-size:130%;">這幾天在火狐網站上看到了這個拼紀錄活動,意旨要在Firefox3釋出同時24小時內大家一起上線下載。<br />火狐是瀏覽器市場中最近新興的一顆小星星,快速好用,更是有數以千個的外掛擴充套件,讓瀏覽器的功能發揮的更淋漓盡致,在往後很多瀏覽器也多沿用其核心加以改良。底下這張圖則是在我跳入後當前台灣的加入人數,希望大家都能來試用看看火狐狸,一旦你用了他,你一定會對他愛不釋手,雖說有些網站的網頁仍是IE only的窘境,因此也希望從事網頁設計的人,不要再只是使用IE來設計版面,也為其他瀏覽器的使用者設計版面,希望大家能多互相體諒,有多元的競爭才是良好發展的環境,一家獨大最終受損的是使用者自己。(雖說這樣設計一個版面會很累...哈哈,但畢竟多元才是良性的,你說不。)</span><br /><br /><a href="http://www.flickr.com/photos/progfloyd/2556966415/" title="firefox3 by progfloyd, on Flickr"><img src="http://farm4.static.flickr.com/3005/2556966415_34c7251f97_m.jpg" alt="firefox3" width="240" height="140" /></a><br /><span style="font-size:130%;"><br />在 <a href="http://moztw.org/firefox/">這頁</a> 有介紹了firefox2的特色 <a href="http://mozlinks-zh.blogspot.com/2008/05/firefox-3-1.html">這裡</a> 則有firexfox3新功能的介紹。</span></span><br /></span>progfloydhttp://www.blogger.com/profile/14553230908198063151noreply@blogger.com0tag:blogger.com,1999:blog-7978867338656590940.post-48394846272892393422008-06-06T12:47:00.003+08:002008-07-21T12:27:52.821+08:00phpMyAdmin 中文資料亂碼問題在使用phpMyAdmin 做為管理MySQL的介面時,即使編碼已設定為UTF-8,但在一些數據資料上中文的顯示仍是會出現亂碼,解決的方式是:<br />修改 phpMyAdmin 裡 <span style="color: rgb(204, 0, 0);"><strong>\libraries\select_lang.lib.php</strong></span> 設定檔中底下的變數<br /><br />$GLOBALS['mysql_charset_map'] = array(<br /><span style="color: rgb(204, 153, 51);">/* UTF-8 */</span><br /><span style="color: rgb(0, 0, 153);"><strong>'utf-8' => 'utf8'</strong></span> 改成 <span style="color: rgb(153, 0, 0);"><strong>'utf-8' => 'latin1'</strong></span><br /><span style="color: rgb(204, 153, 51);">/* Big5 */</span><br /><span style="color: rgb(0, 0, 153);"><strong>'big5' => 'big5'</strong></span> 改成 <strong><span style="color: rgb(153, 0, 0);">'big5' => 'latin1'</span></strong>progfloydhttp://www.blogger.com/profile/14553230908198063151noreply@blogger.com0tag:blogger.com,1999:blog-7978867338656590940.post-74698607176471319682008-05-29T19:45:00.010+08:002008-06-04T20:27:33.133+08:00VirtualBox 於 Ubuntu 8.04 上碰到的問題<span style="font-size:130%;"><span style="font-size:85%;">在Ubuntu8.04中安裝完VirtualBox後大概會遇到底下幾個問題:</span><br /><br />1.<span style="font-weight: bold;font-size:85%;" >如何啟用USB裝置:</span></span><br />編輯<span style="font-weight: bold;"> </span>/etc/init.d/mountdevsubfs.sh 檔案:<br /><span style="font-weight: bold; color: rgb(204, 0, 0);">#sudo vi /etc/init.d/mountdevsubfs.sh</span><br /><br />大約在第40行左右的 <span style="font-style: italic;"># Magic to make /proc/bus/usb work</span>,<br /><span style="font-weight: bold; color: rgb(204, 0, 0);">#mkdir -p /dev/bus/usb/.usbfs</span><br /><span style="font-weight: bold; color: rgb(204, 0, 0);"> #domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,lis$</span><br /><span style="font-weight: bold; color: rgb(204, 0, 0);"> #ln -s .usbfs/devices /dev/bus/usb/devices</span><br /><span style="font-weight: bold; color: rgb(204, 0, 0);"> #mount --rbind /dev/bus/usb /proc/bus/usb</span><br />將以上那四行的註解(#)刪除,然後再執行底下指令就可以看見usb設定選項,<br /><span style="font-weight: bold; color: rgb(204, 0, 0);">#sudo /etc/init.d/mountdevsubfs.sh start<br /><br /><span style="color: rgb(102, 51, 0);">註:另外需再將自己的帳號加入root這個群組中,這樣在guest中才能有權限讀取usb。<br />#sudo vi /etc/group<br />root:x:0:(後面這裡加入自己的帳號名稱)<br /><br /><span style="font-size:100%;"><span style="color: rgb(0, 0, 0);">2.</span></span></span></span><span style="color: rgb(204, 0, 0);"><span style="color: rgb(102, 51, 0);"><span style="font-size:100%;"><span style="color: rgb(0, 0, 0);"><span style="font-weight: bold;">無法在guest中使用滑鼠:</span><br />在xorg.conf 設定檔中mouse的部份多加入底下兩行設定值</span></span></span></span><span style="font-weight: bold; color: rgb(204, 0, 0);"><span style="color: rgb(102, 51, 0);"><span style="font-size:100%;"><span style="color: rgb(0, 0, 0);">。<br /><span style="font-weight: bold; color: rgb(204, 0, 0);">#sudo vi /etc/X11/xorg.conf</span><br /></span></span></span></span><span style="font-weight: bold; color: rgb(204, 0, 0);">Option "Buttons" "5"</span><span style="font-weight: bold; color: rgb(204, 0, 0);font-family:monospace;" ><br /></span><span style="font-weight: bold; color: rgb(204, 0, 0);">Option "ZAxisMapping" "4 5"</span><br /><br /><span style="font-weight: bold; color: rgb(204, 0, 0);"><span style="color: rgb(102, 51, 0);"><span style="color: rgb(0, 0, 0);">3.無法使用鍵盤切換輸入法問題:<br /></span></span></span><span style="font-size:100%;">開啟VirtualBox 後在<span style="color: rgb(204, 0, 0); font-weight: bold;"> </span><span style="color: rgb(204, 0, 0);"><span style="color: rgb(0, 0, 0);">『</span></span><span style="color: rgb(204, 0, 0); font-weight: bold;">檔案</span><span style="color: rgb(204, 0, 0);"><span style="color: rgb(0, 0, 0);">』</span></span>->『<span style="font-weight: bold; color: rgb(204, 0, 0);">偏好設定</span>』,『<span style="font-weight: bold; color: rgb(204, 0, 0);">輸入</span>』頁面中,不要勾選『<span style="font-weight: bold; color: rgb(204, 0, 0);">自動捕捉鍵盤</span>』。</span>progfloydhttp://www.blogger.com/profile/14553230908198063151noreply@blogger.com0tag:blogger.com,1999:blog-7978867338656590940.post-84336761857020840272008-05-26T01:10:00.006+08:002008-05-29T13:42:29.353+08:00Ubuntu 8.04 flashplayer中文顯示亂碼解決在Ubuntu8.04中安裝flash後中文顯示會有亂碼的問題,解決方法:將 <span style="color:#660000;"><span style="FONT-WEIGHT: bold">/etc/fonts/conf.d/49-sansserif.conf</span> </span>設定檔移除後,就可恢復正常。progfloydhttp://www.blogger.com/profile/14553230908198063151noreply@blogger.com0tag:blogger.com,1999:blog-7978867338656590940.post-83503772277935380502008-05-17T15:17:00.008+08:002008-05-29T19:11:07.048+08:00Linux下文字模式光碟燒錄備份一般的標準檔案名稱只能支援DOS的8.3格式,但在Linux下另外還有Rock Ridge和Joliet兩種延伸格式。Rock Ridge:支援30個字元、UID/GID檔案權限、POSIX符號連結、devices等。Joliet: Windows CD-ROM的檔案系統。<br /><br />終端機文字命令:(LPIC Level II)<br /><span style="font-size:130%;"><span style="font-weight: bold;">●mkisofs:</span></span> 建立ISO9660檔案系統影像,用以燒錄到CD光碟。-- <a href="http://www.andante.org/mkisofs.html">開發網站</a><br />語法: <span style="font-weight: bold; color: rgb(51, 51, 0);">mkisofs options [ -o filename ] path [ path... ]</span><br />選項:<br /><span style="color: rgb(51, 51, 0); font-weight: bold;">-J</span> Joliet 延伸格式.<br /><span style="font-weight: bold; color: rgb(102, 0, 0);"><span style="color: rgb(51, 51, 0);">-r</span> </span> 用來保留檔案的UID/GID權限等.<br /><span style="font-weight: bold; color: rgb(51, 51, 0);">-ldots</span> Allow ISO9660 filenames to begin with a period.<br /><span style="color: rgb(51, 51, 0); font-weight: bold;">-l</span> Allow full 31 character filenames.<br /><span style="font-weight: bold; color: rgb(51, 51, 0);">-o</span><span style="color: rgb(51, 51, 0); font-weight: bold;"> </span><span style="color: rgb(51, 51, 0); font-weight: bold;">filename</span> Write the image to the named file.<br />ex: <span style="font-weight: bold;">mkisofs -T -r -ldots -l -J -o /var/tmp/image.iso /var/tmp/backup</span><br /><br /><span style="font-size:130%;"><span style="font-weight: bold;">●cdrecord:</span></span> 用來燒錄音樂或資料光碟。-- <a href="http://cdrecord.berlios.de/old/private/cdrecord.html">開發網站</a><br />語法: <span style="font-weight: bold; color: rgb(51, 51, 0);">cdrecord -scanbus</span><br /><span style="color: rgb(51, 51, 0);"> </span><span style="font-weight: bold; color: rgb(51, 51, 0);">cdrecord [ general_options ] dev=device image_file</span><br />選項:<br /><span style="font-weight: bold; color: rgb(51, 51, 0);">-v</span> Verbose output. Use one -v to track the burning process.<br /><span style="color: rgb(255, 204, 51); font-weight: bold;"><span style="color: rgb(51, 51, 0);">-dummy</span> </span>Only pretend to burn.<br /><span style="font-weight: bold; color: rgb(102, 0, 0);"><span style="color: rgb(51, 51, 0);">driveropts=burnfree</span> </span>Enables the burning mode that tolerates data underruns.<br /><span style="font-weight: bold; color: rgb(51, 51, 0);">speed=speed</span> Set the burning speed.<br /><span style="font-weight: bold; color: rgb(102, 0, 0);"><span style="color: rgb(51, 51, 0);">dev=device</span> </span> Specify which device to burn to.<br /><br />* 文字模式還可參考<a href="http://www.yolinux.com/TUTORIALS/LinuxTutorialCDBurn.html">此篇</a>指南。progfloydhttp://www.blogger.com/profile/14553230908198063151noreply@blogger.com0tag:blogger.com,1999:blog-7978867338656590940.post-43415181600826806312008-05-17T14:36:00.023+08:002008-10-26T13:53:52.393+08:00CentOS Server設定調整<span style="font-weight: bold; color: rgb(51, 102, 255);font-size:130%;" ><span style="color: rgb(204, 153, 51);">設定 fatestmirror :</span></span>(讓yum在搜尋下載套件時,自行搜尋使用最近最快的境像站台)<br /><span style=";font-family:arial;font-size:100%;" >#yum install yum-plugin-fastestmirror (for CentOS4)<br />#yum install yum-fastestmirror (for CentOS5)<br /><br />完成後再編輯 /etc/yum/pluginconf.d/fastestmirror.conf<br />[main]<br />verbose = 0<br />socket_timeout = 3<br />enabled = 1<br />hostfilepath = /var/cache/yum/timedhosts.txt<br />maxhostfileage = 1</span><br /><br /><span style="color: rgb(51, 102, 255);font-size:130%;" ><span style="font-weight: bold;"><span style="color: rgb(204, 153, 51);">語系設定檔位置:</span><br /></span></span><span style="font-size:100%;"><span style="font-family:arial;"># /etc/sysconfig/i18n</span></span><br />LANG="zh_TW.UTF-8"<br /><br /><span style="font-weight: bold; color: rgb(204, 153, 51);font-size:130%;" >防火牆設定指令:</span><br /><span style="font-family:arial;">#system-config-securitylevel</span><br /><br /><span style="color: rgb(204, 153, 51); font-weight: bold;font-size:130%;" >開機時即自動啟動之系統服務:</span><br /><span style="font-family:arial;">#ntsysv</span>progfloydhttp://www.blogger.com/profile/14553230908198063151noreply@blogger.com0tag:blogger.com,1999:blog-7978867338656590940.post-52178942542196887952008-05-17T14:15:00.004+08:002008-05-26T18:04:08.444+08:00安裝i386 Ubuntu於AMD64的CPU上以 PC (Intel x86) alternate install CD 做安裝時,由於這是給x86核心用的,因此若直接於AMD64上進行安裝會出現一段錯誤訊息,必須於光碟開機後按下F6,再多加入以下參數於option中:<br /><br /><span style="FONT-WEIGHT: bold; COLOR: rgb(204,0,0)">irqpoll pci=noacpi noapic nolapic acpi=off</span><br /><br />如此就可以順利進行安裝。<br /><br />後記:由於此行參數是關閉ACPI的電源管理功能,會造成關機後會主機電源無法自動閉閉,因此需改以APM模組來做為電源管理的daemon:<br />將<span style="FONT-WEIGHT: bold; COLOR: rgb(204,0,0)"> apm power_off=1</span> 加入<span style="COLOR: rgb(204,0,0)"> </span><span style="FONT-WEIGHT: bold; COLOR: rgb(204,0,0)">/etc/modules</span>,重新開機後下次即可正常讓主機電源自動斷電。<br /><br />* 參考資料:<a href="http://www-128.ibm.com/developerworks/cn/linux/l-power/index.html">Linux電源管理</a>progfloydhttp://www.blogger.com/profile/14553230908198063151noreply@blogger.com0