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
//

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
//

Installation Maven 3 on Ubuntu

Posted at 2014. 3. 25. 20:06 | Posted in Server/Ubuntu
반응형

출처 : http://stackoverflow.com/questions/5312350/where-is-maven-installed-on-ubuntu




우분투 버전 확인


# lsb_release -a

No LSB modules are available.

Distributor ID: Ubuntu

Description:    Ubuntu 12.04.4 LTS

Release:        12.04

Codename:       precise


설치


# add-apt-repository ppa:natecarlson/maven3

# apt-get update

# sudo apt-get install maven3


메이븐 버전 확인


# mvn3 -v

Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-15T02:37:52+09:00)

Maven home: /usr/share/maven3

Java version: 1.7.0_51, vendor: Oracle Corporation

Java home: /usr/lib/jvm/java-7-oracle/jre

Default locale: ko_KR, platform encoding: UTF-8

OS name: "linux", version: "3.2.0-60-generic-pae", arch: "i386", family: "unix"



기본 명령어로 링크


# ln -s /usr/bin/mvn3 /usr/bin/mvn


반응형

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

Disable automatic updates kernel on Ubuntu  (1) 2017.12.20
Installation Redmine on Ubuntu  (0) 2014.03.26
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
//

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
//

Webmin

Posted at 2009. 11. 18. 14:18 | Posted in Server/Ubuntu
반응형

웹상에서 서버를 관리할 수 있습니다.

http://www.webmin.com



다운로드


의존 패키지 설치

# apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl

설치

# dpkg --install webmin_1.490_all.deb


https://nerv-team.co.kr:10000




설정 만지다 보니까 한글 언어도 있네요~ >_<



반응형

'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
Squirrelmail  (0) 2009.11.12
SparkWeb  (0) 2009.11.12
Cacti  (0) 2009.11.12
Apache + SSL  (0) 2009.11.12
Oracle Express Edition 10g  (0) 2009.11.11
//

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
//