Disable automatic updates kernel on Ubuntu

Posted at 2017. 12. 20. 11:40 | Posted in Server/Ubuntu
반응형

우분투 설치 후 가만히 냅두면 자동으로 커널이 업그레이드 된다.


우분투 SSH 로그인 했을 때 아래와 같이 재부팅 하라는 메세지가 나오면 커널이 업그레이드 되었을 확률이 있다.


Using username "root".
root@192.168.20.13's password:
Welcome to Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-45-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

78 packages can be updated.
0 updates are security updates.


*** System restart required ***
Last login: ..... from .....
# _


문제는 이것이 계속 업그레이드 되먼서 이전 커널 파일이 /boot 에 쌓인다.


계속 쌓이다가 /boot 가 100%가 되어버리면 문제가 된다.


주기적으로 관리를 해줘야 하지만 그것도 싫다고 하면... 커널 자동 업그레이드를 비활성화 하자.


# apt-mark hold linux-image-generic linux-headers-generic
linux-image-generic set on hold.
linux-headers-generic set on hold.


출처: https://askubuntu.com/questions/678630/how-can-i-avoid-kernel-updates

반응형

'Server > Ubuntu' 카테고리의 다른 글

Installation Redmine on Ubuntu  (0) 2014.03.26
Installation Maven 3 on Ubuntu  (0) 2014.03.25
Using Xmanager to Ubuntu 10.10  (0) 2011.04.13
Subversion  (0) 2010.08.16
Openfire  (0) 2010.05.25
Webmin  (0) 2009.11.18
Squirrelmail  (0) 2009.11.12
SparkWeb  (0) 2009.11.12
Cacti  (0) 2009.11.12
Apache + SSL  (0) 2009.11.12
//

Install VMware Tools in Ubuntu

Posted at 2014. 11. 3. 23:30 | Posted in Server/VMware ESXi
반응형

Introduce


VMware ESXi 에다가 Ubuntu 설치 했는데 VMware Tools 깔아야 될 거 같아서 해보도록 한다.



아마 다른 리눅스/유닉스 계열도 거의 같은 방법일 것이다.


아래 환경에서 하였다.


VMware ESXi 5.5

VMware vSphere Client 5.5.0

Ubuntu Server 14.04.1 LTS




먼서 VM 생성 후 우분투를 설치한 후 부팅(로그인) 하자.


콘솔 창의 메뉴에서 VM - 게스트 - VMware Tools 설치/업그레이드 선택.



안내 창이 나오면 확인 버튼 클릭.



이제 우분투 내에서 아래의 순서대로 하자.


마운트 대상이 될 디렉토리 하나 생성 해놓자.


$ sudo mkdir /mnt/cdrom


위의 메뉴에서 Tools 설치를 선택 했으면 자동으로 시디를 넣은 것 처럼 되어 있다. 마운트 하자


$ sudo mount /dev/cdrom /mnt/cdrom


거기에 있는 gz 파일을 /tmp 쪽에 압축 해제하자.


$ sudo tar xzvf /mnt/cdrom/VMwareTools-9.4.10-2092844.tar.gz -C /tmp


실행!


$ sudo /tmp/vmware-tools-distrib/vmware-install.pl


open-vm-tools are available from the OS vendor and VMware recommends using

open-vm-tools. See http://kb.vmware.com/kb/2073803 for more information.

Do you still want to proceed with this legacy installer? [no] y


.. 나머지는 그냥 다 엔터 치거나 적절히 선택 하자 -_-;;


이제 다시 확인 해보면 설치가 된 것으로 나온다~





Reference


http://www.youtube.com/watch?v=cpQcP_MPqeI


반응형

'Server > VMware ESXi' 카테고리의 다른 글

