ubuntu server 설치기..

1) iso image 파일을 이용하여 우분투 설치

2)


 $ sudo su -
 $ apt-get update && apt-get install debootstrap
 $ cd /opt
 $ mkdir -p /opt/vaults

$ mkdir -p /opt/debian7
$ debootstrap --arch=amd64 wheezy /opt/debian7 http://ftp.kr.debian.org/debian
$ cp /etc/hosts /opt/debian7/etc/
$ cp /etc/resolv.conf /opt/debian7/etc/
$ mkdir -p /opt/debian7/opt/vaults

 $ cd /opt/
 $ nano chwheezy.sh
 $ chmod a+x chwheezy.sh


#!/bin/bash

mount -t proc proc /opt/debian7/proc
mount -t sysfs sysfs /opt/debian7/sys
mount --bind /dev /opt/debian7/dev
mount --bind /dev/pts /opt/debian7/dev/pts
mount --bind /opt/vaults /opt/debian7/opt/vaults
LANG=C.UTF-8 chroot /opt/debian7 /bin/bash
umount /opt/debian7/opt/vaults
umount /opt/debian7/dev/pts
umount /opt/debian7/dev
umount /opt/debian7/sys
umount /opt/debian7/proc

 $ cd /opt/
 $ ./chwheezy.sh


 [ch]$ nano /root/.bashrc

PS1='\u@[wheezy]:\w\$ '
cd /opt/

 [ch]$ nano /etc/apt/sources.list

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

deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free

deb http://ftp.kr.debian.org/debian/ wheezy-updates main contrib non-free
deb-src http://ftp.kr.debian.org/debian/ wheezy-updates main contrib non-free

 [ch]$ apt-get update