'Ubuntu'에 해당되는 글 2건

  1. 2008/10/30 우분투 apt-key
  2. 2008/10/22 Ubuntu IEEE1394(FireWire) Networking
Ubuntu2008/10/30 23:38

Ubuntu apt-key

apt-key 키 사용법
Usage: apt-key [command] [arguments]

Manage apt's list of trusted keys

  apt-key add <file>          - add the key contained in <file> ('-' for stdin)
  apt-key del <keyid>        - remove the key <keyid>
  apt-key export <keyid>    - output the key <keyid>
  apt-key exportall             - output all trusted keys
  apt-key update                - update keys using the keyring package
  apt-key net-update          - update keys using the network
  apt-key list                     - list keys



cat sample_key

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.6 (GNU/Linux)
bal~bal~bal~bal~bal~bal~bal~bal~bal~
bal~bal~bal~bal~bal~bal~bal~bal~bal~
bal~bal~bal~bal~bal~bal~bal~bal~bal~
-----END PGP PUBLIC KEY BLOCK-----

키 추가
sudo apt-key add sample_key

sudo apt-key list
/etc/apt/trusted.gpg
--------------------
pub   1024D/437D05B5 2004-09-12
uid                  Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
sub   2048g/79164387 2004-09-12

pub   1024D/FBB75451 2004-12-30
uid                  Ubuntu CD Image Automatic Signing Key <cdimage@ubuntu.com>

pub   1024D/023DDE46 2007-10-21
uid                  Sample (sample key for signing repositories) <info@localhost>
sub   2048g/B5D4F05E 2007-10-21

키 지우기
sudo apt-key del 023DDE46
OK

 sudo apt-key list
/etc/apt/trusted.gpg
--------------------
pub   1024D/437D05B5 2004-09-12
uid                  Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
sub   2048g/79164387 2004-09-12

pub   1024D/FBB75451 2004-12-30
uid                  Ubuntu CD Image Automatic Signing Key <cdimage@ubuntu.com>



크리에이티브 커먼즈 라이선스
Creative Commons License

'Ubuntu' 카테고리의 다른 글

우분투 apt-key  (0) 2008/10/30
Ubuntu IEEE1394(FireWire) Networking  (0) 2008/10/22
Posted by orchidii 오키드
Ubuntu2008/10/22 03:33

IEEE1394 카드로 로컬 랜 구성하기

현재 랜 구성은 보드에 내장된 랜2개 + IEEE1394
IEEE1394 카드는 캠코더 영상 편집을 위해 장착하였지만 평소에는 거의 쓰는 일이 없기 때문에 이것을 로컬랜으로 구성하여 기존 100M의 랜카드로 파일공유를 400M로 올리기로 했습니다.

사용환경
서버 : 우분투 8.04 Server Edition + GDM
클라이언트 : WINDOWS XP SP3

서버접속은 대부분 console로 하지만 서버 업그레이드를 계기로 X윈도우를 설치하고 조금 귀차니즘을 없애기 위해 클라이언트에서 직접 X환경으로 제어 하고 있습니다. 기존환경은 하나의 랜으로 외부/내부접속및 파일공유를 하다보니 하드웨어에 많은 부담을 주었지만  이번 구성으로 LAN은 외부접속으로 IEEE1394로컬로 접속하다보니  원격파일서버의 속도는 로컬머신에서 운영되는 속도와 비슷한 체감속도가 나오는것을 확인하였고 (떡밥던지는건 아닌지...) 무엇보다 하드웨어가 부담을 덜 받는 것 같았습니다.

먼저 인식이 되어 있는지 확인하기 위해
$lspci
00:03.0 Ethernet controller: Intel Corporation 82557/8/9/0/1 Ethernet Pro 100 (rev 0d)
00:04.0 Ethernet controller: Intel Corporation 82557/8/9/0/1 Ethernet Pro 100 (rev 0d)
00:08.0 FireWire (IEEE 1394): Texas Instruments TSB12LV26 IEEE-1394 Controller (Link)

FireWire (IEEE 1394): Texas Instruments TSB12LV26 IEEE-1394 Controller (Link) 가 잘 인식되어 있고 사용을 위해

사용하기 위해 모듈을 올리기

$sudo modprobe eth1394
eth1394                19588  0
ohci1394               33968  0
ieee1394               93752  3 eth1394,sbp2,ohci1394

기존 2개의 랜카드가 있으므로 사용자에 따라 틀려 질 수 있지만 eth2로 설정되어 있을겁니다.

$ifconfig