Install VMware Tools in CentOS 7  (0) 2018.03.25
Install VMware Tools in CentOS  (0) 2016.06.05
UEFI BIOS using USB Boot  (0) 2014.11.04
Install Driver for VMware ESXi Installer  (0) 2014.11.04
Create a VMware ESXi Bootable Flash Drive (USB)  (0) 2014.11.02
//

Installation Redmine on Ubuntu

Posted at 2014. 3. 26. 00:54 | Posted in Server/Ubuntu
반응형

우분투에서 Readmine 설치하는데 이것저것 짜잘한 에러가 많이 난다... 그래서 정리한다.


아무것도 설치되지 않은 Ubuntu 12.04 를 기준으로 한다.


참조

http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_Ubuntu

http://openarisu.tistory.com/231




Preparation


apache2 와 데이터베이스(mysql, postgresql 중 하나)가 필요하다. mysql 로 하겠다.


# apt-get install apache2 software-properties-common librmagick-ruby ruby-rmagick mysql-server mysql-client mysql-common


데이터베이스(mysql)의 root 계정 비밀번호 설정



root 비밀번호 재입력



mod_passenger 설치


# apt-get install libapache2-mod-passenger

a2enmod passenger

/etc/init.d/apache2 restart


gem 설치


gem install rake -v 0.8.7

Fetching: rake-0.8.7.gem (100%)

Successfully installed rake-0.8.7

1 gem installed

Installing ri documentation for rake-0.8.7...

Installing RDoc documentation for rake-0.8.7...


gem install fastercsv

Fetching: fastercsv-1.5.5.gem (100%)

Successfully installed fastercsv-1.5.5

1 gem installed

Installing ri documentation for fastercsv-1.5.5...

Installing RDoc documentation for fastercsv-1.5.5...


# gem install bundler

Fetching: bundler-1.5.3.gem (100%)

Successfully installed bundler-1.5.3

1 gem installed

Installing ri documentation for bundler-1.5.3...

Installing RDoc documentation for bundler-1.5.3...




Installation


redmine 설치


# apt-get install python-software-properties

add-apt-repository ppa:ondrej/redmine

You are about to add the following PPA to your system:

 Redmine, Rails and other dependencies needed to run Redmine on Ubuntu Precise.


The repository seem to be stable again.  However please note that many plugins are not compatible with 2.x releases, so think before you update.  Also there might be some glitches when upgrading, so if you think you found one, please send the report with as many information you can gather to me.


NOTE: Unfortunatelly it seems to be virtually impossible to backport Redmine to anything older than Ubuntu 12.04 due entangled circular build dependencies in ruby packages.


NOTE: It should be possible to run redmine in this repository with ruby1.9.1 (1.9.3).


PLEASE READ: If you like my work and want to give me a little motivation, please consider donating: https://deb.sury.org/pages/donate.html

 More info: https://launchpad.net/~ondrej/+archive/redmine

Press [ENTER] to continue or ctrl-c to cancel adding it

엔터

gpg: keyring `/tmp/tmpMM_hPJ/secring.gpg' created

gpg: keyring `/tmp/tmpMM_hPJ/pubring.gpg' created

gpg: requesting key E5267A6C from hkp server keyserver.ubuntu.com

gpg: /tmp/tmpMM_hPJ/trustdb.gpg: trustdb created

gpg: key E5267A6C: public key "Launchpad PPA for Ondřej Surý" imported

gpg: Total number processed: 1

gpg:               imported: 1  (RSA: 1)

OK


# apt-get update

# apt-get install redmine redmine-mysql


<Yes> 선택



데이터베이스는 mysql 선택



root 계정의 비밀번호 입력



redmine 계정의 비밀번호 입력



redmine 비밀번호 재입력





Configuration


passenger.conf 파일에서 아래와 같이 추가


# vi /etc/apache2/mods-available/passenger.conf


<IfModule mod_passenger.c>

  PassengerRoot /usr

  PassengerRuby /usr/bin/ruby

  PassengerDefaultUser www-data

</IfModule>


