오드로이드
설치 분류

오드로이드 U2, U3 FTP 서버 설치 가이드

컨텐츠 정보

  • 18,377 조회
  • 6 댓글
  • 0 추천
  • 목록

본문

0. 들어가며


FTP는 다른 기계들과 파일을 전송할 수 있는 통로를 만들어줍니다.


물론 삼바라는 훌륭한 패키지가 있지만, 기본적으로 FTP가 먼저라고 생각합니다. ^^



1. nano 패키지 설치


FTP 환경설정 수정을 위한 도구입니다.


apt-get install nano


위 명령어로 설치합니다.



root@odroid-server:~# apt-get install nano

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following packages were automatically installed and are no longer required:

  devio flash-kernel libuuid-perl linux-base ti-omap-ehci u-boot-tools

  uboot-mkimage

Use 'apt-get autoremove' to remove them.

Suggested packages:

  spell

The following NEW packages will be installed:

  nano

0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.

Need to get 173 kB of archives.

After this operation, 545 kB of additional disk space will be used.

WARNING: The following packages cannot be authenticated!

  nano

Authentication warning overridden.

Get:1 http://ports.ubuntu.com/ubuntu-ports/ raring/main nano armhf 2.2.6-1ubuntu1 [173 kB]

Fetched 173 kB in 2s (77.9 kB/s)

Selecting previously unselected package nano.

(Reading database ... 30299 files and directories currently installed.)

Unpacking nano (from .../nano_2.2.6-1ubuntu1_armhf.deb) ...

Processing triggers for install-info ...

Setting up nano (2.2.6-1ubuntu1) ...

update-alternatives: using /bin/nano to provide /usr/bin/pico (pico) in auto mode

root@odroid-server:~#


위와 같이 설치됩니다.



2. WinSCP 설치하기


http://musha3630.blog.me/80210800307


위 링크를 보시고 설치하면 됩니다.


Putty를 좀 더 편하게 다룰 수 있는 프로그램이라고 보시면 됩니다.


FTP로 파일전송도 가능하구요.



3. vsftpd 설치



apt-get install vsftpd


위 명령어로 vsftpd를 설치합니다.


FTP를 쉽게 설정할 수 있는 패키지입니다.


root@odroid-server:~# apt-get install vsftpd

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following packages were automatically installed and are no longer required:

  devio flash-kernel libuuid-perl linux-base ti-omap-ehci u-boot-tools uboot-mkimage

Use 'apt-get autoremove' to remove them.

The following NEW packages will be installed:

  vsftpd

0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.

Need to get 99.5 kB of archives.

After this operation, 298 kB of additional disk space will be used.

WARNING: The following packages cannot be authenticated!

  vsftpd

Authentication warning overridden.

Get:1 http://ports.ubuntu.com/ubuntu-ports/ raring/main vsftpd armhf 3.0.2-1ubuntu1 [99.5 kB]

Fetched 99.5 kB in 1s (59.0 kB/s)

Preconfiguring packages ...

Selecting previously unselected package vsftpd.

(Reading database ... 30354 files and directories currently installed.)

Unpacking vsftpd (from .../vsftpd_3.0.2-1ubuntu1_armhf.deb) ...

Processing triggers for ureadahead ...

Setting up vsftpd (3.0.2-1ubuntu1) ...

vsftpd start/running, process 2794

Processing triggers for ureadahead ...

root@odroid-server:~#


위와 같이 설치됩니다.



4. 필요없는 패키지 삭제하기


apt-get autoremove


위 명령어로 찌꺼기를 삭제합니다.



root@odroid-server:~# apt-get autoremove

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following packages will be REMOVED:

  devio flash-kernel libuuid-perl linux-base ti-omap-ehci u-boot-tools uboot-mkimage

0 upgraded, 0 newly installed, 7 to remove and 0 not upgraded.

After this operation, 618 kB disk space will be freed.

Do you want to continue [Y/n]? y

(Reading database ... 30408 files and directories currently installed.)

Removing flash-kernel ...

Removing devio ...

Removing linux-base ...

Removing libuuid-perl ...

Removing ti-omap-ehci ...

Removing uboot-mkimage ...

Removing u-boot-tools ...

root@odroid-server:~#


위와 같이 삭제됩니다.



5. vsftpd 설정하기


nano /etc/vsftpd.conf


위 명령어로 설정화면에 들어갑니다.



많은 내용이 있는데요.


확인할 것만 적어보겠습니다.




(1) 14번째 줄 : 이건 그대로 놔둡니다.


listen=YES



(2) 23번째 줄 : 그대로 놔두기


익명 접근을 금지시킵니다.


anonymous_enable=NO




(2) 29번째 줄 : 앞에 # 제거 (# 표시가 앞에 있으면 비활성화 한다는 뜻이므로 #을 제거하면 활성화 됨)


쓰기 권한을 줍니다.


write_enable=YES



(3) 33번째 줄 : 앞에 # 제거


파일을 FTP로 옮기면 자동으로 755로 권한을 주게 합니다.


local_umask=022



(4) 112번째 줄 : 앞에 # 제거


