2007年12月10日 星期一

讓 office2003 開 2007 的檔案

http://www.microsoft.com/downloads/details.aspx?FamilyID=941B3470-3AE9-4AEE-8F43-C6BB74CD1466&displaylang=zh-tw

Microsoft Office Word、Excel 及 PowerPoint 2007 檔案格式相容性套件

簡述
使用 Microsoft Office Word、Excel 和 PowerPoint 2007 的新檔案格式開啟、編輯與儲存文件、活頁簿與簡報。

--

應該裝了就可以開吧 囧~~~

2007年11月21日 星期三

ns2 trace format

http://bunlab.twbbs.org/ns2_trace_format.htm


原本的
http://nsnam.isi.edu/nsnam/index.php/NS-2_Trace_Formats

可是好像被人修掉了 = =||
然後去google有找到庫存網頁 然後就存下來備份

科科

2007年11月20日 星期二

Just In time Debugger

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=930243&SiteID=1

You should be able to go to Tools -> Options -> Debugging -> Just-In-Time and disable VS as the JIT debugger.

If that doesn't work see http://support.microsoft.com/default.aspx/kb/923827 to restore Dr. Watson as the handler for unhandled exceptions.


--

http://support.microsoft.com/default.aspx/kb/923827

到這邊把登錄檔的auto改成0 不知道這樣行不行....XD

--

改成0 會出現好久沒看到的程式錯誤回報畫面 XD

2007年11月18日 星期日

xp 自動登入

control userpasswords2

http://support.microsoft.com/kb/315231/zh-tw

2007年10月25日 星期四

Documentation

http://docs.meraki.net/

Meraki Knowledge Base

http://meraki.com/help/kb.php

搜尋解決方式

--

zzz

Meraki Knowledge Base

There is a bug in some of the nodes where the static IP will not be written to the gateway's memory. The only way to fix this issue is to plug at least one of your nodes in the Internet via a DCHP server. You will need to place a wired router (Netgear, Linksys, D-Link ,etc.) that has DHCP enabled between your DSL modem and your Meraki:
DSL Modem --- 3rd Party Router --- Meraki

Make sure you have already added the Meraki to your Dashboard page and let the Meraki sit for at least 1 hour. It will automatically download the latest firmware. After the download you can remove the 3rd Party Router:
DSL Modem --- Meraki

You can now input the static IP settings of your ISP by logging into http://10.128.128.128 of the Meraki gateway node. The other nodes on your network will automatically download the latest firmware once they mesh with the gateway node.

This is not to be confused with setting static IP's for your wireless computers or other wireless clients in your internal network. Your wireless computer cannot get a static IP from a Meraki Mini.

--

怎麼進去啊 囧?

bluetooth 安裝成功

果然要重裝 = =|||

orz.....

現在是兩個ns2共存 XDDDD

2007年10月24日 星期三

samba 新增使用者

新增 Samba 使用者:

smbpasswd -a test

New SMB password:
Retype new SMB password:
Added user test.

http://ostask.nchc.org.tw/intro_to_linux/part4/samba.html

Trace_Formats

http://nsnam.isi.edu/nsnam/index.php/NS-2_Trace_Formats

2007年10月23日 星期二

ns2 & bt 問題 (orz.......)

bluetooth for ns2 : http://www.ececs.uc.edu/%7Ecdmc/ucbt/
(沒說明文件 = =)


第一次執行安裝出現這玩意 看樣子應該是資料夾錯誤吧!?
把ucbt的資料夾移到"ns-allinone-2.29/ns-2.29/ucbt-0.9.9.2a"

./install-bt
Cannot find ns directory.
please check if you untar the tar ball in the correct directory.

directory tree

|__ ns-allinone-2.xx --- ns-2.xx -- bluetooth -- ns-2.26
| | |_ ns-2.1b9a
| | |_ ...
| | |_ test
| |_ common
| |_ ...
|__ nam...
|__ ...

You should 'tar zxvf bt.xx.tgz' in the directory 'ns-2.xx'

You should run './install-bt' in the directory 'bluetooth'

<---------------------------------------------------------------------->

好吧 移完資料夾後再安裝一次 可是出現下面這玩意 = =|||

./install-bt
Looks like ns generated Makefile found. Either you invoked
./install-bt [-d|-t]
in the wrong directory, or ns has (attempted) been installed.
Please have a fresh ns-all-in-one tarball, and use './instll-bt'
alone to do the whole installation.