security 파일 수정 ("OS" → "Prod")


vi /etc/apache2/conf.d/security


ServerTokens Prod


퍼미션 변경


# chmod a+x /usr/share/redmine/public

chmod 755 /usr/share/redmine/public


Gemfile.lock 파일을 웹 계정 소유로 넘겨줌


# touch /usr/share/redmine/Gemfile.lock

# chown www-data:www-data /usr/share/redmine/Gemfile.lock


Gemfile 파일을 수정


# vi /usr/share/redmine/Gemfile


source 'https://rubygems.org'


gem 'fastercsv'


local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")

...



여기서부터는 Apache2 의 VIrtualHost 관련된 부분이다. 여기는 각자의 설정대로 하면 된다.


아래의 설명은 /var/www 을 redmine 경로로 대체하여 사용하는 방법이다.


default 파일 수정(2줄 추가)


# vi /etc/apache2/sites-available/default


        DocumentRoot /var/www

        <Directory />

                Options FollowSymLinks

                RailsBaseURI /

                PassengerResolveSymlinksinDocumentRoot on

                AllowOverride None

        </Directory>


apache2 의 루트 경로를 redmine 경로로 대체


# a2enmod rewrite

Enabling module rewrite.

To activate the new configuration, you need to run:

  service apache2 restart


# cd /var

# mv www ww2

# ln -s /usr/share/redmine/public www

# /etc/init.d/apache2 restart




Test


메인화면 떳다...이제.. 놀자..




반응형

'Server > Ubuntu' 카테고리의 다른 글

Disable automatic updates kernel on Ubuntu  (1) 2017.12.20
Installation Maven 3 on Ubuntu  (0) 2014.03.25
Using Xmanager to Ubuntu 10.10  (0) 2011.04.13
Subversion  (0) 2010.08.16
Openfire  (0) 2010.05.25
Webmin  (0) 2009.11.18
Squirrelmail  (0) 2009.11.12
SparkWeb  (0) 2009.11.12
Cacti  (0) 2009.11.12
Apache + SSL  (0) 2009.11.12
//

기본 포트 사용 주의!!!!!!!

Posted at 2011. 6. 9. 16:41 | Posted in Server
반응형
공부용으로 쓰려고 집에다가 데스크탑 한대 박아놓고 이것저것 깔아서 서버로 쓰고 있습니다.

그러던 어느날 우분투에 깔려있던 proftpd 로그를 보니까 아주 그냥....