bond0     Link encap:Ethernet  HWaddr 00:02:b3:51:43:65
          inet addr:192.168.123.101  Bcast:192.168.123.255  Mask:255.255.255.0
          inet6 addr: fe80::202:b3ff:fe51:4365/64 Scope:Link
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:214 errors:0 dropped:0 overruns:0 frame:0
          TX packets:227 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:27151 (26.5 KB)  TX bytes:116288 (113.5 KB)

eth0      Link encap:Ethernet  HWaddr 00:02:b3:51:43:65
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:120 errors:0 dropped:0 overruns:0 frame:0
          TX packets:114 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:16089 (15.7 KB)  TX bytes:60212 (58.8 KB)

eth1      Link encap:Ethernet  HWaddr 00:02:b3:51:43:65
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:94 errors:0 dropped:0 overruns:0 frame:0
          TX packets:113 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:11062 (10.8 KB)  TX bytes:56076 (54.7 KB)
 
*제가 사용하는 환경은 본딩을 통해 2개의 랜카드를 분산해서 사용중이므로 ifconfig 메세지가 틀리게 나올 수 있습니다.

$sudo ifconfig eth2 192.168.1.1 netmask 255.255.255.0 up
$ip addr show eth2
5: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ieee1394 00:02:7a:01:00:00:51:b1 brd ff:ff:ff:ff:ff:ff:ff:ff
    inet 192.168.1.1/24 brd 192.168.1.255 scope global eth2

eth2가 이제 보이는군요

$ifconfig
bond0     Link encap:Ethernet  HWaddr 00:02:b3:51:43:65
          inet addr:192.168.123.101  Bcast:192.168.123.255  Mask:255.255.255.0
          inet6 addr: fe80::202:b3ff:fe51:4365/64 Scope:Link
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:1946 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2136 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:205217 (200.4 KB)  TX bytes:1991580 (1.8 MB)

eth0      Link encap:Ethernet  HWaddr 00:02:b3:51:43:65
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:980 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1068 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:104646 (102.1 KB)  TX bytes:998230 (974.8 KB)

eth1      Link encap:Ethernet  HWaddr 00:02:b3:51:43:65
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:966 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1068 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:100571 (98.2 KB)  TX bytes:993350 (970.0 KB)

eth2      Link encap:UNSPEC  HWaddr 00-02-7A-01-00-00-51-B1-00-00-00-00-00-00-00-00
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:62 errors:0 dropped:0 overruns:0 frame:0
          TX packets:75 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:8644 (8.4 KB)  TX bytes:9795 (9.5 KB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:822 errors:0 dropped:0 overruns:0 frame:0
          TX packets:822 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:76523 (74.7 KB)  TX bytes:76523 (74.7 KB)



windows 설정


윈도우의 경우 IEEE1394 케이블이 연결되어 있지 않다면 기본적으로 아래와 같이 연결됨으로 표시 됩니다.

케이블이 다른 컴과 연결하면 아래와 같이 언플러그됨으로 표시 됩니다.(윈도우 두대를 연결안해봐서 사용환경에 따라 틀리 수 있음)

사설IP설정

리눅스를 192.168.1.1로 설정 윈도우즈는 192.168.1.2로 설정 서브넷 마스크는 255.255.255.0
게이트웨이나 dns는 설정 하지 않습니다.

두대의 컴퓨터가 네트워크 연결이 잘 되는지 ping으로 확인

잘 연결이 되는것을 확인 했다면 이제 리눅스에서 부팅시 자동으로 모듈을 올려서 네트워크를 활성화 해줍니다.

$sudo vi /etc/network/interfaces eth2추가
*노파심이지만 eth2는 각 사용환경에 따라 틀려질 수 있습니다. 랜카드가 한개라면 eth1로 인식될 수 있는 등등.....

#IEEE1394
auto eth2
iface eth2 inet static
pre-up modprobe eth1394
address 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
pre-down rmmod eth1394

 
리부팅 후에 자동으로 IEEE1394 랜구성이 되는지 확인

$sudo reboot

잠시 후 언플러그되므로

리부팅 후

이제 두대의 로컬네트워크 완성

* 윈도우즈 2대일 경우는 간단히 위 내용중 윈도우즈 설정부분에서 ip만 바꿔주면 될것 같습니다.

samba 를 통한 파일 공유나 원격X서버 접속등은 DIY ^^;













크리에이티브 커먼즈 라이선스
Creative Commons License

'Ubuntu' 카테고리의 다른 글

우분투 apt-key  (0) 2008/10/30
Ubuntu IEEE1394(FireWire) Networking  (0) 2008/10/22
Posted by orchidii 오키드