2012년 9월 18일 화요일

[foxit] where is my page number in a pdf?


probably, a foxit pdf reader show a page number somewhere,

but, I could not find the palace. So, I am googling and then find the answer..

----------------------

the page number is displayed with status bar at the bottom of the browser.

First, go to "EDIT" -> "Preferences" 


then, check "show Status bar" 


Now, the page number is display at the bottom.. 









2012년 9월 13일 목요일

Ubuntu 12.04 설치후 작업

Ubuntu 12.04 설치후 작업

1. update source 변경 및 업데이트 설치 

업데이트 관리자의 설정에서 아래 내용들을 변경한다. source를 변경하는 이유는 업데이트 속도를 조금더 빠르게 하기 위해서이다.

update - 제안하는 업데이트 추가
기타 소프트웨어 - 캐노니칼 파트너 추가
소스 코드 - ftp.daum.net 로 변경


2. 추가 드라이버 설치 

그래픽 카드 드라이버 설치를 위해서 추가드라이버 설치를 한다.

** ubuntu 13.04(32bits) 에서는 별도의 드라이버 설치가 없어보임..


3.Vim 설치 

$ sudo apt-get remove vim-tiny --purge
$ sudo apt-get install vim vim-gnome vim-gtk


2012년 9월 11일 화요일

LAB RACK tutorial

LAB RACK tutorial

이 기본 토폴로지를 이용해서 다음 아래 네트워크를 구성한다. 


(그림 생략)


모든 라우터에 작업을 위한 기본 명령어를 실행한다. 
Router>en    
Router#conf t
Router(config)#no ip domain-lookup  (명령어를 잘못 입력한 경우, 기다리는 시간 없이.) 

Router(config)#line con 0
Router(config-line)#no exec-timeout  ( timeout 에 의한 로그아웃 안된다. )
Router(config-line)#logging synchronous  ( 중간에 명령어가 짤리는 현상 방지)


lab 작업은  layer 순서대로 작업을 진행하고 테스트 한다. 
step 1. 모든 라우터에 loopback0 인터페이스를 생성하고 설정

Router(config)#int lo0
Router(config-if)#ip address 10.10.2.2 255.255.255.255
Router(config-if)#no shutdown 


step 2. layer 2 (SW1)의 vlan 설정






2012년 9월 10일 월요일

SecureCRT 화면 설정 변경하기


SecureCRT 화면 색을 고쳐보자

SecureCRT에서 화면 색을 매트릭스처럼 마춰 보자.. ^^

먼저 실행을 시켜서 메뉴바에 있는
'Option > Global Option.. ' 에서 바꾸면 된다.


위에서와 같이 Temial > Advanced 에 가서 MonochromeEdit로 바꾸면 된다.


Foregroud & Backgroud 색을 원하는 색으로 변경한다.





이제 putty에서 secureCRT 로 터미널을 옮기게 되었네요.. 

출처 : http://r5xs.blogspot.com.au/2009/07/securecrt-%ED%99%94%EB%A9%B4-%EC%83%89%EC%9D%84-%EA%B3%A0%EC%B3%90%EB%B3%B4%EC%9E%90.html

GNS3에서 secureCRT 설정 방법

GNS3에서 secureCRT 설정 방법

Edit > Preferences를 클릭하면 아래 화면과 같이 나온다. Terminal Settings 탭에서 아래와 같이 원하는 터미널 프로그램을 선택하고 실행파일 위치를 지정해 주면 된다.


자 이제 secureCRT 를 이용해서 Cisco 라우터를 세팅하면 된다.



[기타] 호주의 시간별 전기 요금


호주는 한국과 달리 보일러라는 개념이 없어서 난방을 위해서 전기히터를 사용하고 있다. 
전기료가 없마나 나오는지 궁금해서 한번 찾아보았다. 

호주에서는 3개의 시간 구간을 정해서 전기료를 부과 한다. 

Peak  2pm to 8pm on working weekdays
 Shoulder
 7am to 2pm and 8pm to 10pm on working weekdays
 7am to 10pm on weekends and public holidays
 Off Peak  All other times

이제부터 모든 전기 제품은 10시 이후에 사용해야 겠다.

ubuntu 12.04 samba 설치 - 우분투에서 삼바 설치


우분투에서 samba(삼바) 설치하기

1. 모든 사용자를 위한 공유 폴더 설정

삼바 설정을 위한 모든 패키지 설치

citylock@citylock:~$ sudo apt-get install samba samba-common
[sudo] password for citylock:
Reading package lists... Done
Building dependency tree    
Reading state information... Done
(이하 생략)


samba 가 제대로 설치되었는지 확인하기 위해서 samba 버전을 체크한다.

citylock@citylock:~$ smbd --version
Version 3.6.3

삼바에 필요한 기타 패키지 설치 
citylock@citylock:~$ sudo apt-get install python-glade2 system-config-samba 
Reading package lists... Done
Building dependency tree    
Reading state information... Done
python-glade2 is already the newest version.
python-glade2 set to manually installed.
The following extra packages will be installed:
(이하생략..)

