Ubuntu-9.04-server-i386.iso를 기준으로 설치한다.

[desktop vs server]
desktop version: 3GB RAM이상을 인식 못함. 다수 접속시 다운되는 현상.
server version: 16GB RAM까지 인식. 다수 접속 가능. GUI 제거 되어 있음. 추가 설치 필요. 영문 설치.


1. 고정 IP 주소 설정

$ sudo vi /etc/network/interfaces
   auto eth0
    iface eth0 inet static
    address XXX.XXX.XXX.XXX (ip주소)
    netmask 255.255.255.0   (넷마스크)
    gateway XXX.XXX.XXX.XXX  (게이트웨이)
2. DNS 설정
 $ sudo vi /etc/resolv.conf
nameserver 165.243.137.34   (1차 도메인 서버 주소)
nameserver 165.243.137.23   (2차 도메인 서버 주소)
  • 변경된 설정 적용
    $ sudo /etc/init.d/networking restart


3. GUI 설치

 $ sudo apt-get update
 $ sudo aptitude install -- no-install-recommends ubuntu-desktop
 $ sudo reboot
  • GUI 설치 옵션

              여러 옵션이 있다. 참고 ☞ http://www.ubuntugeek.com/install-gui-in-ubuntu-server.html


4. SSH 설치 (터미널 접속이 가능하도록 SSH를 설치한다.)

$ sudo apt-get install ssh


5. SAMBA 설치 및 설정 
    리눅스 서버와 자료를 공유하기 위해서 samba를 설치한다.

  • 설치
$ sudo apt-get install samba smbfs  
  • 설정
$ sudo vi /etc/samba/smb.conf    ($ sudo gedit /etc/samba/smb.conf)
  • 각 ID별로 HOME디렉토리를 공유하여 사용할 수 있게 세팅
####### Authentication #######

# "security = user" is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
# in the samba-doc package for details.
   security = user


 

======================= Share Definitions =======================

# Un-comment the following (and tweak the other settings below to suit)
# to enable the default home directory shares.  This will share each
# user's home directory as \\server\username
[homes]
   comment = Home Directories
   browseable = yes

# By default, the home directories are exported read-only. Change the
# next parameter to 'no' if you want to be able to write to them.
 read only = no

# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
;   create mask = 0700

# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
;   directory mask = 0700

# By default, \\server\username shares can be connected to by anyone
# with access to the samba server.  Un-comment the following parameter
# to make sure that only "username" can connect to \\server\username
# This might need tweaking when using external authentication schemes
   valid users = %S
======================= Share Definitions =======================

# Un-comment the following (and tweak the other settings below to suit)
# to enable the default home directory shares.  This will share each
# user's home directory as \\server\username
[homes]
   comment = Home Directories
   browseable = yes

# By default, the home directories are exported read-only. Change the
# next parameter to 'no' if you want to be able to write to them.
 read only = no

# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
;   create mask = 0700

# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
;   directory mask = 0700

# By default, \\server\username shares can be connected to by anyone
# with access to the samba server.  Un-comment the following parameter
# to make sure that only "username" can connect to \\server\username
# This might need tweaking when using external authentication schemes
   valid users = %S


 

  • 설정 후 재시작
$ sudo /etc/init.d/samba restart 
  • 사용자 등록
$ sudo smbpasswd -a userID  (ex. sudo smbpasswd -a rickylee)

'old > Build Serv' 카테고리의 다른 글

ubuntu android 설치  (0) 2010.03.12
adb driver setting for ubuntu  (0) 2010.03.12
Posted by jazzlife
,