Gentoo Linux에서 Wake on Lan 기능 사용하는 방법

조회 수 1681 추천 수 0 2007.12.29 02:01:34
내 컴퓨터 환경에 대해서 ..
OS : Gentoo Linux
공유기 : IPTIME G304
LINUX 머신 아이피 : 192.168.0.xx

현재 공유되어 있는 상태이다.

원격 부팅(Wake on-LAN : WOL)에 관해 관심이 많아 지고 있다. 예전에는 고급사양으로 인식되어 일부 고가의 시스템에서만 존재하였으나, 현재는 출시되는 모든 메인보드에 WOL기능이 추가되어, 원격 부팅과 원격 조정을 할 수 있게 된 것이다.

원격 부팅으로 얻을 수 있는 효과는 매우 크다. 집과 사무실에서 인터넷에 연결되어 있는 것 만으로 누구의 도움 없이 컴퓨터를 끄고 켤 수 있으며, 원격으로 안전하게 조정할 수 있는 것이다. 급기야는 대형 포탈 사이트에서 이와 비슷한 원격 부팅, 조정 서비스를 유료로 실시하고 있을 정도이다.

그럼 매력적인 WOL 기능을 구현하기 위한 사전 준비와 활용에 대해 알아보도록 하자.

0. 작동원리

Wake on-LAN 기능은 LAN 상의(WAN 상이 아님)의 PC를 원격에서 켤수 있는 기능이다. 따라서 인터넷을 통해서 원격에 있는 컴퓨터를 켤 수는 없다. 그러나 약간만 응용해도 원격에서 이 기능을 이용해서 컴퓨터를 켤 수가 있다.

1. 구현조건
■ 꺼져 있는 컴퓨터의 메인보드에서 Wake-on-LAN 기능 지원
■ 꺼져 있는 컴퓨터의 랜카드에서 Wake-on-LAN 기능 지원
■ Wake-on-LAN 기능을 지원하는 아이피 공유기

2. PC 메인보드에서의 CMOS 설정
* CMOS 설정 화면은 PC의 CMOS 종류에 따라 차이가 있을 수 있다.
  
PC의 전원을 켜고 자판의 [Delete] key 를 눌러주면 CMOS(보드설정 내장셋업)으로 접속하게 된다.
보통은 Power Management Setup에서 확인이 가능하나 메인보드별로 차이가 있을 수 있다.


난 지금 일본에 와있다. 오기전에 wake on lan모드를 설정하지 않고 왔었는데,
혹시나 하는마음에 위키문서를 찾아보면서, 해결방법을 찾고
설정을 하니 결과적으로 성공하였다.

그 방법을 소개 하겠다.

http://gentoo-wiki.com/Wake_on_lan


먼저 위의 문서를 참고 하도록 하고, 영문이라서 파악이 힘들다면 아래를 보고 따라하면 된다.

현재 사용하고 있는 머신이 3G 이상의 CPU를 지원한다거나, 내장 보드를 사용하고 있다면,
분명 Wake on Lan을 지원할 것이다.
NIC을 사용하고 있다면, 사용이 불가능하다.

먼저 해야 할일은 /etc/conf.d/rc 의 파일을 수정해야 한다.
수정할때, 이부분을 찾아보도록 한다.

# RC_DOWN_INTERFACE allows you to specify if RC will bring the interface
# compeletly down when it stops. The default is yes, but there are some
# instances where you may not want this to happen such as using Wake On LAN.
RC_DOWN_INTERFACE="no"

이 부분을 찾고 RC_DOWN_INTERFACE="no"을 반드시 no로 설정해놓아야 한다.
그래야 Shutdown이 되더라도 랜카드는 죽지 않는다.

그런 후에, emerge -av ethtool 로 ethtool을 설치하자.