May 09 12:56:22 nerv.kr proftpd[20723] nerv.kr (::ffff:121.22.24.61[::ffff:121.22.24.61]): FTP session opened.
May 09 12:56:22 nerv.kr proftpd[20723] nerv.kr (::ffff:121.22.24.61[::ffff:121.22.24.61]): USER access: no such user found from ::ffff:121.22.24.61 [::ffff:121.22.24.61] to ::ffff:220.86.83.16:21
May 09 12:56:23 nerv.kr proftpd[20723] nerv.kr (::ffff:121.22.24.61[::ffff:121.22.24.61]): USER access: no such user found from ::ffff:121.22.24.61 [::ffff:121.22.24.61] to ::ffff:220.86.83.16:21
May 09 12:56:24 nerv.kr proftpd[20723] nerv.kr (::ffff:121.22.24.61[::ffff:121.22.24.61]): USER access: no such user found from ::ffff:121.22.24.61 [::ffff:121.22.24.61] to ::ffff:220.86.83.16:21
May 09 12:56:24 nerv.kr proftpd[20723] nerv.kr (::ffff:121.22.24.61[::ffff:121.22.24.61]): Maximum login attempts (3) exceeded, connection refused
May 09 12:56:24 nerv.kr proftpd[20723] nerv.kr (::ffff:121.22.24.61[::ffff:121.22.24.61]): FTP session closed.
May 09 12:56:24 nerv.kr proftpd[20724] nerv.kr (::ffff:121.22.24.61[::ffff:121.22.24.61]): FTP session opened.
May 09 12:56:24 nerv.kr proftpd[20724] nerv.kr (::ffff:121.22.24.61[::ffff:121.22.24.61]): USER account: no such user found from ::ffff:121.22.24.61 [::ffff:121.22.24.61] to ::ffff:220.86.83.16:21
May 09 12:56:25 nerv.kr proftpd[20724] nerv.kr (::ffff:121.22.24.61[::ffff:121.22.24.61]): USER account: no such user found from ::ffff:121.22.24.61 [::ffff:121.22.24.61] to ::ffff:220.86.83.16:21
May 09 12:56:26 nerv.kr proftpd[20724] nerv.kr (::ffff:121.22.24.61[::ffff:121.22.24.61]): USER account: no such user found from ::ffff:121.22.24.61 [::ffff:121.22.24.61] to ::ffff:220.86.83.16:21
May 09 12:56:26 nerv.kr proftpd[20724] nerv.kr (::ffff:121.22.24.61[::ffff:121.22.24.61]): Maximum login attempts (3) exceeded, connection refused
May 09 12:56:26 nerv.kr proftpd[20724] nerv.kr (::ffff:121.22.24.61[::ffff:121.22.24.61]): FTP session closed.
May 09 12:56:26 nerv.kr proftpd[20725] nerv.kr (::ffff:121.22.24.61[::ffff:121.22.24.61]): FTP session opened.
May 09 12:56:26 nerv.kr proftpd[20725] nerv.kr (::ffff:121.22.24.61[::ffff:121.22.24.61]): USER accounts: no such user found from ::ffff:121.22.24.61 [::ffff:121.22.24.61] to ::ffff:220.86.83.16:21
May 09 12:56:27 nerv.kr proftpd[20725] nerv.kr (::ffff:121.22.24.61[::ffff:121.22.24.61]): USER accounts: no such user found from ::ffff:121.22.24.61 [::ffff:121.22.24.61] to ::ffff:220.86.83.16:21
May 09 12:56:27 nerv.kr proftpd[20725] nerv.kr (::ffff:121.22.24.61[::ffff:121.22.24.61]): USER accounts: no such user found from ::ffff:121.22.24.61 [::ffff:121.22.24.61] to ::ffff:220.86.83.16:21
May 09 12:56:27 nerv.kr proftpd[20725] nerv.kr (::ffff:121.22.24.61[::ffff:121.22.24.61]): Maximum login attempts (3) exceeded, connection refused
May 09 12:56:27 nerv.kr proftpd[20725] nerv.kr (::ffff:121.22.24.61[::ffff:121.22.24.61]): FTP session closed.
May 09 12:56:27 nerv.kr proftpd[20726] nerv.kr (::ffff:121.22.24.61[::ffff:121.22.24.61]): FTP session opened.
May 09 12:56:28 nerv.kr proftpd[20726] nerv.kr (::ffff:121.22.24.61[::ffff:121.22.24.61]): USER adam: no such user found from ::ffff:121.22.24.61 [::ffff:121.22.24.61] to ::ffff:220.86.83.16:21
May 09 12:56:29 nerv.kr proftpd[20726] nerv.kr (::ffff:121.22.24.61[::ffff:121.22.24.61]): USER adam: no such user found from ::ffff:121.22.24.61 [::ffff:121.22.24.61] to ::ffff:220.86.83.16:21
May 09 12:56:29 nerv.kr proftpd[20726] nerv.kr (::ffff:121.22.24.61[::ffff:121.22.24.61]): USER adam: no such user found from ::ffff:121.22.24.61 [::ffff:121.22.24.61] to ::ffff:220.86.83.16:21
May 09 12:56:29 nerv.kr proftpd[20726] nerv.kr (::ffff:121.22.24.61[::ffff:121.22.24.61]): Maximum login attempts (3) exceeded, connection refused
May 09 12:56:29 nerv.kr proftpd[20726] nerv.kr (::ffff:121.22.24.61[::ffff:121.22.24.61]): FTP session closed.

