寫這篇是因為 ati 現在將 driver 的下載用的很麻煩
除了 https 加密連線外,還需要原點擊檔案連結的網頁位置
因此要用 wget 需要加額外參數

需要用的到參數有
--no-check-certificate  #不需要確認 server 端認證是否有效
-referer=網址              #點擊檔案連結的網址

以下是範例,是我今天下載驅動的指令
wget --no-check-certificate --referer=http://game.amd.com/us-en/drivers_catalyst.aspx?p=xp/radeonx-xp  https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/gamesite/7-10_xp32_dd_ccc_wdm_enu_53250.exe

smalldd 發表在 痞客邦 留言(0) 人氣()

今日將 ubuntu 從 7.04 upgrade to 7.10

發生一些問題導致升級不順利
在移除一些軟體後,好不容易升級

但是php5在上述過程中被移除掉了
因此在升級完後,再次安裝了php5
sudo apt-get install php5 php5-mysql

上述的過程在 7.04 中
apache2 的 php5 module 會自動被啟動
 
但在 7.10 中
/etc/apache2/mods-enabled 資料夾內並沒有 php5.conf , php5.load

所以必須執行啟動的指令
sudo a2enmod php5
接著重新啟動 apache2
sudo /etc/init.d/apache2 restart

大功告成~ php5 已經可以在 apache2 中使用

smalldd 發表在 痞客邦 留言(0) 人氣()

1.
安裝更新管理員
sudo apt-get install update-manager-core

2.
sudo do-release-upgrade

接著依著提示設定即可

若有裝
vnc 軟體
需先將之移除再升級

smalldd 發表在 痞客邦 留言(0) 人氣()

會用這小工具主要是因為在安裝 nvidia driver 時,7.04 不像 7.10 聰明,
且似乎把小弟弟的顯示卡用的 driver package 搞錯了。
應該安裝 nvidia-glx-new,卻裝成 nvidia-glx。

上網搜尋資料,在 ubuntu 官方論壇上發現這個網站,所以就嘗試一下。


envy 主要是用來安裝 Nvidia、ATI Driver 的小工具。
由於小弟弟只有 Nvidia 的顯示卡,所以這邊就只能說明 Nvidia 相關的訊息。

這小工具是利用寫好的 scripts 自動安裝顯示卡的 Driver

envy 的安裝:
1.
從官方網站下載 envy_0.9.7-0ubuntu12_all.deb

2.
sudo dpkg -i envy_0.9.7-0ubuntu12_all.deb

接著就可以執行
Applications -> System Tools -> envy

選擇
Install the NVIDIA driver
or
Install the NVIDIA driver Manually
就可以開始安裝 driver



2007-11-12 附記
envy 也有文字模式
可在console下執行
有興趣者可在 console 下執行以下指令
envy -t

smalldd 發表在 痞客邦 留言(0) 人氣()

1.
下載 Discuz! 6.0.0
wget 'http://download.discuz.net/6.0.0/Discuz!_6.0.0_TC_UTF8.zip'

2.
解壓縮
unzip 'Discuz!_6.0.0_TC_UTF8.zip'

3.
將 upload 內資料夾內的所有檔案搬到 論壇資料夾下
cp * ~/WWW/forum

4.
將論壇資料夾下,以下的資料夾與檔案 變更權限為 777
* ./templates
* ./attachments
* ./customavatar
* ./forumdata
* ./forumdata/cache
* ./forumdata/templates
* ./forumdata/threadcaches
* ./forumdata/logs

chmod -R 777 templates
chmod 777 attachments customavatar forumdata forumdata/cache forumdata/templates forumdata/threadcaches /forumdata/logs

5.
編輯設定檔 config.inc.php
設定以下資訊
$dbhost = 'localhost';                             // database server
$dbuser = 'dbuser';                                // database username
$dbpw = 'dbpw';                                      // database password
$dbname = 'discuz';                               // database name
$adminemail = 'admin@your.com';    // admin email
$dbreport = 0;                                          // send db error report? 1=yes, 0=no

以下安裝說明沒說,但小弟建議先行設定
$cookiepre = 'cdb_';                               // prefix of cookie
$tablepre = 'cdb_';                                  // prefix of table in database

6.
執行安裝
http://domain_name/forum/install.php

沒問題的話就安裝成功了

smalldd 發表在 痞客邦 留言(1) 人氣()

1.
從 Zend 網站下載 Zend Optimizer 3.3.0
由於 Zend 下載必須先登入
所以必須用瀏覽器下載

2.
解壓縮
tar zxvf  ZendOptimizer-3.3.0a-linux-glibc21-i386.tar.gz

3.
進入資料夾
cd  ZendOptimizer-3.3.0a-linux-glibc21-i386

