Linux Network Emulator

Computer/Linux Tips 2007. 3. 6. 20:40

Netem이라는 linux kernel level packet emulator에 관한 것.

packet drop, delay, ... 등등을 간단하게 emulation 할 수 있다.

Kernel 2.6부터 사용가능

참고 사이트 : http://linux-net.osdl.org/index.php/Netem

 - TC 매뉴얼 

Linux 방화벽 설정하기 (IPtables)

Computer/Linux Tips 2007. 2. 24. 16:35
Fedora Core 5 기준

1. vi /etc/sysconfig/iptables 를 수행 후 편집



2. root에서 iptables 명령을 활용한다.



설정한 후,

/sbin/service iptables restart

를 수행하여 방화벽 재시작.

'Computer > Linux Tips' 카테고리의 다른 글

gcc로 윈도우즈 API 프로그램 만들기  (0) 2007.03.15
ftp mget 사용법  (0) 2007.03.07
Linux Network Emulator  (0) 2007.03.06
Cygwin에 ACE Library 설치하기  (0) 2007.02.24
Open Source Streaming Server Video Lan setting  (3) 2007.02.24

Cygwin에 ACE Library 설치하기

Computer/Linux Tips 2007. 2. 24. 14:29

Versions: Cygwin CYGWIN_NT-5.1
ACE 5.5.1
g++ 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125)

(cmake is available by cygwin project)

Before making ACE

  1. Get and decompress tar ball (e.g. /work/ACE_wrappers).
  2. Set an environment variable;
export $ACE_ROOT=/work/ACE_wrappers
  1. Create some symbolic links;
cd $ACE_ROOT/include/makeinclude
ln -s platform_cygwin32.GNU platform_macros.GNU
cd $ACE_ROOT/ace ln -s config-cywin32.h config.h

Setting include path

Compiling ACE generates many errors by default of cygwin. It is because the preprocessor of g++ on cygwin behaved in a strange way. It regards the lines "signal.h" or so on in /usr/include/*.h files as the same name files in ACE.

Solution: To avoid this errors, you should export an environment variable like:

export CPLUS_INCLUDE_PATH
=/usr/include:/usr/local/include:$CPLUS_INCLUDE_PATH

and

make

Then you can compile ACE without any errors. This issue is not declaired at the official homepage of ACE/TAO.

Local Installation

To install ACE to your cygwin,

 
cp -r $ACE_ROOT/ace /usr/local/include
cp $ACE_ROOT/lib/* /usr/local/lib

To tell your cygwin where is the ACE dynamic libraries,

 
export PATH=/usr/local/lib:$PATH"

cygwin cannot search the libraries without setting PATH variable properly. It's a specification of cygwin.


Additional step to test ACE:

cd $ACE_ROOT/tests
make
perl run_test.pl

'Computer > Linux Tips' 카테고리의 다른 글

gcc로 윈도우즈 API 프로그램 만들기  (0) 2007.03.15
ftp mget 사용법  (0) 2007.03.07
Linux Network Emulator  (0) 2007.03.06
Linux 방화벽 설정하기 (IPtables)  (0) 2007.02.24
Open Source Streaming Server Video Lan setting  (3) 2007.02.24