블로그 이미지
No pain, no gain!
lepoussin

Tag

Notice

Recent Post

Recent Comment

Recent Trackback

Archive

calendar

1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
  • total
  • today
  • yesterday
03-29 16:54
2009. 6. 28. 16:32 OS/Linux
Shell에서 다음과 같은 명령을 넣으면 보안 업데이트를 받을 수 있다.
# yum -y install system-config-securitylevel 
posted by lepoussin
2009. 6. 26. 16:04 OS/Linux
netstate
  • 열려 있는 모든 포트 : # netstat -nap
  • LISTEN 되는 모든 포트 : # netstat -l 또는 netstat -nap | grep LISTEN
  • 모든 서비스 동시 접속자 수 : # netstat -nap | grep ESTABLISHED | wc -l
  • 웹 동시 접속자 수 : #netstat -nap | grep :80 | grep ESTABLISHED | wc -l

nmap
  • TCP 포트 확인 방법 : # nmap -sT -p 1-65535 localhost 
  • UDP 포트 확인 방법 :  # nmap -sU -p 1-65535 localhost
  • 네트워크에 열린 포트 확인 : # nmap -sX -p 22,53,110 211.239.111.* 

lsof
  • 모든 네트워크 소켓 확인 : # lsof -I

posted by lepoussin
2009. 6. 26. 15:39 Virtual Machine/Sun VirtualBox
VirtualBox Port Forwarding 기능을 이용해 SSH 연결을 설정할 수 있다. Windows Command 창(시작>실행>cmd)에서 다음과 같이 해보자.

Test 환경
  • Host OS : Windows XP SP3
  • Virtual Machine: VirtualBox 2.2.4
  • Guest OS: ubuntu 8.10

설정
> cd C:\Program Files\Sun\xVM VirtualBox

> VBoxManage setextradata "Ubuntu for aESOP S3C6410" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/GuestSSH/Protocol" TCP

> VBoxManage setextradata "Ubuntu for aESOP S3C6410" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/GuestSSH/GuestPort" 22

> VBoxManage setextradata "Ubuntu for aESOP S3C6410" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/GuestSSH/HostPort" 22

[] 안을 상황에 맞게 설정하여 사용하면 된다.
  • [C:\Program Files\Sun\xVM VirtualBox] : VirtualBox 설치 경로
  • "[Ubuntu for aESOP S3C6410]" : VirtualBox에 설치되어 있는 Guest OS 이름
  • ../[GuestSSH]/.. : 원하는 Service 이름
  • [22] : 원하는 Guest Port와 Host Port 번호

확인
> VBoxManage getextra "Ubuntu for aESOP S3C6410" enumerate

해제
해제는 명령에서 값을 제외시키면 된다.
> VBoxManage setextradata "Ubuntu for aESOP S3C6410" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/GuestSSH/Protocol"

> VBoxManage setextradata "Ubuntu for aESOP S3C6410" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/GuestSSH/GuestPort"

> VBoxManage setextradata "Ubuntu for aESOP S3C6410" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/GuestSSH/HostPort"

posted by lepoussin
2009. 6. 26. 14:32 Virtual Machine/Sun VirtualBox
일반적으로 VirtualBox를 설치하고 그 안에 Linux를 설치하면, Linux의 네트워크 설정 후에 vncviewer와 vncserver 기능을 이용하거나 Linux 원격 데스크톱을 이용하여 VirtualBox의 Linux로 접속을 한다. 하지만 VirtualBox의 원격 디스플레이 기능을 이용하면 그러한 설정 없이도 Windows의 원격 데스크톱 연결을 이용하여 접속이 가능하게 할 수 있다. 다음 링크로 들어가 보도록 하자.

posted by lepoussin
2009. 6. 26. 14:22 Virtual Machine/Sun VirtualBox
VirtualBox에서 USB를 사용하기 위한 설정 방법은 다음 링크에서 확인할 수 있다.

posted by lepoussin