#ethtool eth0
Settings for eth0:
       Supported ports: [ TP MII ]
       Supported link modes:   10baseT/Half 10baseT/Full
                               100baseT/Half 100baseT/Full
       Supports auto-negotiation: Yes
       Advertised link modes:  10baseT/Half 10baseT/Full
                               100baseT/Half 100baseT/Full
       Advertised auto-negotiation: Yes
       Speed: 100Mb/s
       Duplex: Full
       Port: MII
       PHYAD: 32
       Transceiver: internal
       Auto-negotiation: on
       Supports Wake-on: pumbg
       Wake-on: d
       Current message level: 0x00000007 (7)
       Link detected: yes

이렇게 확인을 해보면 Wake-on: d 란 부분을 볼수 있을 것이다.
아직 wake-on 기능을 활성화 하지 않았단 표시다. 이것을 g 로 바꿔줘야 하는데
다음과 같이 하자

# ethtool -s eth0 wol g

이렇게 하면 기능이 켜지게 된다.

계속해서 이 기능을 쓰고 싶다면 당연히,!

echo "ethtool -s eth0 wol g" >> /etc/conf.d/local.start

이렇게 하면 모든것이 완료된다.

그런데, 외부에서 어떻게 킬것인가?
다른 공유기는 잘 모르겠사오나, IPTIME 공유기에서는 분명 지원한다.

IPTIME 설정화면으로 들어가서 해보자.

wakeonlan.jpg

고급설정에 들어가서 원격PC제어(WOL)에 들어간다.
하드웨어 주소 찾기를 해서 현재 켜져있는 리눅스 서버를 선택한다.
그럼 하드웨어 MAC주소를 알아서 찾아주게 된다.
PC이름은 아무렇게나..!!

그리고 IPTIME에 외부에서 아무곳에나 접속할수 있도록, 외부 연결설정을 하자.

wakeonlan2.jpg
이쪽으로 와서 포트를 설정해 주자.

그럼 외부에서 http://xxx.xxx.xxx.xxx:8484 같은 형식으로 관리자 페이지로 접속이 가능하다.

그럼 DDNS를 사용해서 내 아이피에 도메인을 달아보자.

wakeonlan3.jpg

계정등록은 iptime.co.kr에 가서 회원가입 후, 이곳에 설명을 잘보면서 입력하면 된다.

이제 xxx.iptime.co.kr:8484로 접속이 가능하다.
그런데, 아무나 들어갈수 있으니 암호를 달아놓자.!!!.

List of Articles
번호 제목 글쓴이 날짜 조회 수sort

Environment Variables [61]

Environment Variables Content: Environment Variables?Defining Variables GloballyDefining Variables Locally5.a. Environment Variables?What they areAn environment variable is a named object that contains information used by one or more applications. Many users (and especially those new to Linux) find this a bit weird or unmanageable. However, this is a mistake: by using environment variables one can easily change a...

HOWTO Setup Samba image

HOWTO Setup SambaFrom Gentoo Linux WikiJump to: navigation, searchThis article is part of the HOWTO series.Installation•Kernel & Hardware•Networks•Portage•Software•System•X Server•Gaming•Non-x86•Emulators•Misc Contents[hide]1Introduction2Installation3Client3.1Kernel Requirements for Clients3.2Configuration3.3Mounting shares3.3.1Using CIFS3.3.2Using SMB3.4GUI3.5smbclient and smbmount3.6Mount and umount as non privileged ...

한컴 리눅스 삼바 서버 설정

# This is the main Samba configuration file. You should read the # smb.conf(5) manual page in order to understand the options listed # here. Samba has a huge number of configurable options (perhaps too # many!) most of which are not shown in this example # # Any line which starts with a ; (semi-colon) or a # (hash) # is a comment and is ignored. In this example we will use a # # for commentry and a ; for pa...

The X Server Configuration HOWTO

The X Server Configuration HOWTOContent: 1. What is the X Window Server?2. Installing Xorg3. Configuring Xorg4. Tweaking xorg.conf5. Resources1. What is the X Window Server?Graphical vs Command-LineThe average user may be frightened at the thought of having to type in commands. Why wouldn't he be able to point and click his way through the freedom provided by Gentoo (and Linux in general)? Well, *big s...

[Gentoo] VMware 갑자기 실행 안되는 문제.. 해결했음.!