<---------------------------------------------------------------------->
心中有不詳預感 不過還是加上參數 -d -t 看看有啥訊息

./install-bt -d
Looks like ns generated Makefile found. Either you invoked
./install-bt [-d|-t]
in the wrong directory, or ns has (attempted) been installed.
Please have a fresh ns-all-in-one tarball, and use './instll-bt'
alone to do the whole installation.

./install-bt -t
No tcl-debug-2.0 found in /ns2/ns-allinone-2.29. Please download it
from
http://expect.nist.gov/tcl-debug/tcl-debug.tar.gz,
and unpack it into /ns2/ns-allinone-2.29.

下載tcl-debug後還是一樣的錯誤訊息(跟前兩個一樣) orz

<---------------------------------------------------------------------->

恩...從這段來看
Please have a fresh ns-all-in-one tarball, and use './instll-bt'
alone to do the whole installation.


該不會是說 要裝bt的話 在當初安裝ns的時候 要執行./install-bt來安裝
然後他會把整個ns2和bt裝好

如果已經裝好ns2 不能事後再安裝bt


那.....除了整個砍掉重練 還有其他方法嗎???
ex:在同一台電腦上裝兩個ns2 (Fedora core 5)

--

我當初沒設環境變數 是直接把ns2裡的bin資料夾
ns和nsm兩個檔案直接複製到 /usr/bin/ 裡面

假如可以裝兩個ns2的話 只要把 /usr/bin/ 裡面的檔案名稱設好應該就行了吧!?!?

bluetooth

./install-bt
Cannot find ns directory.
please check if you untar the tar ball in the correct directory.

directory tree

|__ ns-allinone-2.xx --- ns-2.xx -- bluetooth -- ns-2.26
| | |_ ns-2.1b9a
| | |_ ...
| | |_ test
| |_ common
| |_ ...
|__ nam...
|__ ...

You should 'tar zxvf bt.xx.tgz' in the directory 'ns-2.xx'

You should run './install-bt' in the directory 'bluetooth'

<---------------------------------------------------------------------->

./install-bt
Looks like ns generated Makefile found. Either you invoked
./install-bt [-d|-t]
in the wrong directory, or ns has (attempted) been installed.
Please have a fresh ns-all-in-one tarball, and use './instll-bt'
alone to do the whole installation.

./install-bt -d
Looks like ns generated Makefile found. Either you invoked
./install-bt [-d|-t]
in the wrong directory, or ns has (attempted) been installed.
Please have a fresh ns-all-in-one tarball, and use './instll-bt'
alone to do the whole installation.

./install-bt -t
No tcl-debug-2.0 found in /ns2/ns-allinone-2.29. Please download it
from
http://expect.nist.gov/tcl-debug/tcl-debug.tar.gz,
and unpack it into /ns2/ns-allinone-2.29.


--

囧 莫非bluetooth套件要跟allinone一起裝? 不能事後裝???????

2007年10月22日 星期一

把ifconfig的結果存成一個文字檔

ifconfig >> xxx.txt

--

為啥->不能用??? 囧?

2007年10月18日 星期四

PDF-XChange Viewer

http://mag.udn.com/mag/it/storypage.jsp?f_MAIN_ID=192&f_SUB_ID=1099&f_ART_ID=77869

可加註、畫線的PDF閱讀軟體

【文/楊又肇】

許多企業、廠商的宣傳資料喜歡使用PDF格式,因為可以將紙本原型式轉換成數位檔案,
但缺點也就在於要額外使用能讀取PDF的軟體才能夠開啟。

雖然目前有許多免費軟體可以下載用來閱讀PDF文件,不過卻沒辦法在PDF文件上加上文字
、畫線框,因此對於習慣加上註解的使用者是有些不方便。

PDF XChange Viewer這個免費軟體除了提供讀取PDF文件的功能之外,還多提供使用者在
PDF文件上直接輸入文字作註解,也提供畫線、畫多邊形框,也能直接用鉛筆功能在上頭
塗鴉,還有便利貼功能方便註記。另外可以用快照功能抓取PDF內容圖片,也能用分頁瀏
覽方式讀取多個PDF文件。