A 부터 시작해서 무작위로 로그인을 하고 있네요....



아이피 추적을 해보니 중국으로 나오는군요...

일단은 언넝 서버 내리고 다른 포트로 바꿔 놨는데... 기본 포트 무서워서 사용 못하겠습니다. ㅠㅠ

이거 어떠케 해야하나.... ㅠ_ㅠ



121.22.24.61 Whois

% [whois.apnic.net node-4]
% Whois data copyright terms http://www.apnic.net/db/dbcopyright.html

inetnum: 121.16.0.0 - 121.23.255.255
netname: UNICOM-HE
descr: China Unicom Hebei province network
descr: China Unicom
country: CN
admin-c: CH1302-AP
tech-c: KL984-AP
remarks: service provider
mnt-by: APNIC-HM
mnt-lower: MAINT-CNCGROUP-HE
mnt-routes: MAINT-CNCGROUP-RR
status: ALLOCATED PORTABLE
remarks: -+-+-+-+-+-+-+-+-+-+-+-++-+-+-+-+-+-+-+-+-+-+-+-+-+-+
remarks: This object can only be updated by APNIC hostmasters.
remarks: To update this object, please contact APNIC
remarks: hostmasters and include your organisation's account
remarks: name in the subject line.
remarks: -+-+-+-+-+-+-+-+-+-+-+-++-+-+-+-+-+-+-+-+-+-+-+-+-+-+
changed: 20060508
changed: 20080314
changed: 20090508
source: APNIC

route: 121.16.0.0/13
descr: CNC Group CHINA169 Hebei Province Network
country: CN
origin: AS4837
mnt-by: MAINT-CNCGROUP-RR
changed: 20060509
source: APNIC

person: ChinaUnicom Hostmaster
nic-hdl: CH1302-AP
e-mail:
address: No.21,Jin-Rong Street
address: Beijing,100140
address: P.R.China
phone: +86-10-66259940
fax-no: +86-10-66259764
country: CN
changed: 20090408
mnt-by: MAINT-CNCGROUP
source: APNIC

person: Kong Lingfei
nic-hdl: KL984-AP
e-mail:
address: 45, Guang An Street, Shi Jiazhuang City, HeBei Province,050011,CN
phone: +86-311-86681601
fax-no: +86-311-86689210
country: cn
changed: 20090206
mnt-by: MAINT-CNCGROUP-HE
source: APNIC

121.22.24.61 Website Information

Title:

Welcome to BERIS - ??

Description:

n/a

Keywords:

n/a

121.22.24.61 Server Details

IP address:

121.22.24.61

Server Location:

Hebei, Hebei in China

ISP:

China Unicom Hebei province network


반응형
//

Using Xmanager to Ubuntu 10.10

Posted at 2011. 4. 13. 13:29 | Posted in Server/Ubuntu
반응형

Ubuntu 10.10 의 "gdm 2.32.0-0ubuntu1"에서는 IPv6만 지원하는 문제가 있어서 패치해야 합니다.

i386 - https://launchpad.net/ubuntu/+source/gdm/2.32.0-0ubuntu1/+buildjob/2097769

amd64 - https://launchpad.net/ubuntu/+source/gdm/2.32.0-0ubuntu1/+buildjob/2097767



패치 패키지 설치