https://forums.gentoo.org/viewtopic-t-637154.html webterror ~ # VMWARE_USE_SHIPPED_GTK=yes vmware process 12989: Attempt to remove filter function 0xb6ee9e54 user data 0x87f7438, but no such filter has been added D-Bus not built with -rdynamic so unable to print a backtrace webterror ~ # VMWARE_USE_SHIPPED_GTK=ye vmware process 13000: Attempt to remove filter function 0xb6a56e54 user data 0x87f82f0, but no such fi...

How to ALSA Wiki

Main PageFrom the ALSA wiki[edit] ALSA Wiki This is an unofficial wiki about ALSA, the Advanced Linux Sound Architecture. Please help to improve it, editing is easy and very welcome but you must register first. Read the introduction and about page for more information. The offical web site of the ALSA project can be found at http://www.alsa-project.org. Folks, please be upstanding and give a huge round of ...

x11-drivers/nvidia-drivers-169.12 do not compile

webterror linux # emerge -unD world Calculating world dependencies... done! >>> Verifying ebuild Manifests... >>> Emerging (1 of 22) x11-drivers/nvidia-drivers-169.12 to / * NVIDIA-Linux-x86-169.12-pkg0.run RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking NVIDIA-Linux-x86-169.12-pkg0.run ;-...

간단한 팩스 서버 : HylaFax [4]

간단한 팩스 서버 : HylaFax 필자 : 서정룡 (dreamsoh@orgio.net) 원문 : http://linuxfocus.org/English/March2001 소개 이 기사는 Hylafax 4.0pl2.rjc11 과 맨드레이크 7.1 배포판을 이용한 간단한 팩스 서버 설정 방법에 대해 설명한다. 서버쪽에서 Hylafax 는 세 개의 데몬으로 이루어져 있다: ·faxq - 메인서버 ·hfaxd - 네트워크 접속 관리 ·faxgetty - 모뎀과의 교신 관리 클라이언트 쪽에서는 다음 프로그램들이 있을 것이다. 물론 서버에 존재할 수도 있다. ·sendfa...

Upgrading to KDE 3.5.7: Frequently Asked Questions

Upgrading to KDE 3.5.7: Frequently Asked Questions Content: 1. Introduction 2. Short FAQ 1. Introduction For most architectures supported by Gentoo the current versions of the GNOME and KDE desktop environments went into the stable branch a few days ago. Together with this update to GNOME 2.18.2 and KDE 3.5.7, new versions of the expat and curl libraries were stabilised as well. The now stable versions ...

[Gentoo] sound-juicer의 CD에서 MP3로 변환하기 설정방법 imagefile

참고 문서 : http://gentoo-wiki.com/HOWTO_rip_mp3s 기본으로 Gnome을 깔면 sound-juicer라는 프로그램을 깔아준다. 이 프로그랭은 CD에서 WAV로 추출하는 것을 가능하게 해주는 프로그램이지만, 기본값으로 MP3로의 변환은 설정되어 있지 않다. 그래서 지금부터 웹테러가 어떻게 해서 설정하는지에 대해 설명한다. Adding Custom Rip-Profiles If an MP3 Profile is not present you can create one. For that, you will need the packages: media-plugins/gst-plugi...

Using UTF-8 with Gentoo [138]

Using UTF-8 with GentooContent: 1. Character Encodings2. Setting up UTF-8 with Gentoo Linux3. Application Support1. Character EncodingsWhat is a Character Encoding?Computers do not understand text themselves. Instead, every character is represented by a number. Traditionally, each set of numbers used to represent alphabets and characters (known as a coding system, encoding or character set) was limited in size d...

A Linux Fax Server for a Windows Network

A Linux Fax Server for a Windows Network By Pedro Fraile Introduction The firm I work for had a fax system integrated in the corporate e-mail platform, Microsoft Exchange, for sending and receiving. One day after a software upgrade, the system broke. We needed to find something with the equivalent functionality but with the following conditions: Minimum cost, or better still, no cost at all, especially ...

Gentoo Linux ALSA Guide image