加上註記後的PDF文件存檔後,用其他PDF軟體開啟時,註記部分也能被正常讀取。

--

官網:http://www.docu-track.com/downloads/users/

直接下載:http://www.docu-track.com/download/PDFXVwer.zip

2007年10月17日 星期三

POP Peeper

軟體名稱: POP Peeper
官方網站: http://www.poppeeper.com/
軟體分類: Email Checker/Notifier
執行平台: MS-Windows
語言介面: 多國語系含繁體中文

推薦原因: 特色的話,官方網站就有一堆list了,這邊就不多說了。推薦
原因主要有:
1. 免錢
2. 支援POP3, GMAIL, HOTMAIL, YAHOO
3. 支援SSL
4. 沒帳號數目的限制
5. 可預覽郵件內容(HTML mail supported)
6. 中文顯示沒問題
7. 可以換面版

--------------

以上是ptt別人的介紹 我自己也有在用 他每隔幾分鐘就會檢查有沒有新信

不用怕會漏收老闆寄的信 XD

2007年10月16日 星期二

ip設定檔位置

/etc/sysconfig/network-scripts/ifcfg-eth0

Fedora core 5

參考資料:http://www.study-area.net/linux/servers/linux_net.htm

2007年10月12日 星期五

linux 設定網路

http://www.jollen.org/blog/2006/04/embedded_linux_4.html

http://linux.vbird.org/linux_server/0140networkcommand.php

還在研究中 囧

2007年10月8日 星期一

Fedora 7 有國內yum站台了 XD

http://140.111.66.34/modules/news/

縣網的 FTP Server 140.111.66.34 已經 Mirror 好 Fedora Core 4-6 和 Fedora 7 的主要套件及更新套件
Fedora 7 有 Everything、updates、freshrpms

Fedora 7 的設定如下:

# vim /etc/yum.repos.d/fedora.repo


[fedora]
name=Fedora $releasever - $basearch
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
baseurl=ftp://140.111.66.34/Linux/Fedora/linux/releases/$releasever/Everything/$basearch/os/
#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
file:///etc/pki/rpm-gpg/RPM-GPG-KEY

--

server是5 我的電腦是7

耍笨了 = =

2007年10月7日 星期日

freenx 不能多重登入!?!?

原本以為同一個帳號可以重複登入

可是今天研究一陣子 發現好像不行 = =

1.同一使用者 用同樣設定(帳號a和kde)登入 只能登入一次
在另一台電腦用同樣的東西(帳號a和kde)登入 原先登入的人會被踢掉 orz

2.同一個使用者 用不同的設定 一個用kde一個用gnome(都是帳號a)
兩個人都可以登入
而且登入的時候會出現一個視窗問你要"繼續"還是"建立新的session"

如果要讓很多人同時登入....那就只好狂開帳號了 = =||

為了這個今天開了四個帳號 還要一個一個設定 讓每一個的介面看起來都一樣


累死了 囧

XP遠端桌面

有兩個檔案
mstsc.exe
mstscax.dll

2007年10月3日 星期三

nxserver

/usr/libexec/nx

相關執行檔放在這裡 裡面有nxserver這個程式 = =+

設定則是在 /etc/nxserver/

2007年10月1日 星期一

firefox - 下面跑出一個框框

作者 shyangs ( ) 看板 Browsers
標題 Re: [-Fx-] 視窗下面會出現紅色字體 <menuitem
時間 Thu Dec 14 12:45:14 2006
───────────────────────────────────────


瀏覽器出現灰底紅字
發生原因和解決法 http://tinyurl.com/y58ep3


至於這次 應該是安裝JAVA RE 1.6*造成的

Java 1.6 會在 IE 和 Firefox 上新增一個 Java Console 選項,
所以會放一個 extension 到 firefox 的安裝目錄裡以達到效果,
由於是硬塞的,這個套件不會在列表中顯示,但是它不巧 zh-TW 的地方寫錯了,
如果你想顯示這個選項,那麼你可以用文字編輯器修改
Firefox 安裝目錄
\extensions\{CAFEEFAC-0016-0000-000*-ABCDEFFEDCBA}\chrome.manifest
這個檔案。



locale javaconsole1.6.* zh-TW chrome/locale/zh_TW/ffjcext/

改成

locale javaconsole1.6.* zh-TW chrome/locale/zh-TW/ffjcext/

存檔。

