(1) ubuntu server 10.10 한국어로 파티션 자동으로 설치, 마지막에 SSH만 선택

(2) root 계정 설정
    - $ sudo passwd root

(3) 설치/업데이트 패키지 목록 업데이트
    - $ apt-get update

(4) ip 설정
    - $ vi /etc/network/interfaces
      auto lo
      iface lo inet loopback
      auto eth0
      iface eth0 inet static
      address xxx.xxx.xxx.xxx
      netmask 255.255.255.0
      gateway xxx.xxx.xxx.xxx
    - $ vi /etc/resolv.conf
      nameserver xxx.xxx.xxx.xxx
    - $ /etc/init.d/networking restart

(5) transmission 설치
    - $ apt-get install transmission-daemon
    - $ mkdir /data
    - $ mkdir /data/torrent
    - $ mkdir /data/home
    - $ chmod -R 777 /data
    - $ /etc/init.d/transmission-daemon stop
    - $ vi /etc/transmission-daemon/settings.json 수정
      "download-dir": "/data/torrent",
      "rpc-password": "맞게수정",
      "rpc-username": "username",
      "rpc-port": 9091,
      "rpc-whitelist-enable": false,
    - $ /etc/init.d/transmission-daemon restart

(6) samba 설치
    - $ apt-get install samba smbfs
    - $ smbpasswd -a username
    - $ vi /etc/samba/smb.conf
      [username]
          path = /data
          valid users = username
          writable = yes
          browseable = no
          guest ok = no
      [home]
          path = /data/home
          browseable = yes
          read only =  yes
          guest ok = yes
    - $ /etc/init.d/smbd restart

(7) ftp 설치
    - $ apt-get install vsftpd
    - $ vi /etc/vsftpd.conf
        anonymous_enable=YES
        chroot_local_user=YES
        local_enalbe=YES
        write_enable=YES
    - 클라이언트로 파일질라 사용(utf-8 문제)
    - anonymous directory에 다른 디렉토리를 마운트 시키려면 : anonymous root는 /srv/ftp
      $ mkdir /srv/ftp/home
      $ mount --bind /data/home /srv/ftp/home (자동으로 하려면 /etc/rc.local에 등록)

(8) 한글은 기본으로 UTF-8로 잡혀서 전부 문제없지만 서버측 터미널단에서 한글이 지원 안됨(이유는 모르겠음)

(9) ddns 설치
    - http://cybshin.blog.me/60064874185 대로 dyndns.com에서 계정 만든 뒤
    - $ cp ddclient /usr/bin
    - $ mkdir /etc/ddclient
    - $ cp sample-etc_cron.d_ddclient /etc/ddclient/ddclient.conf
    - $ vi /etc/ddclient/ddclient.conf 해서 http://cybshin.blog.me/60064874185 설명대로 generate 된 설정 파일 복사
    - $ cp sample-etc_rc.d_init.d_ddclient.ubuntu /etc/init.d/ddclient
    - $ update-rc.d ddclient defaults
    - $ /etc/init.d/ddclient restart

(10) svn 설치

'LINUX > ubuntu' 카테고리의 다른 글

adduser, useradd  (0) 2011.01.20
우분투 vsftpd.conf 설정값  (0) 2011.01.12
Ubuntu 8.04.1 LTS에 subversion 설치하기  (1) 2010.04.13
우분투에서 samba 설정  (0) 2008.11.13
by sminchoi 2011. 1. 13. 14:33