samba 파일 공유에 필요한 윈도우의 WorkGroup 명을 확인한다. 
윈도우 command 창, c:>net config workstation


samba 설정 파일 수정
citylock@citylock:/etc/samba$ cat smb.conf
#============== Global Settings ======================
[global]
   workgroup = WORKGROUP
   server string = Samba Server %v
   netbios name = ubuntu
   security = user
   map to guest = bad user
   dns proxy = no
#=============== Share Definitions ==================
[MyShare]
   path = /samba/share
   browsable =yes
   writable = yes
   guest ok = yes
   read only = no


설정이 완료되면 samba 를 재시작

citylock@citylock:/etc/samba$ sudo service smbd restart
smbd stop/waiting
smbd start/running, process 8581

여기까지 했다면 윈도우에서 Network 의 내용을 확인하면 ubuntu samba 가 추가된 것을 확인할 수 있다.  


하지만, 아직까지 공유폴더에 write 권한은 부여되어 있지 않다. 모든 사용자(inc. guest) 들이 write 를 하기 위해서는 공유폴더의 권한 수정해야 한다.

citylock@citylock:~/Videos$ chmod 777 (공유디렉토리)

그럼이제 누구나 접근해서 읽기 & 쓰기가 가능하다.



2. 사용자/그룹 등록 및 관리

우분투에 samba 관리용 그룹을 추가한다.

citylock@citylock:~/Videos$ sudo addgroup smbgrp
[sudo] password for citylock:
Adding group `smbgrp' (GID 1001) ...
Done.

특정 사용자만 로그인해서 사용할 폴더를 생성한다. 
citylock@citylock:~$ mkdir secure
citylock@citylock:~$ sudo chown -R citylock:smbgrp secure/
[sudo] password for citylock:
citylock@citylock:~$ sudo chmod -R 0770 secure/
citylock@citylock:~$ sudo adduser citylock smbgrp
Adding user `citylock' to group `smbgrp' ...
Adding user citylock to group smbgrp
Done.
citylock@citylock:~$ sudo smbpasswd -a citylock
New SMB password:
Retype new SMB password:
citylock@citylock:~$ 


다시 /etc/samba/smb.conf 파일에 secure 폴더를 추가 등록한다. 
[secure]
  path = /home/citylock/secure
  valid users = @smbgrp
  guest ok = no
  writable = yes
  browsable = yes

samba 재시작
citylock@citylock:/etc/samba$ sudo service smbd restart
smbd stop/waiting
smbd start/running, process 9339

이제 윈도우에서 secure 폴더를 접속하면 로그인 창이 나오게 되고 smbgrp 그룹의 사용자만 이용가능하다. 




참고 사이트 : http://rbgeek.wordpress.com/2012/04/25/how-to-install-samba-server-on-ubuntu-12-04/


델루지(Deluge) - 토렌트 프로그램

우분투에서 사용하는 토렌트 프로그램 - 델루지(Deluge)

윈도우에서는 utorrent을 사용했었는데, 우분투로 바꾸고 나서 Deluge 를 설치했습니다.
일단 당분간 사용해 보고 평을 해봐야겠죠.. ^^

2012년 9월 9일 일요일

CCNP - Interface : serial 설정

Cisco serial  인터페이스 설정

1. serial interface IP address 설정 

Engineering(config)#int se 2/0
Engineering(config-if)#ip address 10.1.200.1 255.255.255.0
Engineering(config-if)#clock rate 64000
Engineering(config-if)#no shutdown 
serial 인터페이스 모드로 들어가서 IP를  세팅해주면 된다.
만일,  Serial 인터페이스가 DCE 인 경우만 clock rate (64000)를 설정해 준다.

2. serial 인터페이스 확인
Engineering# show interfaces serial 2/0
Serial2/0 is up, line protocol is up (connected)
  Hardware is HD64570
  Internet address is 10.1.200.1/24
  MTU 1500 bytes, BW 64 Kbit, DLY 20000 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation HDLC, loopback not set, keepalive set (10 sec)
  Last input never, output never, output hang never
  Last clearing of "show interface" counters never
  Input queue: 0/75/0 (size/max/drops); Total output drops: 0
  Queueing strategy: weighted fair
  Output queue: 0/1000/64/0 (size/max total/threshold/drops)
     Conversations  0/0/256 (active/max active/max total)
     Reserved Conversations 0/0 (allocated/max allocated)
     Available Bandwidth 48 kilobits/sec
  5 minute input rate 49 bits/sec, 0 packets/sec
  5 minute output rate 54 bits/sec, 0 packets/sec
     39 packets input, 2586 bytes, 0 no buffer
     Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
     37 packets output, 2160 bytes, 0 underruns
     0 output errors, 0 collisions, 1 interface resets
     0 output buffer failures, 0 output buffers swapped out
Engineering#   

3. serial 인터페이스 bandwidth 를 변경