然後進到 安全模式 後再退出就可以了。




> 視窗下面出現
>
> > ----------------------------^


※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 125.230.147.82
推 dalconan:應該是某個安裝的套件有問題~移除掉那套件就好 12/13 21:03
推 huangwh:我所有套件都刪掉,還是這樣子 12/13 21:04
推 shyangs:Safe Mode模式啟動看看 12/13 21:12
推 huangwh:好神!!啟動後.. 官關閉重新開起非安全mode  就好了~~ 12/13 21:16
→ huangwh:謝謝 12/13 21:18
→ ileadu:前幾天我也發生過... 我才裝兩個套件而已 12/13 23:56

--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.122.231.40
推 MilchFlasche:找得出禍首,厲害喔!:) 12/14 15:16
推 untitle:推一個!(這太陽公司真是夠了...) 12/14 15:30
→ ileadu:ㄟ,可是我沒改什麼東西,只是把套件停用,再用安全模式開 12/15 09:52
→ ileadu:再關掉安全模式,再重開一次Fx 就好了耶… 12/15 09:52
推 forgiam:推一下這一篇, 剛也是遇到這個問題, 用這個方法解決了 05/09 04:19
推 xz0526:推~ 剛開始還以為是中了某種廣告 09/06 16:41
推 ryanlei:大推 09/07 08:55
推 rockstyle:推阿太強了 09/08 21:14
※ 編輯: shyangs 來自: 220.129.76.127 (09/10 23:43)
推 sigrx:感恩阿 09/13 22:17
推 KSDenilson:感謝 不過我根本沒有zh_TW這一行XD 我是直接加上正確的 09/14 15:19
推 ccleosh:解決了 真神!! 09/18 09:39


--

真討厭的問題 囧

denyhosts

2007-09-30 23:02:59,595 - denyhosts : INFO new denied hosts: ['132.214.1.3']
2007-10-01 01:30:28,455 - denyhosts : INFO new denied hosts: ['221.3.151.91']
2007-10-01 09:28:54,408 - denyhosts : INFO new denied hosts: ['195.219.191.237']


嘿嘿 真的有用的樣子

科科

2007年9月30日 星期日

擋掉用ssh try 帳密的人

DenyHosts 阻止SSH暴力破解最好的方法
http://211.147.225.34/gate/big5/Linux.chinaitlab.com/safe/722581.html

在Fedora 下安裝DenyHosts
http://0rz.tw/0939D

在 Fedora 下安裝
#yum -y install denyhosts

安裝完成之後設定檔的位置
#rpm -qc denyhosts
/etc/cron.d/denyhosts
/etc/denyhosts.conf
/etc/logrotate.d/denyhosts
/etc/sysconfig/denyhosts
/var/lib/denyhosts/allowed-hosts

看起來幾乎是不用再做設定上的修改了!

啟動 denyhosts
#/etc/init.d/denyhosts start

讓開機時就會啟動
#chkconfig --level 35 denyhosts on

設定檔範例
#/etc/denyhosts.cfg

SECURE_LOG = /var/log/secure
#ssh 日誌文件,它是根據這個文件來判斷的。

HOSTS_DENY = /etc/hosts.deny
#控制用戶登陸的文件

PURGE_DENY = 5m
#過多久後清除已經禁止的

BLOCK_SERVICE = sshd
#禁止的服務名

DENY_THRESHOLD_INVALID = 1
#允許無效用戶失敗的次數

DENY_THRESHOLD_VALID = 10
#允許普通用戶登陸失敗的次數

DENY_THRESHOLD_ROOT = 5
#允許root登陸失敗的次數

HOSTNAME_LOOKUP=NO
#是否做域名反解

ADMIN_EMAIL = root@localhost
#管理員郵件地址,它會給管理員發郵件

DAEMON_LOG = /var/log/denyhosts
#自己的日誌文件

<=========================================>

<文件> log分析程式及阻擋ssh暴力攻擊

http://blog.vixual.net/2005/03/ssh.html

1. log分析分析的項目僅包含 sendmail、pop3、ssh、ProFTP 及 su,並且會在 /var/log 下依日期建立當天的 LOG 檔,分析之後,會回覆給管理者 HTML 格式的電子郵件ftp://wiki.vixual.net/source/log/logview.pl

以crontab 方式去跑