4.
執行安裝程式
./install.sh

5.
設定 Zend Optimizer 安裝資料夾
/usr/local/Zend

6.
設定 php.ini 位置
/etc/php5/apache2

7.
確認使用 Apache Web Servery
Yes

8.
設定 Apache control utility (apachectl) 位置
/usr/sbin/apache2ctl

9.
接著安裝程式告知以下訊息
The following configuration changes have been made:
- The php.ini file has been relocated from /etc/php5/apache2 to /usr/local/Zend/etc
 - A symbolic link for the php.ini file has been created in /etc/php5/apache2.
 - The original php.ini was backed up to   /etc/php5/apache2/php.ini-zend_optimizer.bak

10.
最後安裝程式要求重新啟動 apache

smalldd 發表在 痞客邦 留言(0) 人氣()

雖然說 xoops 跟 ubuntu 似乎扯不上什麼關係,還是硬扯一下XD

1.
下載 xoops 2.0.16
http://xoops.tnc.edu.tw/
這過程讓我很無言,我得先用瀏覽器下載,再用ftp丟到主機上
wget不能直接下載

2.
解壓縮
tar zxvf xoops-2.0.16-tw-utf8.tgz

3.
將資料夾 xoops-2.0.16-tw-utf8 下資料夾 html 裡面的所有檔案與資料夾放到網站根目錄資料夾下

4.
接著用瀏覽器開啟 http://domain_name/
依著說明跟著做

5.
將資料夾 uploads cache templates_c 和檔案 mainfile.php 變更屬性
sudo chmod 777 uploads cache templates_c
sudo chmod 666 mainfile.php

6.
全部設定完,刪除資料夾 install
rm -r install
變更 mainfile.php 權限
chmod 444 mainfile.php

ok! 大功告成

smalldd 發表在 痞客邦 留言(0) 人氣()

1.
安裝apache2
sudo apt-get install apache2

2.
安裝php5
sudo apt-get install php5

3.
安裝mysql
sudo apt-get install mysql-server-5.0 mysql-client

4.
安裝php5的mysql資源庫
sudo apt-get install php5-mysql

5.
設定 mysql 密碼
mysqladmin -u root -p 'PASSWORD'
但是這只有設定 localhost  的 root 密碼

若要設定其他 root 密碼可使用 phpmyadmin 設置

6.
設定 mysql 預設 charset
sudo vim /etc/mysql/my.cnf
在 [client] 下增加
default-character-set=utf8
在 [mysqld] 下增加
default-character-set=utf8
default-collation=utf8_general_ci

7.
設定 default site document
sudo vim /etc/apache2/sites-enabled/000-default
將 /var/www/ 改變成 主網站的資料夾
順便將 phpmyadmin 的連結 移至主網站資料夾下
mv /var/www/phpmyadmin /home/sd/www/phpmyadmin

若要增加 virtual host
則要在 /etc/apache2/sites-avaible 下新增設定檔
用 a2ensite / a2dissite 啟動/關閉設定檔

8.
設定 apache2 的 local 使用者的 網站資料夾
sudo vim /etc/apache2/mods-enabled/userdir.conf
把 public_html 換成 想要的 資料夾名稱,如:WWW
如此一來 apache2 會將
http://domain_name/~user
直接對映至 user/WWW

smalldd 發表在 痞客邦 留言(0) 人氣()

/etc/apt/source.list

#
# deb cdrom:[Ubuntu 7.04 _Feisty Fawn_ - Release i386 (20070418)]/ feisty main restricted

#deb cdrom:[Ubuntu 7.04 _Feisty Fawn_ - Release i386 (20070418)]/ feisty main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ feisty main restricted
deb-src http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ feisty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ feisty-updates main restricted
deb-src http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ feisty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ feisty universe
deb-src http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ feisty universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ feisty multiverse
deb-src http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ feisty multivers

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://tw.archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse
# deb-src http://tw.archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse

deb http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ feisty-security main restricted
deb-src http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ feisty-security main restricted
deb http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ feisty-security universe
deb-src http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ feisty-security universe
deb http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ feisty-security multiverse
deb http://archive.ubuntu.com/ubuntu/ feisty-proposed restricted main multiverse universe
deb http://archive.ubuntu.com/ubuntu/ feisty-backports restricted main multiverse universe
deb-src http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ feisty-security multiverse

smalldd 發表在 痞客邦 留言(0) 人氣()

本例以scim輸入法為例

1.
sudo apt-get install scim-qtimm

2.
im-switch -z all_ALL -s scim
將scim設為所有語系的預設輸入法

3.
Ctrl + Alt + Backspace
重新啟動GUI介面

smalldd 發表在 痞客邦 留言(0) 人氣()