1. 安裝amule-daemon
$sudo apt-get install amule-daemon
2.安裝amule-gnome-support
$sudo apt-get install amule-gnome-support
3. 設定amule-daemon
$sudo vim /etc/default/amule-daemon
# Configuration for /etc/init.d/amule-daemon
# The init.d script will only run if this variable non-empty.
AMULED_USER="使用者"
# You can set this variable to make the daemon use an alternative HOME.
# The daemon will use $AMULED_HOME/.aMule as the directory, so if you
# want to have $AMULED_HOME the real root (with an Incoming and Temp
# directories), you can do `ln -s . $AMULED_HOME/.aMule`.
AMULED_HOME="/home/使用者"
4. 產生MD5編碼後之密碼
$echo -n 你的密碼 | md5sum | cut -d ' ' -f 1
5. 設定remote.conf
$cd /home/使用者目錄/.aMule/
$amuleweb -w
$vim remote.conf
Locale=
[EC]
Host=localhost
Port=4712
Password=編譯後的密碼
[Webserver]
Port=4711
UPnPWebServerEnabled=0
UPnPTCPPort=50001
Template=php-default
UseGzip=0
AllowGuest=0
AdminPassword=編譯後的密碼
GuestPassword=編譯後的密碼
6. 設定vim amule.conf
$vim amule.conf [ExternalConnect]
UseSrcSeeds=0
ShowPercent=1
ShowProgressBar=1
AcceptExternalConnections=1
ECPassword=編譯後的密碼
ECAddress=
ECPort=4712
UPnPECEnabled=0
IpFilterClients=1
IpFilterServers=1
UseSecIdent=1
[WebServer]
Enabled=1
Port=4711
UPnPWebServerEnabled=0
WebUPnPTCPPort=50001
PageRefreshTime=120
UseGzip=1
UseLowRightsUser=0
Password=編譯後的密碼
PasswordLow=
Template=default
7. 重新啟動amule-daemon
$sudo /etc/init.d/amule-daemon restart
8.連線
http://主機IP:4711
2011年5月22日 星期日
2011年3月1日 星期二
C# 連Sybase設定
C#連Sybase的方法:(目前只用過ADO.NET)
一、ADO.NET(用Sybase.Data.AseClient 連接)
1. 須先安裝sybase open client軟體(執行端也須安裝),安裝時請加選ADO.NET。
一、ADO.NET(用Sybase.Data.AseClient 連接)
1. 須先安裝sybase open client軟體(執行端也須安裝),安裝時請加選ADO.NET。
2. 至C:\sybase\ADO.NET\dll目錄中把Sybase.Data.AseClient.dll sybdrvado11.dll sybdrvssl.dll三個文件Copy到bin資料夾中,並在參考中加入Sybase.Data.AseClient.dll 。
3. 使用範例
using Sybase.Data.AseClient;
AseConnection aseCon ;
aseCon = new AseConnection("DataSource=127.0.0.1;Port=5000;Database=資料庫;UID=帳號;PWD=密碼;charset=utf8");
aseCon.Open();
AseCommand dcom = new AseCommand("SELECT name FROM student", aseCon);
AseDataReader dr = dcom.ExecuteReader();
dr.Read();
Console.WriteLine("name : " + dr[0].ToString());
dr.Close();
aseCon.Close();
3. 使用範例
using Sybase.Data.AseClient;
AseConnection aseCon ;
aseCon = new AseConnection("DataSource=127.0.0.1;Port=5000;Database=資料庫;UID=帳號;PWD=密碼;charset=utf8");
aseCon.Open();
AseCommand dcom = new AseCommand("SELECT name FROM student", aseCon);
AseDataReader dr = dcom.ExecuteReader();
dr.Read();
Console.WriteLine("name : " + dr[0].ToString());
dr.Close();
aseCon.Close();
2010年12月15日 星期三
Ubuntu php用freetds連sybase
1. 先安裝php5-sybase
sudo apt-get install php5-sybase
2. 設定freetds.conf
sudo vim /etc/freetds/freetds.conf
修改(增加)以下內容
[global]
client charset = UTF-8
charset = utf8
[sybase_db]
host = sybase host
port = 5000
tds version = 5.0
3.於php中,以sybase_connect("sybase_db","user","pass")連線
sudo apt-get install php5-sybase
2. 設定freetds.conf
sudo vim /etc/freetds/freetds.conf
修改(增加)以下內容
[global]
client charset = UTF-8
charset = utf8
[sybase_db]
host = sybase host
port = 5000
tds version = 5.0
3.於php中,以sybase_connect("sybase_db","user","pass")連線
2009年10月10日 星期六
DreamWeaver 8 無法儲存 FTP 密碼
每次關閉 Dreamweaver 8,再重新開啟 Dreamweaver 8,帳號和密碼的資料卻都消失不見。
這是IE升級到 7.0 會出現的問題。
解決方式為升級至8.02,下載網址(請注意語言)。
http://www.adobe.com/support/dreamweaver/downloads_updaters.html#dw8
這是IE升級到 7.0 會出現的問題。
解決方式為升級至8.02,下載網址(請注意語言)。
http://www.adobe.com/support/dreamweaver/downloads_updaters.html#dw8
訂閱:
文章 (Atom)