2.阻擋ssh暴力攻擊這整個流程,首先藉由 TCP_Wrappers 的機制 (hosts.deny 及 hosts.allow) 在用戶登入時觸發程式,然後程式會分析該用戶最近這一小時登入的狀況,對於不懷好意的用戶(登入失敗 10 次),直接以防火牆封鎖其 IP,然後程式會寄出一封電子郵件通知管理者。ftp://wiki.vixual.net/source/block_ip/block_ssh.pl

修改權限為755

編輯 /etc/hosts.allow,加入
sshd : ALL : spawn (/usr/bin/block_ssh.pl %c %d)

這樣就完成了,如有必要,請自行修改 block_ssh.pl 裡相關的參數。



--

以上內容由強者我同學 Shinhsin 提供 >//////////<

service 指令無法使用

啟動服務用的 不知道為甚麼突然不能用 = =

然後 cp /sbin/service /usr/bin/service

就好了 XDDDD

這樣好像是偷吃步吧!? 囧

XP 自動登入

按「開始」,到執行,輸入:

control userpasswords2

這時會帶出管理使用者帳號的畫面,在「使用者」這一頁面,不勾 :必須輸入使用者名稱和密碼,才能使用這台電腦,按套用。

此時會出現要求輸入密碼的畫面,請輸入你要自動登入的帳號與密碼,Windows XP就會以該組帳號作為自動登入的帳號。

若要恢復到原本可以選擇帳號的設定,與以上步驟都相同,只是勾起「必須輸入使用者名稱和密碼,才能使用這台電腦」

http://www.bonny.idv.tw/cgi-bin/lb5000/topic.cgi?forum=3&topic=736

====================================

微軟官方說明 囧

如何開啟Windows XP 中的自動登入
http://support.microsoft.com/kb/315231/zh-tw

如何在Windows XP 中自動登入使用者帳戶
http://support.microsoft.com/kb/282866/zh-tw

How to manage Fedora Core 5

http://webcollab.wordpress.com/2007/01/11/how-to-manage-fedora-core-5/
有些東西還不錯!!

2007年9月29日 星期六

修改開機選單

/boot/grub/grub.conf


# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0) # kernel /vmlinuz-version ro root=/dev/hda6
# initrd /initrd-version.img
#boot=/dev/hda

default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.10-1.766_FC3)
  root (hd0,0)
  kernel /vmlinuz-2.6.10-1.766_FC3 ro root=LABEL=/1 rhgb quiet
  initrd /initrd-2.6.10-1.766_FC3.img

title Fedora Core (2.6.10-1.741_FC3)
  root (hd0,0)
  kernel /vmlinuz-2.6.10-1.741_FC3 ro root=LABEL=/1 rhgb quiet
  initrd /initrd-2.6.10-1.741_FC3.img

title Fedora Core (2.6.9-1.667)
  root (hd0,0)
  kernel /vmlinuz-2.6.9-1.667 ro root=LABEL=/1 rhgb quiet
  initrd /initrd-2.6.9-1.667.img

default=0 是指開機用 Fedora Core (2.6.10-1.766_FC3)
default=1 是指開機用 Fedora Core (2.6.10-1.741_FC3)
default=2 是指開機用 Fedora Core (2.6.9-1.667)


http://phorum.study-area.org/viewtopic.php?p=148140&sid=ed8345e7ce351b212fad6c77fd2e1843

2007年9月28日 星期五

查kernel版本

uname

用man uname就可以查詳細參數

-a -r都可以 XD

2007年9月18日 星期二

drupal 無法搜尋內容 可以搜尋使用者

今天要試著搜尋東西意外發現無法搜尋文章 = =

嚇死了 幸好最後有解決 囧

不然會被殺 XD~~~~

http://0rz.tw/c731V 這是在台灣drupal裡面搜尋"無法搜尋"的結果

我的情形是只要跑 cron.php 就好了 @@"

手動設定防火牆

/etc/sysconfig/iptables

2007年9月13日 星期四

自動轉信設定

postfix不知道怎麼搞的 不看說明文件自己設定反而是正常的 = =

雖然寄件者的位址還是怪怪的 Orz....

會顯示成 user@localhost.domain

就是那個localhost看起來很礙眼

mail的部份好了 就去找自動轉寄的方法

以下是webmin設定方法 XD


Postfix 組態 => 郵件別名