# dpkg -i gdm_2.32.0-0ubuntu1_amd64.deb
(데이터베이스 읽는중 ...현재 135490개의 파일과 디렉토리가 설치되어 있습니다.)
gdm 2.30.5-0ubuntu4.1 패키지를 대체할 준비하는 중입니다 (gdm_2.32.0-0ubuntu1_amd64.deb 사용) ...
대체되는 gdm 패키지를 푸는 중입니다 ...
gdm (2.32.0-0ubuntu1) 설정하는 중입니다 ...
새 버전의 설정 파일 /etc/dbus-1/system.d/gdm.conf 설치하는 중입니다 ...
hicolor-icon-theme에 대한 트리거를 처리하는 중입니다 ...
desktop-file-utils에 대한 트리거를 처리하는 중입니다 ...
python-gmenu에 대한 트리거를 처리하는 중입니다 ...
Rebuilding /usr/share/applications/desktop.ko_KR.utf8.cache...
gconf2에 대한 트리거를 처리하는 중입니다 ...
ureadahead에 대한 트리거를 처리하는 중입니다 ...
ureadahead will be reprofiled on next reboot
python-support에 대한 트리거를 처리하는 중입니다 ...

#

/etc/gdm/custom.conf 파일 생성 및 편집

# vi /etc/gdm/custom.conf

[xdmcp]
Enable=true
DisplaysPerHost=10

gdm 재시작

# /etc/init.d/gdm restart



이제 접속 해보면 잘 되는군요 ㅠ_ㅠ


i386은 넷사랑 홈피에 있는에 amd64용이 없어서 좀 찾아 다녔습니다...






반응형

'Server > Ubuntu' 카테고리의 다른 글

Disable automatic updates kernel on Ubuntu  (1) 2017.12.20
Installation Redmine on Ubuntu  (0) 2014.03.26
Installation Maven 3 on Ubuntu  (0) 2014.03.25
Subversion  (0) 2010.08.16
Openfire  (0) 2010.05.25
Webmin  (0) 2009.11.18
Squirrelmail  (0) 2009.11.12
SparkWeb  (0) 2009.11.12
Cacti  (0) 2009.11.12
Apache + SSL  (0) 2009.11.12
//

Subversion

Posted at 2010. 8. 16. 00:55 | Posted in Server/Ubuntu
반응형

Subversion 설치

# sudo apt-get install subversion

svn 루트 디렉토리 생성

# mkdir /var/svn
# cd /var/svn

저장소 생성

# svnadmin create --fs-type fsfs test

권한 설정

# sudo chgrp -R svn test
# sudo chmod -R g+w test

※ 출처: http://mtsparrow.blogspot.com/2008/12/ubuntu-svn.html
반응형

'Server > Ubuntu' 카테고리의 다른 글

Disable automatic updates kernel on Ubuntu  (1) 2017.12.20
Installation Redmine on Ubuntu  (0) 2014.03.26
Installation Maven 3 on Ubuntu  (0) 2014.03.25
Using Xmanager to Ubuntu 10.10  (0) 2011.04.13
Openfire  (0) 2010.05.25
Webmin  (0) 2009.11.18
Squirrelmail  (0) 2009.11.12
SparkWeb  (0) 2009.11.12
Cacti  (0) 2009.11.12
Apache + SSL  (0) 2009.11.12
//

Openfire

Posted at 2010. 5. 25. 00:48 | Posted in Server/Ubuntu
반응형
http://www.igniterealtime.org/projects/openfire/index.jsp

XMPP 방식의 채팅 서버 입니다. 3.6.4 버젼을 설치하겠습니다.

우분투(Ubuntu)에서 설치하려면 Java 설치 후 다운 받아서 설치하면 됩니다.

// jdk 1.6 설치 (이미 설치되어 있다면 패스)
# apt-get install sun-java6-jdk
// 파일 다운로드(생략) 후 설치
# dpkg --install openfire_3.6.4_all_openjdk.deb

하지만! 우분투 1.04 에서는 sunj-java6.jdk 패키지가 깔리지 않더군요... 그래서 openjdk-6-jdk라는 패키지로 설치를 했습니다.

일반적으로 java 의 기능을 하는데는 문제가 없었지만 Openfire를 설치하는데 문제가 되더군요.

