2007-02-12

网站/E-mail : http://www.mct.go.kr/koreanthroughenglish/index.htm
 
 介绍从基础到高级阶段韩语教学资料。通过网络完成听力和会话教程后,还可进行在线测试和练习。
网站/E-mail : http://www.interedu.go.kr/
 
 该网站非常有用,为用户了解韩语提供综合性的介绍和相关指南。课程分为章节,点击进入有视听辅助材料。
课程包括在日常交流中有用的语言。
网站/E-mail : http://rki.kbs.co.kr/learn_korean/lessons/e_index.htm
 
 该网站提供很多学习韩国语所需的信息和资源。该网站的韩语课程包括基础、中级和高级。还提供CD及其它可下载的资料。更多详细内容请浏览网站。
网站/E-mail : http://www.korean-edu.com/
 
 提供韩语的起源和历史、元音和辅音、读音和会话的基本原则等信息。为游客介绍基础韩国语。

到kingate的主页
http://sourceforge.net/projects/kingate/
最新版
kingate-1.6.tar.gz

  • wget http://voxel.dl.sourceforge.net/sourceforge/kingate/kingate-1.6.tar.gz

  • tar zxfv kingate-1.6.tar.gz

  • cd kingate-1.6

  • (如果你想去掉socks4的功能,只支持socks5请做这一步,否则跳过)
    • vi ./src/socks.cpp


    • return create_socks4_connect(m_server);
      替换为
      goto cleanup;
      应该是在第78行
      保存退出VI

  • 需要安装make paket,apt-get install build-essential

  • ./configure –prefix=/usr/local/kingate

  • make

  • make install

  • /usr/local/kingate/bin/kingate(启动)
    /usr/local/kingate/bin/kingate -q(关闭)

rule

first deny
model deny
model allow
{ * all * * }
{ manage * * * }

$sudo passwd root

主要来自ubuntu中文社区http://www.ubuntu.org.cn/support/documentation/doc/VMware 首选,确认你已经安装了build-essential程序包: apt-get install build-essential 确认你已经安装了内核头文件包: uname -rapt-get install linux-headers-’kernel version’ 如果你遇到gcc版本错误,你需要安装编译你内核的gcc版本: cat /proc/version 这会告诉你,你的内核是用什么版本的gcc编译的. $ cat /proc/version Linux version 2.6.12-8-386 (buildd@rothera) (gcc version 3.4.5 20050809 (prerelease) (Debian 3.4.4-6ubuntu6)) #1 Tue Aug 30 22:41:30 BST 2005ls /usr/binapt-get install build-essential

2007-02-02

基于NS2的P2P网络模拟平台研究

2007-02-01

BLK 默认没装。。tcl/TK 无法安装。。。

 

5.  ns2的安装

  • 解决ns2-2.29和ubuntu-6.06 bash的不兼容问题:
    分别进入以下3个文件夹:
    */ns-allinone-2.29/tcl8.4.11/unix/
    */ns-allinone-2.29/tcl8.4.11/tk8.4.11/unix/
    */ns-allinone-2.29/otcl-1.11/

    执行命令: cp configure{,.orig} && sed “s/relid’/relid/” configure.orig > configure
     

  • sudo apt-get install libxmu-dev
    安装libxmu-dev包,不然无法编译通过nam-1.11,会报“没有X11/Xmu/WinUtil.h”的错误。
     
  • sudo apt-get install -f libxt-dev
    这个包也是必须的。
     
  • 修改/home/ns2/ ns-allinone-2.9/nam-1.11/agent.h中的第73行,将NULL改为0。
     
  •  sudo ./install
     
  • 设置环境变量,在/etc/bash.bashrc的文件末尾增加以下语句:
    export  PATH=$PATH:/home/ns2/ns-allinone-2.29/bin:/home/ns2/ns-allinone-2.29/tcl8.4.11/unix:/home/ns2/ns-allinone-2.29/tk8.4.11/unix
    export  LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/ns2/ns-allinone-2.29/otcl-1.11:/home/ns2/ns-allinone-2.29/lib
    export  TCL_LIBRARY=/home/ns2/ns-allinone-2.29/tcl8.4.11/library
     
  • 终端运行ns,应该出现%
     
  • ./validate检查安装是否成功。

