질문&답변
클라우드/리눅스에 관한 질문과 답변을 주고 받는 곳입니다.
리눅스 분류

페도라6리눅스에서 외부PC로 콘솔케이블이용해서 사용하려고 하는데요..ㅠㅠ

작성자 정보

  • 죄수 작성
  • 작성일

컨텐츠 정보

본문

급 질문 있어서 이렇게 질문 올립니다.

 

OS는 페도라6이고 콘솔케이블을 이용하여 외부 컴퓨터로 사용 하려고 하는데요

 

대충 첮어 보니까 , /etc/grub.conf, /etc/inittab, /etc/securitty 의 내용을 수정 하라고 하더군요...

 

아래의 내용은 /etc/ 밑에 위의 파일들 내용이구요. 빨간색으로 되어 잇는 부분은 제가 알아내서 수정한 부분입니다.  어떻게 수정하면 가능 할까요?...ㅠㅠ 페도라리눅스고수님들 답변 부탁드립니다..감사합니다.

 

=================================================================================

 

[root@localhost ~]# cat /etc/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/sda2
#          initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
terminal --timeout=10 serial console

splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.18-1.2798.fc6)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-1.2798.fc6 ro root=LABEL=/ rhgb quiet console=ttyS0,115200n8
        initrd /initrd-2.6.18-1.2798.fc6.img
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# cat /etc/inittab
#
# inittab       This file describes how the INIT process should set up
#               the system in a certain run-level.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Marc Ewing and Donnie Barnes
#

# Default runlevel. The runlevels used by RHS are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
#
id:5:initdefault:

# System initialization.
si::sysinit:/etc/rc.d/rc.sysinit

l0:0:wait:/etc/rc.d/rc 0
l1:1:wait:/etc/rc.d/rc 1
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3
l4:4:wait:/etc/rc.d/rc 4
l5:5:wait:/etc/rc.d/rc 5
l6:6:wait:/etc/rc.d/rc 6

# Trap CTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown -t3 -r now

# When our UPS tells us power has failed, assume we have a few minutes
# of power left.  Schedule a shutdown for 2 minutes from now.
# This does, of course, assume you have powerd installed and your
# UPS connected and working correctly. 
pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"

# If power was restored before the shutdown kicked in, cancel it.
pr:12345:powerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled"


# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
5:2345:respawn:/sbin/mingetty ttyS0
#co:2345:respawn:/sbin/agetty -h -t 60 ttyS0 115200 vt102

# Run xdm in runlevel 5
x:5:once:/etc/X11/prefdm -nodaemon
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# cat /etc/securetty
console
vc/1
vc/2
vc/3
vc/4
vc/5
vc/6
vc/7
vc/8
vc/9
vc/10
vc/11
tty1
tty2
tty3
tty4
tty5
tty6
tty7
tty8
tty9
tty10
tty11
ttyS0

관련자료

댓글 1

메드보스님의 댓글

  • 메드보스
  • 작성일
< 부트로더가 Grub 인 경우의 설정 >

참고 : http://www.tldp.org/HOWTO/Remote-Serial-Console-HOWTO/configure-kernel-grub.html

1) grub.conf 파일을 수정합니다.

 
default=0

timeout=10

password --md5 $1$wwmIq64O$2vofKBDL9vZKeJyaKwIeT.

serial --unit=0 --speed=9600 --word=8 --parity=no --stop=1

terminal --timeout=10 serial console

title Red Hat Linux (2.4.9-21)

  root (hd0,0)

  kernel /vmlinuz-2.4.9-21 ro root=/dev/hda6 console=tty0 console=ttyS0,9600n8

  initrd /initrd-2.4.9-21.img

 

2) Inittab file


/etc/initab file 수정합니다.

co:2345:respawn:/sbin/agetty -h -t 60 ttyS0 9600 vt102

위의 라인을 추가합니다.

 

3) Securetty file


시리얼 콘솔로 root 사용자가 로그인 할 수 있도록 /etc/securetty에

ttyS0

라는 라인을 추가합니다.

 

4) 설정 적용


리눅스를 리부팅한다.

>> reboot

공지사항


뉴스광장


  • 현재 회원수 :  60,289 명
  • 현재 강좌수 :  36,948 개
  • 현재 접속자 :  480 명