Openfire에서는 sun-java5-jdk, sun-java-jdk6만 찾는 것이었습니다. ㅠㅠ

그래서 openjdk-6-jdk 도 인식(?) 시켜줘야 합니다.



Installation

1. 설치파일(Debian package, no Java JRE)을 다운로드 합니다.

2. 설치파일을 풉니다.
# dpkg-deb --extract openfire_3.6.4_all.deb openfire_package
# dpkg-deb --control openfire_3.6.4_all.deb openfire_package/DEBIAN

3. control 파일을 수정합니다.
# vi openfire_package/DEBIAN/control

4. "Pre-Depends." 라인 부분을 아래와 같이 수정합니다.
Pre-Depends: java-runtime-headless | sun-java5-jre | sun-java6-jre | openjdk-6-jre-headless

5. openfire 파일을 수정합니다.
if [ -z $JAVA_HOME ]
then
        t=/usr/lib/jvm/java-1.5.0-sun && test -d $t && JAVA_HOME=$t
        t=/usr/lib/jvm/java-6-sun && test -d $t && JAVA_HOME=$t
        t=/usr/lib/jvm/java-6-openjdk && test -d $t && JAVA_HOME=$t
fi

6. 다시 설치파일로 만듭니다.
# dpkg-deb --build openfire_package/ openfire_3.6.4_all_openjdk.deb

7. 만들어진 파일을 설치합니다.
# dpkg --install openfire_3.6.4_all_openjdk.deb


출처
http://www.igniterealtime.org/community/thread/35539
http://code.google.com/p/wave-protocol/wiki/OpenFireInstallation

 

반응형

'Server > Ubuntu' 카테고리의 다른 글

Disable automatic updates kernel on Ubuntu  (1) 2017.12.20
Installation Redmine on Ubuntu  (0) 2014.03.26
Installation Maven 3 on Ubuntu  (0) 2014.03.25
Using Xmanager to Ubuntu 10.10  (0) 2011.04.13
Subversion  (0) 2010.08.16
Webmin  (0) 2009.11.18
Squirrelmail  (0) 2009.11.12
SparkWeb  (0) 2009.11.12
Cacti  (0) 2009.11.12
Apache + SSL  (0) 2009.11.12
//

Squirrelmail

Posted at 2009. 11. 12. 15:21 | Posted in Server/Ubuntu
반응형
http://www.squirrelmail.org



# apt-get install squirrelmail

설정

# /usr/sbin/squirrelmail-configure

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Main Menu --
1.  Organization Preferences
2.  Server Settings
3.  Folder Defaults
4.  General Options
5.  Themes
6.  Address Books
7.  Message of the Day (MOTD)
8.  Plugins
9.  Database
10. Languages
D.  Set pre-defined settings for specific IMAP servers
C   Turn color on
S   Save data
Q   Quit
Command >> 입력

##

Organization Preferences
1.  Organization Name : Nerv Team Webmail
2.  Organization Logo : ../images/sm_logo.png
3.  Org. Logo Width/Height : (308/111)
4.  Organization Title : SquirrelMail $version
5.  Signout Page :
6.  Top Frame : _top
7.  Provider link : http://www.nerv-team.co.kr/
8.  Provider name : nerv-team webmail

##

Server Settings
General
-------
1.  Domain                 : nerv-team.co.kr
2.  Invert Time            : false
3.  Sendmail or SMTP : SMTP
A.  Update IMAP Settings   : localhost:143 (other)
B.  Update SMTP Settings  : localhost:25

##

