본문 바로가기
system/SBC

[MarsBoard] 서버 구축

by lifeseed 2013. 8. 23.

※ 아래의 내용은 직접 작성한 내용이며, 경어를 사용하지 않았습니다.

읽으시는동안 불편하시더라도 이해 부탁드립니다.

그리고 테스트를 위한 보드는 ICBanQ에서 제공되었으며, 체험단활동의 일환으로 본 게시물이 작성되었음을 알립니다


이제 집에서 홈서버 구축을 위한 작업을 진행합니다.

기본적으로 파일 서버로 사용하기 위해 SAMBA를 설치하였습니다.

 

그리고 svn 서버를 아파치로 접근하기 위해 Apatche 및 svn을 설치하였으며, PHP, MysQL도 설치하였습니다.

집에서 파일만 공유하고자 할 경우 samba만 설치해도 충분할 듯합니다.

외부에서 접속하려면 FTP 서버를 설치하는 걸 권장합니다. 일반적으로 vsftp를 설치하더군요.

 

이번 포스트에서는 APM, svn, samba를 설치하는 것으로 정리를 하고자 합니다. 

 

1. APM 설치

1) Apache2 설치

# apt-get install apache2
After this operation, 4,937 kB of additional disk space will be used.
Do you want to continue [Y/n]?

 

2) php 설치

# apt-get install php5 libapache2-mod-php5
After this operation, 12.2 MB of additional disk space will be used.
Do you want to continue [Y/n]?

 

3) mysql 설치

# apt-get install mysql-server
After this operation, 85.5 MB of additional disk space will be used.
Do you want to continue [Y/n]?

=> Password 설정...

 

4) phpmyadmin 설치

 - phpmyadmin을 설치할 때 웹서버를 어떤 놈을 쓰는지 선택하는 란이 있습니다.

당연히 apache2를 선택하였습니다.

그리고 설치 중 segmant fault가 발생하였습니다. 이후 apt-get 명령이 하나도 안먹더군요.

그래서 재부팅후 dpkg --configure -a 명령을 실행하였더니 문제가 해결되었네요.

# apt-get install phpmyadmin

After this operation, 19.9 MB of additional disk space will be used.
Do you want to continue [Y/n]?

select apache2

[....] Reloading web server config: apache2apache2: apr_sockaddr_info_get() failed for debian
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
. ok
Processing triggers for man-db ...

Message from syslogd@debian at Aug 16 08:05:01 ...
 kernel:[ 2452.840000] Internal error: Oops: 805 [#1] ARM
Segmentation fault

재부팅 후 
# dpkg --configure -a

 

이로써 APM 설치는 모두 끝이 났습니다.

다음엔 svn을 설치후 apache와 연동하는 과정입니다.

 

2. SVN 설치

1) package 설치

# apt-get install subversion libapache2-svn

After this operation, 5,937 kB of additional disk space will be used.
Do you want to continue [Y/n]?

 

2) svn 서버 설정

기본적으로 ubuntu와 동일하게 진행하면 된다.

예전에 정리한 다음 포스팅을 참조하자.

 

3. SAMBA 설치

1) samba 설치

기본적인 내용은 아래 링크를 참조하자.

우분투에 Samba 를 설치하자

samba 와 smbfs를 설치하면 된다.

그런데.... 여기서는 smbfs가 설치가 안된다.

 

#apt-get install samba
After this operation, 18.7 MB of additional disk space will be used.
Do you want to continue [Y/n]?

# apt-get install smbfs
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package smbfs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  cifs-utils

E: Package 'smbfs' has no installation candidate

 

smbfs는 없고, 대신 cifs-utils를 설치하라고 한다.

아래 3개의 package를 설치하였다.

# apt-get install cifs-utils

# apt-get install samba-common

# apt-get install samba-common-bin

 

2) SAMBA 설정

# vim /etc/samba/smb.conf

[global]

   dos charset = cp949

   display charset = UTF8

   unix charset = UTF8

 

[homes]

   comment = Home Directories

   browsable = yes

   writable = yes

   valid users = %S

   create mode = 0644

   directory mode = 0755

 

그리고 윈도우에서 유선으로 접속하여 Copy 성능을 측정하였다.

윈도우8 에서 네트웍드라이브로 설정하여 MarsBoard에 있는 SD카드 영역으로 복사하였다.

 

 

초당 11.3MByte/s .. 집에 있는 시놀로지 NAS랑 속도가 동일하다.

이정도면 만족할 만한 성능이라고 볼 수 있겠다.

 

SATA로 HDD를 연결하여 홈NAS로 사용하기에는 충분한 성능일 듯하다.

문제는 전력소모를 줄이기 위해 HDD의 대기모드 진입을 구현해야하는데 이부분은 좀 더 고민이 필요할 듯하다.

어쨌든 SATA로 연결된 HDD는 기본적으로 별도의 전원을 공급해야 하기 때문이다.

 

이로써 MarsBoard를 이용한 서버 구축을 마칠까 한다.