建立一個新的 位址選負責轉信的人 打使用者名稱就好

"Alias to" 選 email address 然後開始打信箱

可是一次只能輸入一個 所以按儲存之後 又要再進來一次

然後再輸入一個 再儲存.....(循環)


現在已經設好10個人的信箱了 真麻煩 囧~~~~

2007年9月12日 星期三

啟動程式

/etc/rc.d/init.d/

2007年8月21日 星期二

Fedora Core 5的XDMCP設定

http://free999.blogspot.com/2006/06/fedora-core-5xdmcp.html

設定/etc/gdm/custom.conf 檔

不要跟我說你不知道要用root帳號

改成降

[securiry]

AllowRemoteRoot=true

[xdmcp]

Enable=true

設完當然要重新啟動,XWindow會重新啟動

# gdm-restart


(2) xfs設定設定/etc/X11/fs/config

把這行mark掉
#no-listen = tcp;

--

喔喔喔 終於可以遠端了~~~~

Enable XDMCP under Fedora Core 5

http://shrubfay.spaces.live.com/blog/cns!34C877D19ABEFAD6!199.entry

由於FC5RH9的系統檔結構命名不一致,導致一些困難的產生,將修改方法記錄如下。

1。默認安裝的FC5是不包含xdm包的,需要自己安裝,xorg-x11-xdm,自己下個rpm安裝就是。

2。編輯檔 "/etc/gdm/custom.conf",設置xdmcp=ture

3。編輯檔"/etc/X11/xdm/xdm-config",設置xdmcp監聽,即在 "DisplayManager.requestPort: 0" 前面加

4。編輯檔"/etc/X11/xdm/Xaccess",將"# * #any host can get a login window "前面的#號去掉。

5。編輯檔"/etc/sysconfig/iptables",修改防火牆,將下列語句加入腳本前。

-A input -p udp -s 0/0 -d 0/0 177 -j ACCEPT
-A input -p tcp -s 0/0 -d 0/0 telnet -j ACCEPT
-A input -p tcp -s 0/0 -d 0/0 ssh -j ACCEPT
-A input -p tcp -s 0/0 -d 0/0 login -j ACCEPT
-A input -p tcp -s 0/0 -d 0/0 exec -j ACCEPT
-A input -p tcp -s 0/0 -d 0/0 shell -j ACCEPT
-A input -p tcp -s 0/0 -d 0/0 7100 -j ACCEPT

6。重新啟動系統,一切ok
其實一切和原來沒有什麼不同:)。

--

可是我還是不能遠端 = =||

Fedora 5 開機時自動執行程式

/etc/rc.local

mail server

利用fedora5架設mail server和檔垃圾信及webmail
http://www.ck101.com/forums/redirect.php?fid=318&tid=829649&goto=nextoldset

SpamAssassin - 垃圾郵件過濾
http://apt.nc.hcc.edu.tw/web/student_server_FC5/appendix.html#spamassassin

[ns] ns-allinone-2.29.2 gcc-4.1.0 patch

http://mailman.isi.edu/pipermail/ns-users/2006-May/055828.html

3. > wget http://www.ececs.uc.edu/~cdmc/ucbt/src/ns2292-gcc410.patch
4. > tar -zxvf ns-allinone-2.29.2.tar.gz
5. > patch -p0 < ns2292-gcc410.patch
6. > cd ns-allinone-2.29
7. > ./install

2007年8月15日 星期三

mail server

postfix
http://linux.vbird.org/linux_server/0390postfix.php#server_cons

squirrelmail
http://blog.nanaimoinn.com/index.php?blog=3&p=327&more=1&c=1&tb=1&pb=1

2007年8月14日 星期二

本機目前開啟的port

nmap localhost

今天學到的東西 XD

phpmyadmin不能連資料庫

帳號密碼都沒問題 可是就是不能連

然後google很久之後才找到解決方法

一很鳥的解決方法 = =


把phpmyadmin的設定檔 config.inc.php 裡面的 localhost 改成 127.0.0.1

這樣就沒問題了 orz........

Drupal的錯誤訊息(吧!?)

Warning: ini_set() [function.ini-set]: A session is active.

類似這種的錯誤訊息

去php.ini 裡面的session.auto_start設為 off 即可

http://www.drupalchina.org/node/2442

mysql & socket

