2008年2月27日 星期三
如何連線至windows遠端桌面 "rdesktop"
但是再怎樣都是會有一兩台 windows server
這時就麻煩了
平常在公司時都是使用 windows 所以在遠端管理時都不會有問題
不過一回到家裡就有問題要解決了
就是家裏的電腦是 linux only 所以如果在這時 遠端的 windows 出現問題
雖然曾經有用過 vnc server 但是總是想說用內建功能就好了
經過 google 大神給我的啟示
得到了一樣神器 那就是 "rdesktop" 這套軟體
藉由它可以使 linux 遠端連線到 windows 桌面
裝法就不用闡述了 我本身使用的 opensuse 已經有內建
安裝完只要執行指令
rdesktop -u username -p password ip
或
rdesktop ip <== 我比較常用
這樣就可以快樂的在 linux 桌面上控制 windows 嚕
2008年2月20日 星期三
mysql 備份機制
是寫一個script檔 來定期的匯出 *.sql 到另一顆硬碟
但是那是因為在家裡 所以比較不會注意到復原所需的時間
如果在企業裡復原時間的長短是影響企業的未來
所以我開始尋找如何在主機掛掉時可以用最短的時間內復原
在 google 大神的幫助下 找到了一篇 mysql master/slave 的備份機制
來源:http://blog.pixnet.net/shian0745/post/13034955
希望大家能到原作者網站
預設環境
Master = 192.168.1.102
Slave = 192.168.1.103
要進行資料同步的資料庫 = shian
Mysql 安裝位置 = /usr/local/mysql
注意: 我所安裝的Mysql是用Tarball方式安裝,所以下面的Mysql路徑會有所不一樣 , 請依照你的主機路徑做變更
安裝流程
1. 在Master上開一個帳號給Slave
2. 關閉 Master 的 MySQL
3. 備份要同步化的資料庫
4. 編輯 /etc/my.cnf 檔
5. 啟動 Master 的MySQL
6. 查看Master 是否有設定正確
7. 將備份的資料庫檔 scp 到 Slave
8. 關閉 Slave 的 MySQL
9. 編輯 /etc/my.cnf 檔
10. 解開備份資料庫檔案
11. 啟動 Slave 的 MySQL
12. 測試同步化是否成功
開始安裝
一. 設定Master:
1. 開放一個帳號給Slave連接使用
# /usr/local/mysql/bin/mysql -u root -p
# GRANT REPLICATION SLAVE on *.* to cslave@192.168.1.103 identified by 'cslave0504';
註:
GRANT REPLICATION SLAVE 為MySQL 4.0.2 以後的版本,如果是之前的版本則使用 GRANT FILE
cslave = 帳號
192.168.1.103 = Slave ip
cslave0504 = 密碼
# quit
2. 將MySQL關掉
# /usr/locale/mysql/share/mysql/mysql.server stop
3. 備份要同步化的資料庫
# cd /usr/locale/mysql/var/
# tar -zcpf shian.tar.gz shian/
註: tar 指令加了參數 p, 將檔案權限一併記錄起來, 解壓縮的時候才不用再變更檔案屬性
4. 編輯 /etc/my.cnf
註: 如果在/etc下沒有my.cnf檔,可以從/usr/local/mysql/share/mysql下複製 *.cnf 到 /etc/my.cnf
# cp /usr/local/mysql/share/mysql/my-small.cnf /etc/my.cnf
# vi /etc/my.cnf
在 [mysqld] 區段加入下面這些參數:
server-id = 1
log-bin = /usr/local/mysql/var/vmcentos-bin
binlog-do-db = shian
註:
server-id = 1 <= x其中x為主機id=1,2,3 1為最大所以在master上設server-id為1 log-bin = /usr/local/mysql/var/vmcentos-bin <= 記錄 Master 所有更動 LOG 記錄下來,讓 Slave 過來同步, 上面所寫的位置為我MySQL的位置 ,vmcentos:主機名稱 binlog-do-db = shian <= 對 shian 這資料庫做同步化的記錄 ,如需多個資料庫則必須再新增一行 binlog-do-db = XXX
5. 啟動Mysql
# /usr/local/mysql/share/mysql/mysql.server start
6. 查看 Master 是否有同步化 shian 資料庫
# /usr/local/mysql/bin/mysql -u root -p
# SHOW MASTER STATUS;
+---------------------+----------+--------------+------------------+
| File | Position | Binlog_Do_DB | Binlog_Ignore_DB |
+---------------------+----------+--------------+------------------+
| vmcentos-bin.000001 | 596 | shian | |
+---------------------+----------+--------------+------------------+
如果在 Binlog_Do_DB 有出現所指定要同步化的資料庫如shian , 則表示 Master 正在同步化 shian 資料庫
7. 將備份的資料庫 shian 丟給其它的 Slave server 上
# cd /usr/local/mysql/var
# scp shian.tar.gz shian@192.168.1.103:/tmp
二. 設定Slave:
1. 將MySQL關掉
# /usr/locale/mysql/share/mysql/mysql.server stop
2. 編輯 /etc/my.cnf
如果在/etc下沒有my.cnf檔,可以從/usr/local/mysql/share/mysql下複製 *.cnf 到 /etc/my.cnf
# cp /usr/local/mysql/share/mysql/my-small.cnf /etc/my.cnf
# vi /etc/my.cnf
在 [mysqld] 區段加入下面這些參數:
server-id=3
log-bin=suse-bin
relay-log=suse-relay-bin
replicate-do-db=shian
replicate-same-server-id
master-host=192.168.1.102
master-user=cslave
master-password=cslave0504
master-port=3306
master-connect-retry=60
註:
server-id=3 <= 為主機id=3 log-bin=suse-bin <= Slave 二進位記錄檔 relay-log=suse-relay-bin <= Slave 二進位記錄檔 replicate-do-db=shian <= 指定要同步化的資料庫, 如需多個資料庫則多加 replicate-do-db=xxx 即可 replicate-same-server-id master-host=192.168.1.102 <= Master ip master-user=cslave <= Master 所給的帳號 master-password=cslave0504 <= Master 所給的密碼 master-port=3306 <= Master 的 MySQL port master-connect-retry=60 <= 錯誤發生重試的間隔時間(60秒)
3. 解開 Master 備份好的資料庫檔案
# cd /usr/local/mysql/var
# tar -zxvf /tmp/shian.tar.gz
註: 如果解出來的檔案、目錄權限不對的話, 可以用 chown、chmod 來變更
4. 啟動 MySQL
# /usr/local/mysql/share/mysql/mysql.server star
三. 測試是否同步化成功
進入Mysql後下 SHOW SLAVE STATUS\G; 這指令 ,
查看 Slave_IO_Running: Yes , Slave_SQL_Running: Yes, 這二個選項都為Yes表示同步化成功,
然後在 Master 主機上 新增一個 table 後並新增一筆資料, 然後在 Slave 如也有新增同樣的 table 並 也有相同的資料,則表示同步化成功,
如果 Slave 主機出問題或關機 ,並不會影響 Master 運作, 等 Slave 恢復正常後會自己做同步化Master的動作
四. 錯誤訊息
1. No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=suse-bin' to avoid this problem.
A: 在 /etc/my.cnf 的[mysqld]裡加上這參數 log-bin=suse-bin, (suse為我的主機名,所以每一台會不一樣)
2. Neither --relay-log nor --relay-log-index were used; so replication may break when this MySQL server acts as a slave and has his hostname changed!! Please use '--relay-log=suse-relay-bin' to avoid this problem.
A: 在 /etc/my.cnf 的[mysqld]裡加上這參數 relay-log=suse-relay-bin (suse為我的主機名,所以每一台會不一樣)
3. [ERROR] The slave I/O thread stops because master and slave have equal MySQL server ids; these ids must be different for replication to work (or the --replicate-same-server-id option must be used on slave but this does not always make sense; please check the manual before using it).
A: 在 /etc/my.cnf 的[mysqld]裡加上這參數 replicate-same-server-id
4. 101110 22:41:54 [ERROR] Slave I/O thread: error connecting to master 'cslave@192.168.1.99:3306': Error: 'Access denied for user 'cslave'@'192.168.1.118' (using password: YES)' errno: 1045 retry-time: 60 retries: 86400
A: 請登入slave的mysql裡,直接打入以下指令
mysql> slave stop;
mysql> CHANGE MASTER TO MASTER_HOST='192.168.0.1',MASTER_USER='slave',MASTER_PASSWORD='111111',MASTER_LOG_FILE='mysql-bin.000001',MASTER_LOG_POS=106;
參數說明可以參考這篇 http://twpug.net/docs/mysql-5.1/replication.html
以後就不用怕主機掛點時需要恢復資料庫的時間太長
2008年2月17日 星期日
open suse 10.3 smart安裝來源
在 yast 中新增了 "社群套件庫"
這項功能讓我們不用再自己打安裝來源的網址了
但是我還是喜歡用 smart 來尋找套件
下面就是 10.3 的安裝來源
# smart channel --remove-all
smart103.channel
[wlan]
type = rpm-md
name = Wlan
disabled = yes
baseurl = http://download.opensuse.org/repositories/drivers:/wlan/SUSE_Linux_Factory/
[gnome-stable]
type = rpm-md
name = GNOME STABLE
disabled = yes
baseurl = http://download.opensuse.org/repositories/GNOME:/STABLE/openSUSE_10.3/
[videolan]
type = rpm-md
name = VideoLan
disabled = yes
baseurl = http://download.videolan.org/pub/vlc/SuSE/10.3/
[m17n]
type = rpm-md
name = M17N
disabled = yes
baseurl = http://download.opensuse.org/repositories/M17N/openSUSE_10.3/
[ati]
type = rpm-md
name = ATI Video driver
disabled = yes
baseurl = http://www2.ati.com/suse/10.3/
[qemu]
type = rpm-md
name = QEMU
disabled = yes
baseurl = http://download.opensuse.org/repositories/Virtualization:/Qemu/openSUSE_10.3/
[opensuse-non-oss-tw]
type = yast2
name = openSUSE 10.3 non-oss
baseurl = http://ftp.twaren.net/Linux/OpenSuSE/distribution/10.3/repo/non-oss/
[virtualbox]
type = rpm-md
name = VirtualBox
disabled = yes
baseurl = http://download.opensuse.org/repositories/Virtualization:/VirtualBox/openSUSE_10.3/
[opensuse-src-oss-tw]
type = rpm-md
name = openSUSE 10.3 source rpm (expert only)
disabled = yes
baseurl = http://ftp.twaren.net/Linux/OpenSuSE/distribution/10.3/repo/src-oss/suse/
[games-action]
type = rpm-md
name = games-action
disabled = yes
baseurl = http://download.opensuse.org/repositories/games:/action/openSUSE_10.3/
[guru]
type = rpm-md
name = Guru
disabled = yes
baseurl = http://ftp.gwdg.de/pub/linux/misc/suser-guru/rpm/10.3/RPMS/
[opensuse-debug-tw]
type = yast2
name = openSUSE 10.3 debug rpm (expert only)
disabled = yes
baseurl = http://ftp.twaren.net/Linux/OpenSuSE/distribution/10.3/repo/debug/
[thruth]
type = rpm-md
name = Thruth
disabled = yes
baseurl = http://download.opensuse.org/repositories/home:/Thruth/openSUSE_10.3/
[x11-xgl]
type = rpm-md
name = X11 XGL
disabled = yes
baseurl = http://download.opensuse.org/repositories/X11:/XGL/openSUSE_10.3/
[mail]
type = rpm-md
name = Mail
disabled = yes
baseurl = http://download.opensuse.org/repositories/server:/mail/openSUSE_10.3/
[smart]
type = rpm-md
name = smart
baseurl = http://download.opensuse.org/repositories/smart/openSUSE_10.3/
[opensuse-update-tw]
type = rpm-md
name = openSUSE 10.3 update
baseurl = http://ftp.twaren.net/Linux/OpenSuSE/update/10.3/
[swyear]
type = rpm-md
name = swyear
baseurl = http://download.opensuse.org/repositories/home:/swyear/openSUSE_10.3/
[openoffice_org-stable]
type = rpm-md
name = OpenOffice.org STABLE
disabled = yes
baseurl = http://download.opensuse.org/repositories/OpenOffice.org:/STABLE/openSUSE_10.3/
[mozilla]
type = rpm-md
name = Mozilla
disabled = yes
baseurl = http://download.opensuse.org/repositories/mozilla/openSUSE_10.3/
[kde-backports]
type = rpm-md
name = KDE Backports
disabled = yes
baseurl = http://download.opensuse.org/repositories/KDE:/Backports/openSUSE_10.3/
[php]
type = rpm-md
name = PHP
disabled = yes
baseurl = http://download.opensuse.org/repositories/server:/php/openSUSE_10.3/
[opensuse-oss-tw]
type = yast2
name = openSUSE 10.3 oss
baseurl = http://ftp.twaren.net/Linux/OpenSuSE/distribution/10.3/repo/oss/
[webcam]
type = rpm-md
name = Webcam
disabled = yes
baseurl = http://download.opensuse.org/repositories/drivers:/webcam/openSUSE_10.3/
[kde-community]
type = rpm-md
name = KDE Community
disabled = yes
baseurl = http://download.opensuse.org/repositories/KDE:/Community/openSUSE_10.3/
[database]
type = rpm-md
name = Database
disabled = yes
baseurl = http://download.opensuse.org/repositories/server:/database/openSUSE_10.3/
[gnome-community]
type = rpm-md
name = GNOME Community
disabled = yes
baseurl = http://download.opensuse.org/repositories/GNOME:/Community/openSUSE_10.3/
[packman]
type = rpm-md
name = Packman
disabled = yes
baseurl = http://ftp.twaren.net/Linux/Packman/suse/10.3/
[nvidia]
type = rpm-md
name = NVIDIA driver
disabled = yes
baseurl = http://download.nvidia.com/opensuse/10.3/
[xfce]
type = rpm-md
name = Xfce
disabled = yes
baseurl = http://download.opensuse.org/repositories/X11:/xfce/openSUSE_10.3/
[wine]
type = rpm-md
name = Wine
disabled = yes
baseurl = http://download.opensuse.org/repositories/Emulators:/Wine/openSUSE_10.3/
[madwifi]
type = rpm-md
name = MadWifi
disabled = yes
baseurl = http://madwifi.org/suse/10.3/
smart103.mirror
http://ftp.twaren.net/Linux/OpenSuSE/distribution/10.3/repo/src-oss/suse/
http://ftp.tcc.edu.tw/iso/openSUSE/distribution/10.3/repo/src-oss/suse/
http://ftp.cs.pu.edu.tw/Linux/OpenSuse/distribution/10.3/repo/src-oss/suse/
http://ftp.cse.yzu.edu.tw/pub/Linux/openSUSE/distribution/10.3/repo/src-oss/suse/
http://download.opensuse.org/distribution/10.3/repo/src-oss/suse/
http://ftp.gwdg.de/pub/linux/misc/suser-guru/rpm/10.3/RPMS/
http://ftp.skynet.be/pub/suser-guru/rpm/10.3/RPMS/
http://ftp.twaren.net/Linux/Packman/suse/10.3/
http://ftp.skynet.be/pub/packman/suse/10.3/
http://packman.iu-bremen.de/suse/10.3/
http://packman.unixheads.com/suse/10.3/
http://mirror.pacific.net.au/linux/packman/suse/10.3/
http://mirror.geht-schon.de/packman.links2linux.de/suse/10.3/
http://ftp.uni-erlangen.de/pub/mirrors/packman/suse/10.3/
http://ftp.halifax.rwth-aachen.de/packman/suse/10.3/
http://ftp.gwdg.de/pub/linux/misc/packman/suse/10.3/
http://ftp.gts.lug.ro/packman/suse/10.3/
http://ftp.twaren.net/Linux/OpenSuSE/distribution/10.3/repo/debug/
http://ftp.tcc.edu.tw/iso/openSUSE/distribution/10.3/repo/debug/
http://ftp.cs.pu.edu.tw/Linux/OpenSuse/distribution/10.3/repo/debug/
http://ftp.cse.yzu.edu.tw/pub/Linux/openSUSE/distribution/10.3/repo/debug/
http://download.opensuse.org/distribution/10.3/repo/debug/
http://ftp.twaren.net/Linux/OpenSuSE/distribution/10.3/repo/non-oss/
http://ftp.tcc.edu.tw/iso/openSUSE/distribution/10.3/repo/non-oss/
http://ftp.cs.pu.edu.tw/Linux/OpenSuse/distribution/10.3/repo/non-oss/
http://ftp.cse.yzu.edu.tw/pub/Linux/openSUSE/distribution/10.3/repo/non-oss/
http://download.opensuse.org/distribution/10.3/repo/non-oss/
http://ftp.twaren.net/Linux/OpenSuSE/update/10.3/
http://ftp.tcc.edu.tw/iso/openSUSE/update/10.3/
http://ftp.cs.pu.edu.tw/Linux/OpenSuse/update/10.3/
http://ftp.cse.yzu.edu.tw/pub/Linux/openSUSE/update/10.3/
http://download.opensuse.org/update/10.3/
http://ftp.twaren.net/Linux/OpenSuSE/distribution/10.3/repo/oss/
http://ftp.tcc.edu.tw/iso/openSUSE/distribution/10.3/repo/oss/
http://ftp.cs.pu.edu.tw/Linux/OpenSuse/distribution/10.3/repo/oss/
http://ftp.cse.yzu.edu.tw/pub/Linux/openSUSE/distribution/10.3/repo/oss/
http://download.opensuse.org/distribution/10.3/repo/oss/
最後請執行
# smart channel --add smart103.channel -y
# smart mirror --add smart103.mirror
本篇來源為 http://swyear.blogspot.com/ 比較希望大家到原作者的網站多多支持
注意(原作者提醒):主要套件庫我都是用 http://ftp.twaren.net
其他(包含 openSUSE 官方)當作 mirror
wlan 套件庫用的是 Factory (感覺不像常維護)
可能導致一些核心模組無法安裝使用
預設使用了 oss, non-oss, update, swyear, smart 這幾個頻道
其他請您視需要自行開啟使用(注意風險)
2008年2月16日 星期六
google blog 在文章中顯示網頁語法
但是在 google blog 中沒辦法只顯示網頁語法
以下就是我查詢到的方法
步驟一:複製以下CSS程式碼
CODE { display: block; /* fixes a strange ie margin bug */ font-family: Courier New; font-size: 8pt; overflow:auto; background: #f0f0f0 url(http://klcintw.images.googlepages.com/Code_BG.gif) left top repeat-y; border: 1px solid #ccc; padding: 10px 10px 10px 21px; max-height:200px; line-height: 1.2em; }
以上這一行請到blogger範本->修改HTML
貼在
<head> ..... </head>
之間例如我是貼在
/* Variable definitions
====================
的上面
步驟二:取代特殊字元.<取代為< .>取代為> .&取代為&
步驟三:使用<code.ref> tag在文章中要顯示的程式碼的方法<code class="ref"> 此處貼上要顯示的程式碼 </code>
google earth
最近看科技新聞看到了 Google 終於把他們的 Google earth 翻譯成繁體中文給我們臺灣人使用啦
http://earth.google.com/intl/zh-TW/tour/thanks-win4.html <== 下載點
我使用之後 真的是只能用 "哇" 一個字來表達我的感受
不要說這麼多了
還是讓大家實際體會才知道
xgl + beryl 特效安裝
今天要講的是如何變成像網路上那麼的炫的桌面特效
首先可以先參考這個網站 http://en.opensuse.org/Beryl
這裡我用的是 OPENSUSE 10.2
不過大部分的 linux 裝法都相似拉
保險業務員就跟蟑螂一樣
我為什麼會貼這個呢
因為我有一個朋友就是在保險業打混的
起初他來跟我說保險的事情時 我都會拖
其實我雖然不排斥保險 但是呢
我是個有多少能力就做多少事情的人 所以當時礙於個人財務上的窘困
沒辦法跟他好好的坐下來談關於保險的事情
不過他還是沒有放棄
就這樣過了很久
之後我也換了待遇比較好的工作 這時他又跟我談論保險的事情
最後終於還是保了 雖然是小保 但是他的精神我真的有佩服到
剛剛又看到了這個影片
感覺做保險業務真的是要非常的可以吃苦 <== 指的是面對客戶的種種考驗
就是説一定要做到 不要臉 的精神
vista VS beryl
這一篇其實我粉早就想寫了
在別的論壇裡常常看到 VISTA 的特效多好多漂亮
這時讓使用 LINUX 的我心中真不是滋味
但是我先澄清我不是討厭 WINDOWS 因為工作上的原因使我離不開 WINDOWS
先撇開 VISTA 在硬體上的限制和效能上的改善
就以桌面特效來跟 LINUX 做比較
不管以前或現在 大多數的人還是認為 LINUX 只能使用文字介面來操作
所以在接受度方面始終不如 WINDOWS
不過以下就是 VISTA 介面 跟 LINUX 的 BERYL 作比較
VISTA-畫面
LINUX-beryl 畫面
相信明眼人都看的出來 LINUX 的 BERYL 根本不輸給 VISTA 的畫面
而且 BERYL 只要用 FX 5200 就可以跑的非常順暢 不會佔太多系統資源
BERYL 還在持續更新中 目前已出 3 版了
至於怎麼裝 在網路上已有太多教學了
所以可以先去網路找一下 下次我在貼教學
SUSE10.2重裝GRUB法
相信大家都有遇到一個問題
那就是開機時停留在 grub> 或者是先灌 LINUX 在灌 WINDOS 時 MBR 被刪掉而無法選擇 LINUX 的作業系統
這時大家就會拿出 LINUX 光碟片來執行以下步驟
首先到單人模式把根目錄掛載起來
然後執行 grub-install 磁區
但是在這時會發現系統無法安裝 GRUB
如果執行 fdisk -l 會看到怎麼該有的磁區都不見了勒
這時就要用以下的方法才能完成安裝 GRUB
關於羅技的 webcam
小弟有一個羅技早期 USB QuickCam Express
可惜的是 spca5xx竟然沒給我支援
本來在想放棄的情況下
想說用 YAST 找找看 結果竟然有搜尋到 module 線在正在高興的使用中
以下是安裝方法
apache2 的一個小錯誤
我在suse10.2上開啟apache2時會出現
—————————————————————————————————————————————-
Starting httpd2 (prefork) httpd2-prefork: apr_sockaddr_info_get() failed for zipe
httpd2-prefork: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
—————————————————————————————————————————————–
如果出現以上錯誤的人
請修改 httpd.conf
增加
ServerName localhost
重開 apache2 後就不會有問題拉
SUSE VNC安裝法
如果想遠端遙控安裝的話這招很好用
就是放入安裝片
選擇 install 後 再打入參數 vnc=1 vncpassword=YOURPASSWORD
最後會停在
Starting VNC server …
A log file will be written to : /var/log/YaST2/vncserver.log …
***
*** You can connect to 192.168.0.10 , display:1 now with vncviewer
*** Or use a Java capable browser on http://192.168.0.10:5801/
***
(When YaST2 is finished , close your VNC viewer and return to this window .)
*** Starting YaST2 ***
這時 client 就可以開 VNC Viewer 來安裝了
不過我用起來感覺不實用就是了
SUSE 網路安裝法
如果遇到有很多台電腦同時要重灌時,而又不想浪費光碟片
透過 FTP 或 NFS 安裝是最好的方法
首先把 DHCP 和 FTP 設定好
然後下載 SUSE 10.2 的 ISO 檔
在掛載到指定的 FTP 目錄
#mkdir /mnt/suse10.2-i386
#mount -o loop suse10.2-i386.iso /mnt/suse10.2-i386
我的postfix設定法
這是我個人在 SUSE 10.2 上 postfix 的設定方式
因為每次重灌時都沒備份起來,所以都要重新設定一次
加上我沒啥記性,重設定一次就要重新找一次資料
所以趕快把設定檔貼上來,這樣就不用怕了
QuiXplorer 安裝法!!
QuiXplorer 跟 PHPWEBFTP 一樣
可以用網頁的方式從遠端連回本機來讀取下載所需的資料
兩者差別就在於
PHWEFTP 因為是透過 FTP 伺服器連回本機 所以需架設 FTP伺服器
QuiXplorer 則是直接透過 WEB 伺服器連回本機 所以只要有WEB伺服器就好
但是在安全性來講
PHPWEBFTP 可以透過 FTP 伺服器來更改權限
而 QuiXplorer 只能以網頁伺服器的權限來修改讀取檔案
所以我比較喜歡用PHPWEBFTP
再來就是安裝教學啦!!
第一步驟:
先下載最新版本 http://quixplorer.sourceforge.net/
而中文化版 http://a09090443.myweb.hinet.net/big5_quixplorer_2_3_1.zip
如果要 UTF-8 的版本就需要自己轉摟
第二步驟:
解壓縮至網頁目錄下
並改名成比較好記得的 如:webhd
第三步驟:
#chmod -R 755 webhd
這樣才可以正常讀取到網頁
第四步驟:
切換到 webhd 目錄下
並編輯 .config/conf.php
找到下面一行
$GLOBALS[”require_login”] = true; <== 改成 true 才能登入
第六步驟:
修改權限
#chmod 777 .config/.htusers.php
這樣才能新增使用者,新增完使用者記得要改回 644 的權限
以上步驟完成後輸入自己網頁的網就會出現登入畫面
預設帳號:admin 密碼:pwd_admin
新增使用者後記得把 admin 給刪掉
圖片如下


2008年2月15日 星期五
2008年2月14日 星期四
在SUSE裡更改網路卡別名之方法
SUSE跟其他別的LINUX有很多不同的地方
像是我現在要改的網卡別名
在REDHAT裡就可以直接在 /etc/sysconfig/network-script/ifcfg-ethx
設定網路卡別名
而SUSE就要像下面這個方法改才行
SUSE 10.2 KDE 登入畫面改變方法
我看了之後覺得很棒 想改看看
這就是我改好的畫面

教學如下:
先抓一個 KDE 的主題
http://www.kde-look.org/ <==這個網站有很多KDE相關的軟體跟主題
抓下來後 先將套件解壓縮
並放置於 /opt/kde3/share/apps/kdm/themes/裡
接下來 編輯 /opt/kde3/share/config/kdm/kdmrc
在第462行的地方有個
…
..
..
#Theme=
..
..
把”#”拿掉
改成
Theme=/opt/kde3/share/apps/kdm/themes/目錄檔名
讓LINUX讀寫NTFS磁區方法
如果在SUSE裡用YAST加入安裝來源
http://software.opensuse.org/download/fi…
其他版本的LINUX則到 http://www.ntfs-3g.org/ 下載自己所用的LINUX版本
安裝好之後
下指令:
#mount -t ntfs-3g /dev/磁區 /掛載目錄
open suse 10.2 安裝來源
以下是我從一些網站收集到的
ftp://ftp.cs.pu.edu.tw/Linux/OpenSuse/distribution/10.2/repo/oss/
ftp://ftp.cs.pu.edu.tw/Linux/OpenSuse/distribution/10.2/repo/non-oss/
ftp://ftp.isu.edu.tw/Linux/SuSE/update/10.2
多媒體
http://packman.iu-bremen.de/suse/10.2/
nvidia 驅動程式
http://download.nvidia.com/opensuse/10.2/