본문 바로가기

우분투

구형 노트북에 데비안을 설치

USB 시디롬으로 간신히 설치에 성공

이젠 X윈도우 설치가 남았다.
/etc/network/interfaces 파일을 다음과 같이 편집해준다: 고정아이피인경우
auto lo 
iface lo inet loopback

auto eth0
iface eth0 inet static

address <실질적인 랜카드 IP주소>
netmask <넷마스크 주소>
network <네트워크 주소>
broadcast <방송망 주소>
gateway <게이트웨이 주소>
동적 아이피인 경우
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

이러면 긑
--> 적용하기 /etc/init.d/networking restart

ifconfig eth0 inet6 add 
주소/프리픽스
ifconfig eth0 inet6 del  주소/프리픽스
유선랜
  • 시스템의 hostname 설정
    hostname을 보려면 $ /bin/hostname
    hostname을 설정하려면 # /bin/hostname 새이름
    새 hostname으로 부팅하려면 /etc/hostname 에 기록하면 됩니다.

  • IP설정은 /etc/network/interfaces에 저장합니다.

    auto eth0
    iface eth0 inet static
    address 192.168.0.10
    netmask 255.255.255.0
    network 192.168.0.0
    broadcast 192.168.0.255
    gateway 192.168.0.1
    dns-nameservers 168.126.63.1 168.126.63.2

네트워크를 설정하려면, /etc/network/interfaces, /etc/resolv.conf, /etc/hostname/etc/hosts 파일을 편집하십시오.

# editor /etc/network/interfaces 

다음은 /usr/share/doc/ifupdown/examples에 들어 있는 예제입니다:

######################################################################
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# See the interfaces(5) manpage for information on what options are
# available.
######################################################################

# We always want the loopback interface.
#
auto lo
iface lo inet loopback

# To use dhcp:
#
# auto eth0
# iface eth0 inet dhcp

# An example static IP setup: (broadcast and gateway are optional)
#
# auto eth0
# iface eth0 inet static
# address 192.168.0.42
# network 192.168.0.0
# netmask 255.255.255.0
# broadcast 192.168.0.255
# gateway 192.168.0.1

네임서버와 search 명령을 /etc/resolv.conf에 입력하십시오:

# editor /etc/resolv.conf

간단한 예제 /etc/resolv.conf:

search hqdom.local
nameserver 10.1.1.36
nameserver 192.168.9.100

시스템의 호스트이름을 입력하십시오 (2글자에서 63글자까지):

# echo DebianHostName > /etc/hostname

그리고 IPv6를 지원하는 기본적인 /etc/hosts 파일은:

127.0.0.1 localhost DebianHostName

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

네트워크 카드가 여러개라면, /etc/modules에 드라이버 모듈 이름을 적당한 순서로 맞춰야 합니다. 그래야 부팅할 때 각 카드가 의도한 해당 인터페이스 이름으로 (eth0, eth1 등) 연결됩니다.

D.3.4.5. APT 설정하기

debootstrap은 아주 기본적인 /etc/apt/sources.list 파일을 만드므로 추가 패키지를 설치할 수 있습니다. 하지만 이 외에 소스를 추가해야 할 경우가 있습니다. 예를 들어 보안 업데이트의 소스 패키지를 설정할 수 있습니다:

here is my sorces.list

deb http://ftp.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.debian.org/debian/ lenny main contrib non-free

deb http://security.debian.org/ lenny/updates main contrib
deb-src http://security.debian.org/ lenny/updates main contrib

#deb http://www.debian-multimedia.org/ lenny main
#deb-src http://www.debian-multimedia.org/ lenny main

#deb http://sinhala.sourceforge.net/debian/i386/lenny/ ./


sources.list 파일을 고친 다음에 꼭 aptitude update를 실행하십시오.

Edit /etc/locale.gen as root. If /etc/locale.gen does not exist, create it. 
An example /etc/locale.gen is below.
;Run /usr/sbin/locale-gen as root
문제는 아래와 같은 에러가 발생했다.
a non-dpkg owned copy of the libc6-i686 package was found.
it is not safe to upgrade the C library in this situation please remove that copy of the c library and try again

아래와 같은 방법이 있는데 상당히 주의를 요한다. ㅠ.ㅜ
I temporarily renamed /lib/i686/cmov/libc.so.6 to blah.old and used apt to upgrade libc6. I then did an:
apt-get update

apt-get update

apt-get -f install
잘못하면 커널 패닉이 난다.
내가 한 방법으로는 /lib/i686/cmov/libc.so.6을 지우니 되었다.

그런데 그전에 /lib/libc.so.6 의 이름을 바꾸었더니 커널 패닉이 일어났다.
복구는 나의 데스크 탑이 우분투이이서 외장하드로 연결해서 /lib/libc.so.6의 이름을 원래대로
바꾸니 된다. ㅠ.ㅜ

로케일 설정

[데비안] locale 설정하기

데비안 설치 후 한글환경을 만들기 위해서는 locales 셋팅을 해 주어야 한다.

locales 패키지를 설치한다.

# apt-get install locales

locales 재설정을 통해서 필요한 언어를 설치한다.
# dpkg-reconfigure locales

가장 기본으로 사용하는 영어와 한글 locale 들을 선택한다.
그 외에 필요한 locale 이 있으면 선택하면 됩니다.

시스템에서 기본으로 사용할 locale 을 선택합니다.

선택된 locale 들을 설치한 후에 기본 locale 로 셋팅한다.

# env | grep LANG

명령을 실행해 보면 자신이 선택한 기본 언어로 셋팅된 것을 확인할 수 있다.

현재 설치된 locale 을 확인할려면

/etc/locale.gen

파일을 열어보면 되며, 기본 locale 을 수정할려면

/etc/default/locale

파일을 편집하면 된다.

Xwindow를 설치하기위해 

apt-get install xfce4를 설치

Xwindow를 깔기위해 .. tasksel를 설치하는데

상당히 많이 깔릴 것 같은 불길한 예감이 든다. 너무 덩치가 커서 지웠다. tasksel도 지워야할 듯

그냥 apt-get install x-window-system-core로 다시 설치했다.

역시 아무것도 안뜬다. lxde를 설치하고 있다.

xfce4는 지워야할 듯하다. ㅠ.ㅜ
한글은 scim-hangul을 설치하였다.