Folder Defaults
1.  Default Folder Prefix :
2.  Show Folder Prefix Option : false
3.  Trash Folder : INBOX.Trash
4.  Sent Folder : INBOX.Sent
5.  Drafts Folder : INBOX.Drafts
6.  By default, move to trash : true
7.  By default, save sent messages : true
8.  By default, save as draft : true
9.  List Special Folders First : true
10. Show Special Folders Color : true
11. Auto Expunge : true
12. Default Sub. of INBOX : true
13. Show 'Contain Sub.' Option : false
14. Default Unseen Notify : 2
15. Default Unseen Type : 2
16. Auto Create Special Folders : true
17. Folder Delete Bypasses Trash : false
18. Enable /NoSelect folder fix : false

##

General Options
1.  Data Directory : /var/squirrelmail/data/
2.  Attachment Directory : /var/squirrelmail/attach/
3.  Directory Hash Level : 0
4.  Default Left Size : 150
5.  Usernames in Lowercase : true
6.  Allow use of priority : true
7.  Hide SM attributions : true
8.  Allow use of receipts : true
9.  Allow editing of identity : true
    Allow editing of name : true
    Remove username from header : false
10. Allow server thread sort : false
11. Allow server-side sorting : false
12. Allow server charset search : true
13. Enable UID support : true
14. PHP session name : SQMSESSID
15. Location base :
16. Only secure cookies if poss. : true

##

Address Books
1.  Change LDAP Servers
2.  Use Javascript Address Book Search : true
3.  Global file address book :
4.  Allow writing into global file address book : false
5.  Allow listing of global file address book : true
6.  Allowed address book line length : 2048

##

Language preferences
1.  Default Language : ko_KR
2.  Default Charset : utf-8
3.  Enable lossy encoding  : false

##

While we have been building SquirrelMail, we have discovered some
preferences that work better with some servers that don't work so
well with others.  If you select your IMAP server, this option will
set some pre-defined settings for that server.
Please note that you will still need to go through and make sure
everything is correct.  This does not change everything.  There are
only a few settings that this will change.
Please select your IMAP server:
    bincimap    = Binc IMAP server
    courier     = Courier IMAP server
    cyrus       = Cyrus IMAP server
    dovecot     = Dovecot Secure IMAP server
    exchange    = Microsoft Exchange IMAP server
    hmailserver = hMailServer
    macosx      = Mac OS X Mailserver
    mercury32   = Mercury/32
    uw          = University of Washington's IMAP server
    quit        = Do not change anything
Command >> courier

              imap_server_type = courier
         default_folder_prefix = INBOX.
                  trash_folder = Trash
                   sent_folder = Sent
                  draft_folder = Drafts
            show_prefix_option = false
          default_sub_of_inbox = false
show_contain_subfolders_option = false
            optional_delimiter = .
                 delete_folder = true
Press any key to continue...

디렉토리 생성

# cd /var
/var# mkdir squirrelmail
/var# mkdir squirrelmail/data
/var# mkdir squirrelmail/attach
/var# chown -R www-data:www-data /var/squirrelmail
/var# chmod -R 770 /var/squirrelmail/data
/var# chmod -R 730 /var/squirrelmail/attach

서브도메인 설정

# vi /etc/apache2/sites-enabled/000-default

# 추가
# mail
<VirtualHost *:80>
        ServerName mail.nerv-team.co.kr
        DocumentRoot /usr/share/squirrelmail
</VirtualHost>

apache2 재시작

# /etc/init.d/apache2 restart

http://mail.nerv-team.co.kr/src/configtest.php 설정 확인




http://mail.nerv-team.co.kr




반응형

'Server > Ubuntu' 카테고리의 다른 글

Installation Maven 3 on Ubuntu  (0) 2014.03.25
Using Xmanager to Ubuntu 10.10  (0) 2011.04.13
Subversion  (0) 2010.08.16
Openfire  (0) 2010.05.25
Webmin  (0) 2009.11.18
SparkWeb  (0) 2009.11.12
Cacti  (0) 2009.11.12
Apache + SSL  (0) 2009.11.12
Oracle Express Edition 10g  (0) 2009.11.11
Apache + Tomcat with Tomcat Connector  (0) 2009.11.11
//