http://www.gentoo.org/doc/en/alsa-guide.xml Gentoo Linux ALSA GuideContent: 1. Introduction2. Installing ALSA3. Configuring/Testing ALSA4. Other things ALSA1. Introduction What is ALSA? ALSA, which stands for Advanced Linux Sound Architecture, provides audio and MIDI (Musical Instrument Digital Interface) functionality to the Linux operating system. ALSA is the default sound subsystem in the 2.6 kernel thereby...

ERROR : AUDIT: Wed Apr 2 19:41:46 2008: 24659 X: client 1 rejected from local host (uid 1000) [1]

webterror@webterror ~ $ xauth: creating new authority file /home/webterror/.serverauth.24642 xauth: (stdin):2: unknown command "c1e4f501504a702a009c41fc1e3f62a8" X Window System Version 1.3.0 Release Date: 19 April 2007 X Protocol Version 11, Revision 0, Release 1.3 Build Operating System: UNKNOWN Current Operating System: Linux webterror 2.6.24-gentoo-r4 #1 SMP Tue Apr 1 21:47:22 UTC 2008 i686 Build Date: 01 April...

Gentoo GCC Upgrade Guide [124]

Gentoo GCC Upgrade GuideContent: 1. Introduction2. General Upgrade Instructions3. Upgrading from GCC-3.3 to 3.44. Upgrading to GCC on a First Install5. Common Pitfalls1. IntroductionGCC UpgradingWhy should you upgrade? Well, GCC is quite similar to any other package on your system, just a bit more critical. You should upgrade GCC whenever a new version fixes some bug that annoys you, new functionality you need is ...

mplayer 한글 설정 방법 [1]

http://www.ubuntu.or.kr/ 많이 참고 할것 vi ~/.mplayer/config 을 다음과 같이 설정해 준다 # Write your default config options here! font=/usr/share/fonts/ttf/korean/ms/NGULIM.TTF fontconfig=1 unicode=1 font=dotum20 subfont-text-scale=4 subcp=cp949 subfont-outline=3

localhost vmware-workstation # emerge =vmware-workstation-6.0.1.55017 문제

localhost vmware-workstation # emerge =vmware-workstation-6.0.1.55017 Calculating dependencies... done! >>> Verifying ebuild Manifests... >>> Emerging (1 of 1) app-emulation/vmware-workstation-6.0.1.55017 to / * vmware-any-any-update115.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ] * VMware-workstation-6.0.1-55017.i386.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ...

Changing the CHOST variable [150]

Changing the CHOST variableContent: 1. Introduction2. Changing the CHOST variable1. IntroductionChanging the CHOST is a big issue that can seriously screw up your system - so why is there a guide for that it at all? There are certain situations where changing the CHOST is inevitable, e.g. if you want to upgrade to glibc 2.4 which only supports nptl and you find out that your CHOST is i386, which makes it ...

tar로 압축할때 특정 파일이나 디렉토리 빼고 압축하기

tar cvfz zboard.tar.gz ./bbs/* --exclude ./bbs/images 특정 폴더나 파일을 빼고 압축할때에는 --exclude ./bbs/images 이렇게 옵션을 붙여서 압축한다. tar cvfz /home/webterror/html/zboard.tar.gz /home/webterror/html/bbs/* --exclude /home/webterror/html/bbs/images --exclude /home/webterror/html/bbs/zipcode --exclude /home/webterror/html/bbs/skin

[Gentoo] 한글 글꼴 설치, (은폰트, 은진체 설치) imagefile

한글 글꼴 설치! 반드시 하자.. 우분투를 깔면 깨끗히 나왔던 그 폰트가 여기있다. --- 은폰트 설치 # emerge unfonts # emerge unfonts-extra --- 은진체 설치 # emerge alee-fonts # emerge unfonts unfonts-extra alee-fonts 가능하면 설치해 두도록 하자


profile하루하루를 망설이며 뱃사공없는 나룻배처럼 구름위를 떠돌아 다니는 사나이. 한때 주위의 새로움에 미친듯이 덤벼들었지만 이제는 조용히 받아들이기만 하는 사람. 

Category

Recent Trackback