-scanbus로 디바이스 정보 확인

[root@dev156 _home]# cdrecord -scanbus

scsibus4:

4,0,0 400) 'ATAPI   ' 'DVD A DH16ABS   ' 'PS21' Removable CD-ROM

4,1,0 401) *

4,2,0 402) *

4,3,0 403) *

4,4,0 404) *

4,5,0 405) *

4,6,0 406) *

4,7,0 407) *


ISO 파일로 CD굽기

[root@dev156 _home]# cdrecord -v -eject speed=4 dev=4,0,0 CentOS-6.2-x86_64-bin-DVD1.iso

wodim: No write mode specified.

wodim: Asuming -tao mode.

wodim: Future versions of wodim may have different drive dependent defaults.

TOC Type: 1 = CD-ROM

scsidev: '4,0,0'

scsibus: 4 target: 0 lun: 0

WARNING: the deprecated pseudo SCSI syntax found as device specification.

Support for that may cease in the future versions of wodim. For now,

the device will be mapped to a block device file where possible.

Run "wodim --devices" for details.

Linux sg driver version: 3.5.27

Wodim version: 1.1.9

SCSI buffer size: 64512

Device type    : Removable CD-ROM

Version        : 5

Response Format: 2

Capabilities   : 

Vendor_info    : 'ATAPI   '

Identification : 'DVD A DH16ABS   '

Revision       : 'PS21'

Device seems to be: Generic mmc2 DVD-R/DVD-RW.

Current: 0x0011 (DVD-R sequential recording)

Profile: 0x002B (DVD+R/DL) 

Profile: 0x001B (DVD+R) 

Profile: 0x001A (DVD+RW) 

Profile: 0x0016 (DVD-R/DL layer jump recording) 

Profile: 0x0015 (DVD-R/DL sequential recording) 

Profile: 0x0014 (DVD-RW sequential recording) 

Profile: 0x0013 (DVD-RW restricted overwrite) 

Profile: 0x0012 (DVD-RAM) 

Profile: 0x0011 (DVD-R sequential recording) (current)

Profile: 0x0010 (DVD-ROM) 

Profile: 0x000A (CD-RW) 

Profile: 0x0009 (CD-R) 

Profile: 0x0008 (CD-ROM) 

Profile: 0x0002 (Removable disk) 

Using generic SCSI-3/mmc DVD-R(W) driver (mmc_mdvd).

Driver flags   : SWABAUDIO BURNFREE 

Supported modes: PACKET SAO

Drive buf size : 1177600 = 1150 KB

Beginning DMA speed test. Set CDR_NODMATEST environment variable if device

communication breaks or freezes immediately after that.

FIFO size      : 4194304 = 4096 KB

Track 01: data  4218 MB        

Total size:     4844 MB (479:56.41) = 2159731 sectors

Lout start:     4844 MB (479:58/31) = 2159731 sectors

Current Secsize: 2048

HINT: use dvd+rw-mediainfo from dvd+rw-tools for information extraction.

Blocks total: 2298496 Blocks current: 2298496 Blocks remaining: 138765

Speed set to 8310 KB/s

Starting to write CD/DVD at speed   6.0 in real unknown mode for single session.

Last chance to quit, starting real write in    0 seconds. Operation starts.

Waiting for reader process to fill input buffer ... input buffer ready.

Performing OPC...

Starting new track at sector: 0

Track 01: 4218 of 4218 MB written (fifo 100%) [buf  99%]   6.4x.

Track 01: Total bytes read/written: 4423129088/4423129088 (2159731 sectors).

Writing  time:  560.568s

Average write speed   6.0x.

Min drive buffer fill was 57%

Fixating...

Fixating time:   14.648s

wodim: fifo had 69669 puts and 69669 gets.

wodim: fifo was 0 times empty and 25652 times full, min fill was 82%.


CD 데이타 지우기

[root@dev156 _home]# cdrecord -eject --dev=4,0,0 --blank=all



더욱 자세한 것은 여기로 ^^

http://realmind.tistory.com/entry/Linux-Shell%EC%97%90%EC%84%9C-CD-%EA%B5%BD%EA%B8%B0

출처 :  http://www.spaceprogram.com/knowledge/2004/01/starting-tomcat-as-service-on-linux.html 

# vim /etc/init.d/tomcatd


# This is the init script for starting up the

# Jakarta Tomcat server

#

# chkconfig: 345 91 10

# description: Starts and stops the Tomcat daemon.

#

# Source function library.

 . /etc/rc.d/init.d/functions

# Get config.

 . /etc/sysconfig/network

# Check that networking is up.

 [ "${NETWORKING}" = "no" ] && exit 0

 tomcat=/usr/local/tomcat6

 startup=$tomcat/bin/startup.sh

 shutdown=$tomcat/bin/shutdown.sh

 CATALINA_HOME=/usr/local/tomcat6; export CATALINA_HOME

 JAVA_HOME=/usr/java/jdk1.6.0_29; export JAVA_HOME

 start(){

  echo -n $"Starting Tomcat service: "

  #daemon -c

  $startup

  RETVAL=$?

  echo

 }

 stop(){

  action $"Stopping Tomcat service: " $shutdown

  RETVAL=$?

  echo

 }

 status(){

  numproc=`ps -ef | grep catalina | grep -v "grep catalina" | wc -l`

  if [ $numproc -gt 0 ]; then

  echo "Tomcat is running..."

  else

  echo "Tomcat is stopped..."

  fi

 }

 restart(){

   stop

   start

 }

 # See how we were called.

 case "$1" in

 start)

  start

  ;;

 stop)

  stop

  ;;

 status)

  status
 ;;

 restart)

  restart

  ;;

 *)

  echo $"Usage: $0 {start|stop|status|restart}"

  exit 1

 esac

 exit 0


리눅스 서버 세팅 

1. VNC 서버 설치 (환경은 CentOS 6)
#yum install vnc-server

2. VNC 설정. 아래는 root 계정 사용과 해상도는 1680x1050 사용
#vim /etc/sysconfig/vncservers

VNCSERVERS="1:root"

VNCSERVERARGS[1]="-geometry 1680x1050"


32. VNC에 사용할 패스워드 설정
#vncpasswd
패스워드 입력 

4. VNC에 사용될 tcp 포트 추가해서 열어준다.
#vim /etc/sysconfig/iptables

-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 5901 -j ACCEPT

# /etc/init.d/iptables restart

5. VNC 서버 시작 
#/etc/init.d/vncserver start


CentOS 5 일 경우 VNC 로 접속했을 때
 

#vim ~/.vnc/xstartup


#twm &     <- 주석처리 하고 GNOME 데스크탑이 실행될 수 있도록 아래 줄을 추가해준다.

gnome-session &   



윈도우 클라이언트 세팅   

1. VNC Viewer 다운로드


2. Server란에 IP주소:포트 입력



3. OK 눌러서 비밀번호 입력 후 접속 !

+ Recent posts