2007-12-15

重裝drupal只匯入bog文章

試了幾次, 終於將drupal中的bog文章, 從mysql中匯出,
重裝後再匯入, 其中bog文章是放在 node 的TABLE中.
以下是過程

1.先dump出mysql的資料庫
mysqldump drupal_db -u root -p > drupal_db.sql


2.用vim編輯drupal_db.sql, 刪除大部, 只留下 node 相關的表格

3.刪除drupal在mysql中的資料庫, 重建資料庫
mysql -u root -p -e "drop database drupal_db"
mysql -u root -p -e "create database drupal_db"

4.重裝drupal(或刪除drupal的設定檔)
rm ~/public_html/drupal6/sites/default/settings.php
chmod 777 ~/public_html/drupal6/sites/default/

5.在瀏覽器中Install drupal.(drupal6)
其中選 Clean URLs: Enabled

6.Administer -> Site building -> Modules : Locale
Administer -> Site building -> Translate interface : Import
Language file: zh-hant/zh-hant.po
Import into: Chinese, Tranditional(繁體中文)
Mode: Strings in the uploaded file replace existing ones, new ones are added
Administer -> Site configuration -> Languages : List
Default : 繁體中文

7.匯入mysql資料庫
mysql drupal_db -u root -p < drupal_db.sql

這樣就可看到文章了, 只有user還沒完整, 因為只有兩個使用者, 直接建立.

2007-12-08

hinet固定ip

hinet非固定制用戶可有固定ip, 已經不是新聞了, 可算上舊舊的新聞, 起因是聽線上音樂, 每到晚上7點後到11點, 總是斷斷續續, 實在不是辦法, 打電話問hinet客服, 才知道固定ip通訊品質比較好, 當然客服人員沒說很清楚, 只是說會有改善, 同樣的繳費, 有不同的服務...

還有的是, 從中華電信撥接用到現在, 我現在才知道, 會叫的小孩資源多...

另外, 應該大部份的人都不知道吧, 也沒聽其他人提過..

hinet的網頁 : http://service.hinet.net/2004/adslstaticip_faq.htm

2007-12-06

使用vim編輯的文章

這是看到別人的blog, 可以更快使用vim
Efficient Editing With vim

2007-12-05

script - 記錄所執行的過程

使用 script 記錄所執行的過程


終端機命令列下, 記錄所執行過程, 會將執行過程存成 typescript 檔, 用 cat typescript 就可看記錄.(不是 history)

  • 啟動 : script
  • 結束離開 : exit
  • 執行過程存檔成 : typescript
  • 查看 : cat typescript


2007-12-04

在 Debian 的 Local User 下裝 WordPress

在 Local User 下裝個 WordPress 測試

http://zerouncle.no-ip.org/~redjoe/wordpress/

還沒調整...

安裝過程 -- Debian Wordpress 安裝

dokuwiki, drupal, WordPress佈景主題更新

佈景主題更新

名稱:
dokuwiki : Template
drupal : Themes
WordPress : Themes


先下載佈景主題(還有其他位置,在這只列舉一個當例子)
dokuwiki -- http://wiki.splitbrain.org/wiki:tpl:templates
drupal -- http://drupal.org/project/themes
WordPress -- http://themes.wordpress.net/

佈景主題解開後放到
dokuwiki位置 : <安裝目錄>/lib/tpl/
drupal位置 : <安裝目錄>/themes/
WordPress位置 : <安裝目錄>/wp-content/themes/

設定(選用)
dokuwiki : 在 <安裝目錄>/conf/local.php 中, 設定 $conf['template'] = 'template_name'; 或在 Dokuwiki 管理者區打開配置, 在 list 中選出.
drupal : drupal 管理->版型 中選出佈景主題
WordPress : 管理者->外觀 中選出佈景主題

這樣就 ok 了..

Wordpress 的佈景產生器

其他的如drupal, wiki等不知是否可以挪來用...

讓使用者可以簡單的調整選單位置、標題(文字)顏色、背景……等等,調整好就可以直接打包下載回來使用..

對於不會寫PHP、CSS的人,又想設計自己版面的風格,可以試試~~

Wordpress Theme Generator LINK - http://www.yvoschaap.com/wpthemegen/