Ubuntu

ubuntu에 오픈소스 검증툴(fossology) 설치

Naan 2013. 7. 30. 10:28
320x100

ubuntu에 오픈소스 검증툴(fossology) 설치방법이다.

자세한 내용은 사이트 참조 http://fossology.org/


우선 필요한 패키지 부터 설치하자

root@test:~# apt-get install apache2

root@test:~# apt-get install php5-pgsql php-pear libapache2-mod-php5

그리고 

root@test:~# apt-get fossology

root@test:~# apt-get postgresql


모든 설치는 끝났다. 설정을 해주자

shmmax 값설정

root@test:~# echo 512000000 > /proc/sys/kernel/shmmax

postgresql 환경설정 수정

root@test:~# vi /etc/postgresql/9.1/main/postgresql.conf

#hba_file = 'ConfigDir/pg_hba.conf'# host-based authentication file

#ident_file = 'ConfigDir/pg_ident.conf'# IDENT configuration file

#external_pid_file = '(none)'# write an extra pid file

listen_addresses = '*'

fsync = off

full_page_writes = off    #recover from partial page writes


이외 설정값들은 자신이 원하는 값으로 수정한다.


아파치 설정값 추가

root@test:~# vi /etc/apache2/sites-available/defualt

Alias /repo /usr/share/fossology/www/

<Directory "/usr/share/fossology/www/">

AllowOverride None

Options followSymLinks MultiViews

Order allow,deny

Allow from all

</Directory> 


모든 설정이 끝났다. root 계정으로 설치를 했기때문에

폴더 권한을 변경해줘야 한다.


root@test:~# chown -R fossy:fossy /usr/share/fossology/www



root@test:~# service apache2 restart

root@test:~# service postgresql restart

root@test:~# service fossology restart


모두 재가동 시켜고


http://localhost/repo/index.php

접속해주면



초기 아이디 암호
id : fossy
pass : fossy

간혹
root@test:~# /etc/init.d/postgresql start
 * Starting PostgreSQL 9.1 database server                                                 * The PostgreSQL server failed to start. Please check the log output:
2013-07-30 09:52:08 KST FATAL:  could not create shared memory segment: Invalid argument
2013-07-30 09:52:08 KST DETAIL:  Failed system call was shmget(key=5432001, size=285679616, 03600).
2013-07-30 09:52:08 KST HINT:  This error usually means that PostgreSQL's request for a shared memory segment exceeded your kernel's SHMMAX parameter.  You can either reduce the request size or reconfigure the kernel with larger SHMMAX.  To reduce the request size (currently 285679616 bytes), reduce PostgreSQL's shared memory usage, perhaps by reducing shared_buffers or max_connections.
        If the request size is already small, it's possible that it is less than your kernel's SHMMIN parameter, in which case raising the request size or reconfiguring SHMMIN is called for.
        The PostgreSQL documentation contains more information about shared memory configuration.
                                                                                   [fail]
위와 같이 에러가 뜬다면 설정값을 너무 많이 잡아줘서 그렇다.




320x100