最近在裝drupal的時候有時會出現錯誤訊息

Can't connect to local MySQL server through socket

好像大概是這樣吧!?!?


然後今天終於解決了~~~~~

去查看 /etc/my.cnf 的內容 把socket的路徑記下來

接著去修改php.ini 

mysql.default_socket = 剛剛的路徑

ex: mysql.default_socket =/var/lib/mysql/mysql.sock


這樣就可以了 囧~~~~~

--

http://ubb.frostyplace.com/viewtopic.php?p=162299

備份資料庫 mysql

tar -zpcvf mysql.`date +%Y-%m-%d`.tgz /var/lib/mysql

http://linux.vbird.org/linux_basic/0580backup.php

rpm 解除安裝

rpm -e 套件名字

2007年8月13日 星期一

2007年8月12日 星期日

Fedora 查詢已安裝套件

rpm -qa less

可以把list出來的清單弄成一個文字檔

例如: rpm -qa less -> log.txt

就會存成 log.txt 檔了


參考:
http://people.ofset.org/~ckhung/b/sa/rpm.php

2007年6月13日 星期三

Joomla

解壓縮後 要記得修改資料夾裡面的"globals.php"

還有新增一個空白文件 configuration.php

然後修改他的權限 chmod 777 configuration.php

apache 設定虛擬目錄

nano /etc/apache2/apache2.conf

EX:
Alias /wufish/ "/home/wufish/www/"

Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all

忘記mysql的密碼 囧

結束 mysql 的 process,Linux 可以執行以下的指令:
killall mysqld

接下來,用以下的指令啟動並進入 MySQL:
mysqld -u root --skip-grant-tables &
mysql

進入 MySQL 的命令提示列後:
use mysql;
UPDATE user SET password=password('new password') where user='root';
FLUSH PRIVILEGES;

這樣就好了 orz

2007年6月12日 星期二

中文

我習慣用的字型
apt-get install ttf-arphic-bsmi00lp

=============================
進入x-win之後自動啟用輸入法

在 /etc/X11/Xsession.d/ 裡建立檔案 95xfree86-input-start

內容:
export XMODIFIERS="@im=SCIM"
export XIM=SCIM
scim -d

2007年5月23日 星期三

gcc & gcc3 & gcc4

which gcc

mv /usr/bin/gcc /usr/bin/gcc4

mv /usr/bin/gcc-3.4 /usr/bin/gcc

cp /usr/bin/gccbug-3.4 /usr/bin/gccbug


電腦不能複製貼上 囧

這是精簡版 XDDDD

2007年5月20日 星期日

偽‧appserv ( XD )

apache2 , mysql , phpmyadmin (過程中會自動安裝php XD)

重新啟動 apache :
/etc/init.d/apache2 [startstoprestart]

修改自動轉到某個資料夾 :
修改 apache2/sites-available/default 這個檔
#RedirectMatch ^/$ /apache2-default/

log 位置 : /var/log/apache2/

設定 mysql 的 root 密碼 :
/usr/bin/mysql -u root -p
Enter password:
#這時因為系統還沒有設定密碼,所以直接按 Enter 鍵跳過
use mysql;
update user set password=password('您設定的密碼') where user='root';

2007年5月14日 星期一

XP - 如何移除「服務」

http://alexchuo.blogspot.com/2005/02/blog-post.html

--

HK_LocalMachine\System\CurrentControlSet\Services\<服務名稱>
可以用登錄檔修改....

2007年5月12日 星期六

BBS@ windows 換硬碟

http://processor.tfcis.org/~itoc

把舊的cygwin移除 直接安裝新的

然後再把home的資料轉移過去就好

--

記得改一下系統服務

2007年5月11日 星期五

手動安裝X-window

安裝完之後

1.
apt-get install x-window-system-core

2.
apt-get install gnome

跑完之後輸入指令(選擇語系用)
dpkg-reconfigure locales

--

如果安裝版本是最新的應該是沒問題.....

安裝Debian

安裝教學網站
http://apt.nc.hcc.edu.tw/docs/debian_X/

apt source選 nchc 的(這是 "國家高速網路與計算中心" XD)

--

討論區 - 摩托學園
http://moto.debian.org.tw/viewforum.php?f=12

2007年5月7日 星期一

丁丁是個人材

天線寶寶說掰掰

test

科科