NS-2.28 AllInOne HOWTO

This HOWTO covers installation on Ubuntu Linux.

Get the allinone source.

$ cd ~lucsp
$ wget http://www.isi.edu/nsnam/dist/ns-allinone-2.28.tar.gz

Modify build for GDB debugger.

$ tar xzf ns-allinone-2.28.tar.gz
$ cd ns-allinone-2.28
$ vim install

Add the –enable-synbols option on line 408 so, ./configure –enable-gcc –disable-shared –prefix=$CUR_PATH || die “tcl8.3.2 configuration failed! Exiting …” becomes,
./configure –-enable-symbols –enable-gcc –disable-shared –prefix=$CUR_PATH || die “tcl8.3.2 configuration failed! Exiting …”

Add the –enable-debug option to line 498 so,
./configure || die “tclcl-$TCLCLVER configuration failed! Exiting …”
becomes,
./configure -–enable-debug || die “tclcl-$TCLCLVER configuration failed! Exiting …”

$ cd ns-2.28
$ vim Makefile.in
 
Add the -g option to line 82 so,
CFLAGS = $(CCOPT) $(DEFINE)
becomes,
CFLAGS = -g $(CCOPT) $(DEFINE)

X11/Intrinsic.h is required by otcl1-9 but is not in libx11-dev but is in libxt-dev.

$ sudo apt-get install -f libxt-dev libxt6 libsm-dev libsm6 libice-dev libice6

/usr/X11R6/include/X11/Xmu/WinUtil.h is required by nam-1.1.

$ sudo apt-get install libxmu-dev

xgraph Makefile requires modification.

$ cd ../xgraph-12.1
$ ./configure
$ vim Makefile

Add -L/usr/X11R6/lib  on line 85 so,

xgraph_LDADD = $(ADDITIONAL_LIBS) $(X_LIBS) $(X_PRE_LIBS) $(X_EXTRA_LIBS) -lX11 -lm becomes,
xgraph_LDADD = $(ADDITIONAL_LIBS) $(X_LIBS) $(X_PRE_LIBS) $(X_EXTRA_LIBS) -L/usr/X11R6/lib -lX11 -lm

gt-itm requires a bin dir to be created.

$ cd ../gt-itm
$ mkdir bin
$ cd src
$ make

gt-itm and sgb2ns require sgb.

$ sudo apt-get sgb

gt-itm and sgb2ns require libgb.a to be at /home/lucsp/ns-allinone-2.28/gt-itm/lib.

$ mkdir lib
$ sudo ln -s usr/lib/libgb.a /home/lucsp/ns-allinone-2.28/gt-itm/lib

Fix pedantic gcc 3.3.5

$ cd src
$ vim eval.c

On line 162, the printf function argument must be on a single line.
printf(” and %d (this ends a connected component of the graph)\n”, idx(g, artic_pt));

Compile NS-2.28.

$ cd ..
$ ./install &> compile.out

Environmental variables.

$ vim NS2.sh

#!/bin/sh

# LD_LIBRARY_PATH
OTCL_LIB=/home/lucsp/ns-allinone-2.28/otcl-1.9
NS2_LIB=/home/lucsp/ns-allinone-2.28/lib
X11_LIB=/usr/X11R6/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:/usr/local/lib

# TCL_LIBRARY
export TCL_LIBRARY=/home/lucsp/ns-allinone-2.28/tcl8.4.5/library:/usr/lib

# PATH
XGRAPH=/home/lucsp/ns-allinone-2.28/bin:/home/lucsp/ns-allinone-2.28/tcl8.4.5/unix:/home/lucsp/ns-allinone-2.28/tk8.4.5/unix
PATH=$PATH:$XGRAPH:/home/lucsp/ns-allinone-2.28/ns-2.28/