각각의 유저마다 home 폴더가 최상위 폴더로 인식하게 합니다.


마음대로 돌아다니지 못하게 막는거죠.


chroot_local_user=YES



(5) 마지막 줄에 


allow_writeable_chroot=YES


위 내용 넣습니다.


500 OOPS: vsftpd: refusing to run with writable root inside chroot()


위 에러가 나오지 않게합니다.



간단하게 설정했고, 필요한 부분은 따로 수정하면 됩니다.


컨트롤 + O, 엔터, 컨트롤 + X


위 명령어가 저장 후 나오는 방법입니다.



앞으로 nano 명령어가 나왔을 때 이렇게 하면 됩니다. (계속 적기 귀찮아서요 ㅠㅠ)



service vsftpd restart


위 명령어를 내리면 재시작합니다.



6. 유저 생성하기


기본적으로 root 유저가 있지만 보안 때문에 이용하지 않습니다.


그리고 odroid 유저가 이미 있기 때문에 이용해봅니다.


passwd odroid


위 명령어로 기존에 있던 odroid 유저의 비밀번호를 변경합니다.


이제 바로 FTP를 이용할 수 있습니다.



http://comta.kr/?p=2298


위 링크에 유저를 새로 생성하고, 시작폴더를 바꾸는 방법이 있으니 참조하세요.




7. 알드라이브 설치


저는 파일질라를 쓰지만, 일부 컴퓨터에서 다운로드가 안되는 문제가 있어


설치하기 쉬운 알드라이브를 추천합니다.


예전에 알FTP가 있었지만 알드라이브로 업그레이드 되었습니다.


http://www.altools.co.kr/Download/ALDrive.aspx


위 링크로 들어가서 설치합니다.




▲ 위와 같이 오드로이드내부IP를 넣고 


아이디에 odroid 넣습니다.


비번은 위에서 지정한 비번을 넣습니다.


외부에서 접속하려면 DDNS 및 포트포워딩 해주면 됩니다.


호스트에 DDNS를 넣고 포트포워딩한 포트를 포트에 넣으면 됩니다.


DDNS 및 포트포워딩 강좌는


http://www.wsgvet.com/bbs/board.php?bo_table=web&wr_id=33


위 링크를 참조하세요.




▲ 그리고 고급탭으로 가서 UTF-8로 강제 지정합니다.


그리고 연결을 누릅니다.




▲ 위와 같이 빈 화면이 나옵니다.


아무것도 없기 때문이죠. ㅎㅎ


이제 마우스로 파일을 드래그 해보면 파일을 이동시킬 수 있습니다.


폴더간 이동도 가능합니다.



8. 추천 모니터링 패키지


http://www.wsgvet.com/bbs/board.php?bo_table=iomega&wr_id=493


위 링크에 있듯이 htop과 iftop 패키지 추천합니다.


apt-get install htop iftop


위 명령어로 쉽게 설치가능하며



Putty에서 그냥 htop 또는 iftop 명령어를 내리면 자동으로 나옵니다.




9. 안드로이드 앱 및 윈도우에서 네트워크 환경 추가하기


http://comta.kr/?p=2334


http://cybercafe.tistory.com/139


위 링크 참조하세요~



이상 FTP 설치 가이드를 마치겠습니다.

관련자료

  • 서명
    우성짱의 NAS를 운영하고 있습니다.

    저의 즐거움이 여러분의 즐거움이면 좋겠습니다.

댓글 6

테베님의 댓글

오드로이드 우분투서버를 14.04로 업그레이드 하고 있는데 vsftp가 접속이 안되는 현상이 있더라구요
vsftp설정 파일에서
pam_service_name=vsftpd 이걸 pam_service_name=ftp로 변경하면 접속이 가능합니다.
아마 pam인증방식이 변경되어서 기존방법으로는 안되는 듯 싶습니다.

관련링크
http://forums.fedoraforum.org/showthread.php?t=48131

우성군님의 댓글의 댓글

좋은 정보 고맙습니다.

저도 오드로이드에 14.04 올려보려고 했지만 귀차니즘에 ㅎㅎ

시간 나면 시도해봐야겠어요.

우성군님의 댓글의 댓글

아 사이트가 바뀌었나 보군요.

http://m.blog.naver.com/musha3630/80210800307

위 링크로 가보세요.

WINSCP가 필수는 아닙니다.

다만 권한 문제없이 편하게 파일 이동 및 수정이 가능하기 때문에 추천드리는 것입니다.

필그림님의 댓글

마클에 데비안 설치하고 vsftp 설치했는데, 설정파일 아래에
allow_writeable_chroot=YES
구문 추가하니 vsftpd 구동이 안됩니다.
없으면 위의 글과 같이 에러나면서 접속안되구요.

chroot_local_user=YES
위 구문도 주석처리하니 접속됩니다.

왜 그러는지는 더 찾아봐야겠네요.

우성군님의 댓글의 댓글

마클에는 설치해보지 않았습니다.

이미 FTP프로그램이 깔려있으니깐요.

그래도 추가 패키지를 깔 수 있으면 좋겠네요.
전체 21 / 1 페이지
RSS

최근글


새댓글


알림 0