Engineering(config)#int se 2/0Engineering(config-if)#bandwidth 128
%DUAL-5-NBRCHANGE: IP-EIGRP 1: Neighbor 10.1.200.2 (Serial2/0) is down: interface down%DUAL-5-NBRCHANGE: IP-EIGRP 1: Neighbor 10.1.200.2 (Serial2/0) is up: new adjacencEngineering(config-if)#

Engineering#show interfaces se 2/0Serial2/0 is up, line protocol is up (connected)  Hardware is HD64570  Internet address is 10.1.200.1/24  MTU 1500 bytes, BW 128 Kbit, DLY 20000 usec,     reliability 255/255, txload 1/255, rxload 1/255  Encapsulation HDLC, loopback not set, keepalive set (10 sec)  Last input never, output never, output hang never  Last clearing of "show interface" counters never





CCNP - EIGRP


CCNP Routing : EIGRP

EIGRP에 대한 기본적인 라우팅 세팅은 다음과 같다.

Marketing(config)#int fa 0/0
Marketing(config-if)#ip address 10.1.100.2 255.255.255.0
Marketing(config-if)#exit 

Marketing(config)#router eigrp 1(AS num)
Marketing(config-router)#no auto-summary 
Marketing(config-router)#network 10.0.0.0
Marketing(config-router)#end

이웃 라이터와 routing 정보를 교환하기 위해서는 반드시 AS 번호가 일치해야한다. 또, auto summarization 으로 인해서 라우팅이 잘못되는 경우 발생할수 있기때문에 디폴트로 no auto-summary 를 설정하고 필요시에 summarization 를 수행하는 것이 좋다.


라우터간의 교환되는 패킷 정보를 확인하는 명령

Engineering#debug eigrp packets 
EIGRP Packets debugging is on
    (UPDATE, REQUEST, QUERY, REPLY, HELLO, ACK )
EIGRP: Sending HELLO on Loopback1
  AS 1, Flags 0x0, Seq 7/0 idbQ 0/0 iidbQ un/rely 0/0
EIGRP: Received HELLO on Loopback1 nbr 10.1.1.1
  AS 1, Flags 0x0, Seq 7/0 idbQ 0/0
EIGRP: Packet from ourselves ignored
EIGRP: Sending HELLO on FastEthernet0/0
  AS 1, Flags 0x0, Seq 7/0 idbQ 0/0 iidbQ un/rely 0/0
EIGRP: Received HELLO on FastEthernet0/0 nbr 10.1.100.2
  AS 1, Flags 0x0, Seq 7/0 idbQ 0/0
EIGRP: Received HELLO on FastEthernet0/0 nbr 10.1.100.3
  AS 1, Flags 0x0, Seq 7/0 idbQ 0/0

라우터는 eigrp 가 enable 되어 있는 모든 포트로 HELLO 메시지를 보내고, 그에 대한 응답을 보낸다. HELLO 메시지는 multicast 패킷을 이용해서 보내고, 응답은 unicast 로 받는다.


 EIGRP 구성(configuraton) 을  확인하는 방법 


1. routing table 확인
     10.0.0.0/24 is subnetted, 4 subnets
D       10.1.1.0 [90/156160] via 10.1.100.1, 00:53:16, FastEthernet0/0
C       10.1.2.0 is directly connected, Loopback2
D       10.1.3.0 [90/156160] via 10.1.100.3, 00:52:37, FastEthernet0/0
C       10.1.100.0 is directly connected, FastEthernet0/0

D - eigrp protocols 통해서 얻어진 네트워크, C- 직접 연결된 네트워크

 2. eigrp neighbors 확인 
Marketing#show ip eigrp neighbors 
IP-EIGRP neighbors for process 1
H   Address         Interface      Hold Uptime    SRTT   RTO   Q   Seq
                                   (sec)          (ms)        Cnt  Num
0   10.1.100.1      Fa0/0          14   00:50:02  40     1000  0   6
1   10.1.100.3      Fa0/0          12   00:49:24  40     1000  0   6

Router - default configuration setting


라우터 작업시 기본적으로 설정해 주는 세팅 값들..

Router>enable
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#no ip domain-lookup
Router(config)#
Router(config)#line con 0
Router(config-line)#logging synchronous
Router(config-line)#no exec-timeout 
Router(config-line)#end
Router#


no ip domain-lookup 
: 잘못된 명령어를 실행한 경우 holding time 없이 계속 작업

logging synchronous & no exec-timeout 
: 콘솔 작업에 대한 모든 기록을 logging 서버에 저장한다. 콘솔 작업에 대한 장애 원인 분석시 유용함

GNS3 - Router emulator

GNS3 - Netwrok Router Emulator

1. Download GNS3 and Install it ... 

   main site : http://www.gns3.net
   forums : http://7200emu.hacki.at

2. Register those images before draw topology. 

   Cisco IOS for GNS3
   => http://gns3.blogspot.com.au/2007/10/ios.html